mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-27 14:58:30 +00:00
Fix some more socket bugs
- The functions that return a sockaddr now do so the same way the Linux Kernel does across platforms, e.g. getpeername(), accept4() - Socket system calls on Windows will now only check for interrupts when a blocking operation needs to be performed. - Write tests for recvfrom() system call
This commit is contained in:
parent
ac92f25296
commit
0ba3199915
49 changed files with 347 additions and 352 deletions
|
@ -45,7 +45,7 @@ int32_t __sys_getsockname(int32_t, void *, uint32_t *) _Hide;
|
|||
int32_t __sys_socket(int32_t, int32_t, int32_t) _Hide;
|
||||
int32_t __sys_socketpair(int32_t, int32_t, int32_t, int32_t[2]) _Hide;
|
||||
|
||||
int32_t sys_accept4(int32_t, void *, uint32_t *, int) dontdiscard _Hide;
|
||||
int32_t sys_accept4(int32_t, struct sockaddr_storage *, int) dontdiscard _Hide;
|
||||
int32_t sys_bind(int32_t, const void *, uint32_t) _Hide;
|
||||
int32_t sys_connect(int32_t, const void *, uint32_t) _Hide;
|
||||
int32_t sys_getsockopt(int32_t, int32_t, int32_t, void *, uint32_t *) _Hide;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue