Browse Source

get rid of *stat*64 jump relocs

Peter S. Mazinger 19 years ago
parent
commit
b9d5730fe1
2 changed files with 16 additions and 11 deletions
  1. 9 6
      libc/misc/statfs/fstatvfs64.c
  2. 7 5
      libc/misc/statfs/statvfs64.c

+ 9 - 6
libc/misc/statfs/fstatvfs64.c

@@ -40,19 +40,22 @@
 #include <sys/statfs.h>
 #include <sys/statvfs.h>
 
-//libc_hidden_proto(fstatfs)
-//libc_hidden_proto(fstat)
+#undef stat
+#define stat stat64
+libc_hidden_proto(fstatfs64)
+libc_hidden_proto(fstat64)
+libc_hidden_proto(stat64)
 
 int fstatvfs (int fd, struct statvfs *buf)
 {
-    struct statfs fsbuf;
-    struct stat st;
+    struct statfs64 fsbuf;
+    struct stat64 st;
 
     /* Get as much information as possible from the system.  */
-    if (fstatfs (fd, &fsbuf) < 0)
+    if (fstatfs64 (fd, &fsbuf) < 0)
 	return -1;
 
-#define STAT(st) fstat (fd, st)
+#define STAT(st) fstat64 (fd, st)
 #include "internal_statvfs.c"
 
     /* We signal success if the statfs call succeeded.  */

+ 7 - 5
libc/misc/statfs/statvfs64.c

@@ -42,16 +42,18 @@
 #include <sys/statfs.h>
 #include <sys/statvfs.h>
 
-//libc_hidden_proto(statfs)
-//libc_hidden_proto(stat)
+#undef stat
+#define stat stat64
+libc_hidden_proto(statfs64)
+libc_hidden_proto(stat64)
 
 int statvfs (const char *file, struct statvfs *buf)
 {
-    struct statfs fsbuf;
-    struct stat st;
+    struct statfs64 fsbuf;
+    struct stat64 st;
 
     /* Get as much information as possible from the system.  */
-    if (statfs (file, &fsbuf) < 0)
+    if (statfs64 (file, &fsbuf) < 0)
 	return -1;
 
 #define STAT(st) stat (file, st)