CVS commit: [netbsd-11] src/sys/kern
"Martin Husemann" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: martin Date: Fri Apr 3 11:55:28 UTC 2026 Modified Files: src/sys/kern [netbsd-11]: kern_time.c Log Message: Pull up following revision(s) (requested by yamt in ticket #236): sys/kern/kern_time.c: revision 1.232 make posix timer family functions reject itimer timer ids we provide two sets of similar apis: * BSD itimer api (setitimer, ITIMER_xxx, and friends) * posix timer api (timer_create and friends) for some reason, some of posix timer functions (namely timer_settime, timer_gettime, timer_getoverrun, timer_delete) are allowed to operate on timer_id=2, which actually belongs to the BSD itimer. (ITIMER_PROF) it seems that it has always been this way since they were introduced on the nathanw_sa branch in 2001. 10 years later, in 2011, it got a bit worse by the addition of ITIMER_MONOTONIC, which is also accepted by the posix timer functions. as there seems to be no reasons to give the special treatment to these two itimers, this commit makes the posix timer functions reject them. To generate a diff of this commit: cvs rdiff -u -r1.228.2.2 -r1.228.2.3 src/sys/kern/kern_time.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.