4.3BSD-UWisc/man/cat2/unmount.2

Compare this file to the similar file:
Show the results in this format:




UNMOUNT(2)          UNIX Programmer's Manual           UNMOUNT(2)



NAME
     unmount - remove a file system

SYNOPSIS
     unmount(name)
     char *name;

DESCRIPTION
     _U_n_m_o_u_n_t announces to the system that the directory _n_a_m_e is
     no longer to refer to the root of a mounted file system.
     The directory _n_a_m_e reverts to its ordinary interpretation.

RETURN VALUE
     _U_n_m_o_u_n_t returns 0 if the action occurred; -1 if if the
     directory is inaccessible or does not have a mounted file
     system, or if there are active files in the mounted file
     system.

ERRORS
     _U_n_m_o_u_n_t may fail with one of the following errors:

     [EPERM]        The caller is not the super-user.

     [EINVAL]       _N_a_m_e is not the root of a mounted file sys-
                    tem.

     [EBUSY]        A process is holding a reference to a file
                    located on the file system.

     [ENOTDIR]      A component of the path prefix is not a
                    directory.

     [EPERM]        The pathname contains a character with the
                    high-order bit set.

     [ENAMETOOLONG] The pathname was too long.

     [ENOENT]       _n_a_m_e does not exist.

     [EACCES]       Search permission is denied for a component
                    of the path prefix.

     [EFAULT]       _n_a_m_e points outside the process's allocated
                    address space.

     [ELOOP]        Too many symbolic links were encountered in
                    translating the pathname.

     [EIO]          An I/O error occurred while reading from or
                    writing to the file system.





Printed 12/27/86         19 August 1985                         1






UNMOUNT(2)          UNIX Programmer's Manual           UNMOUNT(2)



SEE ALSO
     mount(2), mount(8), umount(8)

BUGS
     The error codes are in a state of disarray; too many errors
     appear to the caller as one value.

















































Printed 12/27/86         19 August 1985                         2