| /src/external/gpl2/lvm2/dist/lib/misc/ |
| lvm-file.c | 211 int lockfd; local 239 if ((lockfd = open(file, O_RDWR | O_CREAT, 0777)) < 0) { 249 if (fcntl(lockfd, F_SETLKW, &lock)) { 251 close(lockfd); 255 return lockfd; 258 void fcntl_unlock_file(int lockfd) 267 log_very_verbose("Unlocking fd %d", lockfd); 269 if (fcntl(lockfd, F_SETLK, &lock) == -1) 270 log_error("fcntl unlock failed on fd %d: %s", lockfd, 273 if (close(lockfd)) [all...] |
| lvm-file.c | 211 int lockfd; local 239 if ((lockfd = open(file, O_RDWR | O_CREAT, 0777)) < 0) { 249 if (fcntl(lockfd, F_SETLKW, &lock)) { 251 close(lockfd); 255 return lockfd; 258 void fcntl_unlock_file(int lockfd) 267 log_very_verbose("Unlocking fd %d", lockfd); 269 if (fcntl(lockfd, F_SETLK, &lock) == -1) 270 log_error("fcntl unlock failed on fd %d: %s", lockfd, 273 if (close(lockfd)) [all...] |
| /src/external/gpl2/lvm2/dist/lib/filters/ |
| filter-persistent.c | 187 int lockfd; local 208 if ((lockfd = fcntl_lock_file(pf->file, F_WRLCK, 0)) < 0) 214 if (fstat(lockfd, &info)) { 226 fcntl_unlock_file(lockfd); 264 fcntl_unlock_file(lockfd);
|
| filter-persistent.c | 187 int lockfd; local 208 if ((lockfd = fcntl_lock_file(pf->file, F_WRLCK, 0)) < 0) 214 if (fstat(lockfd, &info)) { 226 fcntl_unlock_file(lockfd); 264 fcntl_unlock_file(lockfd);
|
| /src/external/bsd/tmux/dist/ |
| client.c | 80 int lockfd; local 84 if ((lockfd = open(lockfile, O_WRONLY|O_CREAT, 0600)) == -1) { 89 if (flock(lockfd, LOCK_EX|LOCK_NB) == -1) { 92 return (lockfd); 93 while (flock(lockfd, LOCK_EX) == -1 && errno == EINTR) 95 close(lockfd); 100 return (lockfd); 109 int fd, lockfd = -1, locked = 0; local 138 if ((lockfd = client_get_lock(lockfile)) < 0) { 139 log_debug("didn't get lock (%d)", lockfd); [all...] |
| client.c | 80 int lockfd; local 84 if ((lockfd = open(lockfile, O_WRONLY|O_CREAT, 0600)) == -1) { 89 if (flock(lockfd, LOCK_EX|LOCK_NB) == -1) { 92 return (lockfd); 93 while (flock(lockfd, LOCK_EX) == -1 && errno == EINTR) 95 close(lockfd); 100 return (lockfd); 109 int fd, lockfd = -1, locked = 0; local 138 if ((lockfd = client_get_lock(lockfile)) < 0) { 139 log_debug("didn't get lock (%d)", lockfd); [all...] |
| /src/usr.sbin/ypbind/ |
| ypbind.c | 1641 int width, lockfd; local 1691 lockfd = open_locked(_PATH_YPBIND_LOCK, O_CREAT|O_RDWR|O_TRUNC, 0644); 1692 if (lockfd == -1)
|
| ypbind.c | 1641 int width, lockfd; local 1691 lockfd = open_locked(_PATH_YPBIND_LOCK, O_CREAT|O_RDWR|O_TRUNC, 0644); 1692 if (lockfd == -1)
|
| /src/external/gpl3/binutils/dist/gprofng/src/ |
| collctrl.h | 308 int lockfd; /* fd of open lock file */ member in class:Coll_Ctrl
|
| collctrl.h | 308 int lockfd; /* fd of open lock file */ member in class:Coll_Ctrl
|
| /src/external/gpl3/binutils.old/dist/gprofng/src/ |
| collctrl.h | 307 int lockfd; /* fd of open lock file */ member in class:Coll_Ctrl
|
| collctrl.h | 307 int lockfd; /* fd of open lock file */ member in class:Coll_Ctrl
|