Patch for glibc 2.2

Andreas Jaeger aj@suse.de
Wed Jan 26 01:41:00 GMT 2000


The appended patch avoids a warning when compiling with
ASSUME_STAT_64.

Andreas

2000-01-26  Andreas Jaeger  <aj@suse.de>

	* sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Avoid warning
	about unitialised variable kbuf.
	* sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
	* sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.

============================================================
Index: sysdeps/unix/sysv/linux/i386/lxstat.c
--- sysdeps/unix/sysv/linux/i386/lxstat.c	2000/01/26 03:13:00	1.2
+++ sysdeps/unix/sysv/linux/i386/lxstat.c	2000/01/26 08:54:26
@@ -47,7 +47,9 @@
 int
 __lxstat (int vers, const char *name, struct stat *buf)
 {
+#if __ASSUME_STAT64_SYSCALL == 0
   struct kernel_stat kbuf;
+#endif
   int result;
 
   if (vers == _STAT_VER_KERNEL)
============================================================
Index: sysdeps/unix/sysv/linux/i386/xstat.c
--- sysdeps/unix/sysv/linux/i386/xstat.c	2000/01/26 03:13:00	1.3
+++ sysdeps/unix/sysv/linux/i386/xstat.c	2000/01/26 08:54:27
@@ -47,7 +47,9 @@
 int
 __xstat (int vers, const char *name, struct stat *buf)
 {
+#if __ASSUME_STAT64_SYSCALL == 0
   struct kernel_stat kbuf;
+#endif
   int result;
 
   if (vers == _STAT_VER_KERNEL)
============================================================
Index: sysdeps/unix/sysv/linux/i386/fxstat.c
--- sysdeps/unix/sysv/linux/i386/fxstat.c	2000/01/26 03:13:00	1.3
+++ sysdeps/unix/sysv/linux/i386/fxstat.c	2000/01/26 08:54:27
@@ -46,7 +46,9 @@
 int
 __fxstat (int vers, int fd, struct stat *buf)
 {
+#if __ASSUME_STAT64_SYSCALL == 0
   struct kernel_stat kbuf;
+#endif
   int result;
 
   if (vers == _STAT_VER_KERNEL)

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


More information about the Libc-hacker mailing list