MOUNT(2) HP Integral PC MOUNT(2) MOUNT(2) HP Integral PC MOUNT(2) MOUNT(2) HP Integral PC MOUNT(2) MOUNT(2) HP Integral PC MOUNT(2) NAME NAME NAME NAME mount - mount a file system SYNOPSIS SYNOPSIS SYNOPSIS SYNOPSIS int mount (spec, dir, rwflag) char *spec, *dir; int rwflag; DESCRIPTION DESCRIPTION DESCRIPTION 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 path names. 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 will fail if one or more of the following are true: 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's 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] 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 If a file system is mounted via this kernel call on an HP Hewlett-Packard - 1 - (printed 12/12/84) MOUNT(2) HP Integral PC MOUNT(2) MOUNT(2) HP Integral PC MOUNT(2) MOUNT(2) HP Integral PC MOUNT(2) MOUNT(2) HP Integral PC MOUNT(2) 207, it can be unmounted only using the umount kernel call. The unmount and mount commands described in chapter one of this manual will be unaware of the existence of a file system mounted via the mount kernel call. The unmount command will be unable to unmount any file system mounted via using the mount kernel call directly. Also, HP 207 file system utilities will not be able to properly deal with file systems mounted with the mount kernel call. SEE ALSO SEE ALSO SEE ALSO SEE ALSO mount(1M), umount(2). Hewlett-Packard - 2 - (printed 12/12/84)