PatchworkOS
Loading...
Searching...
No Matches
unlink.c
Go to the documentation of this file.
1#include <sys/io.h>
2
4
5uint64_t unlink(const char* path)
6{
7 uint64_t result = _syscall_remove(path);
8 if (result == ERR)
9 {
11 return ERR;
12 }
13
14 return result;
15}
#define errno
Error number variable.
Definition errno.h:27
uint64_t unlink(const char *path)
Wrapper for removing a file.
Definition unlink.c:5
#define ERR
Integer error value.
Definition ERR.h:17
static uint64_t _syscall_remove(const char *path)
Definition syscalls.h:238
static errno_t _syscall_errno(void)
Definition syscalls.h:118
__UINT64_TYPE__ uint64_t
Definition stdint.h:17