X-Git-Url: https://gapil.gnulinux.it/gitweb/?a=blobdiff_plain;f=listati%2Fflock.h;fp=listati%2Fflock.h;h=4768dcd87ed5e5f7ff5dc98dfd8093e5ca1952ab;hb=06661f47754a536098afe2b30cb04469918f2fa3;hp=0000000000000000000000000000000000000000;hpb=bdf6e88eeb9b3aef06d57930ec8b89083639e56d;p=gapil.git diff --git a/listati/flock.h b/listati/flock.h new file mode 100644 index 0000000..4768dcd --- /dev/null +++ b/listati/flock.h @@ -0,0 +1,7 @@ +struct flock { + short int l_type; /* Type of lock: F_RDLCK, F_WRLCK, or F_UNLCK. */ + short int l_whence; /* Where `l_start' is relative to (like `lseek').*/ + off_t l_start; /* Offset where the lock begins. */ + off_t l_len; /* Size of the locked area; zero means until EOF.*/ + pid_t l_pid; /* Process holding the lock. */ +};