mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-05-27 15:52: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,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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue