Home
last modified time | relevance | path

Searched refs:lock_file (Results 1 – 25 of 1814) sorted by relevance

12345678910>>...73

/dports/mail/spamassassin-devel/spamassassin-1ea352210/lib/Mail/SpamAssassin/Locker/
H A DUnixNFSSafe.pm66 my $lock_file = "$path.lock";
87 if (link($lock_tmp, $lock_file)) {
106 @stat = lstat($lock_file);
114 unlink($lock_file)
125 @stat = lstat($lock_file);
141 my $lock_file = "$path.lock";
190 my @stat_lock = lstat($lock_file);
198 unlink($lock_file)
235 my $lock_file = "$path.lock";
236 utime time, time, $lock_file;
[all …]
H A DWin32.pm54 my $lock_file = "$path.lock";
56 if (-e $lock_file && -M $lock_file > (LOCK_MAX_AGE / 86400)) {
57 dbg("locker: safe_lock: breaking stale lock: $lock_file");
58 unlink($lock_file)
67 if (!defined sysopen(LOCKFILE, $lock_file, O_RDWR|O_CREAT|O_EXCL)) {
68 dbg("locker: safe_lock: failed to create lock tmpfile $lock_file: $!");
70 dbg("locker: safe_lock: link to $lock_file: sysopen ok");
74 my @stat = stat($lock_file);
75 @stat or warn "locker: error accessing $lock_file: $!";
82 dbg("locker: safe_lock: breaking stale lock: $lock_file");
[all …]
/dports/mail/spamassassin/Mail-SpamAssassin-3.4.5/lib/Mail/SpamAssassin/Locker/
H A DUnixNFSSafe.pm65 my $lock_file = "$path.lock";
86 if (link($lock_tmp, $lock_file)) {
101 @stat = lstat($lock_file);
109 unlink($lock_file)
120 @stat = lstat($lock_file);
136 my $lock_file = "$path.lock";
185 my @stat_lock = lstat($lock_file);
193 unlink($lock_file)
230 my $lock_file = "$path.lock";
231 utime time, time, $lock_file;
[all …]
H A DWin32.pm54 my $lock_file = "$path.lock";
56 if (-e $lock_file && -M $lock_file > (LOCK_MAX_AGE / 86400)) {
57 dbg("locker: safe_lock: breaking stale lock: $lock_file");
58 unlink($lock_file)
67 if (!defined sysopen(LOCKFILE, $lock_file, O_RDWR|O_CREAT|O_EXCL)) {
68 dbg("locker: safe_lock: failed to create lock tmpfile $lock_file: $!");
70 dbg("locker: safe_lock: link to $lock_file: sysopen ok");
74 my @stat = stat($lock_file);
75 @stat or warn "locker: error accessing $lock_file: $!";
82 dbg("locker: safe_lock: breaking stale lock: $lock_file");
[all …]
/dports/devel/py-fasteners/fasteners-0.16.3/fasteners/tests/
H A Dtest_reader_writer_lock.py29 def run_doesnt_hang(disk_cache_dir, lock_file, type_): argument
31 ReaderWriterLock(lock_file).read_lock)
45 with ReaderWriterLock(lock_file).write_lock():
79 ReaderWriterLock(lock_file).read_lock)
88 with ReaderWriterLock(lock_file).read_lock():
113 lock_file = tempfile.NamedTemporaryFile()
114 lock_file.close()
115 self.lock_file = lock_file.name
123 os.remove(self.lock_file)
236 def _spawling(lock_file, visits, type_): argument
[all …]
/dports/security/py-ospd-openvas/ospd-openvas-21.4.3/tests/
H A Dtest_lock.py40 lock_file = LockFile(lock_file_path)
43 self.assertTrue(lock_file.has_lock())
55 lock_file = LockFile(lock_file_path)
57 self.assertFalse(lock_file.has_lock())
65 lock_file = LockFile(lock_file_path)
68 self.assertTrue(lock_file.has_lock())
83 lock_file = LockFile(lock_file_path)
86 self.assertFalse(lock_file.has_lock())
93 lock_file = LockFile(lock_file_path)
95 with lock_file:
[all …]
/dports/devel/git-svn/git-2.34.1/
H A Dlockfile.h120 struct lock_file { struct
172 struct lock_file *lk, const char *path,
176 struct lock_file *lk, const char *path, in hold_lock_file_for_update_timeout()
189 struct lock_file *lk, const char *path, in hold_lock_file_for_update()
196 struct lock_file *lk, const char *path, in hold_lock_file_for_update_mode()
205 static inline int is_lock_file_locked(struct lock_file *lk) in is_lock_file_locked()
247 static inline int get_lock_file_fd(struct lock_file *lk) in get_lock_file_fd()
252 static inline FILE *get_lock_file_fp(struct lock_file *lk) in get_lock_file_fp()
261 char *get_locked_file_path(struct lock_file *lk);
295 static inline int reopen_lock_file(struct lock_file *lk) in reopen_lock_file()
[all …]
/dports/devel/git-gui/git-2.34.1/
H A Dlockfile.h120 struct lock_file { struct
172 struct lock_file *lk, const char *path,
176 struct lock_file *lk, const char *path, in hold_lock_file_for_update_timeout()
189 struct lock_file *lk, const char *path, in hold_lock_file_for_update()
196 struct lock_file *lk, const char *path, in hold_lock_file_for_update_mode()
205 static inline int is_lock_file_locked(struct lock_file *lk) in is_lock_file_locked()
247 static inline int get_lock_file_fd(struct lock_file *lk) in get_lock_file_fd()
252 static inline FILE *get_lock_file_fp(struct lock_file *lk) in get_lock_file_fp()
261 char *get_locked_file_path(struct lock_file *lk);
295 static inline int reopen_lock_file(struct lock_file *lk) in reopen_lock_file()
[all …]
/dports/devel/git-p4/git-2.34.1/
H A Dlockfile.h120 struct lock_file { struct
172 struct lock_file *lk, const char *path,
176 struct lock_file *lk, const char *path, in hold_lock_file_for_update_timeout()
189 struct lock_file *lk, const char *path, in hold_lock_file_for_update()
196 struct lock_file *lk, const char *path, in hold_lock_file_for_update_mode()
205 static inline int is_lock_file_locked(struct lock_file *lk) in is_lock_file_locked()
247 static inline int get_lock_file_fd(struct lock_file *lk) in get_lock_file_fd()
252 static inline FILE *get_lock_file_fp(struct lock_file *lk) in get_lock_file_fp()
261 char *get_locked_file_path(struct lock_file *lk);
295 static inline int reopen_lock_file(struct lock_file *lk) in reopen_lock_file()
[all …]
/dports/devel/git/git-2.34.1/
H A Dlockfile.h120 struct lock_file { struct
172 struct lock_file *lk, const char *path,
176 struct lock_file *lk, const char *path, in hold_lock_file_for_update_timeout()
189 struct lock_file *lk, const char *path, in hold_lock_file_for_update()
196 struct lock_file *lk, const char *path, in hold_lock_file_for_update_mode()
205 static inline int is_lock_file_locked(struct lock_file *lk) in is_lock_file_locked()
247 static inline int get_lock_file_fd(struct lock_file *lk) in get_lock_file_fd()
252 static inline FILE *get_lock_file_fp(struct lock_file *lk) in get_lock_file_fp()
261 char *get_locked_file_path(struct lock_file *lk);
295 static inline int reopen_lock_file(struct lock_file *lk) in reopen_lock_file()
[all …]
/dports/devel/git-cvs/git-2.34.1/
H A Dlockfile.h120 struct lock_file { struct
172 struct lock_file *lk, const char *path,
176 struct lock_file *lk, const char *path, in hold_lock_file_for_update_timeout()
189 struct lock_file *lk, const char *path, in hold_lock_file_for_update()
196 struct lock_file *lk, const char *path, in hold_lock_file_for_update_mode()
205 static inline int is_lock_file_locked(struct lock_file *lk) in is_lock_file_locked()
247 static inline int get_lock_file_fd(struct lock_file *lk) in get_lock_file_fd()
252 static inline FILE *get_lock_file_fp(struct lock_file *lk) in get_lock_file_fp()
261 char *get_locked_file_path(struct lock_file *lk);
295 static inline int reopen_lock_file(struct lock_file *lk) in reopen_lock_file()
[all …]
/dports/devel/cgit/cgit-1.2.3/git/
H A Dlockfile.h111 struct lock_file { struct
163 struct lock_file *lk, const char *path,
172 struct lock_file *lk, const char *path, in hold_lock_file_for_update()
181 static inline int is_lock_file_locked(struct lock_file *lk) in is_lock_file_locked()
223 static inline int get_lock_file_fd(struct lock_file *lk) in get_lock_file_fd()
228 static inline FILE *get_lock_file_fp(struct lock_file *lk) in get_lock_file_fp()
237 char *get_locked_file_path(struct lock_file *lk);
247 static inline int close_lock_file_gently(struct lock_file *lk) in close_lock_file_gently()
271 static inline int reopen_lock_file(struct lock_file *lk) in reopen_lock_file()
285 int commit_lock_file(struct lock_file *lk);
[all …]
/dports/devel/p5-File-NFSLock/File-NFSLock-1.29/lib/File/
H A DNFSLock.pm136 if( -e $self->{lock_file} &&
139 unlink $self->{lock_file};
164 if ( -e $self->{lock_file} &&
321 my $lock_file = $self->{lock_file};
339 my $lock_file = $self->{lock_file};
351 file => $lock_file,
367 -e $lock_file &&
383 return unlink shift->{lock_file};
389 my $lock_file = $self->{lock_file};
399 if( ! -e $lock_file ){
[all …]
/dports/databases/pgbarman/barman-release-2.17/tests/
H A Dtest_lockfile.py136 lock_file.release()
155 assert lock_file.acquire()
165 assert lock_file.acquire()
180 assert lock_file.acquire()
185 lock_file.release()
194 lock_file.release()
203 assert lock_file.acquire()
208 lock_file.release()
264 assert lock_file.raise_if_fail
271 assert not lock_file.wait
[all …]
/dports/mail/postfix-current/postfix-3.7-20211107/src/global/
H A Dmkmap_db.c69 char *lock_file; /* path name */ member
80 msg_warn("close %s: %m", mkmap->lock_file); in mkmap_db_after_close()
81 myfree(mkmap->lock_file); in mkmap_db_after_close()
92 msg_fatal("open lockfile %s: %m", mkmap->lock_file); in mkmap_db_after_open()
94 msg_fatal("lock %s: %m", mkmap->lock_file); in mkmap_db_after_open()
143 msg_fatal("open %s: %m", mkmap->lock_file); in mkmap_db_before_open()
158 msg_fatal("lock %s: %m", mkmap->lock_file); in mkmap_db_before_open()
160 msg_fatal("fstat %s: %m", mkmap->lock_file); in mkmap_db_before_open()
163 if (unlink(mkmap->lock_file) < 0) in mkmap_db_before_open()
165 mkmap->lock_file); in mkmap_db_before_open()
[all …]
H A Ddot_lockfile.c82 char *lock_file; in dot_lockfile() local
88 lock_file = concatenate(path, ".lock", (char *) 0); in dot_lockfile()
97 if ((fd = open(lock_file, O_WRONLY | O_EXCL | O_CREAT, 0)) >= 0) { in dot_lockfile()
116 if (stat(lock_file, &st) == 0) in dot_lockfile()
118 if (unlink(lock_file) < 0) in dot_lockfile()
125 vstring_sprintf(why, "unable to create lock file %s: %m", lock_file); in dot_lockfile()
127 myfree(lock_file); in dot_lockfile()
135 char *lock_file; in dot_unlockfile() local
138 lock_file = concatenate(path, ".lock", (char *) 0); in dot_unlockfile()
139 (void) unlink(lock_file); in dot_unlockfile()
[all …]
/dports/net-p2p/transmission-cli/transmission-3.00/libtransmission/
H A Dsession-id.c73 tr_sys_file_t lock_file; in create_session_id_lock_file() local
78 if (lock_file != TR_BAD_SYS_FILE) in create_session_id_lock_file()
84 fchmod(lock_file, 0644); in create_session_id_lock_file()
89 tr_sys_file_close(lock_file, NULL); in create_session_id_lock_file()
90 lock_file = TR_BAD_SYS_FILE; in create_session_id_lock_file()
101 return lock_file; in create_session_id_lock_file()
106 if (lock_file != TR_BAD_SYS_FILE) in destroy_session_id_lock_file()
108 tr_sys_file_close(lock_file, NULL); in destroy_session_id_lock_file()
173 tr_sys_file_t lock_file; in tr_session_id_is_local() local
178 if (lock_file == TR_BAD_SYS_FILE) in tr_session_id_is_local()
[all …]
/dports/net-p2p/transmission-qt/transmission-3.00/libtransmission/
H A Dsession-id.c73 tr_sys_file_t lock_file; in create_session_id_lock_file() local
78 if (lock_file != TR_BAD_SYS_FILE) in create_session_id_lock_file()
84 fchmod(lock_file, 0644); in create_session_id_lock_file()
89 tr_sys_file_close(lock_file, NULL); in create_session_id_lock_file()
90 lock_file = TR_BAD_SYS_FILE; in create_session_id_lock_file()
101 return lock_file; in create_session_id_lock_file()
106 if (lock_file != TR_BAD_SYS_FILE) in destroy_session_id_lock_file()
108 tr_sys_file_close(lock_file, NULL); in destroy_session_id_lock_file()
173 tr_sys_file_t lock_file; in tr_session_id_is_local() local
178 if (lock_file == TR_BAD_SYS_FILE) in tr_session_id_is_local()
[all …]
/dports/net-p2p/transmission-gtk/transmission-3.00/libtransmission/
H A Dsession-id.c73 tr_sys_file_t lock_file; in create_session_id_lock_file() local
78 if (lock_file != TR_BAD_SYS_FILE) in create_session_id_lock_file()
84 fchmod(lock_file, 0644); in create_session_id_lock_file()
89 tr_sys_file_close(lock_file, NULL); in create_session_id_lock_file()
90 lock_file = TR_BAD_SYS_FILE; in create_session_id_lock_file()
101 return lock_file; in create_session_id_lock_file()
106 if (lock_file != TR_BAD_SYS_FILE) in destroy_session_id_lock_file()
108 tr_sys_file_close(lock_file, NULL); in destroy_session_id_lock_file()
173 tr_sys_file_t lock_file; in tr_session_id_is_local() local
178 if (lock_file == TR_BAD_SYS_FILE) in tr_session_id_is_local()
[all …]
/dports/net-p2p/transmission-daemon/transmission-3.00/libtransmission/
H A Dsession-id.c73 tr_sys_file_t lock_file; in create_session_id_lock_file() local
78 if (lock_file != TR_BAD_SYS_FILE) in create_session_id_lock_file()
84 fchmod(lock_file, 0644); in create_session_id_lock_file()
89 tr_sys_file_close(lock_file, NULL); in create_session_id_lock_file()
90 lock_file = TR_BAD_SYS_FILE; in create_session_id_lock_file()
101 return lock_file; in create_session_id_lock_file()
106 if (lock_file != TR_BAD_SYS_FILE) in destroy_session_id_lock_file()
108 tr_sys_file_close(lock_file, NULL); in destroy_session_id_lock_file()
173 tr_sys_file_t lock_file; in tr_session_id_is_local() local
178 if (lock_file == TR_BAD_SYS_FILE) in tr_session_id_is_local()
[all …]
/dports/net-p2p/transmission-utils/transmission-3.00/libtransmission/
H A Dsession-id.c73 tr_sys_file_t lock_file; in create_session_id_lock_file() local
78 if (lock_file != TR_BAD_SYS_FILE) in create_session_id_lock_file()
84 fchmod(lock_file, 0644); in create_session_id_lock_file()
89 tr_sys_file_close(lock_file, NULL); in create_session_id_lock_file()
90 lock_file = TR_BAD_SYS_FILE; in create_session_id_lock_file()
101 return lock_file; in create_session_id_lock_file()
106 if (lock_file != TR_BAD_SYS_FILE) in destroy_session_id_lock_file()
108 tr_sys_file_close(lock_file, NULL); in destroy_session_id_lock_file()
173 tr_sys_file_t lock_file; in tr_session_id_is_local() local
178 if (lock_file == TR_BAD_SYS_FILE) in tr_session_id_is_local()
[all …]
/dports/www/transmission-web/transmission-3.00/libtransmission/
H A Dsession-id.c73 tr_sys_file_t lock_file; in create_session_id_lock_file() local
78 if (lock_file != TR_BAD_SYS_FILE) in create_session_id_lock_file()
84 fchmod(lock_file, 0644); in create_session_id_lock_file()
89 tr_sys_file_close(lock_file, NULL); in create_session_id_lock_file()
90 lock_file = TR_BAD_SYS_FILE; in create_session_id_lock_file()
101 return lock_file; in create_session_id_lock_file()
106 if (lock_file != TR_BAD_SYS_FILE) in destroy_session_id_lock_file()
108 tr_sys_file_close(lock_file, NULL); in destroy_session_id_lock_file()
173 tr_sys_file_t lock_file; in tr_session_id_is_local() local
178 if (lock_file == TR_BAD_SYS_FILE) in tr_session_id_is_local()
[all …]
/dports/x11/xsm/xsm-1.0.4/
H A Dlock.c54 char lock_file[PATH_MAX]; in LockSession() local
61 snprintf (lock_file, sizeof(lock_file), "%s/.XSMlock-%s", in LockSession()
81 if (link (temp_lock_file, lock_file) < 0) in LockSession()
95 char lock_file[PATH_MAX]; in UnlockSession() local
99 snprintf (lock_file, sizeof(lock_file), "%s/.XSMlock-%s", in UnlockSession()
102 remove (lock_file); in UnlockSession()
111 char lock_file[PATH_MAX]; in GetLockId() local
117 snprintf (lock_file, sizeof(lock_file), "%s/.XSMlock-%s", in GetLockId()
120 if ((fp = fopen (lock_file, "r")) == NULL) in GetLockId()
/dports/comms/gammu/gammu-1.42.0/libgammu/device/
H A Ddevfunc.c214 char *lock_file = NULL; in lock_device() local
237 lock_file = calloc(len + 1, 1); in lock_device()
238 if (!lock_file) { in lock_device()
245 strcpy(lock_file, lock_path); in lock_device()
246 strcat(lock_file, aux); in lock_device()
322 *lock_name = lock_file; in lock_device()
333 free(lock_file); in lock_device()
351 if (lock_file == NULL || *lock_file == NULL) { in unlock_device()
355 err = unlink(*lock_file); in unlock_device()
356 free(*lock_file); in unlock_device()
[all …]
/dports/net/google-cloud-sdk/google-cloud-sdk/platform/gsutil/third_party/fasteners/fasteners/tests/
H A Dtest_process_lock.py59 lock_file = os.path.join(self.lock_dir, 'lock')
60 lock = pl.InterProcessLock(lock_file)
65 my_lock.lockfile = open(lock_file, 'w')
165 @pl.interprocess_locked(lock_file)
173 lock = BrokenLock(lock_file, errno.EBUSY)
178 lock = pl.InterProcessLock(lock_file)
188 while not os.path.exists(lock_file):
193 lock1.lockfile = open(lock_file, 'w')
231 with open(lock_file, 'w') as f:
233 with pl.InterProcessLock(lock_file):
[all …]

12345678910>>...73