Seth Woolley's Man Viewer

getpid(2) - getpid, getppid, getpid, getppid - Obtenir l'identifiant d'un processus - man 2 getpid

([section] manual, -k keyword, -K [section] search, -f whatis)
man plain no title

GETPID(2)                 Manuel du programmeur Linux                GETPID(2)



NOM
       getpid, getppid - Obtenir l'identifiant d'un processus.

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

       pid_t getpid(void);
       pid_t getppid(void);

DESCRIPTION
       getpid  renvoie  l'ID du processus actif. Ceci est souvent utilisé par
       des routines qui créent des fichiers temporaires uniques.

       getppid renvoie le PID du processus parent de celui en cours. Ceci  est
       régulièrement  utilise après un fork (2) pour établir la communica-
       tion entre les deux processus issus du même programme.

ERREURS
       Ces fonctions réussissent toujours.

CONFORMITÃ
       POSIX, BSD 4.3, SVID

VOIR AUSSI
       exec(3,n,1 builtins)(3), fork(2),  kill(1,2,1 builtins)(2),  mkstemp(3),  tmpnam(3),  tempnam(3),  tmp-
       file(1,n)(3)

TRADUCTION
       Christophe Blaess, 1996-2003.



LDP                             18 juillet 2003                      GETPID(2)

References for this manual (incoming links)