Skip to content

Commit

Permalink
Add unlink system call.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidgiven committed Sep 4, 2016
1 parent 56e13e2 commit 8c94b13
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions plat/linux/libsys/unlink.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include <unistd.h>
#include "libsys.h"

int unlink(const char* pathname)
{
return _syscall(__NR_unlink, (quad) pathname, 0, 0);
}

0 comments on commit 8c94b13

Please sign in to comment.