summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-06-11 21:37:20 +0000
committerRoland McGrath <roland@gnu.org>2002-06-11 21:37:20 +0000
commit94bc371e74e93e1db2e483676a07090047fe24ea (patch)
treea593ad0197c0088458f628b324d9f53c37787164 /hurd
parenta037fc9e6bc46f6ca0045234878e10605cbf66d8 (diff)
2002-06-08 Roland McGrath <roland@frob.com>
* hurd_types.defs (loff_t, ino64_t): New types, 64 bits. (off_t): Type removed. (off_array_t): Use loff_t instead of off_t as base type. * hurd_types.h (off_array_t): Likewise. [_FILE_OFFSET_BITS != 64] (io_statbuf_t, fsys_statfsbuf_t): Define using struct stat64/statfs64 instead of struct stat/statfs. * io.defs (io_identity): Use ino64_t for FILENO. * fs.defs (file_set_size): off_t -> loff_t * fs_notify.defs (file_changed): Likewise. * io.defs (io_write, io_read, io_seek): Likewise. * io_request.defs: Likewise for those RPCs' *_request variants. * io_reply.defs: Likewise for those RPCs' *_reply variants.
Diffstat (limited to 'hurd')
-rw-r--r--hurd/fs_notify.defs10
-rw-r--r--hurd/hurd_types.h7
2 files changed, 11 insertions, 6 deletions
diff --git a/hurd/fs_notify.defs b/hurd/fs_notify.defs
index 47ee2df0..ce53eb44 100644
--- a/hurd/fs_notify.defs
+++ b/hurd/fs_notify.defs
@@ -1,5 +1,5 @@
/* Miscellaneous callbacks from Hurd fs servers to their clients.
- Copyright (C) 1991, 1992, 1993, 1994, 1995 Free Software Foundation, Inc.
+ Copyright (C) 1991,92,93,94,95,2002 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -8,7 +8,7 @@ it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2, or (at your option)
any later version.
-The GNU Hurd is distributed in the hope that it will be useful,
+The GNU Hurd is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
@@ -26,7 +26,7 @@ FS_NOTIFY_IMPORTS
#endif
-/* This is sent by a filesystem (after being requested with
+/* This is sent by a filesystem (after being requested with
dir_notice_changes) every time a directory is changed.
CHANGE identifies the sort of change that has occurred (see hurd_types.h);
NAME is the name that was changed. */
@@ -42,5 +42,5 @@ routine dir_changed (
routine file_changed (
notify_port: mach_port_t;
change: file_changed_type_t;
- start: off_t;
- end: off_t);
+ start: loff_t;
+ end: loff_t);
diff --git a/hurd/hurd_types.h b/hurd/hurd_types.h
index 82b88d32..b957a0bf 100644
--- a/hurd/hurd_types.h
+++ b/hurd/hurd_types.h
@@ -57,12 +57,17 @@ typedef int *fd_mask_t;
typedef mach_port_t *portarray_t;
typedef pid_t *pidarray_t;
typedef uid_t *idarray_t;
-typedef off_t *off_array_t;
+typedef loff_t *off_array_t;
typedef struct rusage rusage_t;
typedef struct flock flock_t;
typedef struct utsname utsname_t;
+#if _FILE_OFFSET_BITS == 64
typedef struct stat io_statbuf_t;
typedef struct statfs fsys_statfsbuf_t;
+#else
+typedef struct stat64 io_statbuf_t;
+typedef struct statfs64 fsys_statfsbuf_t;
+#endif
/* Parameters and flags in RPC calls */