elks-enhanced
public
Read
Owner: themaster
Branch: master
Commits: 6893
Updated: 2026-04-19 00:15
Git CLI clone URL
git clone https://www.xt-emporium.com/git/elks-enhanced.git
Fullscreen desktop URL
Code
Commits
History
Branches
Bug Reports
Discussions
Compare
Settings
elks-enhanced
/
elkscmd
/
sys_utils
/
umount.c
File editor
/* * Copyright (c) 1993 by David I. Bell * Permission is granted to use, distribute, or modify this source, * provided that this copyright notice remains intact. * * Most simple built-in commands are here. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <string.h> #include <fcntl.h> #include <sys/mount.h> #define msg(str) write(STDOUT_FILENO, str, sizeof(str) - 1) #define errmsg(str) write(STDERR_FILENO, str, sizeof(str) - 1) int main(int argc, char **argv) { if (argc != 2) { errmsg("Usage: umount <device>|<directory>\n"); return 1; } if (umount(argv[1]) < 0) { perror(argv[1]); return 1; } if (!strcmp(argv[1], "/")) msg("/: Remounted read-only\n"); return 0; }
Commit message
This repository is read-only for this account.
Repository snapshot
Current branch
master
Visibility
public
Your access
Read
Remote
Configured
File activity
View file history