This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
Re: Only declare sys_errlist and sys_nerr on `linux' targets
- From: Jeff Bailey <jbailey at nisa dot net>
- To: Roland McGrath <roland at frob dot com>
- Cc: libc-alpha at sources dot redhat dot com, Marcus Brinkmann <Marcus dot Brinkmann at ruhr-uni-bochum dot de>
- Date: Wed, 31 Jul 2002 15:29:53 -0700
- Subject: Re: Only declare sys_errlist and sys_nerr on `linux' targets
- References: <20020731171213.GG27447@nisa.net> <20020731220450.B68E51BA18@perdition.linnaean.org>
On Wed, Jul 31, 2002 at 06:04:50PM -0400, Roland McGrath wrote:
> That looks ok to me. An alternate approach I almost finished
> implementing is to define some macro in bits/stdio_lim.h and use #if
> on that in stdio.h. That saves adding a file, but is a bit more
> crufty.
I considered trying to add it to bits/stdio_lim.h but I prefered this
approach for two reasons:
1) While sys_nerr is a good fit for stdio_lim, sys_errlist is not.
The way I've implemented it makes it obvious where to look.
2) I wanted a distinct file so that when the time comes to remove this
functionality from GNU/Linux that it's trivial to do so.
Tks,
Jeff Bailey
--
I reincarnated for this?