summaryrefslogtreecommitdiff
path: root/src/unistd/unlink.c
blob: 0ce396bfac46a9d5fd6596fe57d2ebeb8beeb6eb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "stddef.h"
#include "sys/types.h"
#include <unistd.h>
#include "../_assert.h"
#include "../_syscall.h"

int unlink(const char *path)
{
	ASSERT_NONNULL(path);
	SYSCALL(unlink, int, -1, path, 0, 0, 0, 0, 0);
}
/*
POSIX(1)
*/