mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-23 05:42:29 +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
|
@ -21,16 +21,16 @@
|
|||
#include "libc/sock/internal.h"
|
||||
#include "libc/sysv/consts/sock.h"
|
||||
|
||||
int socket$sysv(int family, int type, int protocol) {
|
||||
int sys_socket(int family, int type, int protocol) {
|
||||
int rc, olderr, modernflags;
|
||||
olderr = errno;
|
||||
rc = __socket$sysv(family, type, protocol);
|
||||
rc = __sys_socket(family, type, protocol);
|
||||
if ((SupportsLinux() || SupportsXnu()) &&
|
||||
(rc == -1 && errno == EINVAL /* rhel5 behavior */) &&
|
||||
(modernflags = (type & (SOCK_CLOEXEC | SOCK_NONBLOCK)))) {
|
||||
errno = olderr;
|
||||
rc = fixupnewsockfd$sysv(
|
||||
__socket$sysv(family, type & ~modernflags, protocol), modernflags);
|
||||
rc = __fixupnewsockfd(__sys_socket(family, type & ~modernflags, protocol),
|
||||
modernflags);
|
||||
}
|
||||
return rc;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue