Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 50 lignes de commande et 1472 man disponibles
login as: root
root@213.186.33.18's password:
Last login: Wed May 30 13:07:07 2012 from 38.107.179.227
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Tcsetpgrp en anglais

TCGETPGRP(3) Linux Programmer's Manual TCGETPGRP(3)
 
NAME


tcgetpgrp, tcsetpgrp - get and set terminal foreground process group
 
SYNOPSIS


#include pid_t tcgetpgrp(int fd); int tcsetpgrp(int fd, pid_t pgrp);
 
DESCRIPTION


The function tcgetpgrp() returns the process group ID of the foreground process group on the terminal associated to fd, which must be the con- trolling terminal of the calling process. The function tcsetpgrp() makes the process group with process group ID pgrp the foreground process group on the terminal associated to fd, which must be the controlling terminal of the calling process, and still be associated with its session. Moreover, pgrp must be a (non- empty) process group belonging to the same session as the calling pro- cess. If tcsetpgrp() is called by a member of a background process group in its session, and the calling process is not blocking or ignoring SIGT- TOU, a SIGTTOU signal is sent to all members of this background process group.
 
RETURN VALUE


When fd refers to the controlling terminal of the calling process, the function tcgetpgrp() will return the foreground process group ID of that terminal if there is one, and some value larger than 1 that is not presently a process group ID otherwise. When fd does not refer to the controlling terminal of the calling process, -1 is returned, and errno is set appropriately. When successful, tcsetpgrp() returns 0. Otherwise, it returns -1, and errno is set appropriately.
 
ERRORS


EBADF fd is not a valid file descriptor. EINVAL pgrp has an unsupported value. ENOTTY The calling process does not have a controlling terminal, or it has one but it is not described by fd, or, for tcsetpgrp(), this controlling terminal is no longer associated with the session of the calling process. EPERM pgrp has a supported value, but is not the process group ID of a process in the same session as the calling process.
 
CONFORMING TO


POSIX.1-2001.
 
NOTES


These functions are implemented via the TIOCGPGRP and TIOCSPGRP ioctls. History The ioctls appeared in 4.2BSD. The functions are POSIX inventions.
 
SEE ALSO


setpgid(2), setsid(2), credentials(7)
 
COLOPHON


This page is part of release 3.05 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. GNU 2003-01-28 TCGETPGRP(3)


 Dernières recherches
Man  en anglais Man tcsetpgrp en anglaisMan  en français Man tcsetpgrp en français
Man  en anglais Man groupadd en anglaisMan  en français Man groupadd en français
Man  en anglais Man stdio en anglaisMan  en français Man stdio en français
Man  en anglais Man unicode en anglaisMan  en français Man unicode en français
Man  en anglais Man lseek en anglaisMan  en français Man lseek en français
Man  en anglais Man ulimit en anglaisMan  en français Man ulimit en français
Man  en anglais Man stat en anglaisMan  en français Man stat en français
Man  en anglais Man keymaps en anglaisMan  en français Man keymaps en français
Man  en anglais Man proc en anglaisMan  en français Man proc en français
Man  en anglais Man ttys en anglaisMan  en français Man ttys en français
Man  en anglais Man execlp en anglaisMan  en français Man execlp en français
Man  en anglais Man getpw en anglaisMan  en français Man getpw en français
Man  en anglais Man truncate en anglaisMan  en français Man truncate en français
Man  en anglais Man gethostbyname en anglaisMan  en français Man gethostbyname en français
Man  en anglais Man terminfo en anglaisMan  en français Man terminfo en français

 Recherche

Dans ce moteur de recherche, vous pouvez taper directement votre besoin, en une phrase normale, humaine.
Exemple : vous cherchez comment remplacer un mot par un autre dans tous les fichiers d'un certain dossier. Vous pouvez écrire "Comment remplacer un mot par un autre dans tous les fichiers d'un dossier". Le moteur vous ramenera les résultats en fonction de leur pertinence.
Vous pouvez bien sûr ne chercher qu'un seul mot-clé, par exemple "find".
 Toutes les lignes de code
Par popularité
Par fonction
Recherche avancée
 Les logiciels SHELL/SSH
Putty
Astuces Bash
Faire du SHELL avec PHP!
 La doc officielle
Les man Linux en français
Les man Linux en anglais
 Proposer vos bash
Partagez vos lignes!
 Les requêtes
Déposer une requête
Voir/répondre à une requête
 Quelques sites interessants
Bons sites pour apprendre
 Rechercher