Ved Gupta commented on a discussion: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1541#note_161283


I looked into the current repo, RTEMS has a `clock_getres()` but not the C23 
`timespec_getres()`.

`timespec_getres()` exists in the FreeBSD's `libc` , hence I don't think it is 
thread specific.

Here's the github link - 

https://github.com/freebsd/freebsd-src/blob/main/lib/libc/gen/timespec_getres.c

Since RTEMS already has `clock_getres()`, implementing `timespec_getres()` 
would be a small addition mapping `TIME_UTC`/`TIME_MONOTONIC` to the 
corresponding POSIX clock IDs. I haven't added it in this patch — should I?

-- 
View it on GitLab: 
https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1541#note_161283
You're receiving this email because of your account on gitlab.rtems.org. 
Unsubscribe from this thread: 
https://gitlab.rtems.org/-/namespace/49/sent_notifications/6-6y04yox4ma79kci49yyvn1qjl-1d/unsubscribe
 | Manage all notifications: https://gitlab.rtems.org/-/profile/notifications | 
Help: https://gitlab.rtems.org/help


_______________________________________________
bugs mailing list
[email protected]
http://lists.rtems.org/mailman/listinfo/bugs

Reply via email to