aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-08-09 21:05:45 +0000
committerMark Kettenis <kettenis@gnu.org>2000-08-09 21:05:45 +0000
commit36f7b1df970558417a074f15843ef1e29c762805 (patch)
tree8f0502a8c12cc0e198e6279f5c28f9f20969d77e /include
parent1000d1e5bb16b0997a650f84c0605e1d2dc5f878 (diff)
downloadglibc-36f7b1df970558417a074f15843ef1e29c762805.zip
glibc-36f7b1df970558417a074f15843ef1e29c762805.tar.gz
glibc-36f7b1df970558417a074f15843ef1e29c762805.tar.bz2
* sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from socketpair. Made socketpair a weak alias. * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using __socketpair. Use S_IFIFO protocol to make pipes POSIX conforming, but fall back on the old protocol if the socket server doesn't support it. * include/sys/socket.h: Add prototype for __socketpair.
2000-08-02 Mark Kettenis <kettenis@gnu.org> * sysdeps/mach/hurd/socketpair.c (__socketpair): Renamed from socketpair. Made socketpair a weak alias. * sysdeps/mach/hurd/pipe.c (__pipe): Reimplemented using __socketpair. Use S_IFIFO protocol to make pipes POSIX conforming, but fall back on the old protocol if the socket server doesn't support it. * include/sys/socket.h: Add prototype for __socketpair.
Diffstat (limited to 'include')
-rw-r--r--include/sys/socket.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/sys/socket.h b/include/sys/socket.h
index 2e91fb3..576c593 100644
--- a/include/sys/socket.h
+++ b/include/sys/socket.h
@@ -4,6 +4,13 @@
/* Now define the internal interfaces. */
extern int __socket (int __domain, int __type, int __protocol);
+/* Create two new sockets, of type TYPE in domain DOMAIN and using
+ protocol PROTOCOL, which are connected to each other, and put file
+ descriptors for them in FDS[0] and FDS[1]. If PROTOCOL is zero,
+ one will be chosen automatically. Returns 0 on success, -1 for errors. */
+extern int __socketpair (int __domain, int __type, int __protocol,
+ int __fds[2]);
+
/* Return a socket of any type. The socket can be used in subsequent
ioctl calls to talk to the kernel. */
extern int __opensock (void) internal_function;