mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-06-26 22:38:30 +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,7 +24,7 @@
|
|||
#include "libc/nt/synchronization.h"
|
||||
#include "libc/sysv/consts/at.h"
|
||||
|
||||
static textwindows int unlink$nt(const char16_t *path) {
|
||||
static textwindows int sys_unlink_nt(const char16_t *path) {
|
||||
if (DeleteFile(path)) {
|
||||
return 0;
|
||||
} else {
|
||||
|
@ -32,7 +32,7 @@ static textwindows int unlink$nt(const char16_t *path) {
|
|||
}
|
||||
}
|
||||
|
||||
static textwindows int rmdir$nt(const char16_t *path) {
|
||||
static textwindows int sys_rmdir_nt(const char16_t *path) {
|
||||
int e, ms;
|
||||
for (ms = 1;; ms *= 2) {
|
||||
if (RemoveDirectory(path)) return 0;
|
||||
|
@ -54,12 +54,12 @@ static textwindows int rmdir$nt(const char16_t *path) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
textwindows int unlinkat$nt(int dirfd, const char *path, int flags) {
|
||||
textwindows int sys_unlinkat_nt(int dirfd, const char *path, int flags) {
|
||||
uint16_t path16[PATH_MAX];
|
||||
if (__mkntpathat(dirfd, path, 0, path16) == -1) return -1;
|
||||
if (flags & AT_REMOVEDIR) {
|
||||
return rmdir$nt(path16);
|
||||
return sys_rmdir_nt(path16);
|
||||
} else {
|
||||
return unlink$nt(path16);
|
||||
return sys_unlink_nt(path16);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue