UMOUNT(2) DOMAIN/IX Reference Manual (SYS5) UMOUNT(2)
NAME
umount - unmount a file system
USAGE
int umount (spec)
char *spec;
DESCRIPTION
The umount system call requests that a previously mounted
file system contained on the block special device identified
by spec be unmounted. The spec parameter is a pointer to a
pathname. After unmounting the file system, umount removes
the directory upon which the file system was mounted. This
feature represents an enhancement to the way that umount
normally works on standard UNIX system software.
Only the super-user may invoke umount.
If one or more of the following are true, umount fails:
[EPERM] The process's effective user ID is not
super-user.
[ENXIO] Spec does not exist.
[ENOTBLK] Spec is not a block special device.
[EINVAL] Spec is not mounted.
[EBUSY] A file on spec is busy.
[EFAULT] Spec points outside the process's allocated
address space.
RETURN VALUE
Upon successful completion, umount returns a value of 0.
Otherwise, it returns a value of -1 and sets errno to indi-
cate the error.
RELATED INFORMATION
mkdisk(1M)
mount(2)
Printed 1/27/86 UMOUNT-1