提交 3609e019 编写于 作者: R Rich Felker

always expose accept4

it will be in the next version of POSIX
上级 9735d500
......@@ -235,6 +235,7 @@ int bind (int, const struct sockaddr *, socklen_t);
int connect (int, const struct sockaddr *, socklen_t);
int listen (int, int);
int accept (int, struct sockaddr *__restrict, socklen_t *__restrict);
int accept4(int, struct sockaddr *__restrict, socklen_t *__restrict, int);
int getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict);
int getpeername (int, struct sockaddr *__restrict, socklen_t *__restrict);
......@@ -255,10 +256,6 @@ int sockatmark (int);
#define SHUT_WR 1
#define SHUT_RDWR 2
#ifdef _GNU_SOURCE
int accept4(int, struct sockaddr *__restrict, socklen_t *__restrict, int);
#endif
#ifdef __cplusplus
}
#endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册