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

NAME

6       explain_execv_or_die - execute a file and report errors
7

SYNOPSIS

9       #include <libexplain/execv.h>
10       void explain_execv_or_die(const char *pathname, char *const*argv);
11       int explain_execv_on_error(const char *pathname, char *const*argv);
12

DESCRIPTION

14       The  explain_execv_or_die  function is used to call the execv(3) system
15       call. On failure an explanation will be  printed  to  stderr,  obtained
16       from  the explain_execv(3) function, and then the process terminates by
17       calling exit(EXIT_FAILURE).
18
19       The explain_execv_on_error function is used to call the execv(3) system
20       call.  On  failure  an  explanation will be printed to stderr, obtained
21       from the explain_execv(3) function, but still returns to the caller.
22
23       pathname
24               The pathname, exactly as to be passed to  the  execv(3)  system
25               call.
26
27       argv    The argv, exactly as to be passed to the execv(3) system call.
28

RETURN VALUE

30       The explain_execv_or_die function only returns on success, see execv(3)
31       for more information. On failure, prints an explanation and  exits,  it
32       does not return.
33
34       The  explain_execv_on_error function always returns the value return by
35       the wrapped execv(3) system call.
36

EXAMPLE

38       The explain_execv_or_die function is intended to be used in  a  fashion
39       similar to the following example:
40              explain_execv_or_die(pathname, argv);
41

SEE ALSO

43       execv(3)
44               execute a file
45
46       explain_execv(3)
47               explain execv(3) errors
48
49       exit(2) terminate the calling process
50
52       libexplain version 1.4
53       Copyright (C) 2012 Peter Miller
54
55
56
57                                                       explain_execv_or_die(3)
Impressum