X-Recipient: archive-cygwin@delorie.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:date:from:to:cc:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=HZEQSQ399AqMpZaNOGL/yMWX9B/WgN7QSvhpetqFR+SY2XizFIhA8
	upRW48c0G5/beJC6yjq+2xQ2aZm8jAMM6Hw7pDrB6UauqEJf4b/xS+6Rsb8MQCgB
	i5ZyfO9vncx7eevaZnwVuHTQRthXLFv05345VIVt1Y6qzpDi3YRhl8=
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:date:from:to:cc:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=JlFVIgFKcnOT5I2MWcY2dGlabUI=; b=Eism9DeeSOrd7xaT7wJXsrmSFXy4
	L8iqgCYNuLAqEXAahZXV1RL9XSpas3E2XCbnF3BOHe/v1HvaqAEd9mumBSgsUwOF
	W/5sJe26xfxFfkAbMsdf32m6ivVSAhXCUosA/Ya12EbWO6kryAxaDmpaVo2O1psa
	pIwd5TO4FCh2mhE=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=-103.7 required=5.0 tests=AWL,BAYES_00,GOOD_FROM_CORINNA_CYGWIN,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 spammy=Edward, edward, cygwins, Cygwins
X-HELO: mout.kundenserver.de
Date: Wed, 24 Apr 2019 18:43:58 +0200
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: "Brabant, Edward H CTR (USA)" <edward.brabant.ctr@navy.mil>
Cc: cygwin@cygwin.com
Subject: Re: bug:  cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard
Message-ID: <20190424164358.GG30041@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: "Brabant, Edward H CTR (USA)" <edward.brabant.ctr@navy.mil>,	cygwin@cygwin.com
References: <0873126E9D101A4A983DE738F4346DBC9114A8F3@NAWESPSCXM03V.nadsuswe.nads.navy.mil>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha256;	protocol="application/pgp-signature"; boundary="0rSojgWGcpz+ezC3"
Content-Disposition: inline
In-Reply-To: <0873126E9D101A4A983DE738F4346DBC9114A8F3@NAWESPSCXM03V.nadsuswe.nads.navy.mil>
User-Agent: Mutt/1.11.3 (2019-02-01)

--0rSojgWGcpz+ezC3
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Apr 24 15:47, Brabant, Edward H CTR (USA) wrote:
> 1. In cygwin-devel v3.0.2-1, <cygwin/socket.h> does not #define
> MSG_EOR.  In bash, with CWD=3D/usr/include, the command "find . -name
> '*.h' -exec grep -Hn MSG_EOR {} \;" does not find any matches.
>=20
> 2. The Open Group man page for <sys/socket.h> contains the following
> excerpt regarding #define MSG_EOR:
>=20
>      The <sys/socket.h> header shall define the following symbolic
>      constants with distinct values for use as the valid values for
>      the msg_flags field in the msghdr structure, or the flags
>      parameter in recv(), recvfrom(), recvmsg(), send(), sendmsg(), or
>      sendto() calls:
> ...
> MSG_EOR
> Terminates a record (if supported by the protocol).
> ...

MSG_EOR is not supported by underlying WinSock.  There's a similar
MSG_PARTIAL, but it's defined differently.  It's also unsupported by
all of the predefined protocols, including UDP.

Since MSG_EOR isn't implemented in the underlying transport layer,
there's no way to implement it in userspace.  That's why it's not
defined in Cygwin's headers.  If you have an idea how to implement
this in plain userspace, feel free to provide patches.


Corinna

--=20
Corinna Vinschen
Cygwin Maintainer

--0rSojgWGcpz+ezC3
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlzAkk0ACgkQ9TYGna5E
T6A3xw//bHPc1184YoTotkIfnbsHeoq0JsaUN2vdUjRGNJhiIE9r46aew78G8Ewp
8KULdhbXkUl6/jjkNK0IHgDGJN+ph8NkBCDUsz4xEpQ4ZCD25NbWt3VoEnomZmtU
osy9C3aCIjOxOkqJNCZvpM3J1TI0hQIumlm1UnLGP49RstgQi5HJyQEjikTOG/r/
Mp2elhbXOk5A9BnYykIc8fZZKMb5U4f1yKFeNlJeQazkDXgirAeTjY0NimOeG2Lu
paKqQGoUWZbe6GzBqaGlNyi20U3Pmbt5F1MPJdU6MDxrt37L4usKCP0WgRPwgDKi
Xk/zJ8mp3wdyqRpRxtIYyQlPwLgIB3F7/dEt1KvPoVGrKE+ZuK5TieH8H4lrDgNY
I8/0VE9FrdzgkdNYYn+2JqpFkkMgjx86KQBt6UxazG5SUH8wRyzOvI+0tGhGwdPB
D3tIEbaJhrmhxBm1/FzSiPatQGJoxffvMCkgAp7rV+1/yQb5O7Azeeql8xNmrNDM
jpnkleQD3XXF+PAGT7FN4trAB5H1xNV4ba9HUu3XFKkr4n8mwPVTru91Yvxi9asw
Dmu5tEWLY2P7QNm1By4DoQg5pVw3RjMo3rUzedooDSQyFIe0/g/B/5VSsrzk4a4t
LsNw1AHX85jM4HUykI+oHPO7nKCZv1Y5aIQRvk7TNmSdtW3Q6/Q=
=45v8
-----END PGP SIGNATURE-----

--0rSojgWGcpz+ezC3--
