Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mount(3) — A/UX 0.7

Media Vault

Software Library

Restoration Projects

Artifacts Sought

Related Articles

fsmount(2)

umount(2)



     mount(3)                                                 mount(3)



     NAME
          mount - mount a file system

     SYNOPSIS
          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
          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.  Physically write-protected
          and magnetic tape file systems must be mounted read-only or
          errors will occur when access times are updated, whether or
          not any explicit write is attempted.

          mount may be invoked only by the super-user.

          mount will fail if one or more of the following are true:

          [EPERM]        The effective user ID is not super-user.

          [ENOENT]       Any of the named files 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 allocated
                         address space of the process.

          [EBUSY]        dir is currently mounted on, is someone's
                         current working directory, or is otherwise
                         busy.

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



     Page 1                                        (last mod. 1/14/87)





     mount(3)                                                 mount(3)



          [EBUSY]        There are no more mount table entries.

     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
          fsmount(2), umount(2).














































     Page 2                                        (last mod. 1/14/87)



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