cvs commit: src/include stdio.h src/lib/libc/sys lseek.2
pathconf.2 src/sys/kern vfs_syscalls.c src/sys/sys filio.h unistd.h
ache at FreeBSD.org
Sat Apr 7 16:28:28 UTC 2007
On Sat, Apr 07, 2007 at 06:04:01PM +0200, Pawel Jakub Dawidek wrote:
> Ok, I removed SEEK_DATA/SEEK_HOLE from stdio.h and hidden them in
> sys/unistd.h under:
> #if !defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)
> This is consistent which what Solaris has.
It is not enough. Currently you need !_C99_SOURCE !_ANSI_SOURCE
!_POSIX_C_SOURCE too (see the end of /sys/sys/cdefs.h)
BTW, we design our *_VISIBLE framework right for the reason to _not_
mention all possible *_SOURCE each time but mention one *_VISIBLE
tag instead, so please follow the rules how rest of our includes are made.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20070407/1b9d4924/attachment.pgp
More information about the cvs-src