home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s038 / 10.ddi / 017.LIF / PROCESS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1992-07-02  |  2.0 KB  |  57 lines

  1. /* process.h - process control function prototypes
  2.  * $Version: 1.1 $
  3.  * Copyright (c) 1988-91 Intel Corporation, ALL RIGHTS RESERVED.
  4.  */
  5.  
  6. #ifndef _processh
  7. #define _processh
  8. /*lint -library */
  9.  
  10. #ifndef _typesh
  11. #include <sys/types.h>
  12. #endif
  13.  
  14. #pragma fixedparams("_exit",   "_doexec", "getegid", "getgid",  "getpid")
  15. #pragma fixedparams("getuid",  "sleep")
  16. #pragma fixedparams("_exec",   "execv",   "execve",  "execvp",  "execvpe")
  17. #pragma fixedparams("_spawn",  "spawnv",  "spawnve", "spawnvp", "spawnvpe")
  18. #pragma varparams("execl",   "execle",  "execlp",  "execlpe")
  19. #pragma varparams("spawnl",  "spawnle", "spawnlp", "spawnlpe")
  20.  
  21. #define P_WAIT        0
  22. #define P_NOWAIT    1
  23. #define P_OVERLAY    2
  24.  
  25. /*
  26.  * Function prototypes:
  27.  */
  28. int     _doexec(int, int, int, int, int, int, char *, char *, char *, 
  29.                 char *, char *, char *);
  30. int     _exec(const char *, const char **, const char **, int);
  31. int      execl(const char *, const char *, ...);
  32. int      execle(const char *, const char *, ...);
  33. int      execlp(const char *, const char *, ...);
  34. int      execlpe(const char *, const char *,...);
  35. int      execv(const char *, const char **);
  36. int      execve(const char *, const char **, const char **);
  37. int      execvp(const char *, const char **);
  38. int      execvpe(const char *, const char **, const char **);
  39. void    _exit(int);
  40. gid_t    getgid(void);
  41. gid_t    getegid(void);
  42. pid_t    getpid(void);
  43. uid_t    getuid(void);
  44. unsigned sleep(unsigned int);
  45. int     _spawn(int, const char *, const char **, const char **, int);
  46. int      spawnl(int, const char *, const char *, ...);
  47. int      spawnle(int, const char *, const char *,...);
  48. int      spawnlp(int, const char *, const char *, ...);
  49. int      spawnlpe(int, const char *, const char *, ...);
  50. int      spawnv(int, const char *, const char **);
  51. int      spawnve(int, const char *, const char **, const char **);
  52. int      spawnvp(int, const char *, const char **);
  53. int      spawnvpe(int, const char *, const char **, const char **);
  54.  
  55. #endif /* _processh */
  56.  
  57.