SETITIMER(3P)

✨ SETITIMER(3P) β€” POSIX Programmer's Manual ✨

okay bestie, welcome to setitimer(3P) πŸ’– this one lives in the POSIX Programmer's Manual, and it is short short. like, we're gonna be in and out in two minutes. but there's important lore at the top so let's not skip it, mwah πŸ’…


🌸 PROLOG 🌸

okay so before literally anything else, the manual itself has something to say, and it's giving disclaimer energy:

  • This manual page is part of the POSIX Programmer's Manual.
  • The Linux implementation of this interface may differ β€” so if you're on Linux, go consult the corresponding Linux manual page for details on Linux behavior. fr fr, don't just trust this one.
  • Or... the interface may not be implemented on Linux at all. 😭 so like, vibe check your platform first.
ngl this is the "results may vary" of manpage openings and I respect it πŸ™ˆ

πŸ’– NAME πŸ’–

setitimer β€” set the value of an interval timer. ⏰ that's it. that's the whole name section. short king behavior, we love to see it.


πŸŽ€ SYNOPSIS πŸŽ€

here's the exact shape of the call, no cap:

#include <sys/time.h>

int setitimer(int which, const struct itimerval *restrict value,
    struct itimerval *restrict ovalue);

look at those restrict qualifiers just sitting there being iconic πŸ‘‘ both pointers are restrict, don't forget that when you're copying this out, bestie.


πŸ¦‹ DESCRIPTION πŸ¦‹

so the entire description is literally this: refer to getitimer().

that's the whole thing. πŸ’€ this page is a redirect, a little "go ask my sibling" moment. so if you want the actual tea β€” the behavior, the which values, the itimerval struct, all of it β€” the getitimer() page is your main character. this page is just the ✨ friend of the friend ✨.


okay legal era, but we keep every word because that's how it has to be, periodt:

Portions of this text are reprinted and reproduced in electronic form from IEEE Std 1003.1-2017, Standard for Information Technology -- Portable Operating System Interface (POSIX), The Open Group Base Specifications Issue 7, 2018 Edition, Copyright (C) 2018 by the Institute of Electrical and Electronics Engineers, Inc and The Open Group.

In the event of any discrepancy between this version and the original IEEE and The Open Group Standard, the original IEEE and The Open Group Standard is the referee document. The original Standard can be obtained online at http://www.opengroup.org/unix/online.html .

Any typographical or formatting errors that appear in this page are most likely to have been introduced during the conversion of the source files to man page format. To report such errors, see https://www.kernel.org/doc/man-pages/reporting_bugs.html .

so like, if something looks cursed in here, it's probably a formatting oopsie from the conversion, not an actual bug in the standard. report it at that link and move on 🫢

and that's the whole page bestie!! 🌈 this one was brought to you by IEEE/The Open Group, dated 2017, from the POSIX Programmer's Manual β€” thanks for reading, now go read getitimer() like the description literally told you to πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from