|   
cvs.gedasymbols.org/djgpp/doc/libc/libc_809.html
 | 
  
search  
 | 
libc.a reference
 tcgetpgrp 
 Syntax                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   
|   | #include <termios.h>
int tcgetpgrp (int fd);
  | 
 Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               
This function returns the value of the process group ID for the
foreground process associated with the terminal.  The file descriptor
fd must be connected to the terminal, otherwise the function will
fail.
 Return Value                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      
If fd is connected to the terminal, the function returns the
process group ID, which is currently identical to the value returned by
getpgrp() (see section getpgrp).  Otherwise, it returns -1 and sets
errno to ENOTTY.
 Portability                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             
| ANSI/ISO C | 
 No
 | 
| POSIX | 
 1003.2-1992; 1003.1-2001
 |