tsan: add internal_unlink() function

llvm-svn: 177510
This commit is contained in:
Dmitry Vyukov 2013-03-20 10:28:36 +00:00
parent a127512cb4
commit b6eace8a2f
2 changed files with 5 additions and 0 deletions

View File

@ -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);

View File

@ -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);
}