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 938f425c71
commit 1d3d28dfbe
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)
{