1explain_execvp_or_die(3)   Library Functions Manual   explain_execvp_or_die(3)
2
3
4

NAME

6       explain_execvp_or_die - execute a file and report errors
7

SYNOPSIS

9       #include <libexplain/execvp.h>
10       void explain_execvp_or_die(const char *pathname, char *const *argv);
11

DESCRIPTION

13       The explain_execvp_or_die function is used to call the execvp(3) system
14       call.  On failure an explanation will be printed  to  stderr,  obtained
15       from  explain_execvp(3),  and  then  the  process terminates by calling
16       exit(EXIT_FAILURE).
17
18       This function is intended to be used in a fashion similar to  the  fol‐
19       lowing example:
20              explain_execvp_or_die(pathname, argv);
21
22       pathname
23               The  pathname,  exactly as to be passed to the execvp(3) system
24               call.
25
26       argv    The argv, exactly as to be passed to the execvp(3) system call.
27
28       Returns:
29               This function only returns on success.  On failure,  prints  an
30               explanation and exits.
31

SEE ALSO

33       execvp(3)
34               execute a file
35
36       explain_execvp(3)
37               explain execvp(3) errors
38
39       exit(2) terminate the calling process
40
42       libexplain version 1.4
43       Copyright (C) 2009 Peter Miller
44
45
46
47                                                      explain_execvp_or_die(3)
Impressum