summaryrefslogtreecommitdiffstats
path: root/include/unistd.h
diff options
context:
space:
mode:
authordt <dt@FreeBSD.org>1998-07-08 15:14:48 +0000
committerdt <dt@FreeBSD.org>1998-07-08 15:14:48 +0000
commitb584b553a0e550af3c5f547776709c4a1a1e69bd (patch)
tree18718754fbffff20770ae8c1637bd3dbd4176639 /include/unistd.h
parent0df3c82bbd52b071400a1f478da65bc0529bc3fe (diff)
downloadFreeBSD-src-b584b553a0e550af3c5f547776709c4a1a1e69bd.zip
FreeBSD-src-b584b553a0e550af3c5f547776709c4a1a1e69bd.tar.gz
Declare lockf().
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/unistd.h b/include/unistd.h
index a2eba2e..989a459 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 *));
OpenPOWER on IntegriCloud