explain_adjtime_or_die(3)
π explain_adjtime_or_die(3) π
okay so bestie, welcome to the Library Functions Manual β this is the page for explain_adjtime_or_die, and trust, it's giving "smoothly tune kernel clock and report errors" energy. no cap. β¨
πΈ NAME πΈ
explain_adjtime_or_die β smoothly tune kernel clock and report errors π°οΈβ¨
π SYNOPSIS π
#include <libexplain/adjtime.h>
void explain_adjtime_or_die(const struct timeval *delta, struct timeval
*olddelta);
int explain_adjtime_on_error(const struct timeval *delta, struct timeval
*olddelta);
like. two functions. one header. so demure. π«Ά
π¦ DESCRIPTION π¦
so the explain_adjtime_or_die function is what you call when you wanna hit up the adjtime(2) system call. and if it fails?? an explanation gets printed to stderr β obtained from the explain_adjtime(3) function β and then the process literally terminates by calling exit(EXIT_FAILURE). it said bye for real. π
and then the explain_adjtime_on_error function also calls the adjtime(2) system call, and on failure an explanation is also printed to stderr (again from explain_adjtime(3)), except this one is chill and still returns to the caller. no dramatic exit. main character but emotionally stable. π
deltaβ the delta, exactly as to be passed to theadjtime(2)system call. exactly. as-is. no edits, no notes. πolddeltaβ the olddelta, exactly as to be passed to theadjtime(2)system call. same vibe, same rule. π
β RETURN VALUE β
the explain_adjtime_or_die function only returns on success β peep adjtime(2) for more info. on failure it prints an explanation and exits, so likeβ¦ it does not return. it's not coming back. it left the group chat. π
the explain_adjtime_on_error function, though? it always returns the value returned by the wrapped adjtime(2) system call. every time. reliable queen. π
π EXAMPLE π
the explain_adjtime_or_die function is intended to be used in a fashion similar to the following example:
explain_adjtime_or_die(delta, olddelta);
that's it. that's the whole example. short, sweet, iconic. π
π SEE ALSO π
adjtime(2)β smoothly tune kernel clock π°οΈexplain_adjtime(3)β explainadjtime(2)errors πexit(2)β terminate the calling process πͺπ¨
π COPYRIGHT π
libexplain version 1.4 Copyright (C) 2009 Peter Miller
and that's the tea, bestie π this was explain_adjtime_or_die(3) from the Library Functions Manual, libexplain version 1.4, Copyright (C) 2009 Peter Miller β go tune that kernel clock, you absolute icon π
β¨π¦
π¦ 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) 2009, 2011 Peter Miller
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms