/dports/mail/elm/elm2.5.8/src/ |
H A D | lock.c | 87 Grab_the_file(flock_fd) in Grab_the_file() argument 88 int flock_fd; in Grab_the_file() 100 if (fcntl(flock_fd, F_SETLK, &lock_info)) { 108 if (flock (flock_fd, LOCK_NB | LOCK_EX)) { 125 fcntl (flock_fd, F_SETLK, &lock_info); 135 Release_the_file(flock_fd) in Release_the_file() argument 136 int flock_fd; in Release_the_file() 145 flockret = flock (flock_fd, LOCK_UN); 367 switch ((grabrc = Grab_the_file (flock_fd))) { 462 if (close (flock_fd) == -1) { in elm_unlock() [all …]
|
/dports/shells/zsh/zsh-5.8.1/Src/Modules/ |
H A D | system.c | 538 int flock_fd, flags; in bin_zsystem_flock() local 617 flock_fd); in bin_zsystem_flock() 631 flock_fd = movefd(flock_fd); in bin_zsystem_flock() 632 if (flock_fd == -1) in bin_zsystem_flock() 642 addlockfd(flock_fd, cloexec); in bin_zsystem_flock() 653 zclose(flock_fd); in bin_zsystem_flock() 657 zclose(flock_fd); in bin_zsystem_flock() 662 zclose(flock_fd); in bin_zsystem_flock() 670 zclose(flock_fd); in bin_zsystem_flock() 675 zclose(flock_fd); in bin_zsystem_flock() [all …]
|
/dports/www/htdigest/httpd-2.4.6/test/ |
H A D | time-sem.c | 137 static int flock_fd=-1; variable 149 flock_fd = open(FNAME, O_CREAT | O_WRONLY | O_EXCL, 0644); in accept_mutex_init() 150 if (flock_fd == -1) in accept_mutex_init() 160 flock_fd = open(FNAME, O_WRONLY, 0600); in accept_mutex_child_init() 161 if (flock_fd == -1) { in accept_mutex_child_init() 176 while ((ret = flock(flock_fd, LOCK_EX)) < 0 && errno == EINTR) in accept_mutex_on() 187 if (flock (flock_fd, LOCK_UN) < 0) in accept_mutex_off()
|
/dports/www/apache24/httpd-2.4.53/test/ |
H A D | time-sem.c | 137 static int flock_fd=-1; variable 149 flock_fd = open(FNAME, O_CREAT | O_WRONLY | O_EXCL, 0644); in accept_mutex_init() 150 if (flock_fd == -1) in accept_mutex_init() 160 flock_fd = open(FNAME, O_WRONLY, 0600); in accept_mutex_child_init() 161 if (flock_fd == -1) { in accept_mutex_child_init() 176 while ((ret = flock(flock_fd, LOCK_EX)) < 0 && errno == EINTR) in accept_mutex_on() 187 if (flock (flock_fd, LOCK_UN) < 0) in accept_mutex_off()
|
/dports/net/frr7-pythontools/frr-frr-7.5.1/vtysh/ |
H A D | vtysh_main.c | 245 static int flock_fd; variable 251 flock_fd = open(flock_file, O_RDONLY, 0644); in vtysh_flock_config() 252 if (flock_fd < 0) { in vtysh_flock_config() 258 while (count < 400 && (flock(flock_fd, LOCK_EX | LOCK_NB) < 0)) { in vtysh_flock_config() 271 flock(flock_fd, LOCK_UN); in vtysh_unflock_config() 272 close(flock_fd); in vtysh_unflock_config()
|
/dports/net/frr7/frr-frr-7.5.1/vtysh/ |
H A D | vtysh_main.c | 245 static int flock_fd; variable 251 flock_fd = open(flock_file, O_RDONLY, 0644); in vtysh_flock_config() 252 if (flock_fd < 0) { in vtysh_flock_config() 258 while (count < 400 && (flock(flock_fd, LOCK_EX | LOCK_NB) < 0)) { in vtysh_flock_config() 271 flock(flock_fd, LOCK_UN); in vtysh_unflock_config() 272 close(flock_fd); in vtysh_unflock_config()
|
/dports/shells/zsh/zsh-5.8.1/Src/ |
H A D | hist.c | 2818 if (flock_fd >= 0) in flockhistfile() 2840 close(flock_fd); in flockhistfile() 2841 flock_fd = -1; in flockhistfile() 3034 close(flock_fd); in savehistfile() 3035 flock_fd = -1; in savehistfile() 3240 if (flock_fd >= 0) { in lockhistfile() 3241 close(flock_fd); in lockhistfile() 3242 flock_fd = -1; in lockhistfile() 3273 if (flock_fd >= 0) { in unlockhistfile() 3274 close(flock_fd); in unlockhistfile() [all …]
|
/dports/security/cyrus-sasl2/cyrus-sasl-2.1.28/saslauthd/ |
H A D | cache.c | 593 if ((lock.flock_fd = open(lock.flock_file, O_RDWR|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR)) == -1) { in cache_init_lock() 648 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_wlock() 685 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_rlock() 720 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_un_lock()
|
H A D | cache.h | 65 int flock_fd; member
|
/dports/security/cyrus-sasl2-saslauthd/cyrus-sasl-2.1.28/saslauthd/ |
H A D | cache.c | 593 if ((lock.flock_fd = open(lock.flock_file, O_RDWR|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR)) == -1) { in cache_init_lock() 648 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_wlock() 685 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_rlock() 720 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_un_lock()
|
H A D | cache.h | 65 int flock_fd; member
|
/dports/security/cyrus-sasl2-gssapi/cyrus-sasl-2.1.28/saslauthd/ |
H A D | cache.c | 593 if ((lock.flock_fd = open(lock.flock_file, O_RDWR|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR)) == -1) { in cache_init_lock() 648 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_wlock() 685 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_rlock() 720 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_un_lock()
|
H A D | cache.h | 65 int flock_fd; member
|
/dports/security/cyrus-sasl2-ldapdb/cyrus-sasl-2.1.28/saslauthd/ |
H A D | cache.c | 593 if ((lock.flock_fd = open(lock.flock_file, O_RDWR|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR)) == -1) { in cache_init_lock() 648 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_wlock() 685 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_rlock() 720 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_un_lock()
|
H A D | cache.h | 65 int flock_fd; member
|
/dports/security/cyrus-sasl2-srp/cyrus-sasl-2.1.28/saslauthd/ |
H A D | cache.c | 593 if ((lock.flock_fd = open(lock.flock_file, O_RDWR|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR)) == -1) { in cache_init_lock() 648 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_wlock() 685 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_rlock() 720 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_un_lock()
|
H A D | cache.h | 65 int flock_fd; member
|
/dports/sysutils/vector/vector-0.10.0/cargo-crates/sasl2-sys-0.1.12/sasl2/saslauthd/ |
H A D | cache.c | 593 if ((lock.flock_fd = open(lock.flock_file, O_RDWR|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR)) == -1) { in cache_init_lock() 648 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_wlock() 685 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_rlock() 720 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_un_lock()
|
H A D | cache.h | 65 int flock_fd; member
|
/dports/security/cyrus-sasl2-sql/cyrus-sasl-2.1.28/saslauthd/ |
H A D | cache.c | 593 if ((lock.flock_fd = open(lock.flock_file, O_RDWR|O_CREAT|O_TRUNC, S_IWUSR|S_IRUSR)) == -1) { in cache_init_lock() 648 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_wlock() 685 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_get_rlock() 720 rc = fcntl(lock.flock_fd, F_SETLKW, &lock_st); in cache_un_lock()
|
H A D | cache.h | 65 int flock_fd; member
|
/dports/sysutils/libcdio/libcdio-2.1.0/lib/driver/FreeBSD/ |
H A D | freebsd.c | 1224 int os_errno, pass_dev_no = -1, flock_fd = -1, lock_result; in cdio_open_am_freebsd() local 1228 &os_errno, &pass_dev_no, &flock_fd, msg, 0); in cdio_open_am_freebsd() 1236 if (flock_fd > 0) in cdio_open_am_freebsd() 1237 close(flock_fd); in cdio_open_am_freebsd()
|
/dports/devel/libburn/libburn-1.5.4/libburn/ |
H A D | sg-freebsd.c | 691 int ret, os_errno, pass_dev_no = -1, flock_fd = -1; in sg_lock() local 696 &os_errno, &pass_dev_no, &flock_fd, msg, 0); in sg_lock() 707 d->lock_fd = flock_fd; in sg_lock()
|