[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Minios-devel] [UNIKRAFT/NEWLIB PATCH 1/6] Align POLL* values in glue code with musl.



Hi Florian,

Looks good, thanks.

-- Felipe

Reviewed-by: Felipe Huici <felipe.huici@xxxxxxxxx>

============================================================
Dr. Felipe Huici
Chief Researcher, Systems and Machine Learning Group
NEC Laboratories Europe GmbH
Kurfuerstenanlage 36, D-69115 Heidelberg
Tel.  +49
(0)6221 4342-241
Fax:  +49
(0)6221 4342-155
 
e-mail:
felipe.huici@xxxxxxxxx
============================================================
Registered at Amtsgericht Mannheim, Germany, HRB728558

On 20.05.19, 13:31, "Minios-devel on behalf of Florian Schmidt" 
<minios-devel-bounces@xxxxxxxxxxxxxxxxxxxx on behalf of 
florian.schmidt@xxxxxxxxx> wrote:

    In turn, this helps lwip with its own definitions to not conflict with
    either of these libc implementations.
    
    Signed-off-by: Florian Schmidt <florian.schmidt@xxxxxxxxx>
    ---
     include/sys/poll.h | 18 +++++++++---------
     1 file changed, 9 insertions(+), 9 deletions(-)
    
    diff --git a/include/sys/poll.h b/include/sys/poll.h
    index 5e7afba..2afbbde 100644
    --- a/include/sys/poll.h
    +++ b/include/sys/poll.h
    @@ -59,21 +59,21 @@ struct pollfd {
      * POLLIN includes all of normal, band and urgent data.  Most poll handlers
      * on FreeBSD only treat it as "normal" data.
      */
    -#define POLLIN      0x0001   /* any readable data available */
    -#define POLLPRI     0x0002   /* OOB/Urgent readable data */
    -#define POLLOUT     0x0004   /* file descriptor is writeable */
    -#define POLLRDNORM  0x0040   /* non-OOB/URG data available */
    +#define POLLIN      0x001   /* any readable data available */
    +#define POLLPRI     0x002   /* OOB/Urgent readable data */
    +#define POLLOUT     0x004   /* file descriptor is writeable */
    +#define POLLRDNORM  0x040   /* non-OOB/URG data available */
     #define POLLWRNORM  POLLOUT  /* no write type differentiation */
    -#define POLLRDBAND  0x0080   /* OOB/Urgent readable data */
    -#define POLLWRBAND  0x0100   /* OOB/Urgent data can be written */
    +#define POLLRDBAND  0x080   /* OOB/Urgent readable data */
    +#define POLLWRBAND  0x100   /* OOB/Urgent data can be written */
     
     /*
      * These events are set if they occur regardless of whether they were
      * requested.
      */
    -#define POLLERR     0x0008   /* some poll error occurred */
    -#define POLLHUP     0x0010   /* file descriptor was "hung up" */
    -#define POLLNVAL    0x0020   /* requested events "invalid" */
    +#define POLLERR     0x008   /* some poll error occurred */
    +#define POLLHUP     0x010   /* file descriptor was "hung up" */
    +#define POLLNVAL    0x020   /* requested events "invalid" */
     
     int poll(struct pollfd _pfd[], nfds_t _nfds, int _timeout);
     
    -- 
    2.21.0
    
    
    _______________________________________________
    Minios-devel mailing list
    Minios-devel@xxxxxxxxxxxxxxxxxxxx
    https://lists.xenproject.org/mailman/listinfo/minios-devel

_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.