forked from OSchip/llvm-project
parent
a127512cb4
commit
b6eace8a2f
|
@ -79,6 +79,7 @@ int internal_lstat(const char *path, void *buf);
|
|||
int internal_fstat(fd_t fd, void *buf);
|
||||
int internal_dup2(int oldfd, int newfd);
|
||||
uptr internal_readlink(const char *path, char *buf, uptr bufsize);
|
||||
int internal_unlink(const char *path);
|
||||
void NORETURN internal__exit(int exitcode);
|
||||
OFF_T internal_lseek(fd_t fd, OFF_T offset, int whence);
|
||||
|
||||
|
|
|
@ -145,6 +145,10 @@ uptr internal_readlink(const char *path, char *buf, uptr bufsize) {
|
|||
return (uptr)syscall(__NR_readlink, path, buf, bufsize);
|
||||
}
|
||||
|
||||
int internal_unlink(const char *path) {
|
||||
return syscall(__NR_unlink, path);
|
||||
}
|
||||
|
||||
int internal_sched_yield() {
|
||||
return syscall(__NR_sched_yield);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue