Adding strndup(3) to libc viable/useful?

Garrett Wollman wollman at hergotha.csail.mit.edu
Thu Dec 4 15:51:59 PST 2008


In article <e7db6d980812041127t6109ebbcr8a68822bdd91cc92 at mail.gmail.com>,
Peter Wemm writes:

>glibc has had this for a long time and the trend for this function
>seems to be gaining ground.  I think solaris is the last remaining
>major holdout.

Many formerly glibc-only functions have been adopted in the current
(IEEE Std.1003.1-2008, ISO/IEC 9945:2009) POSIX revision.

>FWIW, there are a bunch of other useful utility str*() and mem*()
>functions that glibc has that we do not.

Any of the functions that POSIX has adopted should definitely be
added.

>I've run into the lack of fmemopen() in the past.  I found an
>implementation from rwatson.

fmemopen() is one of them.

-GAWollman



More information about the freebsd-arch mailing list