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() returns 0. slay. ✨
  • On failure, -1 is returned, and errno is set to indicate the error. 😭

πŸ’… ERRORS πŸ’…

  • EINVAL β€” timerid is 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