mescc: unlink: Move to libc.
* lib/linux/libc.c (unlink): New function. * lib/linux/tcc.c (unlink): Remove.
This commit is contained in:
parent
e660665dfd
commit
82df50eae9
|
@ -171,6 +171,12 @@ dup2 (int old, int new)
|
||||||
return _sys_call2 (SYS_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/clock_gettime.c"
|
||||||
#include "linux/gettimeofday.c"
|
#include "linux/gettimeofday.c"
|
||||||
#include "linux/time.c"
|
#include "linux/time.c"
|
||||||
|
|
|
@ -37,12 +37,6 @@ lseek (int filedes, off_t offset, int whence)
|
||||||
return _sys_call3 (SYS_lseek, (int)filedes, (long)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
|
int
|
||||||
rmdir (char const *file_name)
|
rmdir (char const *file_name)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue