summaryrefslogtreecommitdiff
path: root/src/unistd/unlink.c
blob: c40c28d50be4e59951afb14dea3436f768e01cc1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
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
}