Kernel/LibC: Add syscall and wrapper for unlink
This commit is contained in:
@@ -58,6 +58,7 @@ __BEGIN_DECLS
|
||||
#define SYS_CHMOD 55
|
||||
#define SYS_CREATE 56 // creat, mkfifo
|
||||
#define SYS_CREATE_DIR 57 // mkdir
|
||||
#define SYS_UNLINK 58
|
||||
|
||||
__END_DECLS
|
||||
|
||||
|
||||
@@ -210,6 +210,11 @@ void syncsync(int should_block)
|
||||
syscall(SYS_SYNC, should_block);
|
||||
}
|
||||
|
||||
int unlink(const char* path)
|
||||
{
|
||||
return syscall(SYS_UNLINK, path);
|
||||
}
|
||||
|
||||
pid_t getpid(void)
|
||||
{
|
||||
return syscall(SYS_GET_PID);
|
||||
|
||||
Reference in New Issue
Block a user