icon Top 9 categories map      RocketAware > man pages >


Tips: Browse or Search all pages for efficient awareness of more than 6000 of the most popular reusable and open source applications, functions, libraries, and FAQs.

The "RKT couplings" below include links to source code, updates, additional information, advice, FAQs, and overviews.


Search all pages


By activity
Professions, Sciences, Humanities, Business, ...

User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...

Text Strings
Conversions, tests, processing, manipulation,...

Integer, Floating point, Matrix, Statistics, Boolean, ...

Algorithms, Memory, Process control, Debugging, ...

Stored Data
Data storage, Integrity, Encryption, Compression, ...

Networks, protocols, Interprocess, Remote, Client Server, ...

Hard World
Timing, Calendar and Clock, Audio, Video, Printer, Controls...

File System
Management, Filtering, File & Directory access, Viewers, ...


RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD Others

GETPGRP(2)                OpenBSD Programmer's Manual               GETPGRP(2)

     getpgrp - get process group

     #include <unistd.h>


     getpgid(pid_t pid);

     The process group of the current process is returned by getpgrp().  The
     process group of the pid process is returned by getpgid().

     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.

     This call is thus used by programs such as csh(1) to create process
     groups in implementing job control.  The tcgetpgrp() and tcsetpgrp()
     calls are used to get/set the process group of the control terminal.

     setpgid(2),  termios(4)

     The getpgrp() function call appeared in 4.0BSD.

     The getpgrp() function conforms to IEEE Std1003.1-1988 (``POSIX''). The
     getpgid() function call is derived from its usage in System V Release 4,
     and first appeared in NetBSD 1.2A.

     This version of getpgrp() differs from past Berkeley versions by not tak-
     ing a pid_t pid argument.  This incompatibility is required by IEEE
     Std1003.1-1988 (``POSIX'').

     From the IEEE Std1003.1-1988 (``POSIX'') Rationale:

     4.3BSD provides a getpgrp() function that returns the process group ID
     for a specified process.  Although this function is used to support job
     control, all known job-control shells always specify the calling process
     with this function.  Thus, the simpler System V getpgrp() suffices, and
     the added complexity of the 4.3BSD getpgrp() has been omitted from

OpenBSD 2.6                      June 4, 1993                                1

Source: OpenBSD 2.6 man pages. Copyright: Portions are copyrighted by BERKELEY
SOFTWARE DESIGN, INC., The Regents of the University of California, Massachusetts
Institute of Technology, Free Software Foundation, FreeBSD Inc., and others.

(Corrections, notes, and links courtesy of RocketAware.com)

[Detailed Topics]

[Overview Topics]

Up to: Process Limits: Identity - Process ownership and Identity

RocketLink!--> Man page versions: OpenBSD FreeBSD NetBSD Others

Rapid-Links: Search | About | Comments | Submit Path: RocketAware > man pages > getpgrp.2/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments