3 ms·
> The posix programming interface happens to be the C library Not exactly, the POSIX API is a superset of the C standard library. https://man7.org/linux/man-p
by cheph 6y ago
> The posix programming interface happens to be the C library
Not exactly, the POSIX API is a superset of the C standard library.
https://man7.org/linux/man-pages/man7/libc.7.html https://man7.org/linux/man-pages/man7/libc.7.html
> The term "libc" is commonly used as a shorthand for the "standard C library", a library of standard functions that can be used by all C programs (and sometimes by programs in other languages).
https://en.wikipedia.org/wiki/C_standard_library https://en.wikipedia.org/wiki/C_standard_library
> Starting from the original ANSI C standard, it was developed at the same time as the C library POSIX specification, which is a superset of it.
- froh 6y agoI'd appreciate "even more so" over of "not exactly", as this confirms the point: Unix programming means to use the C library, even plus a bit (superset). Thanks for adding nuance and dental.
- cheph 6y ago> I'd appreciate "even more so" over of "not exactly", as this confirms the point: Unix programming means to use the C library, even plus a bit (superset). Your claim is wrong, on a factual level. "The posix programming interface" is not "the C library". So no, not "even more so". > Unix programming means to use the C library, even plus a bit This was not what you claimed, and it is entirely possible to write a C program that only uses the POSIX specific functions and avoids any of the functions in the C standard library. It won't do much, but it will run to completion.