Cygwin: socketpair: Move socketpair creation inside fhandler_socket class

Add fhandler_socket::socketpair method

Deliberately disable AF_INET socketpairs for now

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2018-02-16 16:36:19 +01:00
parent cff85eaddc
commit 4e04751fc7
3 changed files with 202 additions and 179 deletions

View File

@ -588,6 +588,8 @@ class fhandler_socket: public fhandler_base
int getsockname (struct sockaddr *name, int *namelen);
int getpeername (struct sockaddr *name, int *namelen);
int getpeereid (pid_t *pid, uid_t *euid, gid_t *egid);
socketpair (int af, int type, int protocol, int flags,
fhandler_socket *fh_out);
int open (int flags, mode_t mode = 0);
void __reg3 read (void *ptr, size_t& len);