Austin Group Bug Tracker
2014-04-19 00:09:41 UTC
The following issue has been SUBMITTED.
======================================================================
http://austingroupbugs.net/view.php?id=833
======================================================================
Reported By: nsz
Assigned To: ajosey
======================================================================
Project: 2008-TC1
Issue ID: 833
Category: System Interfaces
Type: Clarification Requested
Severity: Editorial
Priority: normal
Status: Under Review
Name: Szabolcs Nagy
Organization: musl libc
User Reference:
Section: getaddrinfo
Page Number:
Line Number:
Interp Status: ---
Final Accepted Text:
======================================================================
Date Submitted: 2014-04-19 00:09 UTC
Last Modified: 2014-04-19 00:09 UTC
======================================================================
Summary: SOCK_* flags in getaddrinfo hints->ai_socktype
Description:
getaddrinfo description says
"The ai_socktype field to which argument hints points specifies
the socket type for the service, as defined in socket."
the "socket type as defined in socket" is unclear now:
it may mean the type argument of socket() (which since 0000411 includes
SOCK_CLOEXEC and SOCK_NONBLOCK flags) or only the socket types without
flags (as defined in XSH 2.10.6).
in other words one might interpret the text so that
hints.ai_socktype = SOCK_STREAM|SOCK_CLOEXEC;
getaddrinfo(host, port, &hints, &p)
...
sock(p->ai_family, p->ai_socktype, p->ai_protocol);
is idiomatic getaddrinfo usage, instead of
hints.ai_socktype = SOCK_STREAM;
getaddrinfo(host, port, &hints, &p)
...
sock(p->ai_family, p->ai_socktype|SOCK_CLOEXEC, p->ai_protocol);
Desired Action:
Clarify ai_socktype with respect ot the new socket type flags.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-04-19 00:09 nsz New Issue
2014-04-19 00:09 nsz Status New => Under Review
2014-04-19 00:09 nsz Assigned To => ajosey
2014-04-19 00:09 nsz Name => Szabolcs Nagy
2014-04-19 00:09 nsz Organization => musl libc
2014-04-19 00:09 nsz Section => getaddrinfo
======================================================================
======================================================================
http://austingroupbugs.net/view.php?id=833
======================================================================
Reported By: nsz
Assigned To: ajosey
======================================================================
Project: 2008-TC1
Issue ID: 833
Category: System Interfaces
Type: Clarification Requested
Severity: Editorial
Priority: normal
Status: Under Review
Name: Szabolcs Nagy
Organization: musl libc
User Reference:
Section: getaddrinfo
Page Number:
Line Number:
Interp Status: ---
Final Accepted Text:
======================================================================
Date Submitted: 2014-04-19 00:09 UTC
Last Modified: 2014-04-19 00:09 UTC
======================================================================
Summary: SOCK_* flags in getaddrinfo hints->ai_socktype
Description:
getaddrinfo description says
"The ai_socktype field to which argument hints points specifies
the socket type for the service, as defined in socket."
the "socket type as defined in socket" is unclear now:
it may mean the type argument of socket() (which since 0000411 includes
SOCK_CLOEXEC and SOCK_NONBLOCK flags) or only the socket types without
flags (as defined in XSH 2.10.6).
in other words one might interpret the text so that
hints.ai_socktype = SOCK_STREAM|SOCK_CLOEXEC;
getaddrinfo(host, port, &hints, &p)
...
sock(p->ai_family, p->ai_socktype, p->ai_protocol);
is idiomatic getaddrinfo usage, instead of
hints.ai_socktype = SOCK_STREAM;
getaddrinfo(host, port, &hints, &p)
...
sock(p->ai_family, p->ai_socktype|SOCK_CLOEXEC, p->ai_protocol);
Desired Action:
Clarify ai_socktype with respect ot the new socket type flags.
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2014-04-19 00:09 nsz New Issue
2014-04-19 00:09 nsz Status New => Under Review
2014-04-19 00:09 nsz Assigned To => ajosey
2014-04-19 00:09 nsz Name => Szabolcs Nagy
2014-04-19 00:09 nsz Organization => musl libc
2014-04-19 00:09 nsz Section => getaddrinfo
======================================================================