Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
tty(4)
Edit
PageHistory
Diff
Info
LikePages
TTY !!!TTY NAME DESCRIPTION FILES SEE ALSO ---- !!NAME tty - controlling terminal !!DESCRIPTION The file __/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. In addition to the __ioctl()__ requests supported by the device that __tty__ refers to, the following __ioctl()__ request is supported: __TIOCNOTTY__ Detach the current process from its controlling terminal, and remove it from its current process group, without attaching it to a new process group (that is, set its process group ID to zero). This __ioctl()__ call only works on file descriptors connected to __/dev/tty__; this is used by daemon processes when they are invoked by a user at a terminal. The process attempts to open __/dev/tty__; if the open succeeds, it detaches itself from the terminal by using __TIOCNOTTY__, while if the open fails, it is obviously not attached to a terminal and does not need to detach itself. !!FILES /dev/tty !!SEE ALSO mknod(1), chown(1), getty(1), termios(2), console(4), ttys(4) ----
24 pages link to
tty(4)
:
ioctl(2)
stdout(3)
in.telnetd(8)
rxvt(1)
rxvt-xpm(1)
rxvt-xterm(1)
setserial(8)
perlfaq8(1)
telnetd(8)
perlipc(1)
xterm(1)
Man4t
console(4)
console_ioctl(4)
console_ioctls(4)
csh(1)
stdin(3)
reset(1)
setterm(1)
tset(1)
vcs(4)
vcsa(4)
ttys(4)
open(2)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.