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

NAME

6       explain_uname_or_die  - get information about current kernel and report
7       errors
8

SYNOPSIS

10       #include <libexplain/uname.h>
11       void explain_uname_or_die(struct utsname *data);
12       int explain_uname_on_error(struct utsname *data);
13

DESCRIPTION

15       The explain_uname_or_die function is used to call the  uname(2)  system
16       call.  On  failure  an  explanation will be printed to stderr, obtained
17       from the explain_uname(3) function, and then the process terminates  by
18       calling exit(EXIT_FAILURE).
19
20       The explain_uname_on_error function is used to call the uname(2) system
21       call. On failure an explanation will be  printed  to  stderr,  obtained
22       from the explain_uname(3) function, but still returns to the caller.
23
24       data    The data, exactly as to be passed to the uname(2) system call.
25

RETURN VALUE

27       The explain_uname_or_die function only returns on success, see uname(2)
28       for more information. On failure, prints an explanation and  exits,  it
29       does not return.
30
31       The  explain_uname_on_error function always returns the value return by
32       the wrapped uname(2) system call.
33

EXAMPLE

35       The explain_uname_or_die function is intended to be used in  a  fashion
36       similar to the following example:
37              explain_uname_or_die(data);
38

SEE ALSO

40       uname(2)
41               get name and information about current kernel
42
43       explain_uname(3)
44               explain uname(2) errors
45
46       exit(2) terminate the calling process
47
49       libexplain version 1.4
50       Copyright (C) 2013 Peter Miller
51
52
53
54                                                       explain_uname_or_die(3)
Impressum