PatchworkOS  19e446b
A non-POSIX operating system.
Loading...
Searching...
No Matches
close.c
Go to the documentation of this file.
1#include <stdarg.h>
2#include <stdio.h>
3#include <stdlib.h>
4#include <sys/fs.h>
5
7
9{
10 uint64_t result = _syscall_close(fd);
11 if (result == ERR)
12 {
14 }
15 return result;
16}
#define errno
Error number variable.
Definition errno.h:27
uint64_t close(fd_t fd)
System call for closing files.
Definition close.c:8
#define ERR
Integer error value.
Definition ERR.h:17
__UINT64_TYPE__ fd_t
File descriptor type.
Definition fd_t.h:10
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
static uint64_t _syscall_close(fd_t fd)
Definition syscalls.h:142
static errno_t _syscall_errno(void)
Definition syscalls.h:107