This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

kFreeBSD port - __USE_BSD for errno codes


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
  `-


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]