icon Top 9 categories map      RocketAware > man pages >

tcsetpgrp(3)

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.


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

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

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

NAME
     tcsetpgrp - set foreground process group ID



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

     int
     tcsetpgrp(int fd, pid_t pgrp_id);

DESCRIPTION
     If the process has a controlling terminal, the tcsetpgrp() function sets
     the foreground process group ID associated with the terminal device to
     pgrp_id. The terminal device associated with fd must be the controlling
     terminal of the calling process and the controlling terminal must be cur-
     rently associated with the session of the calling process.  The value of
     pgrp_id must be the same as the process group ID of a process in the same
     session as the calling process.

     Upon successful completion, tcsetpgrp() returns a value of zero.

ERRORS
     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.

     [EINVAL]      An invalid value of pgrp_id was specified.

     [ENOTTY]      The calling process does not have a controlling terminal,
                   or the file represented by fd is not the controlling termi-
                   nal, or the controlling terminal is no longer associated
                   with the session of the calling process.

     [EPERM]       The pgrp_id argument does not match the process group ID of
                   a process in the same session as the calling process.

SEE ALSO
     setpgid(2),  setsid(2),  tcgetpgrp(3)

STANDARDS
     The tcsetpgrp() 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 tcsetpgrp(3) functions
OpenBSD sources for tcsetpgrp(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 > tcsetpgrp.3/
RocketAware.com is a service of Mib Software
Copyright 1999, Forrest J. Cavalier III. All Rights Reserved.
We welcome submissions and comments