Query: tcgetsid
OS: osf1
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
tcgetsid(3) Library Functions Manual tcgetsid(3)NAMEtcgetsid - Returns the session ID of the terminalLIBRARYStandard C Library (libc.so, libc.a)SYNOPSIS#include <termios.h> pid_t tcgetsid( pid_t fildes);STANDARDSInterfaces documented on this reference page conform to industry standards as follows: tcgetsid(): XSH4.2 Refer to the standards(5) reference page for more information about industry standards and associated tags.PARAMETERSSpecifies a terminal.DESCRIPTIONThe tcgetsid routine is a part of the general terminal interface. This routine obtains the session ID of the terminal as specified by the fildes parameter.RETURN VALUEOn success, the tcgetsid returns the session ID that is associated with the terminal specified. If the session ID of the terminal cannot be obtained, a value of (pid_t)-1 is returned and errno is set to indicate error.ERRORSThe tcgetsid() function sets errno to the specified values for the following conditions: The descriptor fildes is not associated with a controlling terminal. The descriptor fildes is not valid. The file associated with fildes is not a terminal. [Tru64 UNIX] The descriptor fildes is not associated with a character special device or the specified request does not apply to the kind of object that fildes references.RELATED INFORMATIONStandards: standards(5) delim off tcgetsid(3)
Related Man Pages |
---|
tcgetsid(3c) - sunos |
termios(3c) - opensolaris |
tcgetsid(3p) - centos |
tcgetsid(3) - mojave |
tcgetsid(3) - linux |
Similar Topics in the Unix Linux Community |
---|
terminal sessions and certs |
How to put the STDOUT back to terminal |
HMC login - Command line and terminal session |
Network Connectivity Issues |
Prompting user twice on the same line |