No prototype for sockatmark

Ken Brown
Tue Feb 24 04:33:00 GMT 2015

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);


Problem reports:
Unsubscribe info:

More information about the Cygwin mailing list