diff options
author | Thomas Roessler <roessler@does-not-exist.org> | 1998-08-25 22:33:07 +0000 |
---|---|---|
committer | Thomas Roessler <roessler@does-not-exist.org> | 1998-08-25 22:33:07 +0000 |
commit | 986ab5e943db7aaed2aed98f8b74e4c26666fdd8 (patch) | |
tree | 58cfec1114686823dbdbf22cf2ca52f77eb1075d /dotlock.h | |
parent | 9044dd4d58af4b4d64a6e68b7b76c42d317e7ce5 (diff) |
CVS branch clean-up.
Diffstat (limited to 'dotlock.h')
-rw-r--r-- | dotlock.h | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/dotlock.h b/dotlock.h new file mode 100644 index 00000000..4dde522c --- /dev/null +++ b/dotlock.h @@ -0,0 +1,43 @@ +/* + * Copyright (C) 1996-8 Michael R. Elkins <me@cs.hmc.edu> + * Copyright (C) 1998 Thomas Roessler <roessler@guug.de> + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + */ + +#ifndef _DOTLOCK_H +#define _DOTLOCK_H + +/* exit values */ + +#define DL_EX_OK 0 +#define DL_EX_ERROR 1 +#define DL_EX_EXIST 3 +#define DL_EX_NEED_PRIVS 4 +#define DL_EX_IMPOSSIBLE 5 + +/* flags */ + +#define DL_FL_TRY (1 << 0) +#define DL_FL_UNLOCK (1 << 1) +#define DL_FL_USEPRIV (1 << 2) +#define DL_FL_FORCE (1 << 3) +#define DL_FL_RETRY (1 << 4) + +#ifndef DL_STANDALONE +int dotlock_invoke(const char *, int, int); +#endif + +#endif |