Mercurial > illumos > illumos-gate
diff usr/src/head/unistd.h @ 14022:19e11862653b
3713 Implement accept4()
3714 Implement pipe2()
3715 Implement dup3()
3716 Implement mkostemp() and mkostemps()
3719 so_socketpair syscall should preserve FD_CLOEXEC flag
Reviewed by: Dan McDonald <danmcd@nexenta.com>
Reviewed by: Robert Mustacchi <rm@joyent.com>
Approved by: Garrett D'Amore <garrett@damore.org>
author | Theo Schlossnagle <jesus@omniti.com> |
---|---|
date | Thu, 11 Apr 2013 04:50:36 +0000 |
parents | 056b82d21d71 |
children | dfcd374b3af2 |
line wrap: on
line diff
--- a/usr/src/head/unistd.h Thu Apr 18 21:49:49 2013 -0400 +++ b/usr/src/head/unistd.h Thu Apr 11 04:50:36 2013 +0000 @@ -26,6 +26,8 @@ /* Copyright (c) 1988 AT&T */ /* All Rights Reserved */ +/* Copyright (c) 2013, OmniTI Computer Consulting, Inc. All rights reserved. */ + #ifndef _UNISTD_H #define _UNISTD_H @@ -274,6 +276,7 @@ #endif extern int dup(int); extern int dup2(int, int); +extern int dup3(int, int, int); #if defined(_XPG4) || defined(__EXTENSIONS__) extern void encrypt(char *, int); #endif /* defined(XPG4) || defined(__EXTENSIONS__) */ @@ -415,6 +418,7 @@ extern long pathconf(const char *, int); extern int pause(void); extern int pipe(int *); +extern int pipe2(int *, int); #if !defined(_POSIX_C_SOURCE) || defined(_XPG5) || \ (defined(_LARGEFILE_SOURCE) && _FILE_OFFSET_BITS == 64) || \ defined(__EXTENSIONS__) @@ -608,6 +612,7 @@ #endif extern int dup(); extern int dup2(); +extern int dup3(); #if defined(_XPG4) || defined(__EXTENSIONS__) extern void encrypt(); #endif /* defined(_XPG4) || defined(__EXTENSIONS__) */