From a816cc9e87c60bc9e24fbc5bf651f798796b1a9c Mon Sep 17 00:00:00 2001 From: phil Date: Mon, 23 Feb 2004 22:57:45 +0000 Subject: [PATCH] merge HEAD into b_size, in preparation for landing --- lnet/utils/l_ioctl.c | 9 +++------ lustre/portals/utils/l_ioctl.c | 9 +++------ 2 files changed, 6 insertions(+), 12 deletions(-) diff --git a/lnet/utils/l_ioctl.c b/lnet/utils/l_ioctl.c index 58a408a..1adcc8e 100644 --- a/lnet/utils/l_ioctl.c +++ b/lnet/utils/l_ioctl.c @@ -20,6 +20,8 @@ * */ +#define __USE_FILE_OFFSET64 + #include #include #include @@ -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); } diff --git a/lustre/portals/utils/l_ioctl.c b/lustre/portals/utils/l_ioctl.c index 58a408a..1adcc8e 100644 --- a/lustre/portals/utils/l_ioctl.c +++ b/lustre/portals/utils/l_ioctl.c @@ -20,6 +20,8 @@ * */ +#define __USE_FILE_OFFSET64 + #include #include #include @@ -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); } -- 1.8.3.1