]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Define __libc_* variant for cancelation wrapper.
authorUlrich Drepper <drepper@redhat.com>
Sun, 19 Dec 1999 05:34:59 +0000 (05:34 +0000)
committerUlrich Drepper <drepper@redhat.com>
Sun, 19 Dec 1999 05:34:59 +0000 (05:34 +0000)
Help gcc to optimize the code.

sysdeps/posix/open64.c

index e409891980106e7ed88065637e0b96d077f52ac0..a14c1a8f790ca1126f7afc5280e322c86361ac7b 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1995, 1996, 1997 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1995, 1996, 1997, 1999 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
 /* Open FILE with access OFLAG.  If OFLAG includes O_CREAT,
    a third argument is the file protection.  */
 int
-__open64 (file, oflag)
+__libc_open64 (file, oflag)
      const char *file;
      int oflag;
 {
-  int mode;
+  int mode = ;
 
   if (oflag & O_CREAT)
     {
@@ -35,9 +35,8 @@ __open64 (file, oflag)
       mode = va_arg (arg, int);
       va_end (arg);
     }
-  else
-    mode = 0;
 
-  return __open (file, oflag | O_LARGEFILE, mode);
+  return __libc_open (file, oflag | O_LARGEFILE, mode);
 }
-weak_alias (__open64, open64)
+strong_alias (__libc_open64, __open64)
+weak_alias (__libc_open64, open64)