RTEMS | poll.h is in both rtems and newlib (#5126)

Joel Sherrill (@joel) gitlab at rtems.org
Wed Sep 11 13:57:46 UTC 2024




Joel Sherrill commented on a discussion: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5126#note_111936


poll.h is from POSIX and was already there by the mid-90s (Issue 4, Version 2).

There is a proposal which has been around a while for C++ networking "extensions". This is supposed to be on track for C++23 or the next version per some discussion I found.

https://en.cppreference.com/w/cpp/experimental/networking

Ultimately, including as many POSIX headers as possible in newlib lets us build run-times and support packages without building the BSP first. We used to have to do that for some GNU languages. 

It also has a maintenance benefit as, in some cases, we end up sharing the header with Cygwin.

I will post an MR to remove poll.h from RTEMS before the end of the week.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/issues/5126#note_111936
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/20240911/a3899d7a/attachment.htm>


More information about the bugs mailing list