public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* bug:  cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard
@ 2019-04-24 15:48 Brabant, Edward H CTR (USA)
  2019-04-24 16:44 ` Corinna Vinschen
  0 siblings, 1 reply; 9+ messages in thread
From: Brabant, Edward H CTR (USA) @ 2019-04-24 15:48 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 1888 bytes --]

1. In cygwin-devel v3.0.2-1, <cygwin/socket.h> does not #define MSG_EOR.
In bash, with CWD=/usr/include, the command "find . -name '*.h' -exec grep -Hn MSG_EOR {} \;" does not find any matches.

2. The Open Group man page for <sys/socket.h> contains the following excerpt regarding #define MSG_EOR:

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

3. Reproducing the bug

3.1 This bug occurs at compile time.

3.2 Code snippet

#include <sys/socket.h>
#define BUF_SEND_NUM_BYTES 1024

int socketFdIpv4 = socket(AF_INET, SOCK_RAW, IPPROTO_IP);

(invocations of bind(), accept(), listen(), connect() - not needed to reproduce the compile time problem)

char bufSend[BUF_SEND_NUM_BYTES];

(initialization of bufSend contents omitted - not needed to reproduce the compile time problem)

ssize_t sendReturn = send(socketFdIpv4, bufSend, BUF_SEND_NUM_BYTES, MSG_EOR | MSG_OOB);

3.3 Compiler command

gcc -c -Werror -DPOSIX_FLAVOR=POSIX_OPEN_GROUP -DSCA_4_1_OE_AEP_FULL -o jtelSca4_1TestCaseOeAepProviderUofProfileFull.o jtelSca4_1TestCaseOeAepProviderUof.c

3.4 Compiler output

error: ‘MSG_EOR’ undeclared (first use in this function); did you mean ‘MSG_OOB’?
  ssize_t sendReturn = send(socketFdIpv4, bufSend, BUF_SEND_NUM_BYTES, MSG_EOR | MSG_OOB);
                                                                       ^~~~~~~
                                                                       MSG_OOB

V/r,
Ed Brabant
Joint Tactical Networking Center (JTNC)
JTNC Test & Evaluation Laboratory (JTEL)
Sr Staff Software Engineer, G2 Software Systems

[-- Attachment #2: cygcheck.out --]
[-- Type: application/octet-stream, Size: 32283 bytes --]


Cygwin Configuration Diagnostics
Current System Time: Wed Apr 24 16:06:04 2019

Windows 10 Enterprise Ver 10.0 Build 15063 

Path:	C:\tools\cygwin\usr\local\bin
	C:\tools\cygwin\bin
	C:\Python27
	C:\Python27\Scripts
	C:\Program Files\Docker\Docker\Resources\bin
	C:\ProgramData\Boxstarter
	C:\WINDOWS\system32
	C:\WINDOWS
	C:\WINDOWS\System32\Wbem
	C:\WINDOWS\System32\WindowsPowerShell\v1.0
	C:\Program Files\Tumbleweed\Desktop Validator
	C:\Program Files\Tumbleweed\Desktop Validator\x86
	C:\Program Files (x86)\HID Global\ActivClient
	C:\Program Files\HID Global\ActivClient
	C:\ProgramData\chocolatey\bin
	C:\Program Files\Git\cmd
	C:\Program Files\Git\mingw64\bin
	C:\Program Files\Git\usr\bin
	C:\Tools\minGW\minGW8.1.0\mingw32\bin
	C:\Tools\cygwin\bin
	C:\Program Files\Java\jre1.8.0_191\bin
	C:\Program Files\McAfee\Solidcore\Tools\GatherInfo
	C:\Program Files\McAfee\Solidcore\Tools\Scanalyzer
	C:\Program Files\McAfee\Solidcore
	C:\Program Files\McAfee\Solidcore\Tools\ScGetCerts
	C:\HashiCorp\Vagrant\bin
	C:\Program Files\LLVM\bin
	C:\Program Files (x86)\Reservoir\rcheck
	C:\Program Files (x86)\GnuPG\bin
	C:\Program Files\TortoiseSVN\bin
	C:\Program Files\nodejs
	C:\Program Files\Microsoft VS Code\bin
	C:\Tools\omniORB-4.1.6-win64-vc10-py27\bin\x86_win32
	C:\Program Files\Java\jdk1.8.0_211\bin
	C:\Program Files\TortoiseGit\bin
	C:\Users\ebrabant\AppData\Local\Microsoft\WindowsApps

Output from C:\tools\cygwin\bin\id.exe
UID: 2147534636(AD+ebrabant)
GID: 2147484161(AD+Domain Users)
2147484161(AD+Domain Users)
197613(JTNC-DEV-03+docker-users)
545(Users)
4(INTERACTIVE)
66049(CONSOLE LOGON)
11(Authenticated Users)
15(This Organization)
4095(CurrentSession)
66048(LOCAL)
1069205(Smartcard Logon Detected)
70145(Authentication authority asserted identity)
266241(This Organization Certificate)
401408(Medium Mandatory Level)

SysDir: C:\WINDOWS\system32
WinDir: C:\WINDOWS

USER = 'AD+ebrabant'
PWD = '/cygdrive/c/svn_repos/cert_artifacts/trunk/sca4.1products/oe/tcts_II/2019Mar25/scaArtifacts/supportingArtifacts/sourceAnalysis'
HOME = '/home/ebrabant'

USERDOMAIN = 'AD'
OS = 'Windows_NT'
COMMONPROGRAMFILES = 'C:\Program Files\Common Files'
RCHECK_HOME = 'C:\Program Files (x86)\Reservoir\rcheck'
PROCESSOR_LEVEL = '6'
PSModulePath = 'C:\ProgramData\Boxstarter;C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules'
CommonProgramW6432 = 'C:\Program Files\Common Files'
CommonProgramFiles(x86) = 'C:\Program Files (x86)\Common Files'
LANG = 'en_US.UTF-8'
TZ = 'America/Los_Angeles'
HOSTNAME = 'JTNC-DEV-03'
PUBLIC = 'C:\Users\Public'
OLDPWD = '/usr/include'
UATDATA = 'C:\WINDOWS\CCM\UATData\D9F8C395-CAB8-491d-B8AC-179A1FE1BE77'
USERNAME = 'ebrabant'
ChocolateyInstall = 'C:\ProgramData\chocolatey'
JAVA_HOME = 'C:\Program Files\Java\jdk1.8.0_211'
LOGONSERVER = '\\SAN-A-DC-03'
PROCESSOR_ARCHITECTURE = 'AMD64'
LOCALAPPDATA = 'C:\Users\ebrabant\AppData\Local'
CLASSPATH = '.;'
COMPUTERNAME = 'JTNC-DEV-03'
FPS_BROWSER_APP_PROFILE_STRING = 'Internet Explorer'
!:: = '::\'
DEFLOGDIR = 'C:\ProgramData\McAfee\Endpoint Security\Logs'
SYSTEMDRIVE = 'C:'
USERPROFILE = 'C:\Users\ebrabant'
PATHEXT = '.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'
SYSTEMROOT = 'C:\WINDOWS'
USERDOMAIN_ROAMINGPROFILE = 'AD'
PROCESSOR_IDENTIFIER = 'Intel64 Family 6 Model 158 Stepping 9, GenuineIntel'
GRADLE_HOME = 'C:\ProgramData\chocolatey\lib\gradle\tools\gradle-5.3.1'
TMP = '/tmp'
PROCESSOR_REVISION = '9e09'
FPS_BROWSER_USER_PROFILE_STRING = 'Default'
PROFILEREAD = 'true'
USERDNSDOMAIN = 'AD.SPAWAR.NAVY.MIL'
NUMBER_OF_PROCESSORS = '8'
ProgramW6432 = 'C:\Program Files'
COMSPEC = 'C:\WINDOWS\system32\cmd.exe'
APPDATA = 'C:\Users\ebrabant\AppData\Roaming'
SHELL = '/bin/bash'
TERM = 'xterm'
WINDIR = 'C:\WINDOWS'
ProgramData = 'C:\ProgramData'
SHLVL = '1'
MINTTY_SHORTCUT = '/cygdrive/c/ProgramData/Microsoft/Windows/Start Menu/Programs/Cygwin/Cygwin64 Terminal.lnk'
PRINTER = '\\JTNC-FS01\JTNC-HPLJM605'
PROGRAMFILES = 'C:\Program Files'
ALLUSERSPROFILE = 'C:\ProgramData'
TEMP = '/tmp'
SESSIONNAME = 'Console'
CYGWIN_HOME = 'C:\Tools\cygwin\'
ANT_HOME = 'C:\ProgramData\chocolatey\lib\ant\apache-ant-1.10.1'
ProgramFiles(x86) = 'C:\Program Files (x86)'
PS1 = '\[\e]0;\w\a\]\n\[\e[32m\]\u@\h \[\e[33m\]\w\[\e[0m\]\n\$ '
HOMEDRIVE = 'C:'
INFOPATH = '/usr/local/info:/usr/share/info:/usr/info'
HOMEPATH = '\Users\ebrabant'
ORIGINAL_PATH = '/cygdrive/c/Python27:/cygdrive/c/Python27/Scripts:/cygdrive/c/Program Files/Docker/Docker/Resources/bin:/cygdrive/c/ProgramData/Boxstarter:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/cygdrive/c/WINDOWS/System32/WindowsPowerShell/v1.0:/cygdrive/c/Program Files/Tumbleweed/Desktop Validator:/cygdrive/c/Program Files/Tumbleweed/Desktop Validator/x86:/cygdrive/c/Program Files (x86)/HID Global/ActivClient:/cygdrive/c/Program Files/HID Global/ActivClient:/cygdrive/c/ProgramData/chocolatey/bin:/cygdrive/c/Program Files/Git/cmd:/cygdrive/c/Program Files/Git/mingw64/bin:/cygdrive/c/Program Files/Git/usr/bin:/cygdrive/c/Tools/minGW/minGW8.1.0/mingw32/bin:/cygdrive/c/Tools/cygwin/bin:/cygdrive/c/Program Files/Java/jre1.8.0_191/bin:/cygdrive/c/Program Files/McAfee/Solidcore/Tools/GatherInfo:/cygdrive/c/Program Files/McAfee/Solidcore/Tools/Scanalyzer:/cygdrive/c/Program Files/McAfee/Solidcore:/cygdrive/c/Program Files/McAfee/Solidcore/Tools/ScGetCerts:/cygdrive/c/HashiCorp/Vagrant/bin:/cygdrive/c/Program Files/LLVM/bin:/cygdrive/c/Program Files (x86)/Reservoir/rcheck:/cygdrive/c/Program Files (x86)/GnuPG/bin:/cygdrive/c/Program Files/TortoiseSVN/bin:/cygdrive/c/Program Files/nodejs:/cygdrive/c/Program Files/Microsoft VS Code/bin:/cygdrive/c/Tools/omniORB-4.1.6-win64-vc10-py27/bin/x86_win32:/cygdrive/c/Program Files/Java/jdk1.8.0_211/bin:/cygdrive/c/Program Files/TortoiseGit/bin:/cygdrive/c/Users/ebrabant/AppData/Local/Microsoft/WindowsApps'
EXECIGNORE = '*.dll'
_ = '/usr/bin/cygcheck'

HKEY_CURRENT_USER\Software\Cygwin
HKEY_CURRENT_USER\Software\Cygwin\Installations
  (default) = '\??\C:\tools\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\Installations
  (default) = '\??\C:\tools\cygwin'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygwin\setup
  (default) = 'C:\tools\cygwin'

obcaseinsensitive set to 1

Cygwin installations found in the registry:
  System: Key: c3851c815b7231fc Path: C:\tools\cygwin
  User:   Key: c3851c815b7231fc Path: C:\tools\cygwin

c:  hd  NTFS    975482Mb  40% CP CS UN PA FC    QU  
d:  cd             N/A    N/A                       
e:  hd  NTFS   3815317Mb   7% CP CS UN PA FC    QU  FantomHD jtnc-dev-03 backup
z:  net NTFS    950226Mb  84% CP CS UN PA FC    QU  DBXDW8V1 OS DATA SSD

C:\tools\cygwin      /          system  binary,auto
C:\tools\cygwin\bin  /usr/bin   system  binary,auto
C:\tools\cygwin\lib  /usr/lib   system  binary,auto
cygdrive prefix      /cygdrive  user    binary,posix=0,auto

Found: C:\tools\cygwin\bin\awk
Found: C:\Program Files\Git\usr\bin\awk.exe
Warning: C:\tools\cygwin\bin\awk hides C:\Program Files\Git\usr\bin\awk.exe
Found: C:\Tools\cygwin\bin\awk
 -> C:\tools\cygwin\bin\gawk.exe
Found: C:\tools\cygwin\bin\bash.exe
Found: C:\Program Files\Git\usr\bin\bash.exe
Warning: C:\tools\cygwin\bin\bash.exe hides C:\Program Files\Git\usr\bin\bash.exe
Found: C:\Tools\cygwin\bin\bash.exe
Found: C:\tools\cygwin\bin\cat.exe
Found: C:\Program Files\Git\usr\bin\cat.exe
Warning: C:\tools\cygwin\bin\cat.exe hides C:\Program Files\Git\usr\bin\cat.exe
Found: C:\Tools\cygwin\bin\cat.exe
Found: C:\tools\cygwin\bin\cp.exe
Found: C:\Program Files\Git\usr\bin\cp.exe
Warning: C:\tools\cygwin\bin\cp.exe hides C:\Program Files\Git\usr\bin\cp.exe
Found: C:\Tools\cygwin\bin\cp.exe
Found: C:\tools\cygwin\bin\cpp.exe
Found: C:\Tools\minGW\minGW8.1.0\mingw32\bin\cpp.exe
Warning: C:\tools\cygwin\bin\cpp.exe hides C:\Tools\minGW\minGW8.1.0\mingw32\bin\cpp.exe
Found: C:\Tools\cygwin\bin\cpp.exe
Not Found: crontab
Found: C:\tools\cygwin\bin\find.exe
Found: C:\WINDOWS\system32\find.exe
Warning: C:\tools\cygwin\bin\find.exe hides C:\WINDOWS\system32\find.exe
Found: C:\Program Files\Git\usr\bin\find.exe
Warning: C:\tools\cygwin\bin\find.exe hides C:\Program Files\Git\usr\bin\find.exe
Found: C:\Tools\cygwin\bin\find.exe
Found: C:\tools\cygwin\bin\gcc.exe
Found: C:\Tools\minGW\minGW8.1.0\mingw32\bin\gcc.exe
Warning: C:\tools\cygwin\bin\gcc.exe hides C:\Tools\minGW\minGW8.1.0\mingw32\bin\gcc.exe
Found: C:\Tools\cygwin\bin\gcc.exe
Found: C:\Tools\minGW\minGW8.1.0\mingw32\bin\gdb.exe
Found: C:\tools\cygwin\bin\grep.exe
Found: C:\Program Files\Git\usr\bin\grep.exe
Warning: C:\tools\cygwin\bin\grep.exe hides C:\Program Files\Git\usr\bin\grep.exe
Found: C:\Tools\cygwin\bin\grep.exe
Found: C:\tools\cygwin\bin\kill.exe
Found: C:\Program Files\Git\usr\bin\kill.exe
Warning: C:\tools\cygwin\bin\kill.exe hides C:\Program Files\Git\usr\bin\kill.exe
Found: C:\Tools\cygwin\bin\kill.exe
Found: C:\tools\cygwin\bin\ld.exe
Found: C:\Tools\minGW\minGW8.1.0\mingw32\bin\ld.exe
Warning: C:\tools\cygwin\bin\ld.exe hides C:\Tools\minGW\minGW8.1.0\mingw32\bin\ld.exe
Found: C:\Tools\cygwin\bin\ld.exe
Found: C:\tools\cygwin\bin\ls.exe
Found: C:\Program Files\Git\usr\bin\ls.exe
Warning: C:\tools\cygwin\bin\ls.exe hides C:\Program Files\Git\usr\bin\ls.exe
Found: C:\Tools\cygwin\bin\ls.exe
Found: C:\tools\cygwin\bin\make.exe
Found: C:\Tools\cygwin\bin\make.exe
Found: C:\tools\cygwin\bin\mv.exe
Found: C:\Program Files\Git\usr\bin\mv.exe
Warning: C:\tools\cygwin\bin\mv.exe hides C:\Program Files\Git\usr\bin\mv.exe
Found: C:\Tools\cygwin\bin\mv.exe
Found: C:\Program Files\Git\usr\bin\patch.exe
Found: C:\tools\cygwin\bin\perl.exe
Found: C:\Program Files\Git\usr\bin\perl.exe
Warning: C:\tools\cygwin\bin\perl.exe hides C:\Program Files\Git\usr\bin\perl.exe
Found: C:\Tools\cygwin\bin\perl.exe
Found: C:\tools\cygwin\bin\rm.exe
Found: C:\Program Files\Git\usr\bin\rm.exe
Warning: C:\tools\cygwin\bin\rm.exe hides C:\Program Files\Git\usr\bin\rm.exe
Found: C:\Tools\cygwin\bin\rm.exe
Found: C:\tools\cygwin\bin\sed.exe
Found: C:\Program Files\Git\usr\bin\sed.exe
Warning: C:\tools\cygwin\bin\sed.exe hides C:\Program Files\Git\usr\bin\sed.exe
Found: C:\Tools\cygwin\bin\sed.exe
Found: C:\Program Files\Git\usr\bin\ssh.exe
Found: C:\tools\cygwin\bin\sh.exe
Found: C:\Program Files\Git\usr\bin\sh.exe
Warning: C:\tools\cygwin\bin\sh.exe hides C:\Program Files\Git\usr\bin\sh.exe
Found: C:\Tools\cygwin\bin\sh.exe
Found: C:\tools\cygwin\bin\tar.exe
Found: C:\Program Files\Git\usr\bin\tar.exe
Warning: C:\tools\cygwin\bin\tar.exe hides C:\Program Files\Git\usr\bin\tar.exe
Found: C:\Tools\cygwin\bin\tar.exe
Found: C:\tools\cygwin\bin\test.exe
Found: C:\Program Files\Git\usr\bin\test.exe
Warning: C:\tools\cygwin\bin\test.exe hides C:\Program Files\Git\usr\bin\test.exe
Found: C:\Tools\cygwin\bin\test.exe
Found: C:\Program Files (x86)\Reservoir\rcheck\test
Warning: C:\tools\cygwin\bin\test.exe hides C:\Program Files (x86)\Reservoir\rcheck\test
Found: C:\tools\cygwin\bin\vi.exe
Found: C:\Program Files\Git\usr\bin\vi
Warning: C:\tools\cygwin\bin\vi.exe hides C:\Program Files\Git\usr\bin\vi
Found: C:\Tools\cygwin\bin\vi.exe
Found: C:\Program Files\Git\usr\bin\vim.exe

   39k 2016/09/19 C:\tools\cygwin\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygargp-0.dll" v0.0 ts=2016-09-19 02:13
   29k 2018/12/09 C:\tools\cygwin\bin\cygatomic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygatomic-1.dll" v0.0 ts=2018-12-08 22:53
   19k 2018/12/20 C:\tools\cygwin\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygattr-1.dll" v0.0 ts=2018-12-20 09:48
  246k 2019/03/05 C:\tools\cygwin\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygblkid-1.dll" v0.0 ts=2019-03-05 20:06
   64k 2017/02/22 C:\tools\cygwin\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygbz2-1.dll" v0.0 ts=2017-02-22 07:22
   39k 2017/09/03 C:\tools\cygwin\bin\cygcrypt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypt-0.dll" v0.0 ts=2017-09-03 08:18
 2354k 2019/03/01 C:\tools\cygwin\bin\cygcrypto-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.0.0.dll" v0.0 ts=2019-03-01 18:59
 1552k 2017/09/28 C:\tools\cygwin\bin\cygdb-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb-5.3.dll" v0.0 ts=2017-09-28 20:05
  119k 2017/09/28 C:\tools\cygwin\bin\cygdb_cxx-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_cxx-5.3.dll" v0.0 ts=2017-09-28 20:06
  569k 2017/09/28 C:\tools\cygwin\bin\cygdb_sql-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_sql-5.3.dll" v0.0 ts=2017-09-28 20:06
  347k 2019/03/05 C:\tools\cygwin\bin\cygfdisk-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygfdisk-1.dll" v0.0 ts=2019-03-05 20:06
   27k 2015/11/17 C:\tools\cygwin\bin\cygffi-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygffi-6.dll" v0.0 ts=2015-11-17 22:14
   65k 2017/12/05 C:\tools\cygwin\bin\cygformw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygformw-10.dll" v0.0 ts=2017-12-05 08:15
  122k 2018/12/17 C:\tools\cygwin\bin\cyggc-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggc-1.dll" v0.0 ts=2018-12-17 07:14
  119k 2018/01/16 C:\tools\cygwin\bin\cyggc-2.dll - os=4.0 img=0.0 sys=5.2
                  "cyggc-2.dll" v0.0 ts=2018-01-16 05:46
   70k 2018/12/09 C:\tools\cygwin\bin\cyggcc_s-seh-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggcc_s-seh-1.dll" v0.0 ts=2018-12-08 19:56
   39k 2016/10/10 C:\tools\cygwin\bin\cyggdbm-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm-4.dll" v0.0 ts=2016-10-10 09:26
   13k 2016/10/10 C:\tools\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm_compat-4.dll" v0.0 ts=2016-10-10 09:26
  527k 2017/01/21 C:\tools\cygwin\bin\cyggmp-10.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmp-10.dll" v0.0 ts=2017-01-21 18:25
  148k 2018/12/09 C:\tools\cygwin\bin\cyggomp-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggomp-1.dll" v0.0 ts=2018-12-08 20:21
  732k 2017/04/01 C:\tools\cygwin\bin\cygguile-17.dll - os=4.0 img=0.0 sys=5.2
                  "cygguile-17.dll" v0.0 ts=2017-04-01 13:04
 1333k 2018/08/07 C:\tools\cygwin\bin\cygguile-2.0-22.dll - os=4.0 img=0.0 sys=5.2
                  "cygguile-2.0-22.dll" v0.0 ts=2018-08-07 08:10
   33k 2017/02/13 C:\tools\cygwin\bin\cyghistory7.dll - os=4.0 img=0.0 sys=5.2
                  "cyghistory7.dll" v0.0 ts=2017-02-11 22:39
 1009k 2015/02/20 C:\tools\cygwin\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygiconv-2.dll" v0.0 ts=2015-02-20 17:07
   42k 2016/10/23 C:\tools\cygwin\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
                  "cygintl-8.dll" v0.0 ts=2016-10-23 07:17
 1304k 2017/11/04 C:\tools\cygwin\bin\cygisl-15.dll - os=4.0 img=0.0 sys=5.2
                  "cygisl-15.dll" v0.0 ts=2017-11-04 20:36
   35k 2018/05/29 C:\tools\cygwin\bin\cygltdl-7.dll - os=4.0 img=0.0 sys=5.2
                  "cygltdl-7.dll" v0.0 ts=2018-05-29 15:34
  139k 2017/05/10 C:\tools\cygwin\bin\cyglzma-5.dll - os=4.0 img=0.0 sys=5.2
                  "cyglzma-5.dll" v0.0 ts=2017-05-10 01:17
  125k 2018/03/18 C:\tools\cygwin\bin\cygmagic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmagic-1.dll" v0.0 ts=2018-03-18 15:17
  168k 2018/01/23 C:\tools\cygwin\bin\cygman-2-7-6-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygman-2-7-6-1.dll" v0.0 ts=2018-01-23 20:22
   22k 2018/01/23 C:\tools\cygwin\bin\cygmandb-2-7-6-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmandb-2-7-6-1.dll" v0.0 ts=2018-01-23 20:22
   33k 2017/12/05 C:\tools\cygwin\bin\cygmenuw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygmenuw-10.dll" v0.0 ts=2017-12-05 08:15
   92k 2018/03/17 C:\tools\cygwin\bin\cygmpc-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpc-3.dll" v0.0 ts=2018-03-17 17:05
  346k 2017/11/04 C:\tools\cygwin\bin\cygmpfr-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpfr-4.dll" v0.0 ts=2017-11-04 18:48
  432k 2019/02/02 C:\tools\cygwin\bin\cygmpfr-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpfr-6.dll" v0.0 ts=2019-02-02 18:25
  317k 2017/12/05 C:\tools\cygwin\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygncursesw-10.dll" v0.0 ts=2017-12-05 08:13
 1019k 2018/04/09 C:\tools\cygwin\bin\cygp11-kit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygp11-kit-0.dll" v0.0 ts=2018-04-09 01:55
   15k 2017/12/05 C:\tools\cygwin\bin\cygpanelw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygpanelw-10.dll" v0.0 ts=2017-12-05 08:14
  475k 2017/04/23 C:\tools\cygwin\bin\cygpcre-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpcre-1.dll" v0.0 ts=2017-04-24 00:50
 2209k 2018/12/01 C:\tools\cygwin\bin\cygperl5_26.dll - os=4.0 img=0.0 sys=5.2
                  "cygperl5_26.dll" v0.0 ts=2018-12-01 07:22
   39k 2015/04/09 C:\tools\cygwin\bin\cygpipeline-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpipeline-1.dll" v0.0 ts=2015-04-09 21:04
   41k 2016/07/13 C:\tools\cygwin\bin\cygpopt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpopt-0.dll" v0.0 ts=2016-07-13 06:16
  315k 2018/12/09 C:\tools\cygwin\bin\cygquadmath-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygquadmath-0.dll" v0.0 ts=2018-12-08 22:57
  219k 2017/02/13 C:\tools\cygwin\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
                  "cygreadline7.dll" v0.0 ts=2017-02-11 22:39
   11k 2015/07/17 C:\tools\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygsigsegv-2.dll" v0.0 ts=2015-07-17 22:35
  150k 2019/03/05 C:\tools\cygwin\bin\cygsmartcols-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygsmartcols-1.dll" v0.0 ts=2019-03-05 20:06
  407k 2019/03/01 C:\tools\cygwin\bin\cygssl-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-1.0.0.dll" v0.0 ts=2019-03-01 18:59
   12k 2017/11/13 C:\tools\cygwin\bin\cygssp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygssp-0.dll" v0.0 ts=2017-11-13 21:52
 1400k 2018/12/09 C:\tools\cygwin\bin\cygstdc++-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygstdc++-6.dll" v0.0 ts=2018-12-08 21:15
   67k 2018/03/19 C:\tools\cygwin\bin\cygtasn1-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygtasn1-6.dll" v0.0 ts=2018-03-19 21:41
   58k 2017/12/05 C:\tools\cygwin\bin\cygticw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygticw-10.dll" v0.0 ts=2017-12-05 08:13
 1612k 2018/08/16 C:\tools\cygwin\bin\cygunistring-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygunistring-2.dll" v0.0 ts=2018-08-16 20:33
   27k 2019/03/05 C:\tools\cygwin\bin\cyguuid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyguuid-1.dll" v0.0 ts=2019-03-05 20:06
   83k 2017/03/03 C:\tools\cygwin\bin\cygz.dll - os=4.0 img=0.0 sys=5.2
                  "cygz.dll" v0.0 ts=2017-03-03 21:42
 3408k 2019/03/05 C:\tools\cygwin\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
                  "cygwin1.dll" v0.0 ts=2019-03-05 18:57
    Cygwin DLL version info:
        DLL version: 3.0.2
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 338
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5

   39k 2016/09/19 C:\Tools\cygwin\bin\cygargp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygargp-0.dll" v0.0 ts=2016-09-19 02:13
   29k 2018/12/09 C:\Tools\cygwin\bin\cygatomic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygatomic-1.dll" v0.0 ts=2018-12-08 22:53
   19k 2018/12/20 C:\Tools\cygwin\bin\cygattr-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygattr-1.dll" v0.0 ts=2018-12-20 09:48
  246k 2019/03/05 C:\Tools\cygwin\bin\cygblkid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygblkid-1.dll" v0.0 ts=2019-03-05 20:06
   64k 2017/02/22 C:\Tools\cygwin\bin\cygbz2-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygbz2-1.dll" v0.0 ts=2017-02-22 07:22
   39k 2017/09/03 C:\Tools\cygwin\bin\cygcrypt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypt-0.dll" v0.0 ts=2017-09-03 08:18
 2354k 2019/03/01 C:\Tools\cygwin\bin\cygcrypto-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygcrypto-1.0.0.dll" v0.0 ts=2019-03-01 18:59
 1552k 2017/09/28 C:\Tools\cygwin\bin\cygdb-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb-5.3.dll" v0.0 ts=2017-09-28 20:05
  119k 2017/09/28 C:\Tools\cygwin\bin\cygdb_cxx-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_cxx-5.3.dll" v0.0 ts=2017-09-28 20:06
  569k 2017/09/28 C:\Tools\cygwin\bin\cygdb_sql-5.3.dll - os=4.0 img=0.0 sys=5.2
                  "cygdb_sql-5.3.dll" v0.0 ts=2017-09-28 20:06
  347k 2019/03/05 C:\Tools\cygwin\bin\cygfdisk-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygfdisk-1.dll" v0.0 ts=2019-03-05 20:06
   27k 2015/11/17 C:\Tools\cygwin\bin\cygffi-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygffi-6.dll" v0.0 ts=2015-11-17 22:14
   65k 2017/12/05 C:\Tools\cygwin\bin\cygformw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygformw-10.dll" v0.0 ts=2017-12-05 08:15
  122k 2018/12/17 C:\Tools\cygwin\bin\cyggc-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggc-1.dll" v0.0 ts=2018-12-17 07:14
  119k 2018/01/16 C:\Tools\cygwin\bin\cyggc-2.dll - os=4.0 img=0.0 sys=5.2
                  "cyggc-2.dll" v0.0 ts=2018-01-16 05:46
   70k 2018/12/09 C:\Tools\cygwin\bin\cyggcc_s-seh-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggcc_s-seh-1.dll" v0.0 ts=2018-12-08 19:56
   39k 2016/10/10 C:\Tools\cygwin\bin\cyggdbm-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm-4.dll" v0.0 ts=2016-10-10 09:26
   13k 2016/10/10 C:\Tools\cygwin\bin\cyggdbm_compat-4.dll - os=4.0 img=0.0 sys=5.2
                  "cyggdbm_compat-4.dll" v0.0 ts=2016-10-10 09:26
  527k 2017/01/21 C:\Tools\cygwin\bin\cyggmp-10.dll - os=4.0 img=0.0 sys=5.2
                  "cyggmp-10.dll" v0.0 ts=2017-01-21 18:25
  148k 2018/12/09 C:\Tools\cygwin\bin\cyggomp-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyggomp-1.dll" v0.0 ts=2018-12-08 20:21
  732k 2017/04/01 C:\Tools\cygwin\bin\cygguile-17.dll - os=4.0 img=0.0 sys=5.2
                  "cygguile-17.dll" v0.0 ts=2017-04-01 13:04
 1333k 2018/08/07 C:\Tools\cygwin\bin\cygguile-2.0-22.dll - os=4.0 img=0.0 sys=5.2
                  "cygguile-2.0-22.dll" v0.0 ts=2018-08-07 08:10
   33k 2017/02/13 C:\Tools\cygwin\bin\cyghistory7.dll - os=4.0 img=0.0 sys=5.2
                  "cyghistory7.dll" v0.0 ts=2017-02-11 22:39
 1009k 2015/02/20 C:\Tools\cygwin\bin\cygiconv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygiconv-2.dll" v0.0 ts=2015-02-20 17:07
   42k 2016/10/23 C:\Tools\cygwin\bin\cygintl-8.dll - os=4.0 img=0.0 sys=5.2
                  "cygintl-8.dll" v0.0 ts=2016-10-23 07:17
 1304k 2017/11/04 C:\Tools\cygwin\bin\cygisl-15.dll - os=4.0 img=0.0 sys=5.2
                  "cygisl-15.dll" v0.0 ts=2017-11-04 20:36
   35k 2018/05/29 C:\Tools\cygwin\bin\cygltdl-7.dll - os=4.0 img=0.0 sys=5.2
                  "cygltdl-7.dll" v0.0 ts=2018-05-29 15:34
  139k 2017/05/10 C:\Tools\cygwin\bin\cyglzma-5.dll - os=4.0 img=0.0 sys=5.2
                  "cyglzma-5.dll" v0.0 ts=2017-05-10 01:17
  125k 2018/03/18 C:\Tools\cygwin\bin\cygmagic-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmagic-1.dll" v0.0 ts=2018-03-18 15:17
  168k 2018/01/23 C:\Tools\cygwin\bin\cygman-2-7-6-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygman-2-7-6-1.dll" v0.0 ts=2018-01-23 20:22
   22k 2018/01/23 C:\Tools\cygwin\bin\cygmandb-2-7-6-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygmandb-2-7-6-1.dll" v0.0 ts=2018-01-23 20:22
   33k 2017/12/05 C:\Tools\cygwin\bin\cygmenuw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygmenuw-10.dll" v0.0 ts=2017-12-05 08:15
   92k 2018/03/17 C:\Tools\cygwin\bin\cygmpc-3.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpc-3.dll" v0.0 ts=2018-03-17 17:05
  346k 2017/11/04 C:\Tools\cygwin\bin\cygmpfr-4.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpfr-4.dll" v0.0 ts=2017-11-04 18:48
  432k 2019/02/02 C:\Tools\cygwin\bin\cygmpfr-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygmpfr-6.dll" v0.0 ts=2019-02-02 18:25
  317k 2017/12/05 C:\Tools\cygwin\bin\cygncursesw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygncursesw-10.dll" v0.0 ts=2017-12-05 08:13
 1019k 2018/04/09 C:\Tools\cygwin\bin\cygp11-kit-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygp11-kit-0.dll" v0.0 ts=2018-04-09 01:55
   15k 2017/12/05 C:\Tools\cygwin\bin\cygpanelw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygpanelw-10.dll" v0.0 ts=2017-12-05 08:14
  475k 2017/04/23 C:\Tools\cygwin\bin\cygpcre-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpcre-1.dll" v0.0 ts=2017-04-24 00:50
 2209k 2018/12/01 C:\Tools\cygwin\bin\cygperl5_26.dll - os=4.0 img=0.0 sys=5.2
                  "cygperl5_26.dll" v0.0 ts=2018-12-01 07:22
   39k 2015/04/09 C:\Tools\cygwin\bin\cygpipeline-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygpipeline-1.dll" v0.0 ts=2015-04-09 21:04
   41k 2016/07/13 C:\Tools\cygwin\bin\cygpopt-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygpopt-0.dll" v0.0 ts=2016-07-13 06:16
  315k 2018/12/09 C:\Tools\cygwin\bin\cygquadmath-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygquadmath-0.dll" v0.0 ts=2018-12-08 22:57
  219k 2017/02/13 C:\Tools\cygwin\bin\cygreadline7.dll - os=4.0 img=0.0 sys=5.2
                  "cygreadline7.dll" v0.0 ts=2017-02-11 22:39
   11k 2015/07/17 C:\Tools\cygwin\bin\cygsigsegv-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygsigsegv-2.dll" v0.0 ts=2015-07-17 22:35
  150k 2019/03/05 C:\Tools\cygwin\bin\cygsmartcols-1.dll - os=4.0 img=0.0 sys=5.2
                  "cygsmartcols-1.dll" v0.0 ts=2019-03-05 20:06
  407k 2019/03/01 C:\Tools\cygwin\bin\cygssl-1.0.0.dll - os=4.0 img=0.0 sys=5.2
                  "cygssl-1.0.0.dll" v0.0 ts=2019-03-01 18:59
   12k 2017/11/13 C:\Tools\cygwin\bin\cygssp-0.dll - os=4.0 img=0.0 sys=5.2
                  "cygssp-0.dll" v0.0 ts=2017-11-13 21:52
 1400k 2018/12/09 C:\Tools\cygwin\bin\cygstdc++-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygstdc++-6.dll" v0.0 ts=2018-12-08 21:15
   67k 2018/03/19 C:\Tools\cygwin\bin\cygtasn1-6.dll - os=4.0 img=0.0 sys=5.2
                  "cygtasn1-6.dll" v0.0 ts=2018-03-19 21:41
   58k 2017/12/05 C:\Tools\cygwin\bin\cygticw-10.dll - os=4.0 img=0.0 sys=5.2
                  "cygticw-10.dll" v0.0 ts=2017-12-05 08:13
 1612k 2018/08/16 C:\Tools\cygwin\bin\cygunistring-2.dll - os=4.0 img=0.0 sys=5.2
                  "cygunistring-2.dll" v0.0 ts=2018-08-16 20:33
   27k 2019/03/05 C:\Tools\cygwin\bin\cyguuid-1.dll - os=4.0 img=0.0 sys=5.2
                  "cyguuid-1.dll" v0.0 ts=2019-03-05 20:06
   83k 2017/03/03 C:\Tools\cygwin\bin\cygz.dll - os=4.0 img=0.0 sys=5.2
                  "cygz.dll" v0.0 ts=2017-03-03 21:42
 3408k 2019/03/05 C:\Tools\cygwin\bin\cygwin1.dll - os=4.0 img=0.0 sys=5.2
                  "cygwin1.dll" v0.0 ts=2019-03-05 18:57
    Cygwin DLL version info:
        DLL version: 3.0.2
        DLL epoch: 19
        DLL old termios: 5
        DLL malloc env: 28
        Cygwin conv: 181
        API major: 0
        API minor: 338
        Shared data: 5
        DLL identifier: cygwin1
        Mount registry: 3
        Cygwin registry name: Cygwin
        Installations name: Installations
        Cygdrive default prefix: 
        Build date: 
        Shared id: cygwin1S5


Can't find the cygrunsrv utility, skipping services check.


Cygwin Package Information
Last downloaded files to: C:\tools\cygwin
Last downloaded files from: http://mirrors.kernel.org/sourceware/cygwin/

Package                  Version             Status
_autorebase              001007-1            OK
alternatives             1.3.30c-10          OK
base-cygwin              3.8-1               OK
base-files               4.2-4               OK
bash                     4.4.12-3            OK
binutils                 2.29-1              OK
bzip2                    1.0.6-3             OK
ca-certificates          2.22-1              OK
coreutils                8.26-2              OK
cygutils                 1.4.16-2            OK
cygwin                   3.0.2-1             OK
cygwin-devel             3.0.2-1             OK
dash                     0.5.9.1-1           OK
diffutils                3.5-2               OK
editrights               1.03-1              OK
file                     5.32-1              OK
findutils                4.6.0-1             OK
gawk                     4.2.1-1             OK
gcc-core                 7.4.0-1             OK
gcc-g++                  7.4.0-1             OK
getent                   2.18.90-4           OK
grep                     3.0-2               OK
groff                    1.22.3-1            OK
gzip                     1.8-1               OK
hostname                 3.13-1              OK
info                     6.6-1               OK
ipc-utils                1.0-2               OK
less                     530-1               OK
libargp                  20110921-3          OK
libatomic1               7.4.0-1             OK
libattr1                 2.4.48-2            OK
libblkid1                2.33.1-1            OK
libbz2_1                 1.0.6-3             OK
libcrypt0                2.1-1               OK
libdb5.3                 5.3.28-2            OK
libfdisk1                2.33.1-1            OK
libffi6                  3.2.1-2             OK
libgc1                   7.6.10-1            OK
libgc2                   7.6.2-3             OK
libgcc1                  7.4.0-1             OK
libgdbm4                 1.12-1              OK
libgmp10                 6.1.2-1             OK
libgomp1                 7.4.0-1             OK
libguile17               1.8.8-3             OK
libguile2.0_22           2.0.14-3            OK
libiconv                 1.14-3              OK
libiconv2                1.14-3              OK
libintl8                 0.19.8.1-2          OK
libisl15                 0.16.1-1            OK
libltdl7                 2.4.6-6             OK
liblzma5                 5.2.3-1             OK
libmpc3                  1.1.0-1             OK
libmpfr4                 3.1.6-1p1           OK
libmpfr6                 4.0.2-1             OK
libncursesw10            6.0-12.20171125     OK
libopenssl100            1.0.2r-1            OK
libp11-kit0              0.23.10-1           OK
libpcre1                 8.40-3              OK
libpipeline1             1.4.0-1             OK
libpopt-common           1.16-2              OK
libpopt0                 1.16-2              OK
libquadmath0             7.4.0-1             OK
libreadline7             7.0.3-3             OK
libsigsegv2              2.10-2              OK
libsmartcols1            2.33.1-1            OK
libssp0                  6.4.0-4             OK
libstdc++6               7.4.0-1             OK
libtasn1_6               4.13-1              OK
libunistring2            0.9.10-1            OK
libuuid1                 2.33.1-1            OK
login                    1.12-1              OK
make                     4.2.1-2             OK
man-db                   2.7.6.1-1           OK
mintty                   2.9.6-0             OK
ncurses                  6.0-12.20171125     OK
openssl                  1.0.2r-1            OK
p11-kit                  0.23.10-1           OK
p11-kit-trust            0.23.10-1           OK
perl                     5.26.3-1            OK
perl_autorebase          5.26.3-1            OK
perl_base                5.26.3-1            OK
rebase                   4.4.4-1             OK
run                      1.3.4-2             OK
sed                      4.4-1               OK
tar                      1.29-1              OK
terminfo                 6.0-12.20171125     OK
tzcode                   2018i-1             OK
tzdata                   2018i-1             OK
util-linux               2.33.1-1            OK
vim-minimal              8.0.1567-1          OK
w32api-headers           5.0.4-1             OK
w32api-runtime           5.0.4-1             OK
which                    2.20-2              OK
windows-default-manifest 6.4-1               OK
xz                       5.2.3-1             OK
zlib0                    1.2.11-1            OK
Use -h to see help about each section

[-- Attachment #3: Type: text/plain, Size: 219 bytes --]


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bug:  cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard
  2019-04-24 15:48 bug: cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard Brabant, Edward H CTR (USA)
@ 2019-04-24 16:44 ` Corinna Vinschen
  2019-04-24 17:54   ` Eliot Moss
  0 siblings, 1 reply; 9+ messages in thread
From: Corinna Vinschen @ 2019-04-24 16:44 UTC (permalink / raw)
  To: Brabant, Edward H CTR (USA); +Cc: cygwin

[-- Attachment #1: Type: text/plain, Size: 1267 bytes --]

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=/usr/include, the command "find . -name
> '*.h' -exec grep -Hn MSG_EOR {} \;" does not find any matches.
> 
> 2. The Open Group man page for <sys/socket.h> contains the following
> excerpt regarding #define MSG_EOR:
> 
>      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

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bug: cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard
  2019-04-24 16:44 ` Corinna Vinschen
@ 2019-04-24 17:54   ` Eliot Moss
  2019-04-24 20:36     ` Hans-Bernhard Bröker
  0 siblings, 1 reply; 9+ messages in thread
From: Eliot Moss @ 2019-04-24 17:54 UTC (permalink / raw)
  To: cygwin, Brabant, Edward H CTR (USA)

On 4/24/2019 12:43 PM, Corinna Vinschen wrote:
> 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=/usr/include, the command "find . -name
>> '*.h' -exec grep -Hn MSG_EOR {} \;" does not find any matches.
>>
>> 2. The Open Group man page for <sys/socket.h> contains the following
>> excerpt regarding #define MSG_EOR:
>>
>>       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.

I don't have a direct interest in this issue, but I do have a wondering.
If Cygwin fails to define an error code -- even if the error cannot
actually happen under Cygwin -- isn't that a problem when trying to
compile imported software?  I wouldn't mind if the code were defined,
and a note included in comments that the error will not actually
occur under Cygwin ...

Is this a reasonable argument in support of including a define of the
error code?

Regards -- Eliot Mos

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bug: cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard
  2019-04-24 17:54   ` Eliot Moss
@ 2019-04-24 20:36     ` Hans-Bernhard Bröker
  2019-04-24 20:50       ` Eric Blake
  0 siblings, 1 reply; 9+ messages in thread
From: Hans-Bernhard Bröker @ 2019-04-24 20:36 UTC (permalink / raw)
  To: cygwin

Am 24.04.2019 um 19:54 schrieb Eliot Moss:
> On 4/24/2019 12:43 PM, Corinna Vinschen wrote:

>> 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.
> 
> I don't have a direct interest in this issue, but I do have a wondering.
> If Cygwin fails to define an error code -- even if the error cannot
> actually happen under Cygwin -- isn't that a problem when trying to
> compile imported software?  

That, like the question whether Cygwin is in any way obliged to define
it, ends up in an issue of Interpretation of Standardese.  The latter is
a language that looks deceptively much like ordinary English, but just
like Legalese, is not the same thing.

In the case at hand the point that needs interpretation is what that
parenthesis "(if supported by the protocol)" really means.  What is "the
protocol" it refers to?  What if several protocols are supported, which
differ in support for this?

The core issue, though, is: what is controlled by this "if", i.e. what
is the "then" effect?  And what's the "else"?

Cygwin's interpretation (whether by design or by accident) is: if this
never is true, the "shall define" a few lines above does not apply any
more.  If that's a correct interpretation, then source code would be
wrong to just assume presence of this macro unconditionally.  In that
case the actual problem that software noticing would be written
incorrectly (they should #ifdef MSG_EOR before using it).

An alternative interpretation could be that this entire parenthesis is
ultimately just a superfluous that adds no meaning to the standard; the
macro would have to be defined always; software would be entitled to
blindly assume its existence, and Cygwin would be wrong about this.

Either way, as Standardese goes, this is sufficiently unclear that it
IMHO calls for a defect report to the governing body of this standard.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bug: cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard
  2019-04-24 20:36     ` Hans-Bernhard Bröker
@ 2019-04-24 20:50       ` Eric Blake
  2019-04-25 15:28         ` Brian Inglis
  2019-04-25 17:08         ` Corinna Vinschen
  0 siblings, 2 replies; 9+ messages in thread
From: Eric Blake @ 2019-04-24 20:50 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 2079 bytes --]

On 4/24/19 3:36 PM, Hans-Bernhard Bröker wrote:
> Am 24.04.2019 um 19:54 schrieb Eliot Moss:
>> On 4/24/2019 12:43 PM, Corinna Vinschen wrote:
> 
>>> 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.
>>
>> I don't have a direct interest in this issue, but I do have a wondering.
>> If Cygwin fails to define an error code -- even if the error cannot
>> actually happen under Cygwin -- isn't that a problem when trying to
>> compile imported software?  
> 

Well, MSG_EOR is not an error, but we can certainly do better than not
defining it at all. My suggestion for the least-cost implementation:

- add a define for MSG_EOR to a non-zero value that is bitwise distinct
from other required MSG_ values
- return EOPNOTSUPP on attempts to use the flag in
send()/sendmsg()/sendto() (POSIX permits that failure for protocols that
don't support it - and none of Cygwin's protocols support it)
- optionally, document that MSG_EOR will never be set in the results
returned by recvmsg() (POSIX says it will only be set on protocols that
support it - and none of Cygwin's protocols support it)

This will at least let software compile that attempts to use it, and
hopefully that software is robust to the fact that send() may reject the
flag and that recvmsg() cannot reliably report use of that flag.

> 
> Either way, as Standardese goes, this is sufficiently unclear that it
> IMHO calls for a defect report to the governing body of this standard.

You're welcome to do so:
http://austingroupbugs.net/main_page.php

although I personally thought POSIX was clear enough that MSG_EOR is
required to be defined, even if only so that it can trigger send()
errors showing that it is unsupported.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bug: cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard
  2019-04-24 20:50       ` Eric Blake
@ 2019-04-25 15:28         ` Brian Inglis
  2019-04-25 15:48           ` Eric Blake
  2019-04-25 17:08         ` Corinna Vinschen
  1 sibling, 1 reply; 9+ messages in thread
From: Brian Inglis @ 2019-04-25 15:28 UTC (permalink / raw)
  To: cygwin

On 2019-04-24 14:50, Eric Blake wrote:
> On 4/24/19 3:36 PM, Hans-Bernhard Bröker wrote:
>> Am 24.04.2019 um 19:54 schrieb Eliot Moss:
>>> On 4/24/2019 12:43 PM, Corinna Vinschen wrote:
>>
>>>> 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.
>>>
>>> I don't have a direct interest in this issue, but I do have a wondering.
>>> If Cygwin fails to define an error code -- even if the error cannot
>>> actually happen under Cygwin -- isn't that a problem when trying to
>>> compile imported software?  
>>
> 
> Well, MSG_EOR is not an error, but we can certainly do better than not
> defining it at all. My suggestion for the least-cost implementation:
> 
> - add a define for MSG_EOR to a non-zero value that is bitwise distinct
> from other required MSG_ values
> - return EOPNOTSUPP on attempts to use the flag in
> send()/sendmsg()/sendto() (POSIX permits that failure for protocols that
> don't support it - and none of Cygwin's protocols support it)
> - optionally, document that MSG_EOR will never be set in the results
> returned by recvmsg() (POSIX says it will only be set on protocols that
> support it - and none of Cygwin's protocols support it)
> 
> This will at least let software compile that attempts to use it, and
> hopefully that software is robust to the fact that send() may reject the
> flag and that recvmsg() cannot reliably report use of that flag.
> 
>>
>> Either way, as Standardese goes, this is sufficiently unclear that it
>> IMHO calls for a defect report to the governing body of this standard.
> 
> You're welcome to do so:
> http://austingroupbugs.net/main_page.php
> 
> although I personally thought POSIX was clear enough that MSG_EOR is
> required to be defined, even if only so that it can trigger send()
> errors showing that it is unsupported.

Would it be allowed and valid to #define MSG_EOR 0 to simplify lack of support?

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bug: cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard
  2019-04-25 15:28         ` Brian Inglis
@ 2019-04-25 15:48           ` Eric Blake
  2019-04-25 18:36             ` Hans-Bernhard Bröker
  0 siblings, 1 reply; 9+ messages in thread
From: Eric Blake @ 2019-04-25 15:48 UTC (permalink / raw)
  To: cygwin


[-- Attachment #1.1: Type: text/plain, Size: 948 bytes --]

On 4/25/19 10:28 AM, Brian Inglis wrote:

>> - add a define for MSG_EOR to a non-zero value that is bitwise distinct
>> from other required MSG_ values
>> - return EOPNOTSUPP on attempts to use the flag in
>> send()/sendmsg()/sendto() (POSIX permits that failure for protocols that
>> don't support it - and none of Cygwin's protocols support it)

>>
>> although I personally thought POSIX was clear enough that MSG_EOR is
>> required to be defined, even if only so that it can trigger send()
>> errors showing that it is unsupported.
> 
> Would it be allowed and valid to #define MSG_EOR 0 to simplify lack of support?

No, because that implies that EVERY send() call is requesting MSG_EOR
and that it never fails.  Defining it to a distinct non-zero value makes
it possible to report EOPNOTSUPP.

-- 
Eric Blake, Principal Software Engineer
Red Hat, Inc.           +1-919-301-3226
Virtualization:  qemu.org | libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bug: cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard
  2019-04-24 20:50       ` Eric Blake
  2019-04-25 15:28         ` Brian Inglis
@ 2019-04-25 17:08         ` Corinna Vinschen
  1 sibling, 0 replies; 9+ messages in thread
From: Corinna Vinschen @ 2019-04-25 17:08 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2006 bytes --]

On Apr 24 15:50, Eric Blake wrote:
> On 4/24/19 3:36 PM, Hans-Bernhard Bröker wrote:
> > Am 24.04.2019 um 19:54 schrieb Eliot Moss:
> >> On 4/24/2019 12:43 PM, Corinna Vinschen wrote:
> > 
> >>> 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.
> >>
> >> I don't have a direct interest in this issue, but I do have a wondering.
> >> If Cygwin fails to define an error code -- even if the error cannot
> >> actually happen under Cygwin -- isn't that a problem when trying to
> >> compile imported software?  
> > 
> 
> Well, MSG_EOR is not an error, but we can certainly do better than not
> defining it at all. My suggestion for the least-cost implementation:
> 
> - add a define for MSG_EOR to a non-zero value that is bitwise distinct
> from other required MSG_ values
> - return EOPNOTSUPP on attempts to use the flag in
> send()/sendmsg()/sendto() (POSIX permits that failure for protocols that
> don't support it - and none of Cygwin's protocols support it)
> - optionally, document that MSG_EOR will never be set in the results
> returned by recvmsg() (POSIX says it will only be set on protocols that
> support it - and none of Cygwin's protocols support it)
> 
> This will at least let software compile that attempts to use it, and
> hopefully that software is robust to the fact that send() may reject the
> flag and that recvmsg() cannot reliably report use of that flag.

Interesting.  I really thought it's better that a programm does not
compile, rather than it compiles and misbehaves from the POV of the
developer.

I added the MSG_EOR definition and send(2) and friends return EOPNOTSUPP
now.  I uploaded a snapshot to https://cygwin.com/snapshots/ with this
change.


Corinna

-- 
Corinna Vinschen
Cygwin Maintainer

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: bug: cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard
  2019-04-25 15:48           ` Eric Blake
@ 2019-04-25 18:36             ` Hans-Bernhard Bröker
  0 siblings, 0 replies; 9+ messages in thread
From: Hans-Bernhard Bröker @ 2019-04-25 18:36 UTC (permalink / raw)
  To: cygwin

Am 25.04.2019 um 17:48 schrieb Eric Blake:
> On 4/25/19 10:28 AM, Brian Inglis wrote:

>> Would it be allowed and valid to #define MSG_EOR 0 to simplify lack of support?
> 
> No, because that implies that EVERY send() call is requesting MSG_EOR
> and that it never fails. 

And maybe more importantly, it's explicitly required to be non-zero.

--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-04-25 18:36 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-04-24 15:48 bug: cygwin-devel v3.0.2-1 socket.h does not #define MSG_EOR per the POSIX standard Brabant, Edward H CTR (USA)
2019-04-24 16:44 ` Corinna Vinschen
2019-04-24 17:54   ` Eliot Moss
2019-04-24 20:36     ` Hans-Bernhard Bröker
2019-04-24 20:50       ` Eric Blake
2019-04-25 15:28         ` Brian Inglis
2019-04-25 15:48           ` Eric Blake
2019-04-25 18:36             ` Hans-Bernhard Bröker
2019-04-25 17:08         ` Corinna Vinschen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).