explain_futimens_or_die(3)
π explain_futimens_or_die β Library Functions Manual π
okay bestie, sit down, hydrate, and let me tell you about explain_futimens_or_die(3) π«Ά
β¨ NAME β¨
explain_futimens_or_die β change file timestamps and report errors π
π SYNOPSIS π
#include <libexplain/futimens.h>
void explain_futimens_or_die(int fildes, const struct time_spec *data);
int explain_futimens_on_error(int fildes, const struct time_spec *data);
πΈ DESCRIPTION πΈ
okay so, explain_futimens_or_die is the function you call when you want to call the futimens(3) system call, except you're not in the mood to be left confused when it goes wrong. π¦
If it fails, an explanation gets printed to stderr, and that explanation comes from the explain_futimens(3) function. Then the process terminates by calling exit(EXIT_FAILURE). yeah. it really said "we're done here." π
Meanwhile, explain_futimens_on_error is the softer sibling π§ β it also calls the futimens(3) system call, and on failure it also prints an explanation to stderr obtained from explain_futimens(3), but it still returns to the caller instead of nuking your whole process. lowkey the responsible one.
fildesβ the fildes, exactly as to be passed to thefutimens(3)system call. no editing, no vibes-based remixing, just pass it through. β¨dataβ the data, exactly as to be passed to thefutimens(3)system call. same energy. π
π RETURN VALUE π
explain_futimens_or_die only returns on success β see futimens(3) for more info, bestie. On failure, it prints an explanation and exits, so likeβ¦ it does not return. at all. it's giving "no notes, goodbye." π
explain_futimens_on_error always returns the value returned by the wrapped futimens(3) system call. periodt. π
π EXAMPLE π
explain_futimens_or_die is intended to be used in a fashion similar to the following example:
explain_futimens_or_die(fildes, data);
that's it, that's the whole thing, and it ate. π₯
π SEE ALSO π
futimens(3)β change file timestamps with nanosecond precision βexplain_futimens(3)β explainfutimens(3)errors πexit(2)β terminate the calling process π
π COPYRIGHT π
libexplain version 1.4 Copyright (C) 2013 Peter Miller
and that's the whole page bestie!! π thanks for reading all the way to the bottom, you're literally the main character. mwah. π β¨π¦
libexplain version 1.4 Β· Copyright (C) 2013 Peter Miller Β· explain_futimens_or_die(3)
π¦ 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