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

12 lines
332 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_accept6_makenonblocking_setcloseonexec(int s,char ip[16],uint16 *port,uint32* scope_id) {
return socket_accept6_flags(s,ip,port,scope_id,SOCKET_NONBLOCK | SOCKET_CLOEXEC);
}