hurd/ChangeLog 2014-08-21 Svante Signell * fs.defs: Added description. * hurd_types.defs: Make struct flock_t seven integers long since l_start and l_len are 64bit. * hurd_types.h: typedef flock_t as flock64. 2001-04-10 Neal H Walfield * fs.defs: New rpc file_record_lock. * hurd_types.defs: Import . Index: hurd-0.5.git20141210/hurd/fs.defs =================================================================== --- hurd-0.5.git20141210.orig/hurd/fs.defs +++ hurd-0.5.git20141210/hurd/fs.defs @@ -373,3 +373,12 @@ routine file_get_source ( file: file_t; RPT out source: string_t); + +/* Do fcntl type locking on FILE. CMD is from the set + F_GETLK64, F_SETLK64, F_SETLKW64. FLOCK64 is passed + by the user and is as defined by . */ +routine file_record_lock ( + file: file_t; + RPT + cmd: int; + inout flock64: flock_t); Index: hurd-0.5.git20141210/hurd/hurd_types.defs =================================================================== --- hurd-0.5.git20141210.orig/hurd/hurd_types.defs +++ hurd-0.5.git20141210/hurd/hurd_types.defs @@ -372,7 +372,7 @@ type idarray_t = array[] of uid_t; type rusage_t = struct[18] of int; /* XXX */ -type flock_t = struct[5] of int; +type flock_t = struct[7] of int; /* l_start and l_len are 64 bit */ type timespec_t = struct[2] of int; @@ -386,3 +386,5 @@ import ; import ; import ; import ; +import ; + Index: hurd-0.5.git20141210/hurd/hurd_types.h =================================================================== --- hurd-0.5.git20141210.orig/hurd/hurd_types.h +++ hurd-0.5.git20141210/hurd/hurd_types.h @@ -65,7 +65,7 @@ typedef pid_t *pidarray_t; typedef uid_t *idarray_t; typedef loff_t *off_array_t; typedef struct rusage rusage_t; -typedef struct flock flock_t; +typedef struct flock64 flock_t; typedef struct utsname utsname_t; #if _FILE_OFFSET_BITS == 64 typedef struct stat io_statbuf_t;