bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH] Define mig type flock_t as a struct instead of array of ints


From: Flavio Cruz
Subject: [PATCH] Define mig type flock_t as a struct instead of array of ints
Date: Thu, 10 Nov 2022 23:42:33 -0500

---
 hurd/hurd_types.defs | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

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;
 
-- 
2.37.2




reply via email to

[Prev in Thread] Current Thread [Next in Thread]