Man page added.
This commit is contained in:
parent
35aa0934e7
commit
7f940b41a3
@ -1,4 +1,8 @@
|
||||
#
|
||||
# $Id: Makefile,v 1.2 1993/08/24 17:16:54 pk Exp $
|
||||
#
|
||||
|
||||
PROG = mount_procfs
|
||||
NOMAN = noman
|
||||
MAN8 = mount_procfs.0
|
||||
|
||||
.include <bsd.prog.mk>
|
||||
|
80
sbin/mount_procfs/mount_procfs.8
Normal file
80
sbin/mount_procfs/mount_procfs.8
Normal file
@ -0,0 +1,80 @@
|
||||
.Dd August 24, 1993
|
||||
.Dt MOUNT_PROCFS 8
|
||||
.Os NetBSD 0.8a
|
||||
.Sh NAME
|
||||
.Nm mount_procfs
|
||||
.Nd mount the proc file system
|
||||
.Sh SYNOPSIS
|
||||
.Nm mount_procfs
|
||||
.Op Fl F Ar fsoptions
|
||||
.Pa procfs
|
||||
.Pa mount_point
|
||||
.Sh DESCRIPTION
|
||||
The
|
||||
.Nm mount_procfs
|
||||
command attaches an instance of the proc filesystem
|
||||
to the global filesystem namespace.
|
||||
The conventional mount point is
|
||||
.Pa /proc .
|
||||
This command is normally executed by
|
||||
.Xr mount 8
|
||||
at boot time.
|
||||
.Pp
|
||||
The proc filesystem presents a directory entry for each process in the system.
|
||||
The name of an entry is process id in decimal notation.
|
||||
Opening an entry for reading and/or writing gives access to the process
|
||||
address space. Several ioctl(2) operations are available to gain additional
|
||||
control over the process.
|
||||
.Sh FILES
|
||||
.Sh SEE ALSO
|
||||
.Xr mount 2 ,
|
||||
.Xr unmount 2 ,
|
||||
.Xr fstab 5
|
||||
.Sh CAVEATS
|
||||
This filesystem may not be NFS-exported.
|
||||
The interface and implementation of the proc filesystem are still under
|
||||
development.
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Nm mount_procfs
|
||||
utility first appeared in NetBSD 0.9.
|
||||
em clock (decimal ASCII).
|
||||
.It Pa loadavg
|
||||
the 1, 5 and 15 minute load average in kernel fixed-point format.
|
||||
The final integer is the fix-point scaling factor.
|
||||
All numbers are in decimal ASCII.
|
||||
.It Pa physmem
|
||||
the number of pages of physical memory in the machine (decimal ASCII).
|
||||
.It Pa root
|
||||
the system root directory.
|
||||
In a chroot'ed environment,
|
||||
.Nm
|
||||
can be used to create a new
|
||||
.Pa kernfs
|
||||
mount point.
|
||||
.Pa /kern/root
|
||||
will then refer to the system global root, not the current process root.
|
||||
.It Pa rootdev
|
||||
the root device.
|
||||
.It Pa rrootdev
|
||||
the raw root device.
|
||||
.It Pa time
|
||||
the second and microsecond value of the system clock.
|
||||
Both numbers are in decimal ASCII.
|
||||
.It Pa version
|
||||
the kernel version string.
|
||||
The head line for
|
||||
.Pa /etc/motd
|
||||
can be generated by running:
|
||||
.Dq Ic "sed 1q /kern/version"
|
||||
.El
|
||||
.Sh SEE ALSO
|
||||
.Xr mount 2 ,
|
||||
.Xr unmount 2 ,
|
||||
.Xr fstab 5
|
||||
.Sh CAVEATS
|
||||
This filesystem may not be NFS-exported.
|
||||
.Sh HISTORY
|
||||
The
|
||||
.Nm mount_kernfs
|
||||
utility first appeared in NetBSD 0.8a.
|
@ -1,3 +1,35 @@
|
||||
/*
|
||||
* Copyright (c) 1993 Paul Kranenburg
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
* 1. Redistributions of source code must retain the above copyright
|
||||
* notice, this list of conditions and the following disclaimer.
|
||||
* 2. Redistributions in binary form must reproduce the above copyright
|
||||
* notice, this list of conditions and the following disclaimer in the
|
||||
* documentation and/or other materials provided with the distribution.
|
||||
* 3. All advertising materials mentioning features or use of this software
|
||||
* must display the following acknowledgement:
|
||||
* This product includes software developed by Paul Kranenburg.
|
||||
* 4. The name of the author may not be used to endorse or promote products
|
||||
* derived from this software withough specific prior written permission
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*
|
||||
* $Id: mount_procfs.c,v 1.2 1993/08/24 17:16:56 pk Exp $
|
||||
*/
|
||||
|
||||
#include <stdio.h>
|
||||
#include <sys/types.h>
|
||||
#include <sys/mount.h>
|
||||
|
Loading…
Reference in New Issue
Block a user