Cygwin: set/getsockopt: Move implementation into fhandler_socket class

This requires to export find_winsock_errno from net.cc.

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2018-02-20 18:01:40 +01:00
parent 044ab77dcc
commit ea1e5318d5
4 changed files with 348 additions and 334 deletions

View File

@@ -590,6 +590,10 @@ class fhandler_socket: public fhandler_base
int getpeereid (pid_t *pid, uid_t *euid, gid_t *egid);
int socketpair (int af, int type, int protocol, int flags,
fhandler_socket *fh_out);
int setsockopt (int level, int optname, const void *optval,
__socklen_t optlen);
int getsockopt (int level, int optname, const void *optval,
__socklen_t *optlen);
int open (int flags, mode_t mode = 0);
void __reg3 read (void *ptr, size_t& len);