k9core

Unnamed repository
Log | Files | Refs | LICENSE

commit 7cb95b3a048ccf26ebbc65197c2310efe0a5d73c
parent 755222ae67ebdeb10ddf1ac8e7fbf3dca8d1946e
Author: qorg11 <qorg@vxempire.xyz>
Date:   Wed,  8 Jul 2020 07:09:46 +0200

added umount

Diffstat:
Asrc/umount.c | 18++++++++++++++++++
1 file changed, 18 insertions(+), 0 deletions(-)

diff --git a/src/umount.c b/src/umount.c @@ -0,0 +1,18 @@ +#include <stdio.h> +#include <sys/mount.h> +#include <errno.h> + +int +main(int argc, char *argv[]) +{ + if(argc == 1) + { + printf("give a directory\n"); + return 1; + } + int fd = umount(argv[1]); + if(fd == -1) + { + printf("error umounting: %i\n",errno); + } +}