This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Addition of constant to devctl.h
- From: Joel Sherrill <joel at rtems dot org>
- To: Newlib <newlib at sourceware dot org>
- Date: Tue, 3 Sep 2019 15:39:12 -0500
- Subject: Addition of constant to devctl.h
- Reply-to: joel at rtems dot org
Hi
The FACE Technical Standard Edition 3.0 requires that devctl.h define
the constant SOCKCLOSE which may be used with posix_devctl().
I don't think any other target supports posix_devctl() and AFAIIK no
OS supprting devctl.h which isn't also trying to follow the FACE
Technical Standard. For newlib, that set is just RTEMS.
My best solution so far is to add it at the bottom of the rtems
specific sys/sockio.h and conditionalize the include of <sys/sockio.h>
in devctl.h on __rtems__.
Any thoughts?
--joel
.