accept4.c 232 B

123456789
  1. #define _GNU_SOURCE
  2. #include <sys/socket.h>
  3. #include "syscall.h"
  4. #include "libc.h"
  5. int accept4(int fd, struct sockaddr *restrict addr, socklen_t *restrict len, int flg)
  6. {
  7. return socketcall_cp(accept4, fd, addr, len, flg, 0, 0);
  8. }