Barath Aron wrote: > ... on an OS that partially (mostly?) supports POSIX, and > implements widely used BSD functions. And when I saw the getfsstat() and > now the getmntinfo() functions I put them into the libc
If you want to minimize porting efforts in the long run, I would suggest to implement the POSIX functions, rather than the BSD functions. Rationale: * Lots of applications have been ported to run on Linux, and use the POSIX API to that effect. * POSIX is a standard that has even some dark corner-cases fledged out. Like you said here: > I cannot implement something in libc based on > presumption. That's why I'm looking for at least a manual page that > clearly defines ... * Test suites exist that you can use to validate your implementation (even if the implementation, as for Threos, is closed-source). Bruno