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

NAME

6       explain_pathconf_or_die - get configuration values and report errors
7

SYNOPSIS

9       #include <libexplain/pathconf.h>
10       long explain_pathconf_or_die(const char *pathname, int name);
11

DESCRIPTION

13       The  explain_pathconf_or_die  function  is used to call the pathconf(3)
14       system call.  On failure an explanation  will  be  printed  to  stderr,
15       obtained  from  explain_pathconf(3), and then the process terminates by
16       calling exit(EXIT_FAILURE).
17
18       This function is intended to be used in a fashion similar to  the  fol‐
19       lowing example:
20              long value = explain_pathconf_or_die(pathname, name);
21       Note  that a −1 return value is still possible, meaning the system does
22       not have a limit for the requested resource.
23
24       pathname
25               The pathname, exactly as to be passed to the pathconf(3) system
26               call.
27
28       name    The  name,  exactly  as  to be passed to the pathconf(3) system
29               call.
30
31       Returns:
32               This function only returns on success.  On failure,  prints  an
33               explanation and exits.
34

SEE ALSO

36       pathconf(3)
37               get configuration values for files
38
39       explain_pathconf(3)
40               explain pathconf(3) errors
41
42       exit(2) terminate the calling process
43
45       libexplain version 0.40
46       Copyright (C) 2008 Peter Miller
47
48
49
50                                                    explain_pathconf_or_die(3)
Impressum