From 6c0a7ecfd43f07d42b7f16fbf41f297431fc9184 Mon Sep 17 00:00:00 2001
From: Dmitrij Tejblum
Date: Wed, 8 Jul 1998 15:14:48 +0000
Subject: [PATCH] Declare lockf().
---
include/unistd.h | 8 ++++++++
1 file changed, 8 insertions(+)
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 *));