svn commit: trunk/uClibc/libc/misc/statfs
psm at uclibc.org
psm at uclibc.org
Sat Jan 14 21:04:07 UTC 2006
Author: psm
Date: 2006-01-14 13:04:04 -0800 (Sat, 14 Jan 2006)
New Revision: 13330
Log:
get rid of *stat*64 jump relocs
Modified:
trunk/uClibc/libc/misc/statfs/fstatvfs64.c
trunk/uClibc/libc/misc/statfs/statvfs64.c
Changeset:
Modified: trunk/uClibc/libc/misc/statfs/fstatvfs64.c
===================================================================
--- trunk/uClibc/libc/misc/statfs/fstatvfs64.c 2006-01-14 20:27:04 UTC (rev 13329)
+++ trunk/uClibc/libc/misc/statfs/fstatvfs64.c 2006-01-14 21:04:04 UTC (rev 13330)
@@ -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. */
Modified: trunk/uClibc/libc/misc/statfs/statvfs64.c
===================================================================
--- trunk/uClibc/libc/misc/statfs/statvfs64.c 2006-01-14 20:27:04 UTC (rev 13329)
+++ trunk/uClibc/libc/misc/statfs/statvfs64.c 2006-01-14 21:04:04 UTC (rev 13330)
@@ -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)
More information about the uClibc-cvs
mailing list