We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ed6eb27 commit 967e0bcCopy full SHA for 967e0bc
file-locking/fcntl-locking.c
@@ -106,23 +106,23 @@ lock(int fd, struct flock *fl)
106
{
107
fl->l_type = F_WRLCK;
108
if (fcntl(fd, F_SETLKW, fl) == -1)
109
- err(1, "fcntl");
+ err(1, "fcntl lock W");
110
}
111
112
static void
113
lockr(int fd, struct flock *fl)
114
115
fl->l_type = F_RDLCK;
116
117
+ err(1, "fcntl lock R");
118
119
120
121
unlock(int fd, struct flock *fl)
122
123
fl->l_type = F_UNLCK;
124
125
+ err(1, "fcntl unlock");
126
127
128
/*
0 commit comments