*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> tcgetpgrp (3)              
Title
Content
Arch
Section
 

TCGETPGRP(3)

Contents


NAME    [Toc]    [Back]

     tcgetpgrp - get foreground process group ID

SYNOPSIS    [Toc]    [Back]

     #include <sys/types.h>
     #include <unistd.h>

     pid_t
     tcgetpgrp(int fd);

DESCRIPTION    [Toc]    [Back]

     The tcgetpgrp() function returns the value  of  the  process
group ID of the
     foreground  process  group  associated with the terminal device.  If there
     is no foreground process group, tcgetpgrp() returns  an  invalid process
     ID.

ERRORS    [Toc]    [Back]

     If  an  error  occurs, tcgetpgrp() returns -1 and the global
variable errno
     is set to indicate the error, as follows:

     [EBADF]       The fd argument is not a valid  file  descriptor.

     [ENOTTY]       The  calling process does not have a controlling terminal or
                   the underlying terminal device represented  by
fd is not the
                   controlling terminal.

SEE ALSO    [Toc]    [Back]

      
      
     setpgid(2), setsid(2), tcsetpgrp(3)

STANDARDS    [Toc]    [Back]

     The  tcgetpgrp()  function  is expected to be compliant with
the IEEE Std
     1003.1-1988 (``POSIX'') specification.

OpenBSD     3.6                          March      29,      1992
[ Back ]
 Similar pages
Name OS Title
tcsetpgrp FreeBSD set foreground process group ID
tcsetpgrp NetBSD set foreground process group ID
tcsetpgrp Tru64 Set foreground process group ID
tcsetpgrp OpenBSD set foreground process group ID
nsg_attach_pid Tru64 Attaches a process to, or detaches a process from a NUMA Scheduling Group (libnuma library)
nsg_detach_pid Tru64 Attaches a process to, or detaches a process from a NUMA Scheduling Group (libnuma library)
psignal FreeBSD post signal to a process or process group
pgfind OpenBSD find process / process group by number
pfind OpenBSD find process / process group by number
gsignal FreeBSD post signal to a process or process group
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service