X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F016E385842A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1680537924; bh=R8qTrBvEAENalNdw/P/6tmVhqcdYjz7V2yj22CXL8lM=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=aETMV7xH7zTnXEuhVJ6RPAFWKGLFvpGSRjeixZlxd/4wt10Nb8TFTYXN4d5YOXz9d J95KdFnnar04N8Tn6ZbmZQb+pXtqvI0zB43d5flvUitIOVTLeX8zxtY1HYXGi5rOE2 +zIhhPMqyvwMvLwOSkZIATLhSsA1tYxk1tvvoW1k= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B6E143858D39 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 Subject: Re: MSG_MORE socket.h flag Content-Language: en-CA To: cygwin AT cygwin DOT com References: Organization: Inglis In-Reply-To: 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 X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.29 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Brian Inglis via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Brian Inglis , Chance Content-Type: text/plain; charset="utf-8"; Format="flowed" Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 333G5l08017848 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 -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple