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

NAME

6       explain_fchmod_or_die - change permissions of a file and report errors
7

SYNOPSIS

9       #include <libexplain/libexplain.h>
10       void explain_fchmod_or_die(int fildes, int mode);
11

DESCRIPTION

13       The explain_fchmod_or_die function is used to call the fchmod(2) system
14       call.  On failure an explanation wiil be printed  to  stderr,  obtained
15       from  explain_fchmod(3),  and  the  the  process terminates by call ing
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_fchmod_or_die(fildes, mode);
21
22       fildes  The  fildes,  exactly  as  to be passed to the fchmod(2) system
23               call.
24
25       mode    The mode, exactly as to be passed to the fchmod(2) system call.
26
27       Returns:
28               This function only returns on success.  On failure,  prints  an
29               explanation and exit(EXIT_FAILURE)s.
30
32       libexplain version 0.40
33       Copyright (C) 2008 Peter Miller
34

AUTHOR

36       Written by Peter Miller <pmiller@opensource.org.au>
37
38
39
40                                                      explain_fchmod_or_die(3)
Impressum