Query: isatty
OS: hpux
Section: 3c
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
ttyname(3C) ttyname(3C)NAMEttyname(), ttyname_r(), isatty() - find name of a terminalSYNOPSISDESCRIPTIONreturns a pointer to a string containing the null-terminated path name of the terminal device associated with file descriptor fildes. returns 1 if fildes is associated with a terminal device, 0 otherwise. Reentrant Interfaces returns the result string in the supplied buffer. The buffer is buflen characters long and should have space for the name and the terminat- ing null character. The maximum length of the terminal name isRETURN VALUEreturns a NULL pointer if fildes does not describe a terminal device in directory returns a zero upon success and an error number upon failure.ERRORSand fail if any of the following conditions are encountered: The fildes argument is invalid. An inappropriate I/O control operation has been attempted.APPLICATION USAGEThe return value for points to static data whose content is overwritten by each call.WARNINGSFor streams ptys, and do not consider master ptys to be tty devices. It should also be noted that returns a pointer to the master pty name for all master pty devices. This is a result of device files being linked together. Users of should also note that the prototype of this function has changed in this release for conformance with the POSIX.1c Threads stan- dard. The old prototype of is supported for compatibility with existing DCE applications only.FILESSEE ALSOthread_safety(5).STANDARDS CONFORMANCEttyname(3C)
Related Man Pages |
---|
ttyname(3c) - opensolaris |
ttyname_r(3c) - hpux |
ttyname(3) - osf1 |
isatty(3) - osx |
ttyname(3) - osx |
Similar Topics in the Unix Linux Community |
---|
(SOS) Please help ! |