Add unlink system call. buildsystem
authorDavid Given <dg@cowlark.com>
Sun, 4 Sep 2016 17:23:02 +0000 (19:23 +0200)
committerDavid Given <dg@cowlark.com>
Sun, 4 Sep 2016 17:23:02 +0000 (19:23 +0200)
plat/linux/libsys/unlink.c [new file with mode: 0644]

diff --git a/plat/linux/libsys/unlink.c b/plat/linux/libsys/unlink.c
new file mode 100644 (file)
index 0000000..29eaad1
--- /dev/null
@@ -0,0 +1,8 @@
+#include <unistd.h>
+#include "libsys.h"
+
+int unlink(const char* pathname)
+{
+    return _syscall(__NR_unlink, (quad) pathname, 0, 0);
+}
+