always expose accept4
it will be in the next version of POSIX
This commit is contained in:
parent
9735d50070
commit
3609e019f3
1 changed files with 1 additions and 4 deletions
|
|
@ -235,6 +235,7 @@ int bind (int, const struct sockaddr *, socklen_t);
|
||||||
int connect (int, const struct sockaddr *, socklen_t);
|
int connect (int, const struct sockaddr *, socklen_t);
|
||||||
int listen (int, int);
|
int listen (int, int);
|
||||||
int accept (int, struct sockaddr *__restrict, socklen_t *__restrict);
|
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 getsockname (int, struct sockaddr *__restrict, socklen_t *__restrict);
|
||||||
int getpeername (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_WR 1
|
||||||
#define SHUT_RDWR 2
|
#define SHUT_RDWR 2
|
||||||
|
|
||||||
#ifdef _GNU_SOURCE
|
|
||||||
int accept4(int, struct sockaddr *__restrict, socklen_t *__restrict, int);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue