2009-03-18 13:46:58 +03:00
|
|
|
.\" $NetBSD: mount_ptyfs.8,v 1.8 2009/03/18 10:46:58 wiz Exp $
|
2004-11-11 16:42:55 +03:00
|
|
|
.\"
|
|
|
|
.\"
|
|
|
|
.\" Copyright (c) 2004 The NetBSD Foundation, Inc.
|
|
|
|
.\" All rights reserved.
|
|
|
|
.\"
|
|
|
|
.\" This code is derived from software contributed to The NetBSD Foundation
|
|
|
|
.\" by Christos Zoulas.
|
|
|
|
.\"
|
|
|
|
.\" 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.
|
|
|
|
.\"
|
|
|
|
.\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
|
|
|
|
.\" ``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 FOUNDATION OR CONTRIBUTORS
|
|
|
|
.\" 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.
|
2004-11-11 04:42:17 +03:00
|
|
|
.\"
|
2009-03-15 19:47:45 +03:00
|
|
|
.Dd March 15, 2009
|
2004-11-11 04:42:17 +03:00
|
|
|
.Dt MOUNT_PTYFS 8
|
|
|
|
.Os
|
|
|
|
.Sh NAME
|
|
|
|
.Nm mount_ptyfs
|
|
|
|
.Nd mount the /dev/pts file system
|
|
|
|
.Sh SYNOPSIS
|
|
|
|
.Nm
|
2009-03-15 19:47:45 +03:00
|
|
|
.Op Fl c
|
2004-11-25 01:13:08 +03:00
|
|
|
.Op Fl g Ar group|gid
|
|
|
|
.Op Fl m Ar mode
|
2004-11-11 04:42:17 +03:00
|
|
|
.Op Fl o Ar options
|
|
|
|
.Ar ptyfs
|
|
|
|
.Ar mount_point
|
|
|
|
.Sh DESCRIPTION
|
|
|
|
The
|
|
|
|
.Nm
|
2004-11-11 16:20:42 +03:00
|
|
|
command attaches an instance of the pseudo-terminal device filesystem
|
|
|
|
to the global filesystem namespace.
|
2004-11-11 04:42:17 +03:00
|
|
|
The conventional mount point is
|
|
|
|
.Pa /dev/pts .
|
2005-01-31 08:19:18 +03:00
|
|
|
The directory specified by
|
|
|
|
.Ar mount_point
|
|
|
|
is converted to an absolute path before use.
|
2004-11-11 04:42:17 +03:00
|
|
|
This command is normally executed by
|
|
|
|
.Xr mount 8
|
|
|
|
at boot time.
|
|
|
|
.Pp
|
2004-11-11 16:20:42 +03:00
|
|
|
The filesystem contains pseudo-terminal slave device nodes which are
|
|
|
|
allocated dynamically via
|
2004-11-11 04:42:17 +03:00
|
|
|
.Xr ptm 4 ,
|
|
|
|
or they are already open via traditional BSD style ptys.
|
|
|
|
.Pp
|
|
|
|
The options are as follows:
|
|
|
|
.Bl -tag -width indent
|
2009-03-15 19:47:45 +03:00
|
|
|
.It Fl c
|
|
|
|
Allows
|
|
|
|
.Ar ptyfs
|
|
|
|
to be mounted inside a chrooted environment.
|
2004-11-25 01:13:08 +03:00
|
|
|
.It Fl g Ar group|gid
|
|
|
|
Specify the group ownership of the slave pseudo-tty.
|
|
|
|
.It Fl m Ar mode
|
|
|
|
Specify the default
|
|
|
|
.Ar mode
|
|
|
|
of the slave pseudo-tty.
|
2004-11-11 04:42:17 +03:00
|
|
|
.It Fl o
|
|
|
|
Options are specified with a
|
|
|
|
.Fl o
|
|
|
|
flag followed by a comma separated string of options.
|
2004-11-25 01:13:08 +03:00
|
|
|
.Pp
|
|
|
|
.Nm
|
|
|
|
specific options are
|
2009-03-15 19:47:45 +03:00
|
|
|
.Dv chroot
|
|
|
|
which corresponds to
|
2009-03-18 13:46:58 +03:00
|
|
|
.Fl c ,
|
2004-11-25 01:13:08 +03:00
|
|
|
.Dv group
|
|
|
|
which corresponds to
|
|
|
|
.Fl g ,
|
|
|
|
and
|
|
|
|
.Dv mode
|
|
|
|
which corresponds to
|
|
|
|
.Fl m .
|
2004-11-11 04:42:17 +03:00
|
|
|
See the
|
|
|
|
.Xr mount 8
|
|
|
|
man page for possible options and their meanings.
|
|
|
|
.El
|
|
|
|
.Sh FILES
|
|
|
|
.Bl -tag -width n -compact
|
|
|
|
.It Pa n
|
2004-11-11 16:20:42 +03:00
|
|
|
The nth pseudo-terminal device in use.
|
2004-11-11 04:42:17 +03:00
|
|
|
.El
|
|
|
|
.Sh SEE ALSO
|
|
|
|
.Xr mount 2 ,
|
|
|
|
.Xr unmount 2 ,
|
|
|
|
.Xr ptm 4 ,
|
|
|
|
.Xr fstab 5 ,
|
2004-11-11 16:20:42 +03:00
|
|
|
.Xr mount 8
|
2004-11-11 04:42:17 +03:00
|
|
|
.Sh HISTORY
|
|
|
|
The
|
|
|
|
.Nm
|
|
|
|
utility first appeared in
|
|
|
|
.Nx 3.0 .
|
|
|
|
.Sh BUGS
|
|
|
|
This filesystem may not be NFS-exported.
|
|
|
|
This filesystem is experimental.
|