Annotation of researchv10dc/man/man2/fmount.2, revision 1.1.1.1

1.1       root        1: .TH FMOUNT 2
                      2: .CT 2 sa comm_proc
                      3: .SH NAME
                      4: fmount, funmount \- mount or remove file system
                      5: .SH SYNOPSIS
                      6: .nf
                      7: .B int fmount(type, fildes, name, flag)
                      8: .B char *name;
                      9: .sp
                     10: .B int funmount(name)
                     11: .B char *name;
                     12: .fi
                     13: .SH DESCRIPTION
                     14: .I Fmount
                     15: mounts a file system of the named
                     16: .I type
                     17: described by the file descriptor
                     18: .I fildes
                     19: on pathname
                     20: .IR name .
                     21: Henceforth,
                     22: references to
                     23: .I name
                     24: (the mount point)
                     25: will refer to the root file
                     26: on the newly mounted file system.
                     27: .PP
                     28: .I Name
                     29: must already exist.
                     30: Its old contents are inaccessible while the
                     31: file system is mounted.
                     32: .PP
                     33: The meaning of
                     34: .I flag
                     35: varies with the file system type.
                     36: .PP
                     37: Allowed types are
                     38: .TP
                     39: .B 0
                     40: Regular (block device) file system.
                     41: .I Fildes
                     42: must be a block special file.
                     43: If
                     44: .I flag
                     45: is nonzero,
                     46: the file system may not be written on;
                     47: this must be used with physically write-protected media
                     48: or errors will occur when access times are updated,
                     49: even if no explicit write is attempted.
                     50: .TP
                     51: .B 2
                     52: Process file system,
                     53: .IR proc (4).
                     54: .I Fildes
                     55: is ignored.
                     56: .TP
                     57: .B 3
                     58: Mounted stream.
                     59: .I Fildes
                     60: must refer to a stream;
                     61: future calls to
                     62: .IR open (2)
                     63: on
                     64: .I name
                     65: will reopen that stream.
                     66: The mount is undone
                     67: if the other end of the stream
                     68: is closed or hung up.
                     69: .TP
                     70: .B 4
                     71: Stream (network) file system.
                     72: .I Fildes
                     73: is a stream
                     74: connected to a file system server,
                     75: .IR netfs (8).
                     76: .PP
                     77: Types 5 and 6
                     78: are used internally
                     79: to close off errors
                     80: and for pipes;
                     81: these types may not be mounted.
                     82: .PP
                     83: .I Funmount
                     84: removes knowledge of the file system
                     85: mounted at
                     86: .IR name .
                     87: The mount point
                     88: reverts to its previous interpretation.
                     89: .PP
                     90: The userid owning
                     91: .I name
                     92: may mount or unmount file systems
                     93: of type 3 or 4.
                     94: For other types,
                     95: these calls are restricted to the super-user.
                     96: .SH SEE ALSO
                     97: .IR mount (8),
                     98: .IR netfs (8),
                     99: .IR proc (4),
                    100: .IR stream (4)
                    101: .SH DIAGNOSTICS
                    102: .BR EBADF ,
                    103: .BR EBUSY ,
                    104: .BR EINVAL ,
                    105: .BR EIO ,
                    106: .BR ENODEV
                    107: .SH BUGS
                    108: Although
                    109: .I fildes
                    110: for type 2 file systems is ignored,
                    111: it must be a valid file descriptor.

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.