9 /* #include <iostuff.h>
11 /* int duplex_pipe(fds)
14 /* duplex_pipe() uses whatever local primitive it takes
15 /* to get a two-way I/O channel.
17 /* A null result means success. In case of error, the result
18 /* is -1 and errno is set to the appropriate number.
22 /* The Secure Mailer license must be distributed with this software.
25 /* IBM T.J. Watson Research
27 /* Yorktown Heights, NY 10598, USA
30 /* System libraries */
33 #include <sys/socket.h>
36 /* Utility library. */
39 #include "sane_socketpair.h"
41 /* duplex_pipe - give me a duplex pipe or bust */
43 int duplex_pipe(int *fds
)
45 #ifdef HAS_DUPLEX_PIPE
48 return (sane_socketpair(AF_UNIX
, SOCK_STREAM
, 0, fds
));