explain_lutimes_or_die(3)
π explain_lutimes_or_die β the libexplain manual, bestie edition π
okay so welcome to explain_lutimes_or_die(3), a page from the Library Functions Manual, and it's literally about changing file timestamps and yelling about it when things go wrong. no cap. π¦
β¨ NAME β¨
explain_lutimes_or_die β modify file timestamps and report errors
πΈ SYNOPSIS πΈ
#include <libexplain/lutimes.h>
void explain_lutimes_or_die(const char *pathname, const struct timeval
*data);
int explain_lutimes_on_error(const char *pathname, const struct timeval
*data);
π DESCRIPTION π
The explain_lutimes_or_die function is used to call the lutimes(3) system call. On failure an explanation will be printed to stderr, obtained from the explain_lutimes(3) function, and then the process terminates by calling exit(EXIT_FAILURE).
The explain_lutimes_on_error function is used to call the lutimes(3) system call. On failure an explanation will be printed to stderr, obtained from the explain_lutimes(3) function, but still returns to the caller.
pathname
- The pathname, exactly as to be passed to the
lutimes(3)system call.
data
- The data, exactly as to be passed to the
lutimes(3)system call.
like. one of these two functions ends you (the process, not you personally, bestie π«Ά) and the other one just tells you what went wrong and hands you back the mess. iconic behaviour honestly.
π RETURN VALUE π
The explain_lutimes_or_die function only returns on success, see lutimes(3) for more information. On failure, prints an explanation and exits, it does not return.
The explain_lutimes_on_error function always returns the value return by the wrapped lutimes(3) system call.
β οΈ heads up: if explain_lutimes_or_die fails, that's it, it's giving final answer. no return, no coming back. π
π EXAMPLE π
The explain_lutimes_or_die function is intended to be used in a fashion similar to the following example:
explain_lutimes_or_die(pathname, data);
β SEE ALSO β
lutimes(3)β modify file timestampsexplain_lutimes(3)β explainlutimes(3)errorsexit(2)β terminate the calling process
π COPYRIGHT π
libexplain version 1.4 Copyright (C) 2013 Peter Miller
and that's the whole page, bestie π this lil' manual page for explain_lutimes_or_die(3) is living in the Library Functions Manual section of your man pages, and it's signed off by libexplain version 1.4 with Copyright (C) 2013 Peter Miller. go forth and timestamp things safely. periodt. β¨π§πΈ
π¦ where this page comes from
- debian bookworm: libexplain-dev 1.4.D001-12+b1 Β· LGPL-3.0-or-later
- debian trixie: libexplain-dev 1.4.D001-16 Β· LGPL-3.0-or-later
- ubuntu jammy: libexplain-dev 1.4.D001-12 Β· LGPL-3.0-or-later
- ubuntu noble: libexplain-dev 1.4.D001-13 Β· LGPL-3.0-or-later
- ubuntu resolute: libexplain-dev 1.4.D001-16 Β· LGPL-3.0-or-later
- Copyright (C) 2013 Peter Miller
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms