Home
last modified time | relevance | path

Searched refs:flock (Results 1 – 25 of 38) sorted by relevance

12

/systemd-251/src/shared/
Dlockfile-util.c39 struct flock fl = { in make_lock_file()
54 r = flock(fd, operation); in make_lock_file()
116 static const struct flock fl = { in release_lock_file()
123 r = flock(f->fd, LOCK_EX|LOCK_NB); in release_lock_file()
Dloop-util.c179 if (flock(lock_fd, LOCK_EX) < 0) in loop_configure()
370 if (flock(loop, LOCK_EX) < 0) in attach_empty_file()
526 if (flock(control, LOCK_EX) < 0) in loop_device_make_internal()
559 if (flock(control, LOCK_UN) < 0) in loop_device_make_internal()
950 return RET_NERRNO(flock(d->fd, operation)); in loop_device_flock()
Dblockdev-util.c237 if (flock(lock_fd, operation) < 0) in lock_whole_block_device()
/systemd-251/docs/
DBLOCK_DEVICE_LOCKING.md11 [(`flock(2)`)](http://man7.org/linux/man-pages/man2/flock.2.html) on block
25 lock using [`flock(2)`](http://man7.org/linux/man-pages/man2/flock.2.html) on
27 device the partition belongs to). If this lock cannot be taken (i.e. `flock()`
63 themselves. However, do note that `flock()` locks are advisory only. This means
71 `flock(2)` man page.
73 And please keep in mind: BSD file locks (`flock()`) and POSIX file locks
DTEMPORARY_DIRECTORIES.md115 take a BSD file lock ([`flock(dir_fd,
116 LOCK_SH)`](http://man7.org/linux/man-pages/man2/flock.2.html)) on that
129 [`flock`](http://man7.org/linux/man-pages/man1/flock.1.html) tool of the
/systemd-251/src/udev/
Dudevadm-lock.c228 if (flock(fd, LOCK_EX|LOCK_NB) < 0) { in lock_device()
240 if (flock(fd, LOCK_EX) < 0) in lock_device()
265 if (flock(fd, LOCK_EX) < 0) { in lock_device()
/systemd-251/src/basic/
Duser-util.c688 struct flock flock = { in take_etc_passwd_lock() local
717 r = fcntl(fd, F_SETLKW, &flock); in take_etc_passwd_lock()
Dsyscall-list.txt90 flock
Dsyscalls-alpha.txt90 flock 131
Dsyscalls-arc.txt90 flock 32
Dsyscalls-arm.txt90 flock 143
Dsyscalls-arm64.txt90 flock 32
Dsyscalls-i386.txt90 flock 143
Dsyscalls-ia64.txt90 flock 1145
Dsyscalls-loongarch64.txt90 flock 32
Dsyscalls-m68k.txt90 flock 143
Dsyscalls-mips64.txt90 flock 5071
Dsyscalls-mips64n32.txt90 flock 6071
Dsyscalls-mipso32.txt90 flock 4143
Dsyscalls-powerpc.txt90 flock 143
Dsyscalls-powerpc64.txt90 flock 143
Dsyscalls-riscv32.txt90 flock 32
Dsyscalls-riscv64.txt90 flock 32
/systemd-251/src/fsck/
Dfsck.c195 if (flock(fileno(console), LOCK_EX|LOCK_NB) < 0) in process_progress()
/systemd-251/src/sysupdate/
Dsysupdate-partition.c295 if (flock(fd, LOCK_EX) < 0) in patch_partition()

12