Searched refs:lockfd (Results 1 - 8 of 8) sorted by relevance
/openbsd-current/usr.bin/tmux/ |
H A D | client.c | 81 int lockfd; local 85 if ((lockfd = open(lockfile, O_WRONLY|O_CREAT, 0600)) == -1) { 90 if (flock(lockfd, LOCK_EX|LOCK_NB) == -1) { 93 return (lockfd); 94 while (flock(lockfd, LOCK_EX) == -1 && errno == EINTR) 96 close(lockfd); 101 return (lockfd); 110 int fd, lockfd = -1, locked = 0; local 139 if ((lockfd = client_get_lock(lockfile)) < 0) { 140 log_debug("didn't get lock (%d)", lockfd); [all...] |
H A D | server.c | 174 int lockfd, char *lockfile) 224 if (lockfd >= 0) { 227 close(lockfd); 173 server_start(struct tmuxproc *client, int flags, struct event_base *base, int lockfd, char *lockfile) argument
|
/openbsd-current/libexec/mail.local/ |
H A D | mail.local.c | 316 static int lockfd = -1; variable 350 lockfd = pfd[0]; 354 if (read(lockfd, &ch, 1) != 1 || ch != '1') { 359 return lockfd; 371 close(lockfd); 372 lockfd = -1;
|
/openbsd-current/usr.bin/ssh/ |
H A D | sshkey-xmss.c | 66 int lockfd; /* locked in sshkey_xmss_get_state() */ member in struct:ssh_xmss_state 121 state->lockfd = -1; 445 int lockfd = -1, have_state = 0, have_ostate, tries = 0; local 472 if ((lockfd = open(lockfile, O_CREAT|O_RDONLY, 0600)) == -1) { 477 while (flock(lockfd, LOCK_EX|LOCK_NB) == -1) { 515 state->lockfd = lockfd; 517 lockfd = -1; 520 if (lockfd != -1) 521 close(lockfd); [all...] |
/openbsd-current/sbin/resolvd/ |
H A D | resolvd.c | 165 int rtfilter, nready, lockfd; local 195 lockfd = open(_PATH_LOCKFILE, O_CREAT|O_RDWR|O_EXLOCK|O_NONBLOCK, 0600); 196 if (lockfd == -1) {
|
/openbsd-current/usr.sbin/syslogd/ |
H A D | privsep.c | 99 priv_init(int lockfd, int nullfd, int argc, char *argv[]) argument 143 close(lockfd);
|
/openbsd-current/sbin/slaacd/ |
H A D | slaacd.c | 130 int frontend_routesock, rtfilter, lockfd; local 181 lockfd = open(_PATH_LOCKFILE, O_CREAT|O_RDWR|O_EXLOCK|O_NONBLOCK, 0600); 182 if (lockfd == -1) {
|
/openbsd-current/sbin/dhcpleased/ |
H A D | dhcpleased.c | 153 int frontend_routesock, rtfilter, lockfd; local 223 lockfd = open(_PATH_LOCKFILE, O_CREAT|O_RDWR|O_EXLOCK|O_NONBLOCK, 0600); 224 if (lockfd == -1) {
|
Completed in 226 milliseconds