CVS commit: src/sys/kern
"YAMAMOTO Takashi" <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.cvs |
|---|---|
| Message-ID | <[email protected]> |
Module Name: src Committed By: yamt Date: Sun Mar 15 12:00:59 UTC 2026 Modified Files: src/sys/kern: kern_time.c Log Message: 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.231 -r1.232 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.