PatchworkOS
Loading...
Searching...
No Matches
remove.c
Go to the documentation of this file.
1
#include <
stdio.h
>
2
#include <
sys/io.h
>
3
4
#include "
user/common/syscalls.h
"
5
6
int
remove
(
const
char
* pathname)
7
{
8
uint64_t
result =
_syscall_remove
(pathname);
9
if
(result ==
ERR
)
10
{
11
errno
=
_syscall_errno
();
12
return
EOF
;
13
}
14
15
return
0;
16
}
errno
#define errno
Error number variable.
Definition
errno.h:27
ERR
#define ERR
Integer error value.
Definition
ERR.h:17
io.h
remove
int remove(const char *pathname)
Definition
remove.c:6
syscalls.h
_syscall_remove
static uint64_t _syscall_remove(const char *path)
Definition
syscalls.h:238
_syscall_errno
static errno_t _syscall_errno(void)
Definition
syscalls.h:118
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:17
stdio.h
EOF
#define EOF
Definition
stdio.h:25
src
libstd
user
functions
stdio
remove.c
Generated by
1.9.8