ITIMERFIX(9)
π NAME π
okay so bestie, welcome to the itimerfix(9) kernel developer's manual page β yes, that's the manual name, we're folding it in right here. This one is all about itimerfix β check that a timeval value is valid, and correct π
β¨ SYNOPSIS β¨
#include <sys/time.h>
int
itimerfix(struct timeval *tv);
π¦ DESCRIPTION π¦
itimerfix is the little vibe check for your struct timeval *tv. It checks that the value in tv is valid β specifically, it wants 0 β€ tv->tv_sec && 0 β€ tv->tv_usec < 1000000 β and it also checks that the total time represented is at least one tick, or zero. no cap, that's the whole check π«Ά
And if the total represented time is nonzero but smaller than a tick? Then it gets adjusted to exactly one tick. slay, corrected β¨
π RETURN VALUES π
0β success, we love to see it πEINVALβ returned iftvis invalid π
π SEE ALSO π
π source/version + date sign-off: Debian, dated November 23, 2001 β xoxo, stay valid, bestie π
π¦ where this page comes from
- nixpkgs unstable: netbsd-source 11.0
- Copyright (c) 2001 The NetBSD Foundation, Inc
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms