home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / getpid.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.2 KB  |  67 lines

  1.  
  2.  
  3.  
  4. GETPID(3)           MINTLIB LIBRARY FUNCTIONS           GETPID(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        getpid, getprgp, getppid - get process, process group,
  9.                                   and parent process IDs
  10.  
  11. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  12.        #include <unistd.h>
  13.  
  14.        int getpid(void);
  15.  
  16.        int getprgp(void);
  17.  
  18.        int getppid(void);
  19.  
  20. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  21.        getpid returns the process ID of the calling process.
  22.  
  23.        getpgrp  returns  the process group ID of the calling pro-
  24.        cess.
  25.  
  26.        getppid returns the parent process ID of the calling  pro-
  27.        cess.
  28.  
  29. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  30.        s✓se✓et✓tp✓pg✓gr✓rp✓p(✓(3✓3)✓),✓, P✓Pg✓ge✓et✓tp✓pi✓id✓d(✓(2✓2)✓),✓, P✓Pg✓ge✓et✓tp✓pg✓gr✓rp✓p(✓(2✓2)✓),✓, P✓Pg✓ge✓et✓tp✓pp✓pi✓id✓d(✓(2✓2)✓)
  31.  
  32. N✓NO✓OT✓TE✓ES✓S
  33.        When  MiNT  is not active, the 16 most significant bits of
  34.        the basepage of the process are returned for getpid; 0  is
  35.        returned  for getpgrp; the 16 most significant bits of the
  36.        parents process' basepage are returned for getppid.
  37.  
  38.        It seems that the BSD UN*X version  of  getpgrp  takes  an
  39.        argument.
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.