summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-22 10:13:58 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-12-22 10:13:58 +0000
commit22fbd8c5f1b252f39bd0ca06b68c920b87cbd775 (patch)
tree6fd22e8a0704d25db818cb184ce653098e7957a3 /include/unistd.h
parent0e4b55891832a731c56c2da441696cfd856ac06c (diff)
add XPG4.2 lockf; kleink
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index af7e79ab426..5aab2f3ff7f 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.14 1997/11/16 01:01:24 deraadt Exp $ */
+/* $OpenBSD: unistd.h,v 1.15 1997/12/22 10:13:50 deraadt Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -191,6 +191,16 @@ extern int optreset;
int getsubopt __P((char **, char * const *, char **));
extern char *suboptarg; /* getsubopt(3) external variable */
#endif /* !_POSIX_SOURCE */
+
+#if (!defined(_POSIX_SOURCE) && !defined(_POSIX_C_SOURCE) && \
+ !defined(_XOPEN_SOURCE)) || \
+ (defined(_XOPEN_SOURCE) && _XOPEN_SOURCE_EXTENDED - 0 == 1)
+#define F_ULOCK 0
+#define F_LOCK 1
+#define F_TLOCK 2
+#define F_TEST 3
+int lockf __P((int, int, off_t));
+#endif /* (!defined(_POSIX_SOURCE) && !defined(_XOPEN_SOURCE)) || ... */
__END_DECLS
#endif /* !_UNISTD_H_ */