From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mout.kundenserver.de (mout.kundenserver.de [212.227.126.130]) by sourceware.org (Postfix) with ESMTPS id 73D8B3858D37 for ; Mon, 3 Apr 2023 10:56:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 73D8B3858D37 Authentication-Results: sourceware.org; dmarc=fail (p=none dis=none) header.from=cygwin.com Authentication-Results: sourceware.org; spf=fail smtp.mailfrom=cygwin.com Received: from calimero.vinschen.de ([24.134.7.25]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MAOa3-1pXzSN2pA3-00Bwv5; Mon, 03 Apr 2023 12:56:48 +0200 Received: by calimero.vinschen.de (Postfix, from userid 500) id 2EA81A80CED; Mon, 3 Apr 2023 12:56:48 +0200 (CEST) Date: Mon, 3 Apr 2023 12:56:48 +0200 From: Corinna Vinschen To: Chance Cc: cygwin@cygwin.com Subject: Re: MSG_MORE socket.h flag Message-ID: Reply-To: cygwin@cygwin.com Mail-Followup-To: Chance , cygwin@cygwin.com References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Provags-ID: V03:K1:FoBs5GjFwuCzQQSu+GZREXuoWc6jf051wS+vcS0kUwSq27SQ/iE ukZQvuRaOMyD2H9DxJmY9HK35Upj94sizEiYNF5Z4v4kZ5AoeniMlLngSfIJYu4d7fbNn5Q OQaIk3i8es4zn+cF0yxdKo0qc9444T8yQA3LTmMAQdcsVw5K4TzFrFX6kQzTzM9Sf4ohQYq GEm9+ltUJMy+4BHwXkWKw== UI-OutboundReport: notjunk:1;M01:P0:flcIB8DU/NE=;OJqK+FUbxiE6CzHrdQq6Y6aGgA/ 0Pge4aoYV+8tytp6Otrw5qHsgSHgddhLlV5Hi0dcOYPK6cSb5YiJ2JGE4mFLtOqFO33T724dy t8GJSlbJlRfx/4KJ49gfj8o2Uaf5DtPwzxqzqh6RGu/ZYt+H1ge2z+iwywHIwo212Y3JNNWmy DGe7FWFoo5KPBNozISEQWmE8JAWq03VbKXdPMV3e7wf5IgaDt1lfcwBSOdy55DmtYF+J6QtJn R/517mULMe+87m3rzVyG/zArJKS/qRD9O0ST2/f3M6EWxPieHg59anCJTTAm1XHgSwFBEjjrz NSdiZ6nT2sDRBieCDm9Y3J7gz80qAVPSgMnw/8+5DLu88jSsQL4hj8ZwQjQjNARVUgPdTab3W RndYXpP7lAa6KCtV9l2Z6qEIqHOGNdivepCvcYLRXM4bl3hHURzRDH2TsRHUYKSoGI5Mk4ukV 6E32I4gT5FuIuBDv/92CUQDptucjJ8/X6T4+6mj24tU2UUnhhsZB9Yze9GL5l0Zp+yI4yInqb Z41hX2ZnAapVUFR+eOcYq0iT+hfD9Le2OMWL4hkmeNBN+Z4tv49Z2N8x30pAK8THIlnSm/ZLH KlVpHFq2A86SFc7tPLMg52Q3i5L1EdMLsBSxteziveQ+F+FNfL2qRlvshD8jXJ4oIxGORtqYe DIGiXWc51LGn75DIojR2yaZmpWocFCIZZ/dPvvrGNw== X-Spam-Status: No, score=-97.7 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_DMARC_NONE,KAM_DMARC_STATUS,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2,SPF_FAIL,SPF_HELO_NONE,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On Apr 2 00:19, Chance via Cygwin wrote: > I've used cygwin in the past few years using the MSG_MORE flag when using > some socket functions I have no idea how you did that. MSG_MORE was never actually supported by Cygwin, and the (more or less) equivalent MSG_PARTIAL flag was never exposed into Cygwin user space. > but now it's not defined in cygwin\socket.h and It never was! I checked the history back until the year 2000. > MSG_EOR is using the value of MSG_MORE (0x8000). Above that in the socket.h > file there is a comment /* MSG_EOR is not supported. We use the > MSG_PARTIAL flag here */. I understand this as meaning MSG_EOR now works as > MSG_MORE would and that MSG_EOR is not usable. Just want some clarification > on this. It just means we're using the bit value of MSG_PARTIAL to expose a MSG_EOR flag into user space. It was introduced in 2019 because of POSIX header file compatibility, but it's unsupported and always results in sedn/recv returning EOPNOTSUPP. I'm still puzzled where you got the MSG_MORE definition from, though. Corinna