Query: tcgetsid
OS: hpux
Section: 3c
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
tcgetsid(3C) tcgetsid(3C)NAMEtcgetsid() - get terminal session IDSYNOPSISDESCRIPTIONThe function returns the value of the session ID of the foreground process associated with the terminal referenced by fildes. is allowed from a process that is a member of a background process group (see termio(7)).RETURN VALUEUpon successful completion, returns the value of the session ID of the foreground process associated with the terminal referenced by fildes. Otherwise, returns a value of and sets to indicate the error.ERRORSIf the function fails, it sets (see errno(2)) to one of the following values: [EACCES] The file associated with fildes is the controlling terminal of the calling process; however, there is no foreground process group defined for the controlling terminal. [EBADF] fildes is not a valid file descriptor. [ENOTTY] The file associated with fildes is not the controlling terminal or the calling process does not have a controlling terminal.SEE ALSOgetsid(2), setsid(2), tcgetpgrp(3C), thread_safety(5). tcgetsid(3C)
| Related Man Pages |
|---|
| tcgetsid(3c) - sunos |
| tcgetsid(3c) - opensolaris |
| tcgetsid(3) - mojave |
| tcgetsid(3) - linux |
| tcgetpgrp(3c) - sunos |
| Similar Topics in the Unix Linux Community |
|---|
| reformat drive with terminal. |
| Difference between <stdin> & terminal |
| How to put the STDOUT back to terminal |
| Searching in the terminal |
| Multiple runtime arguments |