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

NAME

6       explain_futimens_or_die - change file timestamps and report errors
7

SYNOPSIS

9       #include <libexplain/futimens.h>
10       void explain_futimens_or_die(int fildes, const struct time_spec *data);
11       int   explain_futimens_on_error(int   fildes,  const  struct  time_spec
12       *data);
13

DESCRIPTION

15       The explain_futimens_or_die function is used to  call  the  futimens(3)
16       system  call.  On  failure  an  explanation  will be printed to stderr,
17       obtained from the explain_futimens(3) function, and  then  the  process
18       terminates by calling exit(EXIT_FAILURE).
19
20       The  explain_futimens_on_error function is used to call the futimens(3)
21       system call. On failure an  explanation  will  be  printed  to  stderr,
22       obtained  from  the  explain_futimens(3) function, but still returns to
23       the caller.
24
25       fildes  The fildes, exactly as to be passed to the  futimens(3)  system
26               call.
27
28       data    The  data,  exactly  as  to be passed to the futimens(3) system
29               call.
30

RETURN VALUE

32       The explain_futimens_or_die function only returns on success, see futi‐
33       mens(3)  for  more  information.  On failure, prints an explanation and
34       exits, it does not return.
35
36       The explain_futimens_on_error function always returns the value  return
37       by the wrapped futimens(3) system call.
38

EXAMPLE

40       The  explain_futimens_or_die function is intended to be used in a fash‐
41       ion similar to the following example:
42              explain_futimens_or_die(fildes, data);
43

SEE ALSO

45       futimens(3)
46               change file timestamps with nanosecond precision
47
48       explain_futimens(3)
49               explain futimens(3) errors
50
51       exit(2) terminate the calling process
52
54       libexplain version 1.4
55       Copyright (C) 2013 Peter Miller
56
57
58
59                                                    explain_futimens_or_die(3)
Impressum