explain_futimes_or_die(3)

πŸ“¦
version 1.4.D001 Β· 2 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu resolute

πŸ’– 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 β€” the fildes, exactly as to be passed to the futimes(3) system call. no notes, pass it through as-is πŸ’«
  • tv β€” the tv, exactly as to be passed to the futimes(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 πŸ‘€


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