Only declare sys_errlist and sys_nerr on `linux' targets
Jeff Bailey
jbailey@nisa.net
Wed Jul 31 15:29:00 GMT 2002
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?
More information about the Libc-alpha
mailing list