summaryrefslogtreecommitdiff
path: root/hurd
diff options
context:
space:
mode:
authorFlavio Cruz <flaviocruz@gmail.com>2022-11-10 23:42:33 -0500
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2022-11-11 16:32:56 +0100
commit10a77adaca881c1f9aa1e4672f365f94dec9ba7d (patch)
treec12c60031923b2189fbbce7932577f8db0f65c6d /hurd
parent998e9774781ac360d5d3704845c0e24d44c940f5 (diff)
Define mig type flock_t as a struct instead of array of ints
Message-Id: <Y23Sua0dRTrqcxZl@viriathus>
Diffstat (limited to 'hurd')
-rw-r--r--hurd/hurd_types.defs8
1 files changed, 7 insertions, 1 deletions
diff --git a/hurd/hurd_types.defs b/hurd/hurd_types.defs
index 5b9dd85a..95399289 100644
--- a/hurd/hurd_types.defs
+++ b/hurd/hurd_types.defs
@@ -425,7 +425,13 @@ type idarray_t = array[] of uid_t;
type rusage_t = struct[18] of int; /* XXX */
-type flock_t = struct[7] of int; /* l_start and l_len are 64 bit */
+type flock_t = struct {
+ int l_type;
+ int l_whence;
+ loff_t l_start;
+ loff_t l_len;
+ pid_t l_pid;
+};
type timespec_t = struct[2] of int;