explain_futimes_or_die(3)
π explain_futimes_or_die(3) π
okay bestie, welcome to the Library Functions Manual page for explain_futimes_or_die β yes that's the whole name, yes it's a mouthful, no we're not shortening it, it's iconic π
β¨ NAME β¨
explain_futimes_or_die β change file timestamps and report errors π°οΈ
πΈ SYNOPSIS πΈ
#include <libexplain/futimes.h>
void explain_futimes_or_die(int fildes, const struct timeval *tv);
π¦ DESCRIPTION π¦
so the explain_futimes_or_die function is literally just here to call the futimes(3) system call for you. and if things go sideways? an explanation gets printed to stderr, grabbed from explain_futimes(3), and then the process terminates by calling exit(EXIT_FAILURE). no cap, it just ends it right there π
this function is intended to be used in a fashion similar to the following example:
explain_futimes_or_die(fildes, tv);
fildesβ thefildes, exactly as to be passed to thefutimes(3)system call. no notes, pass it through as-is π«tvβ thetv, exactly as to be passed to thefutimes(3)system call. same energy, straight through π«Ά
Returns:
this function only returns on success. on failure, it prints an explanation and exits. that's it, that's the deal π
π SEE ALSO π
futimes(3)β change file timestampsexplain_futimes(3)β explainfutimes(3)errorsexit(2)β terminate the calling process
π COPYRIGHT π
libexplain version 1.4 Copyright (C) 2008 Peter Miller
and that's the whole page, bestie, we ate πβ¨ this was explain_futimes_or_die(3) from the Library Functions Manual, brought to you by libexplain version 1.4, copyright (C) 2008 Peter Miller β 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) 2008, 2009, 2011 Peter Miller
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms