summaryrefslogtreecommitdiff
path: root/include/unistd.h
diff options
context:
space:
mode:
authorPhilip Guenther <guenther@cvs.openbsd.org>2014-08-31 01:42:37 +0000
committerPhilip Guenther <guenther@cvs.openbsd.org>2014-08-31 01:42:37 +0000
commiteefcff8d6871007a1a5fbce9970ae23bf2ba219f (patch)
tree81aff12182d6acaf015188abc621b3a8164c7eb2 /include/unistd.h
parentf86f1cf74c082971f61edab20f1fb1bb918f156e (diff)
Add additional kernel interfaces for setting close-on-exec on fds
when creating them: pipe2(), dup3(), accept4(), MSG_CMSG_CLOEXEC, SOCK_CLOEXEC. Includes SOCK_NONBLOCK support. ok matthew@
Diffstat (limited to 'include/unistd.h')
-rw-r--r--include/unistd.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/unistd.h b/include/unistd.h
index a2aab2d9875..a86998768e0 100644
--- a/include/unistd.h
+++ b/include/unistd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: unistd.h,v 1.89 2014/07/08 21:35:39 tedu Exp $ */
+/* $OpenBSD: unistd.h,v 1.90 2014/08/31 01:42:36 guenther Exp $ */
/* $NetBSD: unistd.h,v 1.26.4.1 1996/05/28 02:31:51 mrg Exp $ */
/*-
@@ -485,6 +485,11 @@ int unlinkat(int, const char *, int);
#endif
#if __BSD_VISIBLE
+int dup3(int, int, int);
+int pipe2(int [2], int);
+#endif
+
+#if __BSD_VISIBLE
int acct(const char *);
int closefrom(int);
int des_cipher(const char *, char *, int32_t, int);