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

NAME

6       explain_access_or_die - check permissions for a file and report errors
7

SYNOPSIS

9       #include <libexplain/libexplain.h>
10       void explain_access_or_die(const char *pathname, int mode);
11

DESCRIPTION

13       The explain_access_or_die function is used to call the access(2) system
14       call and check the result.  On failure it prints an explanation of  the
15       error,  obtained from explain_access(3), and then terminates by calling
16       exit(EXIT_FAILURE).
17              explain_access_or_die(pathname, mode);
18
19       pathname
20               The pathname, exactly as to be passed to the  access(2)  system
21               call.
22
23       mode    The mode, exactly as to be passed to the access(2) system call.
24
25       Returns:
26               Only ever return on success.  On failure process will exit.
27
29       libexplain version 0.40
30       Copyright (C) 2008 Peter Miller
31

AUTHOR

33       Written by Peter Miller <pmiller@opensource.org.au>
34
35
36
37                                                      explain_access_or_die(3)
Impressum