Annotated edit history of
tty(4) version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
perry |
1 |
TTY |
|
|
2 |
!!!TTY |
|
|
3 |
NAME |
|
|
4 |
DESCRIPTION |
|
|
5 |
FILES |
|
|
6 |
SEE ALSO |
|
|
7 |
---- |
|
|
8 |
!!NAME |
|
|
9 |
|
|
|
10 |
|
|
|
11 |
tty - controlling terminal |
|
|
12 |
!!DESCRIPTION |
|
|
13 |
|
|
|
14 |
|
|
|
15 |
The file __/dev/tty__ is a character file with major |
|
|
16 |
number 5 and minor number 0, usually of mode 0666 and |
|
|
17 |
owner.group root.tty. It is a synonym for the controlling |
|
|
18 |
terminal of a process, if any. |
|
|
19 |
|
|
|
20 |
|
|
|
21 |
In addition to the __ioctl()__ requests supported by the |
|
|
22 |
device that __tty__ refers to, the following |
|
|
23 |
__ioctl()__ request is supported: |
|
|
24 |
|
|
|
25 |
|
|
|
26 |
__TIOCNOTTY__ |
|
|
27 |
|
|
|
28 |
|
|
|
29 |
Detach the current process from its controlling terminal, |
|
|
30 |
and remove it from its current process group, without |
|
|
31 |
attaching it to a new process group (that is, set its |
|
|
32 |
process group ID to zero). This __ioctl()__ call only |
|
|
33 |
works on file descriptors connected to __/dev/tty__; this |
|
|
34 |
is used by daemon processes when they are invoked by a user |
|
|
35 |
at a terminal. The process attempts to open __/dev/tty__; |
|
|
36 |
if the open succeeds, it detaches itself from the terminal |
|
|
37 |
by using __TIOCNOTTY__, while if the open fails, it is |
|
|
38 |
obviously not attached to a terminal and does not need to |
|
|
39 |
detach itself. |
|
|
40 |
!!FILES |
|
|
41 |
|
|
|
42 |
|
|
|
43 |
/dev/tty |
|
|
44 |
!!SEE ALSO |
|
|
45 |
|
|
|
46 |
|
|
|
47 |
mknod(1), chown(1), getty(1), |
|
|
48 |
termios(2), console(4), |
|
|
49 |
ttys(4) |
|
|
50 |
---- |
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.