tcgetsid man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

tcgetsid(3C)							  tcgetsid(3C)

NAME
       tcgetsid() - get terminal session ID

SYNOPSIS
DESCRIPTION
       The  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 VALUE
       Upon 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.

ERRORS
       If the function fails, it sets (see errno(2)) to one of	the  following
       values:

	      [EACCES]	     The  file	associated with fildes is the control‐
			     ling 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  con‐
			     trolling terminal or the calling process does not
			     have a controlling terminal.

SEE ALSO
       getsid(2), setsid(2), tcgetpgrp(3C), thread_safety(5).

								  tcgetsid(3C)
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net