about summary refs log tree commit diff
path: root/sysdeps
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1999-12-19 02:59:06 +0000
committerUlrich Drepper <drepper@redhat.com>1999-12-19 02:59:06 +0000
commit43f94f913e1078818bd09d426756ba4377f12517 (patch)
tree397455b5b1a78ea94bbd2851290bdf52f7f8a46b /sysdeps
parentc2ed387790257a11706e67c36755d796c5d37f76 (diff)
downloadglibc-43f94f913e1078818bd09d426756ba4377f12517.tar.gz
glibc-43f94f913e1078818bd09d426756ba4377f12517.tar.xz
glibc-43f94f913e1078818bd09d426756ba4377f12517.zip
Update.
1999-12-11  H.J. Lu  <hjl@gnu.org>

	* sysdeps/generic/libc-start.c (check_one_fd): Use __libc_fcntl
	instead of __fcntl.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/generic/libc-start.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/generic/libc-start.c b/sysdeps/generic/libc-start.c
index 191a1e017f..58e7804f26 100644
--- a/sysdeps/generic/libc-start.c
+++ b/sysdeps/generic/libc-start.c
@@ -25,6 +25,7 @@
 #include <elf/ldsodefs.h>
 
 extern void __libc_init_first (int argc, char **argv, char **envp);
+extern int __libc_fcntl (int fd, int cmd, ...);
 
 extern int _dl_starting_up;
 weak_extern (_dl_starting_up)
@@ -96,7 +97,7 @@ __libc_start_main (int (*main) (int, char **, char **), int argc,
 static void
 check_one_fd (int fd, int mode)
 {
-  if (__fcntl (fd, F_GETFD) == -1 && errno == EBADF)
+  if (__libc_fcntl (fd, F_GETFD) == -1 && errno == EBADF)
     {
       /* Something is wrong with this descriptor, it's probably not
 	 opened.  Open /dev/null so that the SUID program we are