B
blmblm
I've been involved, in another context, in a long and contentious
discussion about whether functions that are part of the POSIX
standard but not the C standard -- getpid() in particular --
should be regarded as "third-party". One of my arguments against
so regarding them is that gcc packages them in libc along with
C-standard functions such as printf(). The other side responded
by saying that this just shows how "broken" UNIX is -- that libc
should include only functions that are part of the C standard.
Both sides in this debate, however, seem to have their biases ,
so I thought I'd try to get a wider range of opinions .... :
(*) Is "third-party" an accurate term to apply to functions that
are not part of the C standard (but might be part of some other
standard supported by a compiler/library, such as POSIX)?
(*) Is there a compelling reason to avoid including anything
that's not part of the C standard library in libc (and instead
put it in a separate library)? If there is, does anyone know
why gcc doesn't do it that way?
I *think* this is mostly on-topic, despite the references to POSIX
and gcc, since the point is mostly to explore the definition of
"third-party" and the packaging of non-standard library functions.
discussion about whether functions that are part of the POSIX
standard but not the C standard -- getpid() in particular --
should be regarded as "third-party". One of my arguments against
so regarding them is that gcc packages them in libc along with
C-standard functions such as printf(). The other side responded
by saying that this just shows how "broken" UNIX is -- that libc
should include only functions that are part of the C standard.
Both sides in this debate, however, seem to have their biases ,
so I thought I'd try to get a wider range of opinions .... :
(*) Is "third-party" an accurate term to apply to functions that
are not part of the C standard (but might be part of some other
standard supported by a compiler/library, such as POSIX)?
(*) Is there a compelling reason to avoid including anything
that's not part of the C standard library in libc (and instead
put it in a separate library)? If there is, does anyone know
why gcc doesn't do it that way?
I *think* this is mostly on-topic, despite the references to POSIX
and gcc, since the point is mostly to explore the definition of
"third-party" and the packaging of non-standard library functions.