1explain_acl_set_file_or_die(L3i)brary Functions Manueaxlplain_acl_set_file_or_die(3)
2
3
4

NAME

6       explain_acl_set_file_or_die - set an ACL by filename and report errors
7

SYNOPSIS

9       #include <libexplain/acl_set_file.h>
10       void explain_acl_set_file_or_die(const char *pathname, acl_type_t type,
11       acl_t acl);
12       int  explain_acl_set_file_on_error(const  char  *pathname,   acl_type_t
13       type, acl_t acl);
14

DESCRIPTION

16       The   explain_acl_set_file_or_die   function   is   used  to  call  the
17       acl_set_file(3) system call. On failure an explanation will be  printed
18       to stderr, obtained from the explain_acl_set_file(3) function, and then
19       the process terminates by calling exit(EXIT_FAILURE).
20
21       The  explain_acl_set_file_on_error  function  is  used  to   call   the
22       acl_set_file(3)  system call. On failure an explanation will be printed
23       to stderr, obtained  from  the  explain_acl_set_file(3)  function,  but
24       still returns to the caller.
25
26       pathname
27               The  pathname,  exactly  as to be passed to the acl_set_file(3)
28               system call.
29
30       type    The type, exactly as to be passed to the acl_set_file(3) system
31               call.
32
33       acl     The  acl, exactly as to be passed to the acl_set_file(3) system
34               call.
35

RETURN VALUE

37       The explain_acl_set_file_or_die function only returns on  success,  see
38       acl_set_file(3) for more information. On failure, prints an explanation
39       and exits, it does not return.
40
41       The explain_acl_set_file_on_error function  always  returns  the  value
42       return by the wrapped acl_set_file(3) system call.
43

EXAMPLE

45       The  explain_acl_set_file_or_die  function  is intended to be used in a
46       fashion similar to the following example:
47              explain_acl_set_file_or_die(pathname, type, acl);
48

SEE ALSO

50       acl_set_file(3)
51               set an ACL by filename
52
53       explain_acl_set_file(3)
54               explain acl_set_file(3) errors
55
56       exit(2) terminate the calling process
57
59       libexplain version 1.4
60       Copyright (C) 2013 Peter Miller
61
62
63
64                                                explain_acl_set_file_or_die(3)
Impressum