Cygwin: inline get_socket_flags()

Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
Corinna Vinschen
2018-02-21 22:00:04 +01:00
parent 8906a4d335
commit a5dfbc6940
4 changed files with 33 additions and 20 deletions

View File

@ -720,17 +720,6 @@ fhandler_socket::link (const char *newpath)
return fhandler_base::link (newpath);
}
int
fhandler_socket::get_socket_flags ()
{
int ret = 0;
if (is_nonblocking ())
ret |= SOCK_NONBLOCK;
if (close_on_exec ())
ret |= SOCK_CLOEXEC;
return ret;
}
int
fhandler_socket::shutdown (int how)
{