Google Summer of Code | New APIs Added to POSIX Standard (Issue 8) (#69)

Joel Sherrill (@joel) gitlab at rtems.org
Fri May 2 22:35:59 UTC 2025




Joel Sherrill commented on a discussion: https://gitlab.rtems.org/rtems/programs/gsoc/-/issues/69#note_122328


@mez3n Hopefully this isn't too brutal. But I'm going to give references. :smile: 

- timespec_get() is from C11. POSIX versions before Issue 8 are based on C99. Issue 8 has timespec_get() and it is in time.h per https://pubs.opengroup.org/onlinepubs/9799919799/functions/timespec_get.html
- ppoll() is in poll.h per https://pubs.opengroup.org/onlinepubs/9799919799.2024edition/functions/poll.html. Does the RTEMS poll.h have it? Or does including poll.h give you a prototype. FWIW this is the kind of thing the psxhdr tests are checking. It has a test for poll() and not ppoll(). I looked at our poll.h. It only includes <sys/poll.h> and that does not prototype ppoll(). FreeBSD has ppoll(). This will be a bit more involved because the sys/poll.h file will need to be updated from FreeBSD and ppoll() imported to libbsd. @opticron @c-mauderer @chris Advice on this one appreciated. 

Yes. I think functional tests for everything that's only from POSIX is in psxtests. I see a c11 subdirectory in psxhdrs for timespec_get() prototype checking. A cfunctionality test for c11 threads is in sptests/spstdthreads01. The ppoll test will eventually go into libbsd.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/programs/gsoc/-/issues/69#note_122328
You're receiving this email because of your account on gitlab.rtems.org.


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


More information about the bugs mailing list