diff options
| author | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-14 17:09:59 +0100 |
|---|---|---|
| committer | Nathan Reiner <nathan@nathanreiner.xyz> | 2023-02-14 17:09:59 +0100 |
| commit | 7a98e998c5cda484611d19854649ab8535f503d4 (patch) | |
| tree | 43f7dae6921ced5ee9001f1d31c662351678a718 /lib/sys/unmount.h | |
| parent | c0178363472e162a7cb21e381c512979130dfdb0 (diff) | |
add simplet init system
Diffstat (limited to 'lib/sys/unmount.h')
| -rw-r--r-- | lib/sys/unmount.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/sys/unmount.h b/lib/sys/unmount.h new file mode 100644 index 0000000..1331e65 --- /dev/null +++ b/lib/sys/unmount.h @@ -0,0 +1,11 @@ +#ifndef UNMOUNT_H +#define UNMOUNT_H + +#include "syscalls.h" + +int unmount(char *pathname, int flags) +{ + return syscall(UMOUNT2, pathname, flags); +} + +#endif |