📄 ttyname.3
字号:
.TH TTYNAME 3 .SH NAMEttyname, isatty, ttyslot \- find name of a terminal.SH SYNOPSIS.B char *ttyname(fildes).PP.B isatty(fildes).PP.B ttyslot().SH DESCRIPTION.I Ttynamereturns a pointer to the null-terminated path nameof the terminal device associated with file descriptor.IR fildes ..PP.I Isattyreturns 1 if.I fildesis associated with a terminal device, 0 otherwise..PP.I Ttyslotreturns the number of the entry in the.IR ttys (5)file for the control terminal of thecurrent process..SH FILES/dev/*.br/etc/ttys.SH SEE ALSOioctl(2), ttys(5).SH DIAGNOSTICS.I Ttynamereturns a null pointer (0) if.I fildesdoes not describe a terminal device in directory `/dev'..PP.I Ttyslotreturns 0 if `/etc/ttys' is inaccessible or ifit cannot determine the control terminal..SH BUGSThe return value points to static datawhose content is overwritten by each call.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -