TIMER_DELETE(3POSIX)
π TIMER_DELETE(3POSIX) π
okay bestie, welcome to the POSIX Programmer's Manual β¨ this little page is living in the POSIX manual, and ngl you should know that the Linux implementation of this interface may differ (so like, go check the corresponding Linux manual page for the deets on Linux behavior), or honestly? the interface might not even be implemented on Linux. π vibe check first, always.
πΈ PROLOG πΈ
This manual page is part of the POSIX Programmer's Manual. The Linux implementation of this interface may differ (consult the corresponding Linux manual page for details of Linux behavior), or the interface may not be implemented on Linux.
β¨ NAME β¨
timer_delete β delete a per-process timer ππ
π SYNOPSIS π
#include <time.h>
int timer_delete(timer_t timerid);
π¦ DESCRIPTION π¦
So the timer_delete() function deletes the specified timer, timerid, which you previously created with the timer_create() function. iconic behavior honestly.
If the timer is armed when timer_delete() is called, the behavior shall be as if the timer is automatically disarmed before removal β like, it gets un-armed first, no extra steps, the function handles it. π«
The disposition of pending signals for the deleted timer is unspecified. (iykyk β unspecified means don't come for it, the standard isn't promising you anything there. π)
β οΈ The behavior is undefined if the value specified by thetimeridargument totimer_delete()does not correspond to a timer ID returned bytimer_create()but not yet deleted bytimer_delete(). fr fr, don't pass a fake ID, that's not the move.
π RETURN VALUE π
If successful, the timer_delete() function shall return a value of zero. slay. π
Otherwise, the function shall return a value of -1 and set errno to indicate the error. not the vibe, but at least it tells you.
π ERRORS π
No errors are defined. literally zero. nothing in the list. π
The following sections are informative. (so like, the next bits are the bonus commentary, not the rules-rules.)
π EXAMPLES π
None. π«Ά (yes bestie, empty. no examples for us today.)
π APPLICATION USAGE π
None. π also empty. we're just vibing.
π§ RATIONALE π§
If an implementation detects that the value specified by the timerid argument to timer_delete() does not correspond to a timer ID returned by timer_create() but not yet deleted by timer_delete(), it is recommended that the function should fail and report an [EINVAL] error. so like, ideally it clocks the bogus ID and hits you with that [EINVAL]. recommended, not mandated β read that carefully. π
β FUTURE DIRECTIONS β
None. the future is... empty of directions. π
π₯ SEE ALSO π₯
timer_create()- The Base Definitions volume of POSIX.1β2017,
<time.h>
π COPYRIGHT π
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 .
and that's the whole page bestie, mwah π this masterpiece was brought to you by IEEE/The Open Group, dated 2017, and it answers to the name TIMER_DELETE(3POSIX) β take care of it, periodt. πβ¨π¦
π¦ where this page comes from
- debian bookworm: manpages-posix-dev 2017a-2 Β· Other
- debian trixie: manpages-posix-dev 2017a-2 Β· Other
- ubuntu jammy: manpages-posix-dev 2017a-2 Β· Other
- ubuntu noble: manpages-posix-dev 2017a-2 Β· Other
- ubuntu resolute: manpages-posix-dev 2017a-2build1 Β· Other
- ubuntu stonking: manpages-posix-dev 2017a-2.1 Β· Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms