From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from omta001.cacentral1.a.cloudfilter.net (omta001.cacentral1.a.cloudfilter.net [3.97.99.32]) by sourceware.org (Postfix) with ESMTPS id B6E143858D39 for ; Mon, 3 Apr 2023 16:05:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B6E143858D39 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=Shaw.ca Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=shaw.ca Received: from shw-obgw-4004a.ext.cloudfilter.net ([10.228.9.227]) by cmsmtp with ESMTP id j2sgpnlnBuZMSjMg7ptYzj; Mon, 03 Apr 2023 16:05:07 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=shaw.ca; s=s20180605; t=1680537907; bh=yXeNugwz/EkynnGYVS2I7h6lgnZ/CAglvPtI2K4BR08=; h=Date:Reply-To:Subject:To:References:Cc:From:In-Reply-To; b=Rd8ice+xjIuvqymQ+TC5S2v99HH714yWgozFrPUuad3SljM2zXYHjvvKrmReUoFOf H0hf43A7fyjoE91tfhAkOmLx6nUen9lHLJZRgk7oHoKcFok4vhYbZJaR/WCienhE45 WZarepW7xn6m+hxYCqXA/8isLamFat5rKAcH0iz8oGPnQCen7nc0xhr6HRTTdZmDUR anxRN/s5B3JJTaDxMY/jUnr12Vg5KSlPyWsMhC7M666dyhB+/e3r1whrg0ITb+GZ5R rHnqM3g6ULP13Z8Fp5X6TU+VVPAFxQVmWLFThDl6OrG22N99MDy5psLcBgJp3GD+Ft szjF5aHwZOIHg== Received: from [10.0.0.5] ([184.64.102.149]) by cmsmtp with ESMTP id jMg6pSvbM3fOSjMg6pIjR1; Mon, 03 Apr 2023 16:05:07 +0000 X-Authority-Analysis: v=2.4 cv=J8G5USrS c=1 sm=1 tr=0 ts=642af933 a=DxHlV3/gbUaP7LOF0QAmaA==:117 a=DxHlV3/gbUaP7LOF0QAmaA==:17 a=IkcTkHD0fZMA:10 a=NEAV23lmAAAA:8 a=7392p9bmP1SmsWvOWsUA:9 a=QEXdDO2ut3YA:10 Message-ID: <62f59e2a-8360-e4a5-1460-3d0de5331fd8@Shaw.ca> Date: Mon, 3 Apr 2023 10:05:06 -0600 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.9.1 Reply-To: cygwin@cygwin.com Subject: Re: MSG_MORE socket.h flag Content-Language: en-CA To: cygwin@cygwin.com References: Cc: Chance From: Brian Inglis Organization: Inglis In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfJgmKkNLNNfWuDQtaOE+oLv9VrW7fz7RcrGCbI4/IHJtkHE2774dy1z/D2WoqDRMMmExS5FhKjNtZy/ft9Iv1TvywpcX65L20mFNg3FTSbhh9wFr1QO3 FXpiUR6jQCEcYSNZpJNCl6PPp6Yih+eJO1Jc/u9ZRbha1KxAEHiH+tu63D8MACSaLVPD6dC3TyRdlaDGt96m431zmnsFCwKBBmMVEqYTX3VAUroT+aV3kMn/ X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,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 2023-04-03 04:56, Corinna Vinschen via Cygwin wrote: > 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. Not on BSD likely Linux: https://github.com/torvalds/linux/blob/master/include/linux/socket.h#L298 check for symlinks on poster's system? -- Take care. Thanks, Brian Inglis Calgary, Alberta, Canada La perfection est atteinte Perfection is achieved non pas lorsqu'il n'y a plus rien à ajouter not when there is no more to add mais lorsqu'il n'y a plus rien à retirer but when there is no more to cut -- Antoine de Saint-Exupéry