Home
Search all pages
Subjects
By activity
Professions, Sciences, Humanities, Business, ...
User Interface
Text-based, GUI, Audio, Video, Keyboards, Mouse, Images,...
Text Strings
Conversions, tests, processing, manipulation,...
Math
Integer, Floating point, Matrix, Statistics, Boolean, ...
Processing
Algorithms, Memory, Process control, Debugging, ...
Stored Data
Data storage, Integrity, Encryption, Compression, ...
Communications
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)
NAME
getpgrp - get process group
SYNOPSIS
#include <unistd.h>
pid_t
getpgrp(void);
pid_t
getpgid(pid_t pid);
DESCRIPTION
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.
SEE ALSO
setpgid(2), termios(4)
HISTORY
The getpgrp() function call appeared in 4.0BSD.
STANDARDS
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.
COMPATIBILITY
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
POSIX.1.
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)
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
|