Anonymous | Login | 2023-12-05 11:13 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0001067 | [1003.1(2013)/Issue7+TC1] System Interfaces | Objection | Omission | 2016-08-11 08:34 | 2020-04-21 13:21 | ||
Reporter | geoffclare | View Status | public | ||||
Assigned To | |||||||
Priority | normal | Resolution | Accepted As Marked | ||||
Status | Applied | ||||||
Name | Geoff Clare | ||||||
Organization | The Open Group | ||||||
User Reference | |||||||
Section | socket | ||||||
Page Number | 1984 | ||||||
Line Number | 63551-63559 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | See Note: 0003902 | ||||||
Summary | 0001067: missing socket() error for unsupported socket type | ||||||
Description |
The ERRORS section for socket() does not list an error number to be used when the socket type is not supported by the address family. This is different from the condition listed for EPROTOTYPE: "The socket type is not supported by the protocol" because, in particular, the latter does not cover the case when the protocol argument is zero. I have observed three different behaviours on existing systems. It looks like System V derivatives use EPROTOTYPE for this even though no protocol was specified (tested on Solaris 11 and HP-UX 11). OS X uses EPROTONOSUPPORT and Linux uses a non-standard error number (ESOCKTNOSUPPORT). The call I used to test this was socket(AF_INET, SOCK_SEQPACKET, 0). The socketpair() page has the same problem. |
||||||
Desired Action |
There are seven options (some only included for completeness and not worth considering): 1. Only allow EPROTOTYPE 2. Only allow EPROTONOSUPPORT 3. Only allow ESOCKTNOSUPPORT 4. Allow EPROTOTYPE or EPROTONOSUPPORT 5. Allow EPROTOTYPE or ESOCKTNOSUPPORT 6. Allow EPROTONOSUPPORT or ESOCKTNOSUPPORT 7. Allow all three. I will propose wording changes for socket() and socketpair() once the group chooses one of these options. |
||||||
Tags | issue8 | ||||||
Attached Files | |||||||
|
![]() |
|||
Date Modified | Username | Field | Change |
2016-08-11 08:34 | geoffclare | New Issue | |
2016-08-11 08:34 | geoffclare | Name | => Geoff Clare |
2016-08-11 08:34 | geoffclare | Organization | => The Open Group |
2016-08-11 08:34 | geoffclare | Section | => socket |
2016-08-11 08:34 | geoffclare | Page Number | => 1984 |
2016-08-11 08:34 | geoffclare | Line Number | => 63551-63559 |
2016-08-11 08:34 | geoffclare | Interp Status | => --- |
2017-12-15 11:52 | geoffclare | Note Added: 0003902 | |
2018-01-04 16:22 | nick | Final Accepted Text | => See Note: 0003902 |
2018-01-04 16:22 | nick | Status | New => Resolved |
2018-01-04 16:22 | nick | Resolution | Open => Accepted As Marked |
2018-01-04 16:22 | nick | Tag Attached: issue8 | |
2020-04-21 13:21 | geoffclare | Status | Resolved => Applied |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |