mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-28 00:02:28 +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
|
@ -24,10 +24,10 @@
|
|||
#include "libc/paths.h"
|
||||
#include "libc/str/str.h"
|
||||
|
||||
int execve$sysv(const char *prog, char *const argv[], char *const envp[]) {
|
||||
int sys_execve(const char *prog, char *const argv[], char *const envp[]) {
|
||||
size_t i;
|
||||
char **shargs;
|
||||
if (__execve$sysv(prog, argv, envp) != -1) return 0;
|
||||
if (__sys_execve(prog, argv, envp) != -1) return 0;
|
||||
if (errno != ENOEXEC) return -1;
|
||||
for (i = 0; argv[i];) ++i;
|
||||
shargs = alloca((i + 2) * sizeof(char *));
|
||||
|
@ -36,5 +36,5 @@ int execve$sysv(const char *prog, char *const argv[], char *const envp[]) {
|
|||
: firstnonnull(commandv("bash", alloca(PATH_MAX)),
|
||||
_PATH_BSHELL);
|
||||
shargs[1] = prog;
|
||||
return __execve$sysv(shargs[0], shargs, envp);
|
||||
return __sys_execve(shargs[0], shargs, envp);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue