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.
_______________________________________________ bugs mailing list bugs@rtems.org http://lists.rtems.org/mailman/listinfo/bugs