diff options
author | Roland McGrath <roland@gnu.org> | 2002-06-11 21:37:20 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 2002-06-11 21:37:20 +0000 |
commit | 94bc371e74e93e1db2e483676a07090047fe24ea (patch) | |
tree | a593ad0197c0088458f628b324d9f53c37787164 /hurd/hurd_types.h | |
parent | a037fc9e6bc46f6ca0045234878e10605cbf66d8 (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/hurd_types.h')
-rw-r--r-- | hurd/hurd_types.h | 7 |
1 files changed, 6 insertions, 1 deletions
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 */ |