public
/
ack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56e13e2
)
Add unlink system call.
buildsystem
author
David Given
<dg@cowlark.com>
Sun, 4 Sep 2016 17:23:02 +0000
(19:23 +0200)
committer
David 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]
patch
|
blob
diff --git a/plat/linux/libsys/unlink.c
b/plat/linux/libsys/unlink.c
new file mode 100644
(file)
index 0000000..
29eaad1
--- /dev/null
+++ b/
plat/linux/libsys/unlink.c
@@ -0,0
+1,8
@@
+#include <unistd.h>
+#include "libsys.h"
+
+int unlink(const char* pathname)
+{
+ return _syscall(__NR_unlink, (quad) pathname, 0, 0);
+}
+