PatchworkOS
10941b4
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
mount.c
Go to the documentation of this file.
1
#include <
sys/io.h
>
2
3
#include "
user/common/syscalls.h
"
4
5
uint64_t
mount
(
const
char
* device,
const
char
* fs,
const
char
*
mountpoint
)
6
{
7
if
(
_syscall_mount
(device, fs,
mountpoint
) ==
ERR
)
8
{
9
errno
=
_syscall_errno
();
10
return
ERR
;
11
}
12
13
return
0;
14
}
y
int64_t y
Definition
main.c:153
errno
#define errno
Error number variable.
Definition
errno.h:27
mount
uint64_t mount(const char *mountpoint, const char *fs, const char *device)
System call for mounting a filesystem.
Definition
mount.c:5
ERR
#define ERR
Integer error value.
Definition
ERR.h:17
io.h
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:17
syscalls.h
_syscall_mount
static uint64_t _syscall_mount(const char *mountpoint, const char *fs, const char *device)
Definition
syscalls.h:280
_syscall_errno
static errno_t _syscall_errno(void)
Definition
syscalls.h:113
src
libstd
user
functions
io
mount.c
Generated on Fri Jan 9 2026 06:47:13 for PatchworkOS by
1.9.8