diff options
| author | NIIBE Yutaka <[email protected]> | 2023-12-19 06:59:41 +0000 |
|---|---|---|
| committer | NIIBE Yutaka <[email protected]> | 2023-12-19 06:59:41 +0000 |
| commit | 6b4fd3a5da7e018166d154d6514161d939f5c4f1 (patch) | |
| tree | d9169a8093b588d8eb341eba63655bd945bc9664 /tests/gpgscm/scheme.c | |
| parent | kbx: Create public-keys.d, after creating the homedir. (diff) | |
| download | gnupg-6b4fd3a5da7e018166d154d6514161d939f5c4f1.tar.gz gnupg-6b4fd3a5da7e018166d154d6514161d939f5c4f1.zip | |
common: Enhance dotlock, so that we can have a CLI util.
* common/dotlock.h (DOTLOCK_LOCK_BY_PARENT, DOTLOCK_LOCKED): New.
* common/dotlock.c [HAVE_POSIX_SYSTEM]: Include <dirent.h>.
(dotlock_get_process_id, dotlock_detect_tname): New.
(dotlock_create_unix): Handle the case when no_write option is
specified. Not creating the lock file, but detect the the file of
tname.
(dotlock_create) [HAVE_POSIX_SYSTEM]: Add support of
DOTLOCK_LOCK_BY_PARENT and DOTLOCK_LOCKED for dotlock CLI util.
(dotlock_take_unix): Support the case of DOTLOCK_LOCK_BY_PARENT.
--
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'tests/gpgscm/scheme.c')
0 files changed, 0 insertions, 0 deletions
