mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-22 02:40:08 +00:00
Wed Oct 18 03:33:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
* sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr. * hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic `fd/', pass the right pointer to strtol to parse the number.
This commit is contained in:
parent
cabcc273c2
commit
4d049a8baa
@ -1,3 +1,10 @@
|
||||
Wed Oct 18 03:33:22 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||
|
||||
* sysdeps/generic/_strerror.c: Declare _sys_errlist and _sys_nerr.
|
||||
|
||||
* hurd/hurdlookup.c (__hurd_file_name_lookup_retry): For magic
|
||||
`fd/', pass the right pointer to strtol to parse the number.
|
||||
|
||||
Tue Oct 17 23:00:10 1995 Roland McGrath <roland@churchy.gnu.ai.mit.edu>
|
||||
|
||||
* sysdeps/mach/_strerror.c: Include stdio-common/_itoa.h instead
|
||||
|
@ -170,7 +170,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
|
||||
char *end;
|
||||
int save = errno;
|
||||
errno = 0;
|
||||
fd = (int) strtol (retryname, &end, 10);
|
||||
fd = (int) strtol (&retryname[3], &end, 10);
|
||||
if (end == NULL || errno || /* Malformed number. */
|
||||
/* Check for excess text after the number. A slash
|
||||
is valid; it ends the component. Anything else
|
||||
|
@ -31,6 +31,9 @@ _strerror_internal (errnum, buf, buflen)
|
||||
char *buf;
|
||||
size_t buflen;
|
||||
{
|
||||
extern const char *const _sys_errlist[];
|
||||
extern const int _sys_nerr;
|
||||
|
||||
if (errnum < 0 || errnum > _sys_nerr)
|
||||
{
|
||||
int len = __snprintf (buf, buflen, _("Unknown error %d"), errnum);
|
||||
|
Loading…
Reference in New Issue
Block a user