delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/02/23/18:06:29

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; q=dns; s=default; b=rvR
e+VJ7ltaP8x7cXV4gdHb9iJ1jeLIB/CqTA4RbgzMZuVsXnHlGXUIrvZDZhzPOzEK
dpcZDQdkVAL0UQdTvRC6ZiPOJoIESJBgFoNOwyd5wBw7wU58hhAvR7aebAbmn1Ye
4XfvzgPYq1jDIP8KHcbyvkR1xS4FIesiPqNz+IPQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:message-id:date:from:mime-version:to:subject
:content-type:content-transfer-encoding; s=default; bh=XtEkJApa/
irS8Kd5jBKrzcWhYFY=; b=DRNPl7Ln/be2TLZjIMfdWa/xUAKTR5X+dY6EmjcZJ
rbEZcuoOUTsQCiJYo0FkQZ56WB9L1z37MVRZYxB/bEqqGTakgykl9UxLmiQXqY84
3/jwH9TtoGNKWhEWijZYmGtJQzYD6fZdbOzafD/81vnTh168Ba212E60LsJIMmRz
CE=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS,T_RP_MATCHES_RCVD autolearn=ham version=3.3.2
X-HELO: limerock01.mail.cornell.edu
X-CornellRouted: This message has been Routed already.
Message-ID: <54EBB262.3000301@cornell.edu>
Date: Mon, 23 Feb 2015 18:06:10 -0500
From: Ken Brown <kbrown AT cornell DOT edu>
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0
MIME-Version: 1.0
To: cygwin <cygwin AT cygwin DOT com>
Subject: No prototype for sockatmark
X-IsSubscribed: yes

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019