|
libexplain
1.4.D001
|
#include <libexplain/ac/errno.h>#include <libexplain/ac/sys/resource.h>#include <libexplain/getpriority.h>#include <libexplain/output.h>Go to the source code of this file.
Functions | |
| int | explain_getpriority_or_die (int which, int who) |
| int | explain_getpriority_on_error (int which, int who) |
| int explain_getpriority_on_error | ( | int | which, |
| int | who | ||
| ) |
The explain_getpriority_on_error function is used to call the getpriority(2) system call. On failure an explanation will be printed to stderr, obtained from the explain_getpriority(3) function.
| which | The which, exactly as to be passed to the getpriority(2) system call. |
| who | The who, exactly as to be passed to the getpriority(2) system call. |
int result = explain_getpriority_on_error(which, who); if (result < 0) { ...cope with error ...no need to print error message }
Definition at line 52 of file getpriority_or_die.c.
| int explain_getpriority_or_die | ( | int | which, |
| int | who | ||
| ) |
The explain_getpriority_or_die function is used to call the getpriority(2) system call. On failure an explanation will be printed to stderr, obtained from the explain_getpriority(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
| which | The which, exactly as to be passed to the getpriority(2) system call. |
| who | The who, exactly as to be passed to the getpriority(2) system call. |
int result = explain_getpriority_or_die(which, who);
Definition at line 27 of file getpriority_or_die.c.
1.7.6.1