From 8c94b1316c14e5ad98d8518e2f9c6f25d1566f5f Mon Sep 17 00:00:00 2001 From: David Given Date: Sun, 4 Sep 2016 19:23:02 +0200 Subject: [PATCH] Add unlink system call. --- plat/linux/libsys/unlink.c | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 plat/linux/libsys/unlink.c diff --git a/plat/linux/libsys/unlink.c b/plat/linux/libsys/unlink.c new file mode 100644 index 000000000..29eaad108 --- /dev/null +++ b/plat/linux/libsys/unlink.c @@ -0,0 +1,8 @@ +#include +#include "libsys.h" + +int unlink(const char* pathname) +{ + return _syscall(__NR_unlink, (quad) pathname, 0, 0); +} +