Make some last minute improvements to make.com

This commit is contained in:
Justine Tunney 2022-08-07 05:59:53 -07:00
parent 6a5717a48f
commit 13c1c45075
16 changed files with 158 additions and 43 deletions

View file

@ -17,8 +17,8 @@
PERFORMANCE OF THIS SOFTWARE.
*/
#include "libc/calls/mount.h"
int sys_unmount(const char *, int);
#include "libc/calls/strace.internal.h"
#include "libc/calls/syscall-sysv.internal.h"
/**
* Unmounts file system.
@ -30,12 +30,15 @@ int sys_unmount(const char *, int);
* The following flags may also be used, but could be set to zero at
* runtime if the underlying kernel doesn't support them.
*
* - `MNT_DETACH`
* - `MNT_DETACH`: lazily unmount; Linux-only
* - `MNT_EXPIRE`
* - `UMOUNT_NOFOLLOW`
* - `MNT_BYFSID`
*
*/
int unmount(const char *target, int flags) {
return sys_unmount(target, flags);
int rc;
rc = sys_unmount(target, flags);
STRACE("unmount(%#s, %#x) → %d% m", target, flags, rc);
return rc;
}