1explain_gettimeofday_or_die(L3i)brary Functions Manueaxlplain_gettimeofday_or_die(3)
2
3
4

NAME

6       explain_gettimeofday_or_die - get time and report errors
7

SYNOPSIS

9       #include <libexplain/gettimeofday.h>
10       void  explain_gettimeofday_or_die(struct  timeval  *tv, struct timezone
11       *tz);
12

DESCRIPTION

14       The explain_gettimeofday_or_die function is used to call the gettimeof‐
15       day(2)  system  call.   On  failure  an  explanation will be printed to
16       stderr, obtained from explain_gettimeofday(3),  and  then  the  process
17       terminates by calling exit(EXIT_FAILURE).
18
19       This  function  is intended to be used in a fashion similar to the fol‐
20       lowing example:
21              explain_gettimeofday_or_die(tv, tz);
22
23       tv      The tv, exactly as to be passed to the  gettimeofday(2)  system
24               call.
25
26       tz      The  tz,  exactly as to be passed to the gettimeofday(2) system
27               call.
28
29       Returns:
30               This function only returns on success.  On failure,  prints  an
31               explanation and exits.
32

SEE ALSO

34       gettimeofday(2)
35               get time
36
37       explain_gettimeofday(3)
38               explain gettimeofday(2) errors
39
40       exit(2) terminate the calling process
41
43       libexplain version 1.4
44       Copyright (C) 2008 Peter Miller
45
46
47
48                                                explain_gettimeofday_or_die(3)
Impressum