Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
glibc/include/sys/socket.h
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
22 lines (17 sloc)
913 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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; | |
/* Put the address of the peer connected to socket FD into *ADDR | |
(which is *LEN bytes long), and its actual length into *LEN. */ | |
extern int __getpeername (int __fd, __SOCKADDR_ARG __addr, socklen_t *__len); | |
#endif |