Home :: International :: Manuals :: Howto :: FAQ :: Man Pages :: Email Login

 
 

 

GETPID

Section: Manuel du programmeur Linux (2)
Updated: 18 juillet 2003
Index Return to Main Contents
 

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 communication 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), fork(2), kill(2), mkstemp(3), tmpnam(3), tempnam(3), tmpfile(3)  

TRADUCTION

Christophe Blaess, 1996-2003.


 

Index

NOM
SYNOPSIS
DESCRIPTION
ERREURS
CONFORMITÉ
VOIR AUSSI
TRADUCTION

 
 
 
 
Google
  Web Linuxinfor   
 

Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account

Document on this page is part of "Linuxinfor Man Pages in HTML Format: man2". See Index Page for more info about Authorship and Copyright.

1999-2009 Linuxinfor.com. No rights reserved.