MOUNT(S) XENIX System V MOUNT(S)
Name
mount - Mounts a file system.
Syntax
int mount (spec, dir, rwflag)
char *spec, *dir;
int rwflag;
Description
mount requests that a removable file system contained on the
block special file identified by spec be mounted on the
directory identified by dir. spec and dir are pointers to
pathnames.
Upon successful completion, references to the file dir will
refer to the root directory on the mounted file system.
The low-order bit of rwflag is used to control write
permission on the mounted file system; if 1, writing is
forbidden, otherwise writing is permitted according to
individual file accessibility.
mount may be invoked only by the super-user.
mount will fail if one or more of the following are true:
The effective user ID is not super-user. [EPERM]
Any of the named files does not exist. [ENOENT]
A component of a path prefix is not a directory.
[ENOTDIR]
spec is not a block special device. [ENOTBLK]
The device associated with spec does not exist.
[ENXIO]
dir is not a directory. [ENOTDIR]
spec or dir points outside the process' allocated
address space. [EFAULT]
dir is currently mounted on, is someone's current
working directory, or is otherwise busy. [EBUSY]
The device associated with spec is currently mounted.
[EBUSY]
There are no more mount table entries. [EBUSY]
Return Value
Page 1 (printed 8/7/87)
MOUNT(S) XENIX System V MOUNT(S)
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), umount(S)
Page 2 (printed 8/7/87)