This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
kFreeBSD port - __USE_BSD for errno codes
- From: Robert Millan <rmh at debian dot org>
- To: libc-alpha at sources dot redhat dot com
- Cc: glibc-bsd-hackers at nongnu dot org
- Date: Sun, 26 Sep 2004 19:16:23 +0200
- Subject: kFreeBSD port - __USE_BSD for errno codes
- Organisation: free as in freedom
Hi!
In his kFreeBSD port of Glibc, Bruno Haible enclosed some errno codes in
__USE_BSD checks. Presumably, these codes are BSD-specific but the analogous
headers for linux-gnu (part of the <asm*/*.h> namespace) define all the
macros unconditionaly. Further, some of them (e.g. ECONNABORTED) are marked
as BSD-specific in the kFreeBSD headers but also defined in Linux.
What's the policy for use of the __USE_BSD macro wrt errno codes? Should we
enclose in the check only the macros that Linux doesn't define? Or is there
any other requisite for a macro to be considered "generic" enough to be defined
unconditionaly? (In which case the Linux headers need fixing to honour
__USE_BSD)
--
.''`. Proudly running Debian GNU/kFreeBSD unstable/unreleased (on UFS2+S)
: :' :
`. `' http://www.debian.org/ports/kfreebsd-gnu
`-