API type/include corrections
Sean C. Farley
scf at FreeBSD.org
Thu Apr 24 01:32:03 UTC 2008
I am going through a list where I track items I wish to fix as I run
across them. I just like to make sure they are actually broken before
fixing them. :)
The items in question:
1. Should the man page for mkdir(2) include sys/types.h? Open Group
docs[1] do not have it, yet they do use it in the example. It is not
needed to compile their example.
2. Should readpassphrase(3) include sys/types.h in the man page, or
should it be added to readpassphrase.h? It is needed to compile even
a simple program to pick up size_t.
3. Should chflags(2), lchflags(2) and fchflags(2) have the flags
argument be of type fflags_t (uint32_t) instead of u_long? The man
page says u_long while the type for st_flags in struct stat is
fflags_t.
Sean
1. http://www.opengroup.org/onlinepubs/000095399/functions/mkdir.html
--
scf at FreeBSD.org
More information about the freebsd-arch
mailing list