I'm trying to find out where I can find documentation on POSIX functions, but coming up short. Any recommendations?
28
votes
Do be careful to check which version of POSIX you're allowed to code to. 2008 - which I gave the refs to - is quite new and not all functions are necessarily available everywhere. You might decide to write covers for some new functions, but you won't be able to that for some so don't use them.
– Jonathan Leffler
3 Answers
22
votes
POSIX 1003.1-2008 is now available on the web (all 3872 pages of it, in PDF and HTML). You have to register (free). I got to it from the Open Group Bookstore.
See How to Portably scanf into a pid_t in C for my original answer that included this information.
5
votes
Strictly speaking, the definitive list of the POSIX functions is the POSIX standards documents themselves.
There's a pretty good introduction to what POSIX is all about, with links to plenty of reference material on Wikipedia.
3
votes
zipped versions of the HTML for grepping
- http://pubs.opengroup.org/onlinepubs/9699919799/download/
- http://pubs.opengroup.org/onlinepubs/9699919799/download/susv4tc2.zip
Those are useful when you start wanting to grep for things, without paying for the PDF.
Mentioned by Jonathan.