Remove dollars from system call support symbols

This commit is contained in:
Justine Tunney 2021-02-03 19:35:29 -08:00
parent a8d7195777
commit a37960a3af
743 changed files with 1380 additions and 2016 deletions

View file

@ -24,14 +24,14 @@
#include "libc/nt/enum/filesharemode.h"
#include "libc/nt/runtime.h"
textwindows int truncate$nt(const char *path, uint64_t length) {
textwindows int sys_truncate_nt(const char *path, uint64_t length) {
bool32 ok;
int64_t fh;
uint16_t path16[PATH_MAX];
if (__mkntpath(path, path16) == -1) return -1;
if ((fh = CreateFile(path16, kNtGenericWrite, kNtFileShareRead, NULL,
kNtOpenExisting, kNtFileAttributeNormal, 0)) != -1) {
ok = ftruncate$nt(fh, length);
ok = sys_ftruncate_nt(fh, length);
CloseHandle(fh);
if (ok) return 0;
}