mirror of git://sourceware.org/git/glibc.git
* hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
not strtol. The former is usable in ld.so, the latter not.
This commit is contained in:
parent
f1c5213d69
commit
c01ec9c73d
|
@ -1,5 +1,8 @@
|
||||||
2003-01-12 Roland McGrath <roland@redhat.com>
|
2003-01-12 Roland McGrath <roland@redhat.com>
|
||||||
|
|
||||||
|
* hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use strtoul,
|
||||||
|
not strtol. The former is usable in ld.so, the latter not.
|
||||||
|
|
||||||
* include/fcntl.h: Declare __libc_creat.
|
* include/fcntl.h: Declare __libc_creat.
|
||||||
|
|
||||||
* sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
|
* sysdeps/mach/hurd/Makefile (libmachuser-link.so-no-z-defs,
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
/* hairy bits of Hurd file name lookup
|
/* hairy bits of Hurd file name lookup
|
||||||
Copyright (C) 1992,93,94,95,96,97,99,2001,02 Free Software Foundation, Inc.
|
Copyright (C) 1992,1993,1994,1995,1996,1997,1999,2001,2002,2003
|
||||||
|
Free Software Foundation, Inc.
|
||||||
This file is part of the GNU C Library.
|
This file is part of the GNU C Library.
|
||||||
|
|
||||||
The GNU C Library is free software; you can redistribute it and/or
|
The GNU C Library is free software; you can redistribute it and/or
|
||||||
|
@ -193,7 +194,7 @@ __hurd_file_name_lookup_retry (error_t (*use_init_port)
|
||||||
char *end;
|
char *end;
|
||||||
int save = errno;
|
int save = errno;
|
||||||
errno = 0;
|
errno = 0;
|
||||||
fd = (int) strtol (&retryname[3], &end, 10);
|
fd = (int) strtoul (&retryname[3], &end, 10);
|
||||||
if (end == NULL || errno || /* Malformed number. */
|
if (end == NULL || errno || /* Malformed number. */
|
||||||
/* Check for excess text after the number. A slash
|
/* Check for excess text after the number. A slash
|
||||||
is valid; it ends the component. Anything else
|
is valid; it ends the component. Anything else
|
||||||
|
|
Loading…
Reference in New Issue