Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Feb 1999 03:54:51 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        archie@whistle.com, bde@zeta.org.au
Cc:        cvs-all@FreeBSD.ORG, cvs-committers@FreeBSD.ORG, dima@tejblum.dnttm.rssi.ru, dt@FreeBSD.ORG, wollman@khavrinen.lcs.mit.edu
Subject:   Re: cvs commit: src/include stdio.h src/lib/libc/stdio Makefile.inc fgetpos.c fseek.3 fseek.c fsetpos.c ftell.c
Message-ID:  <199902091654.DAA22001@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>> No.  The old code should use sys_nerr to avoid accessing beyond the end
>> of sys_errlist[], even if it is too crufty to use strerror(), etc.
>
>Then perhaps this definition in /sys/sys/errno.h should have a
>suitable warning to that effect:
>
>  #define ELAST    86         /* Must be equal largest errno */

No.  sys_nerr is adequately documented in strerror(3).

ELAST seems to be kernel-only.  The kernel uses it instead of sys_nerr.

Bruce

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



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