svn commit: trunk/uClibc/libc/sysdeps/linux/common

psm at uclibc.org psm at uclibc.org
Fri Dec 16 00:23:52 UTC 2005


Author: psm
Date: 2005-12-15 16:22:11 -0800 (Thu, 15 Dec 2005)
New Revision: 12908

Log:
Some undefs to be pedantic

Modified:
   trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c
   trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c
   trunk/uClibc/libc/sysdeps/linux/common/fstat.c
   trunk/uClibc/libc/sysdeps/linux/common/fstat64.c
   trunk/uClibc/libc/sysdeps/linux/common/llseek.c
   trunk/uClibc/libc/sysdeps/linux/common/lseek.c
   trunk/uClibc/libc/sysdeps/linux/common/lstat.c
   trunk/uClibc/libc/sysdeps/linux/common/lstat64.c
   trunk/uClibc/libc/sysdeps/linux/common/open.c
   trunk/uClibc/libc/sysdeps/linux/common/open64.c
   trunk/uClibc/libc/sysdeps/linux/common/stat.c
   trunk/uClibc/libc/sysdeps/linux/common/stat64.c


Changeset:
Modified: trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -11,10 +11,13 @@
 #include <stdarg.h>
 #include <fcntl.h>
 
+#undef __fcntl
+
 #if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
 extern int __fcntl64(int fd, int cmd, ...) attribute_hidden;
 #endif
 
+#undef fcntl
 #define __NR___syscall_fcntl __NR_fcntl
 static inline
 _syscall3(int, __syscall_fcntl, int, fd, int, cmd, long, arg);

Modified: trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/__syscall_fcntl64.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -12,6 +12,7 @@
 #include <fcntl.h>
 
 #if defined __UCLIBC_HAS_LFS__ && defined __NR_fcntl64
+#undef fcntl64
 #define __NR___syscall_fcntl64 __NR_fcntl64
 static inline _syscall3(int, __syscall_fcntl64, int, fd, int, cmd, long, arg);
 int attribute_hidden __fcntl64(int fd, int cmd, ...)

Modified: trunk/uClibc/libc/sysdeps/linux/common/fstat.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/fstat.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/fstat.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -15,6 +15,8 @@
 #include "xstatconv.h"
 
 #define __NR___syscall_fstat __NR_fstat
+#undef __fstat
+#undef fstat
 static inline _syscall2(int, __syscall_fstat, int, fd, struct kernel_stat *, buf);
 
 int attribute_hidden __fstat(int fd, struct stat *buf)

Modified: trunk/uClibc/libc/sysdeps/linux/common/fstat64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/fstat64.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/fstat64.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -19,6 +19,7 @@
 static inline _syscall2(int, __syscall_fstat64,
 		int, filedes, struct kernel_stat64 *, buf);
 
+#undef fstat64
 int attribute_hidden __fstat64(int fd, struct stat64 *buf)
 {
 	int result;

Modified: trunk/uClibc/libc/sysdeps/linux/common/llseek.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/llseek.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/llseek.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -33,7 +33,7 @@
 #include <sys/types.h>
 #include <sys/syscall.h>
 
-
+#undef lseek64
 #if defined __NR__llseek && defined __UCLIBC_HAS_LFS__
 
 #ifndef INLINE_SYSCALL

Modified: trunk/uClibc/libc/sysdeps/linux/common/lseek.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/lseek.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/lseek.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -11,6 +11,8 @@
 #include <unistd.h>
 
 #define __NR___lseek __NR_lseek
+#undef __lseek
+#undef lseek
 attribute_hidden _syscall3(__off_t, __lseek, int, fildes, __off_t, offset, int, whence);
 strong_alias(__lseek,lseek)
 weak_alias(__lseek,__libc_lseek)

Modified: trunk/uClibc/libc/sysdeps/linux/common/lstat.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/lstat.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/lstat.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -15,6 +15,8 @@
 #include "xstatconv.h"
 
 #define __NR___syscall_lstat __NR_lstat
+#undef __lstat
+#undef lstat
 static inline _syscall2(int, __syscall_lstat,
 		const char *, file_name, struct kernel_stat *, buf);
 

Modified: trunk/uClibc/libc/sysdeps/linux/common/lstat64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/lstat64.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/lstat64.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -16,6 +16,7 @@
 #include "xstatconv.h"
 
 #define __NR___syscall_lstat64 __NR_lstat64
+#undef lstat64
 static inline _syscall2(int, __syscall_lstat64, const char *, file_name,
 		  struct kernel_stat64 *, buf);
 

Modified: trunk/uClibc/libc/sysdeps/linux/common/open.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/open.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/open.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -14,6 +14,8 @@
 #include <string.h>
 #include <sys/param.h>
 
+#undef __open
+#undef open
 #define __NR___syscall_open __NR_open
 static inline _syscall3(int, __syscall_open, const char *, file,
 		int, flags, __kernel_mode_t, mode);

Modified: trunk/uClibc/libc/sysdeps/linux/common/open64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/open64.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/open64.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -28,6 +28,7 @@
 #ifdef __UCLIBC_HAS_LFS__
 /* Open FILE with access OFLAG.  If OFLAG includes O_CREAT,
    a third argument is the file protection.  */
+#undef open64
 int attribute_hidden __open64 (const char *file, int oflag, ...)
 {
   int mode = 0;

Modified: trunk/uClibc/libc/sysdeps/linux/common/stat.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/stat.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/stat.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -14,6 +14,8 @@
 #include "xstatconv.h"
 
 #define __NR___syscall_stat __NR_stat
+#undef __stat
+#undef stat
 static inline _syscall2(int, __syscall_stat,
 		const char *, file_name, struct kernel_stat *, buf);
 

Modified: trunk/uClibc/libc/sysdeps/linux/common/stat64.c
===================================================================
--- trunk/uClibc/libc/sysdeps/linux/common/stat64.c	2005-12-16 00:14:26 UTC (rev 12907)
+++ trunk/uClibc/libc/sysdeps/linux/common/stat64.c	2005-12-16 00:22:11 UTC (rev 12908)
@@ -19,6 +19,7 @@
 static inline _syscall2(int, __syscall_stat64,
 		const char *, file_name, struct kernel_stat64 *, buf);
 
+#undef stat64
 int attribute_hidden __stat64(const char *file_name, struct stat64 *buf)
 {
 	int result;




More information about the uClibc-cvs mailing list