bsd/citrus iconv

Dag-Erling Smørgrav des at des.no
Thu Feb 23 18:46:55 UTC 2012


Garrett Wollman <wollman at hergotha.csail.mit.edu> writes:
> POSIX doesn't specify libc or any other library.  It specifies (by
> omission) that the function shall be available when the "c99" command
> is used without any special "-l" arguments (such as "-l rt").  It can
> be located in any library, so long as "c99" always includes that
> library when building an executable.

I beg to differ.  The c99 man page explicitly lists a number of
libraries (libc, libi, libpthread, libm, librt, libtrace, libxnet and
liby), and states that libc will contain all functions *except* those
defined in a short list of headers.  This list does not include
<iconv.h>; therefore, iconv must be in libc, cf. the original meaning of
"the exception that proves the rule".

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-arch mailing list