libc usually is toughly coupled to the underlying kernel. There are FreeBSD libc, Solaris libc, Glibc on Linux or Hurd. Using foreign libc is almost impossible, and porting it is rocket science :-)