search for: 3ae7bcd

Displaying 2 results from an estimated 2 matches for "3ae7bcd".

Did you mean: 3abcd
2016 Jan 26
0
[klibc:master] accept.c: fix file header
...Tue, 26 Jan 2016 15:49:43 -0800 [klibc] accept.c: fix file header Correct the filename in the header. Signed-off-by: H. Peter Anvin <hpa at zytor.com> --- usr/klibc/accept.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/klibc/accept.c b/usr/klibc/accept.c index 3ae7bcd..6057544 100644 --- a/usr/klibc/accept.c +++ b/usr/klibc/accept.c @@ -1,5 +1,5 @@ /* - * pread.c + * accept.c * * Some architectures need to wrap the system call */
2016 Jan 06
0
[klibc:master] Add accept4(), handle fallback from accept () to accept4()
...sockaddr *, socklen_t *, int); <?> int getsockname(int, struct sockaddr *, socklen_t *); <?> int getpeername(int, struct sockaddr *, socklen_t *); <?> int socketpair(int, int, int, int *); diff --git a/usr/klibc/accept.c b/usr/klibc/accept.c new file mode 100644 index 0000000..3ae7bcd --- /dev/null +++ b/usr/klibc/accept.c @@ -0,0 +1,16 @@ +/* + * pread.c + * + * Some architectures need to wrap the system call + */ + +#include <sys/socket.h> + +#if !_KLIBC_SYS_SOCKETCALL && defined(__NR_accept4) && !defined(__NR_accept) + +int accept(int socket, struct sock...