Chromium Code Reviews| Index: fusl/src/unistd/unlink.c |
| diff --git a/fusl/src/unistd/unlink.c b/fusl/src/unistd/unlink.c |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..c40c28d50be4e59951afb14dea3436f768e01cc1 |
| --- /dev/null |
| +++ b/fusl/src/unistd/unlink.c |
| @@ -0,0 +1,12 @@ |
| +#include <unistd.h> |
| +#include <fcntl.h> |
| +#include "syscall.h" |
| + |
| +int unlink(const char *path) |
| +{ |
| +#ifdef SYS_unlink |
| + return syscall(SYS_unlink, path); |
| +#else |
| + return syscall(SYS_unlinkat, AT_FDCWD, path, 0); |
| +#endif |
| +} |