Created
May 6, 2020 18:46
-
-
Save deeev-sb/3b6be61de9b4a2fba02b7c0c9be61df2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct flock { | |
...... | |
short l_type; // type of lock : F_RDLCK, F_WRLCK, F_UNLCK | |
// F_RDLCK : reader's lock | |
// F_WRLCK : writer's lock | |
// F_UNLCK : unlock | |
short l_whence; // SEEK_SET, SEEK_CUR, SEEK_END | |
off_t l_start; // lock start position | |
off_t l_len; // lock region length ( 0 for entire file) | |
pid_t l_pid; // pid of a process that has a lock (used only in F_GETLK) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment