AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

� ··-·

UMOUNT (2) UMOUNT (2) NAME umount - unmount a file system SYNOPSIS 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 path name. After unmounting the file system, the directocy upon which the file system was mounted reverts to its ordinacy interpretation. Umount may be invoked only by the super-user. Umount will fail if one or more of the following are true: The process's effective user ID is not super-user. [EPERM] Spec does not exist. [ENXIO] Spec is not a block special device. [ENOTBLK] Spec is not mounted. [EINV AL] A file on spec is busy. [EBUSY] Spec points outside the process's 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(2). - 1 -

UMOUNT (2) UMOUNT (2)<br />

NAME<br />

umount - unmount a file system<br />

SYNOPSIS<br />

int umount (spec)<br />

char •spec;<br />

DESCRIPTION<br />

Umount requests that a previously mounted file system contained<br />

on the block special device identified by spec be unmounted.<br />

Spec is a pointer to a path name. After unmounting the file system,<br />

the directocy upon which the file system was mounted reverts<br />

to its ordinacy interpretation.<br />

Umount may be invoked only by the super-user.<br />

Umount will fail if one or more of the following are true:<br />

The process's effective user ID is not super-user. [EPERM]<br />

Spec does not exist. [ENXIO]<br />

Spec is not a block special device. [ENOTBLK]<br />

Spec is not mounted. [EINV AL]<br />

A file on spec is busy. [EBUSY]<br />

Spec points outside the process's allocated address space.<br />

[EFAULT]<br />

RETURN VALUE<br />

Upon successful completion a value of 0 is returned. Otherwise, a<br />

value of -1 is returned and errno is set to indicate the error.<br />

SEE ALSO<br />

mount(2).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!