lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [patch #9843] Sockets: declare msghdr->msg_iovlen as msg_io


From: Joan Lledó
Subject: [lwip-devel] [patch #9843] Sockets: declare msghdr->msg_iovlen as msg_iovlen_t
Date: Sat, 10 Aug 2019 06:10:35 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0

URL:
  <https://savannah.nongnu.org/patch/?9843>

                 Summary: Sockets: declare msghdr->msg_iovlen as msg_iovlen_t
                 Project: lwIP - A Lightweight TCP/IP stack
            Submitted by: jllledo
            Submitted on: Sat 10 Aug 2019 12:10:33 PM CEST
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

In Linux, when using the system's sockets headers, struct msghdr->msg_iovlen
is not defined as int.
  - POSIX[1] says it must be int
  - My solution was:
    - add a typedef int msg_iovlen_t; in lwip's sockets.h
    - declare msg_iovlen as msg_iovlen_t inside struct msghdr in lwip's
sockets.h
    - let the user typedef msg_iovlen_t as the type they need for their
system
    - Line 253: declare i as msg_iovlen_t i;

More info at:

https://lists.nongnu.org/archive/html/lwip-devel/2019-07/msg00001.html



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 10 Aug 2019 12:10:33 PM CEST  Name:
0001-Sockets-declare-msghdr-msg_iovlen-as-msg_iovlen_t.patch  Size: 3KiB   By:
jllledo

<http://savannah.nongnu.org/patch/download.php?file_id=47317>

    _______________________________________________________

Reply to this item at:

  <https://savannah.nongnu.org/patch/?9843>

_______________________________________________
  Message sent via Savannah
  https://savannah.nongnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]