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

NAME

6       explain_fstat_or_die - get file status and report errors
7

SYNOPSIS

9       #include <libexplain/fstat.h>
10       void explain_fstat_or_die(int fildes, struct stat *buf);
11

DESCRIPTION

13       The  explain_fstat_or_die  function is used to call the fstat(2) system
14       call.  On failure an explanation will be printed  to  stderr,  obtained
15       from  explain_fstat(3),  and  then  the  process  terminates by calling
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_fstat_or_die(fildes, buf);
21
22       fildes  The  fildes,  exactly  as  to  be passed to the fstat(2) system
23               call.
24
25       buf     The buf, exactly as to be passed to the fstat(2) system call.
26
27       Returns:
28               This function only returns on success.  On failure,  prints  an
29               explanation and exits.
30

SEE ALSO

32       fstat(2)
33               get file status
34
35       explain_fstat(3)
36               explain fstat(2) errors
37
38       exit(2) terminate the calling process
39
41       libexplain version 0.40
42       Copyright (C) 2008 Peter Miller
43
44
45
46                                                       explain_fstat_or_die(3)
Impressum