X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 68AF13858D39
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1680519448;
	bh=KdryyAjYzSg/qIGnLIsmzzqOusZaCWkHmZLTJ6A/r38=;
	h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe:
	 List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc:
	 From;
	b=cD6vbY0Nv5oA6xiR6+q/+q/2JS/3ute+iBA9P6+W1uGg36t0POGleoTxIEXmdfALR
	 zYG8ESFDdta2OMEnGTeXg7WCOQEVDYnqceA2CVDn6BLuZXCAMq3LATKU8wV82UYOVi
	 rmkmFeP3u2NQ8sy87xgDnGKCQfWSaxZlNJIEjHI0=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 73D8B3858D37
Date: Mon, 3 Apr 2023 12:56:48 +0200
To: Chance <exertustfm@gmail.com>
Subject: Re: MSG_MORE socket.h flag
Message-ID: <ZCqw8BFY0XQhvG7D@calimero.vinschen.de>
Mail-Followup-To: Chance <exertustfm@gmail.com>, cygwin@cygwin.com
References: <CACq6C22yVYO9HPV+GYOJ6X0WACsjNKcjg82k0QTFp9v380+WQw@mail.gmail.com>
MIME-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CACq6C22yVYO9HPV+GYOJ6X0WACsjNKcjg82k0QTFp9v380+WQw@mail.gmail.com>
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
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: Corinna Vinschen via Cygwin <cygwin@cygwin.com>
Reply-To: cygwin@cygwin.com
Cc: Corinna Vinschen <corinna-cygwin@cygwin.com>, cygwin@cygwin.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

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

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