timer_delete(2)
π timer_delete(2) β it's giving "bye bestie" π
okay so real talk: this is a page from the System Calls Manual, and it's all about yeeting a POSIX per-process timer out of existence. no cap. π
β¨ NAME β¨
timer_delete β delete a POSIX per-process timer
like, the timer's gone. it doesn't get a goodbye party. π¦
π LIBRARY π
Real-time library β that's librt, and yes bestie you gotta link it with -lrt. π
πΈ SYNOPSIS πΈ
#include <time.h>
int timer_delete(timer_t timerid);
π§ Feature Test Macro Requirements for glibc π§
(and if you wanna peek at the whole feature_test_macros(7) lore, go off)
timer_delete():_POSIX_C_SOURCE >= 199309L
π« DESCRIPTION π«
okay so timer_delete() deletes the timer whose ID is given in timerid. that's the whole job. that's the vibe.
and here's the part where it gets considerate π«Ά β if the timer was armed at the time of this call, it gets disarmed before being deleted. so it's not out here haunting you after it's gone, bestie.
β οΈ okay so this is the important bit: the treatment of any pending signal generated by the deleted timer is unspecified. not "it does X", not "it does Y" β unspecified. so don't build your whole personality on a specific outcome there, fr fr. π
π₯ RETURN VALUE π₯
- On success,
timer_delete()returns0. slay. β¨ - On failure,
-1is returned, anderrnois set to indicate the error. π
π ERRORS π
EINVALβtimeridis not a valid timer ID. like, that's not a timer, that's a random number you made up. π
π STANDARDS π
POSIX.1-2024. periodt. π
π HISTORY π
- Linux 2.6.
POSIX.1-2001.
so it's been iconic for a minute. π
π SEE ALSO π
and that's the whole page!! Linux man-pages 6.20, dated 2025-10-29, and honestly? she ate. go delete a timer, bestie, you got this πβ¨π¦π
π¦ where this page comes from
- arch rolling: man-pages 6.20-1 Β· BSD-2-Clause AND BSD-3-Clause AND BSD-4.3TAHOE AND BSD-4-Clause-UC AND GPL-1.0-or-later AND GPL-2.0-only AND GPL-2.0-or-later AND GPL-3.0-or-later AND LGPL-3.0-linking-exception AND LGPL-3.0-or-later AND LicenseRef-Public-Domain AND LicenseRef-UltraPermissive AND Linux-man-pages-1-para AND Linux-man-pages-copyleft AND Linux-man-pages-copyleft-2-para AND Linux-man-pages-copyleft-var AND MIT AND Spencer-94
- nixpkgs unstable: man-pages 6.20
- π the page's license: Linux-man-pages-copyleft
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms