UMOUNT(2) HP Integral PC UMOUNT(2) UMOUNT(2) HP Integral PC UMOUNT(2) UMOUNT(2) HP Integral PC UMOUNT(2) UMOUNT(2) HP Integral PC UMOUNT(2) NAME NAME NAME NAME umount - unmount a file system SYNOPSIS SYNOPSIS SYNOPSIS SYNOPSIS int umount (spec) char *spec; DESCRIPTION DESCRIPTION DESCRIPTION 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 path name. After unmounting the file system, the directory upon which the file system was mounted reverts to its ordinary interpretation. Umount will fail if one or more of the following are true: Spec does not exist. [ENXIO] 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's allocated address space. [EFAULT] RETURN VALUE RETURN VALUE RETURN VALUE 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. DIAGNOSTICS DIAGNOSTICS DIAGNOSTICS DIAGNOSTICS This kernel call should be used only in conjunction with the explicit use of a mount kernel call. If this is not done and this kernel call is used to unmount a file system mounted via the mount command, the system by which file systems are mounted and unmounted by user commands will become confused and will cease to work properly. SEE ALSO SEE ALSO SEE ALSO SEE ALSO mount(1M), mount(2). Hewlett-Packard - 1 - (printed 12/12/84)