This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

No prototype for sockatmark


sockatmark was added to Cygwin recently, but its prototype wasn't added to /usr/include/sys/socket.h.  Is the following the right way to fix this, or is it a newlib issue?

Index: winsup/cygwin/include/sys/socket.h
===================================================================
RCS file: /cvs/src/src/winsup/cygwin/include/sys/socket.h,v
retrieving revision 1.12
diff -u -p -r1.12 socket.h
--- winsup/cygwin/include/sys/socket.h  31 May 2013 18:08:25 -0000      1.12
+++ winsup/cygwin/include/sys/socket.h  23 Feb 2015 23:03:12 -0000
@@ -43,6 +43,7 @@ extern "C"
                  socklen_t *__optlen);
   int shutdown (int, int);
   int socket (int __family, int __type, int __protocol);
+  int sockatmark (int __fd);
   int socketpair (int __domain, int __type, int __protocol, int *__socket_vec);

   struct servent *getservbyname (const char *__name, const char *__proto);

Ken

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]