getpgrp man page on NeXTSTEP

Man page or keyword search:  
man Server   1419 pages
apropos Keyword Search (all sections)
Output format
NeXTSTEP logo
[printable version]


GETPGRP(2)							    GETPGRP(2)

NAME
       getpgrp - get process group

BSD SYNOPSIS
       #include <sys/types.h>

       pid_t  getpgrp(int pid);

POSIX SYNOPSIS
       #include <sys/types.h>

       pid_t  getpgrp(void);

DESCRIPTION
       The  BSD version of getpgrp returns the process group ID of the process
       with ID pid.  If pid is 0, or if the calling  application  is  a	 POSIX
       application,  then  the	process	 group	ID  of	the current process is
       returned.

       Process groups are used for distribution of signals, and	 by  terminals
       to  arbitrate  requests	for  their input: processes that have the same
       process group as the terminal are foreground and may read, while others
       will  block  with a signal if they attempt to read.  Each process group
       is the member of one session.

       This call is thus used by programs such as  csh(1)  to  create  process
       groups  in  implementing	 job control.  To get/set the process group of
       the controlling	terminal,  BSD	applications  use  the	TIOCGPGRP  and
       TIOCSPGRP  calls	 described  in	tty(4), and POSIX applications use the
       tcgetpgrp(2P) and tcsetpgrp(2P) functions.

SEE ALSO
       setsid(2P),   setpgid(2P),   setpgrp(2),	  getuid(2),	tcgetpgrp(2P),
       tcsetpgrp(2P), tty(4)

4.2 Berkeley Distribution	August 1, 1992			    GETPGRP(2)
[top]

List of man pages available for NeXTSTEP

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