libowfat/socket/socket_accept4_makenonblocking_setcloseonexec.c
leitner 1217583e2b now that gcc 11's static analyzer looks at array bounds in arguments
like "char ip[4]", let's be more strict about that
2021-04-27 17:39:42 +00:00

13 lines
301 B
C

#ifndef __MINGW32__
#define _GNU_SOURCE
#include <sys/types.h>
#include <sys/socket.h>
#endif
#include <string.h>
#include "windoze.h"
#include "socket.h"
int socket_accept4_makenonblocking(int s,char ip[4],uint16 *port) {
return socket_accept4_flags(s,ip,port,SOCKET_NONBLOCK | SOCKET_CLOEXEC);
}