TIMER_DELETE(2)
π TIMER_DELETE(2) π
okay bestie, so this one's from the System Calls Manual β it's timer_delete, and yes it does exactly what the name says. no cap.
β¨ NAME β¨
timer_delete β delete a per-process timer (REALTIME)
π LIBRARY π
POSIX Real-time Library (librt, -lrt)
like, link it with -lrt or she's not showing up to the function, fr fr.
π«Ά SYNOPSIS π«Ά
#include <time.h>
int
timer_delete(timer_t timerid);
πΈ DESCRIPTION πΈ
so the timer_delete() system call does one thing and it does it iconically: it deletes the timer you point at with timerid β and that timer had to have been created earlier by timer_create(2), no exceptions, she only works with her own kind π
and listen, if the timer is still armed when you call timer_delete()? the behavior is as if the timer gets automatically disarmed before it's removed. she doesn't leave a mess. she just goes.
also β pending signals for the deleted timer are cleared. gone. bye. not haunting you later. periodt. π§Ή
π RETURN VALUES π
- on a successful completion, the value
0is returned β¨ - otherwise, the value
-1is returned and the global variableerrnogets set to indicate the error π
π ERRORS π
the timer_delete() system call will fail if:
[EINVAL]β the timer ID specified by timerid is not a valid timer ID. like, that's not a real timer, bestie, i can't delete what doesn't exist π
π₯ SEE ALSO π₯
π STANDARDS π
the timer_delete() system call conforms to IEEE Std 1003.1-2004 (βPOSIX.1β). certified. validated. ate. π
β HISTORY β
Support for POSIX per-process timer first appeared in FreeBSD 7.0.
and that's the whole page, bestie π this one came to you from Debian, dated September 11, 2000 β so yeah, she's been iconic for a minute. mwah π β¨
π¦ where this page comes from
- debian bookworm: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- debian trixie: freebsd-manpages 12.2-2 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu jammy: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu noble: freebsd-manpages 12.2-1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu questing: freebsd-manpages 12.2-2
- ubuntu resolute: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- ubuntu stonking: freebsd-manpages 12.2-2build1 Β· BSD-2-Clause-FreeBSD AND BSD-4-Clause
- Copyright (c) 2005 David Xu <davidxu@FreeBSD.org>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms