Whamcloud - gitweb
use one place for syscall.h
authorshadow <shadow>
Fri, 18 Apr 2008 06:53:17 +0000 (06:53 +0000)
committershadow <shadow>
Fri, 18 Apr 2008 06:53:17 +0000 (06:53 +0000)
sys/syscall.h exist at all os'es instead of <syscall.h> which exist only
at linux.
b=14929
i=nikita

libsysio/drivers/native/fs_native.c
libsysio/drivers/sockets/sockets.c
libsysio/drivers/yod/fs_yod.c
libsysio/src/fcntl.c
lnet/include/libcfs/linux/portals_utils.h
lnet/libcfs/user-tcpip.c
lnet/ulnds/socklnd/handlers.c
lnet/ulnds/socklnd/poll.c
lustre/include/linux/lustre_user.h
lustre/liblustre/lutil.c

index 4081dfd..7980f68 100644 (file)
@@ -56,7 +56,7 @@
 #endif
 #include <errno.h>
 #include <assert.h>
-#include <syscall.h>
+#include <sys/syscall.h>
 #include <sys/time.h>
 #include <sys/types.h>
 #include <sys/stat.h>
index d311ae1..8dec0a7 100644 (file)
@@ -53,7 +53,7 @@
 #include <unistd.h>
 #include <errno.h>
 #include <assert.h>
-#include <syscall.h>
+#include <sys/syscall.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/fcntl.h>
index 6750ffb..56a9f66 100644 (file)
@@ -53,7 +53,7 @@
 #include <unistd.h>
 #include <errno.h>
 #include <assert.h>
-#include <syscall.h>
+#include <sys/syscall.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <sys/fcntl.h>
index b779d70..64f6a2c 100644 (file)
@@ -58,7 +58,7 @@
 #include "sysio-symbols.h"
 
 #ifdef HAVE_LUSTRE_HACK
-#include <syscall.h>
+#include <sys/syscall.h>
 #include <native.h>
 #endif
 
index ae319af..4e76856 100644 (file)
@@ -40,7 +40,7 @@
 #endif /* !HAVE_LINUX_VERSION_H */
 
 #ifndef __CYGWIN__
-# include <syscall.h>
+# include <sys/syscall.h>
 #else /* __CYGWIN__ */
 # include <windows.h>
 # include <windef.h>
index 5637396..a76edb3 100644 (file)
@@ -35,7 +35,7 @@
 #include <sys/sockio.h>
 #endif
 #ifndef __CYGWIN__
-#include <syscall.h>
+#include <sys/syscall.h>
 #endif
 
 #include <libcfs/libcfs.h>
index cd84315..63c6d24 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "usocklnd.h"
 #include <unistd.h>
-#include <syscall.h>
+#include <sys/syscall.h>
 
 int
 usocklnd_notifier_handler(int fd)
index 9c346a7..ba08dee 100644 (file)
@@ -11,7 +11,7 @@
 
 #include "usocklnd.h"
 #include <unistd.h>
-#include <syscall.h>
+#include <sys/syscall.h>
 
 void
 usocklnd_process_stale_list(usock_pollthread_t *pt_data)
index bc67a18..d569e5f 100644 (file)
@@ -74,11 +74,11 @@ typedef struct stat64   lstat_t;
 # define LPSZ  "%u"
 # define LPSSZ "%d"
 #elif (_LWORDSIZE == 64)
-# define LPU64 "%lu"
-# define LPD64 "%ld"
-# define LPX64 "%#lx"
-# define LPSZ  "%lu"
-# define LPSSZ "%ld"
+# define LPU64 "%llu"
+# define LPD64 "%lld"
+# define LPX64 "%#llx"
+# define LPSZ  "%llu"
+# define LPSSZ "%lld"
 #endif
 
 #undef _LWORDSIZE
index 65a1378..71a14d9 100644 (file)
@@ -32,7 +32,7 @@
 #ifdef _AIX
 #include "syscall_AIX.h"
 #else
-#include <syscall.h>
+#include <sys/syscall.h>
 #endif
 #include <sys/utsname.h>
 #ifdef HAVE_NETINET_IN_H