PatchworkOS  966e257
A non-POSIX operating system.
Loading...
Searching...
No Matches
bind.c
Go to the documentation of this file.
1#include <sys/io.h>
2
4
5uint64_t bind(fd_t source, const char* mountpoint, mount_flags_t flags)
6{
7 if (_syscall_bind(source, mountpoint, flags) == ERR)
8 {
10 return ERR;
11 }
12
13 return 0;
14}
#define errno
Error number variable.
Definition errno.h:27
mount_flags_t
Mount flags type.
Definition io.h:488
uint64_t bind(fd_t source, const char *mountpoint, mount_flags_t flags)
System call for binding a file descriptor to a mountpoint.
Definition bind.c:5
#define ERR
Integer error value.
Definition ERR.h:17
__UINT64_TYPE__ fd_t
A file descriptor.
Definition fd_t.h:12
static clock_source_t source
Structure to describe the HPET to the sys time subsystem.
Definition hpet.c:192
static const path_flag_t flags[]
Definition path.c:42
__UINT64_TYPE__ uint64_t
Definition stdint.h:17
static errno_t _syscall_errno(void)
Definition syscalls.h:113
static uint64_t _syscall_bind(fd_t source, const char *mountpoint, mount_flags_t flags)
Definition syscalls.h:253