summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitrij Tejblum <dt@FreeBSD.org>1998-07-08 15:14:48 +0000
committerDmitrij Tejblum <dt@FreeBSD.org>1998-07-08 15:14:48 +0000
commit6c0a7ecfd43f07d42b7f16fbf41f297431fc9184 (patch)
tree59ca48d34f5b2dcbbbaef910f66d3976254248fd
parentc713c527bb96a6913e112874a3a78199ea5662ac (diff)
Notes
-rw-r--r--include/unistd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index a2eba2e54268..989a459650fb 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -48,6 +48,13 @@
#define NULL 0 /* null pointer constant */
#endif
+#ifndef _POSIX_SOURCE
+#define F_ULOCK 0 /* unlock locked section */
+#define F_LOCK 1 /* lock a section for exclusive use */
+#define F_TLOCK 2 /* test and lock a section for exclusive use */
+#define F_TEST 3 /* test a section for locks by other processes */
+#endif
+
__BEGIN_DECLS
void _exit __P((int)) __dead2;
int access __P((const char *, int));
@@ -140,6 +147,7 @@ int initgroups __P((const char *, int));
int iruserok __P((unsigned long, int, const char *, const char *));
int issetugid __P((void));
int lchown __P((const char *, uid_t, gid_t));
+int lockf __P((int, int, off_t));
char *mkdtemp __P((char *));
int mknod __P((const char *, mode_t, dev_t));
int mkstemp __P((char *));