BSD 4_3 release
[unix-history] / usr / man / man2 / mount.2
index eb4d163..820340c 100644 (file)
@@ -1,4 +1,10 @@
-.TH MOUNT 2 "27 July 1983"
+.\" Copyright (c) 1980 Regents of the University of California.
+.\" All rights reserved.  The Berkeley software License Agreement
+.\" specifies the terms and conditions for redistribution.
+.\"
+.\"    @(#)mount.2     6.3 (Berkeley) 8/26/85
+.\"
+.TH MOUNT 2 "August 26, 1985"
 .UC 4
 .SH NAME
 mount, umount \- mount or remove file system
 .UC 4
 .SH NAME
 mount, umount \- mount or remove file system
@@ -77,12 +83,21 @@ file system.
 .I Mount
 will fail when one of the following occurs:
 .TP 15
 .I Mount
 will fail when one of the following occurs:
 .TP 15
-[NODEV]
+[ENAMETOOLONG]
+A component of either pathname exceeded 255 characters,
+or the entire length of either path name exceeded 1023 characters.
+.TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating either pathname.
+.TP 15
+[EPERM]
 The caller is not the super-user.
 .TP 15
 The caller is not the super-user.
 .TP 15
-[NODEV]
-.I Special
-does not exist.
+[ENOENT]
+A component of \fIname\fP does not exist.
+.TP 15
+[ENODEV]
+A component of \fIspecial\fP does not exist.
 .TP 15
 [ENOTBLK]
 .I Special
 .TP 15
 [ENOTBLK]
 .I Special
@@ -94,45 +109,57 @@ The major device number of
 is out of range (this indicates no device driver exists
 for the associated hardware).
 .TP 15
 is out of range (this indicates no device driver exists
 for the associated hardware).
 .TP 15
-[EPERM]
-The pathname contains a character with the high-order bit set.
-.TP 15
 [ENOTDIR]
 [ENOTDIR]
-A component of the path prefix in
-.I name
-is not a directory.
-.TP 15
-[EROFS]
-.I Name
-resides on a read-only file system.
+A component of \fIname\fP is not a directory,
+or a path prefix of \fIspecial\fP is not a directory.
 .TP 15
 .TP 15
-[EBUSY]
-.I Name
-is not a directory, or another process currently
-holds a reference to it.
-.TP 15
-[EBUSY]
-No space remains in the mount table.
+[EINVAL]
+Either pathname contains a character with the high-order bit set.
 .TP 15
 .TP 15
-[EBUSY]
+[EINVAL]
 The super block for the file system had a bad magic
 number or an out of range block size.
 .TP 15
 [EBUSY]
 The super block for the file system had a bad magic
 number or an out of range block size.
 .TP 15
 [EBUSY]
+Another process currently holds a reference to
+.IR name ,
+or \fIspecial\fP is already mounted.
+.TP 15
+[EMFILE]
+No space remains in the mount table.
+.TP 15
+[ENOMEM]
 Not enough memory was available to read the cylinder
 group information for the file system.
 .TP 15
 Not enough memory was available to read the cylinder
 group information for the file system.
 .TP 15
-[EBUSY]
-An i/o error occurred while reading the super block or
+[EIO]
+An I/O error occurred while reading the super block or
 cylinder group information.
 cylinder group information.
+.TP 15
+[EFAULT]
+\fISpecial\fP or \fIname\fP points outside the
+process's allocated address space.
 .PP
 .I Umount
 may fail with one of the following errors:
 .TP 15
 .PP
 .I Umount
 may fail with one of the following errors:
 .TP 15
-[NODEV]
+[ENOTDIR]
+A component of the path prefix is not a directory.
+.TP 15
+[EINVAL]
+The pathname contains a character with the high-order bit set.
+.TP 15
+[ENAMETOOLONG]
+A component of a pathname exceeded 255 characters,
+or an entire path name exceeded 1023 characters.
+.TP 15
+[ELOOP]
+Too many symbolic links were encountered in translating the pathname.
+.TP 15
+[EPERM]
 The caller is not the super-user.
 .TP 15
 The caller is not the super-user.
 .TP 15
-[NODEV]
+[ENODEV]
 .I Special
 does not exist.
 .TP 15
 .I Special
 does not exist.
 .TP 15
@@ -152,8 +179,14 @@ The requested device is not in the mount table.
 [EBUSY]
 A process is holding a reference to a file located
 on the file system.
 [EBUSY]
 A process is holding a reference to a file located
 on the file system.
+.TP 15
+[EIO]
+An I/O error occurred while writing the super block or
+other cached file system information.
+.TP 15
+[EFAULT]
+\fISpecial\fP points outside the process's allocated address space.
 .SH "SEE ALSO"
 mount(8), umount(8)
 .SH BUGS
 .SH "SEE ALSO"
 mount(8), umount(8)
 .SH BUGS
-The error codes are in a state of disarray; too many errors
-appear to the caller as one value.
+Some of the error codes need translation to more obvious messages.