]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
(check_one_fd): Use __libc_fcntl instead of __fcntl.
authorUlrich Drepper <drepper@redhat.com>
Sun, 19 Dec 1999 02:59:52 +0000 (02:59 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 19 Dec 1999 02:59:52 +0000 (02:59 +0000)
sysdeps/generic/libc-start.c

index 191a1e017f9f54619ab23a8ad862b61b5cceedc7..58e7804f26f8594515dd57fca3dc97bdf3450c7c 100644 (file)
@@ -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