Yu Watanabe
e40b11be04
fs-util: rename xopenat() -> xopanat_full()
2024-02-16 00:25:37 +09:00
Lennart Poettering
e5f1e8b894
lock-util: add a new lock_generic_with_timeout() helper
...
This is just like lock_generic(), but applies the lock with a timeout.
This requires jumping through some hoops by executing things in a child
process, so that we can abort if necessary via a timer. Linux after all
has no native way to take file locks with a timeout.
2023-11-02 14:19:32 +01:00
Daan De Meyer
0867a46534
lock-util: Add LOCK_NONE
2023-06-15 17:10:35 +02:00
Daan De Meyer
420d2e3136
fs-util: Add XOpenFlags with XO_LABEL flag to have xopenat() MAC label files/dirs
2023-05-31 13:15:56 +02:00
Daan De Meyer
2646b86dd6
fs-util: Add xopenat_lock()
...
open/create a file/directory and lock it using the given lock type.
2023-03-22 21:54:20 +01:00
Daan De Meyer
aea3ca3613
lock-util: Add make_lock_file_at()
2023-03-21 15:19:33 +01:00
Daan De Meyer
39eb3ffaaa
fs-util: Drop unlink_noerrno()
2023-03-15 13:27:20 +01:00
Daan De Meyer
846c9c12e7
lock-util: Add posix_lock()
...
POSIX locks with the same interface as flock().
2023-03-13 13:04:08 +01:00
Daan De Meyer
37c485482f
lock-util: Use unposix_lock() in make_lock_file() and release_lock_file()
2023-03-10 11:57:43 +01:00
Daan De Meyer
4dd888dc92
lock-util: Move to src/basic
2023-03-10 11:57:43 +01:00