mirror of
https://sourceware.org/git/glibc.git
synced 2024-12-23 03:10:05 +00:00
36f7b1df97
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.
19 lines
701 B
C
19 lines
701 B
C
#ifndef _SYS_SOCKET_H
|
|
#include <socket/sys/socket.h>
|
|
|
|
/* 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;
|
|
|
|
#endif
|