Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/t/tcgetsid.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/t/tcgetsid.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/t/tcgetsid.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/t/tcgetsid.html on line 8
Get the process group ID of the session leader for a controlling terminal
#include <unistd.h>
int tcgetsid( int filedes );
- fildes
- A file descriptor that's associated with the device whose ID you
want to get.
libc
Use the -l c option to
qcc
to link against this library.
This library is usually included automatically.
The tcgetsid() function returns the process group ID of the
session for which the terminal specified by filedes is the
controlling terminal.
The process group ID associated with the terminal, or -1 if an error
occurs
(errno is set).
- EACCES
- The filedes argument isn't associated with a controlling
terminal.
- EBADF
- The filedes argument isn't a valid file descriptor.
- ENOTTY
- The file associated with filedes isn't a terminal.
POSIX 1003.1 XSI
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
Yes |
Thread |
Yes |
tcsetsid()
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/t/tcgetsid.html on line 131
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/t/tcgetsid.html on line 131