mescc: unlink: Move to libc.

* lib/linux/libc.c (unlink): New function.
* lib/linux/tcc.c (unlink): Remove.
This commit is contained in:
Jan Nieuwenhuizen 2018-11-11 11:00:42 +01:00
parent e660665dfd
commit 82df50eae9
No known key found for this signature in database
GPG key ID: F3C1A0D9C1D65273
2 changed files with 6 additions and 6 deletions

View file

@ -171,6 +171,12 @@ dup2 (int old, int new)
return _sys_call2 (SYS_dup2, (int)old, (int)new);
}
int
unlink (char const *file_name)
{
return _sys_call1 (SYS_unlink, (long)file_name);
}
#include "linux/clock_gettime.c"
#include "linux/gettimeofday.c"
#include "linux/time.c"

View file

@ -37,12 +37,6 @@ lseek (int filedes, off_t offset, int whence)
return _sys_call3 (SYS_lseek, (int)filedes, (long)offset, (int)whence);
}
int
unlink (char const *file_name)
{
return _sys_call1 (SYS_unlink, (long)file_name);
}
int
rmdir (char const *file_name)
{