PatchworkOS
19e446b
A non-POSIX operating system.
Theme:
Default
Round
Robot
Loading...
Searching...
No Matches
unmount.c
Go to the documentation of this file.
1
#include <
sys/fs.h
>
2
3
#include "
user/common/syscalls.h
"
4
5
uint64_t
unmount
(
const
char
* mountpoint)
6
{
7
if
(
_syscall_umount
(mountpoint) ==
ERR
)
8
{
9
errno
=
_syscall_errno
();
10
return
ERR
;
11
}
12
13
return
0;
14
}
errno
#define errno
Error number variable.
Definition
errno.h:27
unmount
uint64_t unmount(const char *mountpoint)
System call for unmounting a filesystem.
Definition
unmount.c:5
ERR
#define ERR
Integer error value.
Definition
ERR.h:17
fs.h
uint64_t
__UINT64_TYPE__ uint64_t
Definition
stdint.h:17
syscalls.h
_syscall_umount
static uint64_t _syscall_umount(const char *mountpoint)
Definition
syscalls.h:279
_syscall_errno
static errno_t _syscall_errno(void)
Definition
syscalls.h:107
src
libstd
user
functions
fs
unmount.c
Generated on Sat Jan 24 2026 10:59:25 for PatchworkOS by
1.9.8