libexplain
1.4.D001
|
#include <libexplain/ac/stdio.h>
#include <libexplain/ac/unistd.h>
#include <libexplain/output.h>
#include <libexplain/truncate.h>
Go to the source code of this file.
Functions | |
void | explain_truncate_or_die (const char *pathname, off_t length) |
void explain_truncate_or_die | ( | const char * | pathname, |
off_t | length | ||
) |
The explain_truncate_or_die function is used to call the truncate(2) system call. On failure an explanation will be printed to stderr, obtained from the explain_truncate(3) function, and then the process terminates by calling exit(EXIT_FAILURE)
.
pathname | The pathname, exactly as to be passed to the truncate(2) system call. |
length | The length, exactly as to be passed to the truncate(2) system call. |
explain_truncate_or_die(pathname, length);
Definition at line 27 of file truncate_or_die.c.