diff options
author | Werner Koch <[email protected]> | 2011-09-23 12:43:58 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2011-09-23 12:43:58 +0000 |
commit | b73ae3ca36547939c9aaf54c0d05fbc93d47c096 (patch) | |
tree | 3e7dfac40a0da7a3a03336713a642ca093d5f6f7 /common/dotlock.h | |
parent | Remove support for RISCOS from dotlock.c (diff) | |
download | gnupg-b73ae3ca36547939c9aaf54c0d05fbc93d47c096.tar.gz gnupg-b73ae3ca36547939c9aaf54c0d05fbc93d47c096.zip |
Renamed the lock functions.
Also cleaned up the dotlock code for easier readability.
Diffstat (limited to 'common/dotlock.h')
-rw-r--r-- | common/dotlock.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/common/dotlock.h b/common/dotlock.h index 407a80b37..276a6cd0f 100644 --- a/common/dotlock.h +++ b/common/dotlock.h @@ -1,7 +1,7 @@ -/* dotlock.h - * Copyright (C) 2000, 2001, 2006 Free Software Foundation, Inc. +/* dotlock.h - dotfile locking + * Copyright (C) 2000, 2001, 2006, 2011 Free Software Foundation, Inc. * - * This file is part of JNLIB. + * This file is part of JNLIB, which is a subsystem of GnuPG. * * JNLIB is free software; you can redistribute it and/or modify it * under the terms of the GNU Lesser General Public License as @@ -23,11 +23,11 @@ struct dotlock_handle; typedef struct dotlock_handle *dotlock_t; -void disable_dotlock (void); -dotlock_t create_dotlock (const char *file_to_lock); -void destroy_dotlock ( dotlock_t h ); -int make_dotlock (dotlock_t h, long timeout); -int release_dotlock (dotlock_t h); +void dotlock_disable (void); +dotlock_t dotlock_create (const char *file_to_lock); +void dotlock_destroy ( dotlock_t h ); +int dotlock_take (dotlock_t h, long timeout); +int dotlock_release (dotlock_t h); void dotlock_remove_lockfiles (void); #endif /*LIBJNLIB_DOTLOCK_H*/ |