Advertisement
Guest User

Untitled

a guest
Sep 4th, 2015
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 KB | None | 0 0
  1.  
  2. | | - | e | p |
  3. |:-:|:-----:|:------:|:------:|
  4. | l | execl | execle | execlp |
  5. | v | execv | execve | execvp |
  6.  
  7. ---
  8.  
  9. * int execl(char const *path, char const *arg0, ...);
  10. * int execle(char const *path, char const *arg0, ..., char const *envp[]);
  11. * int execlp(char const *file, char const *arg0, ...);
  12. * int execv(char const *path, char const *argv[]);
  13. * int execve(char const *path, char const *argv[], char const *envp[]);
  14. * int execvp(char const *file, char const *argv[]);
  15.  
  16. ---
  17.  
  18. * l – Command-line arguments are passed individually (a list) to the function.
  19. * v – Command-line arguments are passed to the function as an array (vector) of pointers.
  20.  
  21. ---
  22.  
  23. * e – An array of pointers to environment variables is explicitly passed to the new process image.
  24. * p – Uses the PATH environment variable to find the file named in the path argument to be executed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement