[patch #9843] Sockets: declare msghdr->msg_iovlen as msg_iovlen_t

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[patch #9843] Sockets: declare msghdr->msg_iovlen as msg_iovlen_t

David GIRAULT-2
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/


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel
Reply | Threaded
Open this post in threaded view
|

[patch #9843] Sockets: declare msghdr->msg_iovlen as msg_iovlen_t

David GIRAULT-2
Update of patch #9843 (project lwip):

                  Status:                    None => Done                  
             Assigned to:                    None => goldsimon              
             Open/Closed:                    Open => Closed                

    _______________________________________________________

Follow-up Comment #1:

Applied, thanks for the patch.

    _______________________________________________________

Reply to this item at:

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

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


_______________________________________________
lwip-devel mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/lwip-devel