mirror of
https://github.com/fluencelabs/musl
synced 2025-06-26 21:22:11 +00:00
move accept4, dup3, and pipe2 to non-linux-specific locations
these interfaces have been adopted by the Austin Group for inclusion in the next version of POSIX.
This commit is contained in:
9
src/network/accept4.c
Normal file
9
src/network/accept4.c
Normal file
@ -0,0 +1,9 @@
|
||||
#define _GNU_SOURCE
|
||||
#include <sys/socket.h>
|
||||
#include "syscall.h"
|
||||
#include "libc.h"
|
||||
|
||||
int accept4(int fd, struct sockaddr *restrict addr, socklen_t *restrict len, int flg)
|
||||
{
|
||||
return socketcall_cp(accept4, fd, addr, len, flg, 0, 0);
|
||||
}
|
Reference in New Issue
Block a user