Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mount(2) — sys5 — Apollo

Media Vault

Software Library

Restoration Projects

Artifacts Sought



MOUNT(2)        DOMAIN/IX Reference Manual (SYS5)        MOUNT(2)



NAME
     mount - mount a file system

USAGE
     int mount (spec, dir, rwflag)
     char *spec, *dir;
     int rwflag;

DESCRIPTION
     The mount system call requests that a removable file system
     contained on the block special file identified by spec be
     mounted on the directory identified by dir.  The directory
     dir must not already exist; it is created by a successful
     mount of the file system.  Both spec and dir are pointers to
     pathnames.

     Upon successful completion, references to the file dir refer
     to the root directory on the mounted file system.

     The low-order bit of rwflag is used to control write permis-
     sion on the mounted file system. If the bit has a value of
     1, writing is forbidden; otherwise, writing is permitted
     according to individual file accessibility.

     Only the super-user may invoke mount.

     If one or more of the following are true, mount fails:

     [ENOENT]            Spec does not exist.

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

     [ENOTBLK]           Spec is not a block special device.

     [ENXIO]             The device associated with spec does not
                         exist.

     [ENOTDIR]           Dir is not a directory.

     [EFAULT]            Spec or dir points outside the process's
                         allocated address space.

     [EBUSY]             Dir is currently mounted, is someone's
                         current working directory, or is other-
                         wise busy.

     [EBUSY]             The device associated with spec is
                         currently mounted.

RETURN VALUE
     Upon successful completion, a value of 0 is returned.



Printed 1/27/86                                           MOUNT-1





MOUNT(2)        DOMAIN/IX Reference Manual (SYS5)        MOUNT(2)



     Otherwise, a value of -1 is returned and errno is set to
     indicate the error.

RELATED INFORMATION
     mkdisk(1M)
     umount(2)

















































MOUNT-2                                           Printed 1/27/86



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026