UMOUNT(S) XENIX System V UMOUNT(S)
Name
umount - Unmounts a file system.
Syntax
int umount (spec)
char *spec;
Description
umount requests that a previously mounted file system
contained on the block special device identified by spec be
unmounted. spec is a pointer to a pathname. After
unmounting the file system, the directory upon which the
file system was mounted reverts to its ordinary
interpretation.
umount may be invoked only by the super-user.
umount will fail if one or more of the following are true:
The process' effective user ID is not super-user.
[EPERM]
spec does not exist. [ENXIO]
A component of the path prefix is not a directory.
[ENOTDIR]
The named file does not exist. [ENOENT]
spec is not a block special device. [ENOTBLK]
spec is not mounted. [EINVAL]
A file on spec is busy. [EBUSY]
spec points outside the process' allocated address
space. [EFAULT]
Return Value
Upon successful completion a value of 0 is returned.
Otherwise, a value of -1 is returned and errno is set to
indicate the error.
See Also
mount(C), mount(S)
Page 1 (printed 8/7/87)