RTEMS | contrib: Import libstdthreads from FreeBSD (!1541)

Ved Gupta (@Ved-Gupta) gitlab at rtems.org
Sun Oct 18 19:07:16 UTC 2026




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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20261018/fe701875/attachment.htm>


More information about the bugs mailing list