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 Solaris Others

[IEEE Std1003.1-1988 (``POSIX'').]

TCGETPGRP(3)              OpenBSD Programmer's Manual             TCGETPGRP(3)

     tcgetpgrp - get foreground process group ID

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

     tcgetpgrp(int fd);

     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

     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.

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

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

OpenBSD 2.6                     March 29, 1992                               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]
FreeBSD Sources for tcgetpgrp(3) functions
OpenBSD sources for tcgetpgrp(3)

[Overview Topics]

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

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

[IEEE Std1003.1-1988 (``POSIX'').]

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