Files
mars-libowfat/socket/socket_accept4_makenonblocking_setcloseonexec.c
2026-06-03 10:46:57 +02:00

12 lines
305 B
C

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