This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Patch for glibc 2.1.3 warnings



glibc 2.1.3pre1 produces these warnings:
../sysdeps/posix/pread.c:32: warning: implicit declaration of function `__libc_lseek'
../sysdeps/posix/pwrite.c:32: warning: implicit declaration of function `__libc_lseek'
../sysdeps/posix/pread.c:32: warning: implicit declaration of function `__libc_lseek'
../sysdeps/posix/pwrite.c:32: warning: implicit declaration of function `__libc_lseek'
../sysdeps/posix/open64.c:37: warning: implicit declaration of function `__libc_open'
../sysdeps/posix/open64.c:37: warning: implicit declaration of function `__libc_open'

Uli, could you apply the appended patch from the mainline, please?

Btw. the changes from Roland for 2.1.3 might need to go into 2.2 also.
Roland, I wish you relaxing vacation and hope you remember to do this
when you're back.

Thanks,
Andreas

1999-12-21  Andreas Schwab  <schwab@suse.de>

	* include/unistd.h: Declare __libc_lseek.

1999-12-19  Andreas Jaeger  <aj@suse.de>
        
        * include/fcntl.h: Declare __libc_fcntl.

	* include/unistd.h: Move __libc_open and __libc_open64 to ...
	* include/fcntl.h: ...here.

============================================================
Index: include/unistd.h
--- include/unistd.h	1999/12/19 05:56:47	1.4.2.3
+++ include/unistd.h	2000/01/06 11:31:40
@@ -4,9 +4,8 @@
 /* Now define the internal interfaces.  */
 extern int __access __P ((__const char *__name, int __type));
 extern int __euidaccess __P ((__const char *__name, int __type));
-extern int __libc_open64 (const char *file, int oflag, ...);
-extern int __libc_open (const char *file, int oflag, ...);
 extern __off64_t __lseek64 __P ((int __fd, __off64_t __offset, int __whence));
+extern __off_t __libc_lseek __P ((int __fd, __off_t __offset, int __whence));
 extern __off64_t __libc_lseek64 (int __fd, __off64_t __offset, int __whence);
 extern ssize_t __pread __P ((int __fd, __ptr_t __buf, size_t __nbytes,
 			     __off_t __offset));
============================================================
Index: include/fcntl.h
--- include/fcntl.h	1998/09/06 23:38:38	1.3
+++ include/fcntl.h	2000/01/06 11:31:40
@@ -3,4 +3,7 @@
 
 /* Now define the internal interfaces.  */
 extern int __open64 __P ((__const char *__file, int __oflag, ...));
+extern int __libc_open64 __P ((const char *file, int oflag, ...));
+extern int __libc_open __P ((const char *file, int oflag, ...));
+extern int __libc_fcntl __P ((int fd, int cmd, ...));
 #endif


-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.rhein-neckar.de

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]