Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Nov 2001 21:40:01 -0800 (PST)
From:      <jkoshy@FreeBSD.org>
To:        freebsd-bugs@FreeBSD.org
Subject:   Re: bin/30317: nability to compile programs defining _POSIX_SOURCE
Message-ID:  <200111220540.fAM5e1s77000@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/30317; it has been noted by GNATS.

From: <jkoshy@FreeBSD.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:  
Subject: Re: bin/30317: nability to compile programs defining _POSIX_SOURCE
Date: Wed, 21 Nov 2001 21:36:07 -0800 (PST)

 If `_POSIX_SOURCE' is defined the system has to make visible the
 same namespace as permitted and required by IEEE Std 1003.1-1990,
 nothing more, nothing less.
 
 Your patch would make `u_char' .. `uint' visible to programs even
 if `_POSIX_SOURCE'  were defined, which would cause portable programs
 to break.
 
 If you need to use <sys/socket.h>, then by definition your code
 falls outside of the gambit defined by the POSIX standard, so you
 should not be defining `_POSIX_SOURCE'.
 
 Incidentally, the `_POSIX_SOURCE' feature test macro is deprecated;
 `_POSIX_C_SOURCE' is recommended and can be given a numeric value
 corresponding to revision of the POSIX standard desired.
 
 Regards,
 Koshy
 <jkoshy@freebsd.org>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111220540.fAM5e1s77000>