mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-22 21:32:31 +00:00
Remove dollars from system call support symbols
This commit is contained in:
parent
a8d7195777
commit
a37960a3af
743 changed files with 1380 additions and 2016 deletions
|
@ -26,7 +26,7 @@
|
|||
#define CLOEXEC 0x00080000
|
||||
#define NONBLOCK 0x00000800
|
||||
|
||||
textwindows int socket$nt(int family, int type, int protocol) {
|
||||
textwindows int sys_socket_nt(int family, int type, int protocol) {
|
||||
int fd;
|
||||
uint32_t yes;
|
||||
if ((fd = __reservefd()) == -1) return -1;
|
||||
|
@ -34,8 +34,8 @@ textwindows int socket$nt(int family, int type, int protocol) {
|
|||
protocol, NULL, 0, 0)) != -1) {
|
||||
if (type & NONBLOCK) {
|
||||
yes = 1;
|
||||
if (__ioctlsocket$nt(g_fds.p[fd].handle, FIONBIO, &yes) == -1) {
|
||||
__closesocket$nt(g_fds.p[fd].handle);
|
||||
if (__sys_ioctlsocket_nt(g_fds.p[fd].handle, FIONBIO, &yes) == -1) {
|
||||
__sys_closesocket_nt(g_fds.p[fd].handle);
|
||||
return __winsockerr();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue