summaryrefslogtreecommitdiff
path: root/man4
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2013-06-07 17:25:32 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2013-06-12 14:56:28 +0200
commitc6fa0841a994c9588432d281925b964ad6d71966 (patch)
tree555174b0e03bcd8ff56d72bee8480860a6aafe04 /man4
parent42c3e94740fbcd17f22c1d545a8a678f74632e2b (diff)
time.1, _syscall.2, acct.2, getsockname.2, nanosleep.2, pciconfig_read.2, sched_get_priority_max.2, umask.2, uname.2, ustat.2, INFINITY.3, argz_add.3, atexit.3, bsearch.3, byteorder.3, carg.3, closedir.3, dlopen.3, drand48.3, envz_add.3, errno.3, ether_aton.3, exp10.3, finite.3, flockfile.3, fseeko.3, getcontext.3, getmntent.3, getnetent.3, getprotoent.3, getrpcent.3, getservent.3, iconv_close.3, iconv_open.3, initgroups.3, login.3, longjmp.3, mbsinit.3, memccpy.3, memmem.3, mempcpy.3, offsetof.3, on_exit.3, pow10.3, pthread_cancel.3, pthread_cleanup_push.3, rpc.3, rpmatch.3, setenv.3, setjmp.3, setlogmask.3, sockatmark.3, strfmon.3, strptime.3, strverscmp.3, swab.3, tcgetpgrp.3, tmpfile.3, toascii.3, y0.3, null.4, tty.4, tty_ioctl.4, hosts.equiv.5, environ.7, path_resolution.7, tzselect.8: Convert inline formatting (\fX...\fP) to dot-directive formatting
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man4')
-rw-r--r--man4/null.419
-rw-r--r--man4/tty.421
-rw-r--r--man4/tty_ioctl.46
3 files changed, 34 insertions, 12 deletions
diff --git a/man4/null.4 b/man4/null.4
index 217573f66..42e751fb5 100644
--- a/man4/null.4
+++ b/man4/null.4
@@ -27,14 +27,25 @@
.SH NAME
null, zero \- data sink
.SH DESCRIPTION
-Data written to a \fBnull\fP or \fBzero\fP special file is discarded.
+Data written to a
+.BR null
+or
+.B zero
+special file is discarded.
.PP
-Reads from the \fBnull\fP special file always return end of file (i.e.,
+Reads from the
+.B null
+special file always return end of file (i.e.,
.BR read (2)
returns 0), whereas
-reads from \fBzero\fP always return bytes containing zero (\e0 characters).
+reads from
+.B zero
+always return bytes containing zero (\e0 characters).
.LP
-\fBnull\fP and \fBzero\fP are typically created by:
+.B null
+and
+.B zero
+are typically created by:
.RS
.sp
mknod \-m 666 /dev/null c 1 3
diff --git a/man4/tty.4 b/man4/tty.4
index 4f9cca48b..18e6a9cfe 100644
--- a/man4/tty.4
+++ b/man4/tty.4
@@ -29,16 +29,21 @@
.SH NAME
tty \- controlling terminal
.SH DESCRIPTION
-The file \fI/dev/tty\fP is a character file with major number 5 and
+The file
+.I /dev/tty
+is a character file with major number 5 and
minor number 0, usually of mode 0666 and owner.group root.tty.
It is a synonym for the controlling terminal of a process, if any.
.LP
In addition to the
.BR ioctl (2)
requests supported by the device that
-\fBtty\fP refers to, the
+.B tty
+refers to, the
.BR ioctl (2)
-request \fBTIOCNOTTY\fP is supported.
+request
+.B TIOCNOTTY
+is supported.
.SS TIOCNOTTY
Detach the calling process from its controlling terminal.
.sp
@@ -53,12 +58,16 @@ and all processes in the current session lose their controlling tty.
This
.BR ioctl (2)
call works only on file descriptors connected
-to \fI/dev/tty\fP.
+to
+.IR /dev/tty .
It is used by daemon processes when they are invoked
by a user at a terminal.
-The process attempts to open \fI/dev/tty\fP.
+The process attempts to open
+.IR /dev/tty .
If the open succeeds, it
-detaches itself from the terminal by using \fBTIOCNOTTY\fP, while if the
+detaches itself from the terminal by using
+.BR TIOCNOTTY ,
+while if the
open fails, it is obviously not attached to a terminal and does not need
to detach itself.
.SH FILES
diff --git a/man4/tty_ioctl.4 b/man4/tty_ioctl.4
index a33bc5bb6..96633c5b8 100644
--- a/man4/tty_ioctl.4
+++ b/man4/tty_ioctl.4
@@ -16,8 +16,10 @@ tty_ioctl \- ioctls for terminals and serial lines
The
.BR ioctl (2)
call for terminals and serial ports accepts many possible command arguments.
-Most require a third argument, of varying type, here called \fIargp\fP
-or \fIarg\fP.
+Most require a third argument, of varying type, here called
+.I argp
+or
+.IR arg .
.LP
Use of
.I ioctl