https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=d7f7d292d83e2a3cd41d8da66d5abe0951b331b0

commit d7f7d292d83e2a3cd41d8da66d5abe0951b331b0
Author: Corinna Vinschen <cori...@vinschen.de>
Date:   Wed Mar 7 21:52:29 2018 +0100

    Cygwin: reorder read/write calls in fhandler_socket_unix
    
    Signed-off-by: Corinna Vinschen <cori...@vinschen.de>

Diff:
---
 winsup/cygwin/fhandler.h | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/winsup/cygwin/fhandler.h b/winsup/cygwin/fhandler.h
index 13f4068..7d45aa0 100644
--- a/winsup/cygwin/fhandler.h
+++ b/winsup/cygwin/fhandler.h
@@ -922,18 +922,19 @@ class fhandler_socket_unix : public fhandler_socket
   int shutdown (int how);
   int close ();
   int getpeereid (pid_t *pid, uid_t *euid, gid_t *egid);
+  ssize_t recvmsg (struct msghdr *msg, int flags);
   ssize_t recvfrom (void *ptr, size_t len, int flags,
                    struct sockaddr *from, int *fromlen);
-  ssize_t recvmsg (struct msghdr *msg, int flags);
   void __reg3 read (void *ptr, size_t& len);
-  ssize_t __stdcall readv (const struct iovec *, int iovcnt,
+  ssize_t __stdcall readv (const struct iovec *const iov, int iovcnt,
                           ssize_t tot = -1);
 
+  ssize_t sendmsg (const struct msghdr *msg, int flags);
   ssize_t sendto (const void *ptr, size_t len, int flags,
                  const struct sockaddr *to, int tolen);
-  ssize_t sendmsg (const struct msghdr *msg, int flags);
   ssize_t __stdcall write (const void *ptr, size_t len);
-  ssize_t __stdcall writev (const struct iovec *, int iovcnt, ssize_t tot = 
-1);
+  ssize_t __stdcall writev (const struct iovec *const iov, int iovcnt,
+                           ssize_t tot = -1);
   int setsockopt (int level, int optname, const void *optval,
                  __socklen_t optlen);
   int getsockopt (int level, int optname, const void *optval,

Reply via email to