Whamcloud - gitweb
merge HEAD into b_size, in preparation for landing
authorphil <phil>
Mon, 23 Feb 2004 22:57:45 +0000 (22:57 +0000)
committerphil <phil>
Mon, 23 Feb 2004 22:57:45 +0000 (22:57 +0000)
lnet/utils/l_ioctl.c
lustre/portals/utils/l_ioctl.c

index 58a408a..1adcc8e 100644 (file)
@@ -20,6 +20,8 @@
  *
  */
 
+#define __USE_FILE_OFFSET64
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -244,12 +246,7 @@ parse_dump(char * dump_file, int (*ioc_func)(int dev_id, int opc, void *))
                 exit(1);
         }
 
-#ifndef SYS_fstat64
-# define __SYS_fstat__ SYS_fstat
-#else
-# define __SYS_fstat__ SYS_fstat64
-#endif
-       if (syscall(__SYS_fstat__, fd, &st)) { 
+       if (fstat(fd, &st)) { 
                perror("stat fails");
                exit(1);
        }
index 58a408a..1adcc8e 100644 (file)
@@ -20,6 +20,8 @@
  *
  */
 
+#define __USE_FILE_OFFSET64
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
@@ -244,12 +246,7 @@ parse_dump(char * dump_file, int (*ioc_func)(int dev_id, int opc, void *))
                 exit(1);
         }
 
-#ifndef SYS_fstat64
-# define __SYS_fstat__ SYS_fstat
-#else
-# define __SYS_fstat__ SYS_fstat64
-#endif
-       if (syscall(__SYS_fstat__, fd, &st)) { 
+       if (fstat(fd, &st)) { 
                perror("stat fails");
                exit(1);
        }