Anonymous | Login | 2024-09-16 22: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 | ||
0001101 | [1003.1(2016/18)/Issue7+TC2] Base Definitions and Headers | Editorial | Enhancement Request | 2016-11-16 15:58 | 2024-06-11 09:09 | ||
Reporter | EdSchouten | View Status | public | ||||
Assigned To | ajosey | ||||||
Priority | normal | Resolution | Accepted As Marked | ||||
Status | Closed | ||||||
Name | Ed Schouten | ||||||
Organization | Nuxi | ||||||
User Reference | |||||||
Section | arpa/inet.h | ||||||
Page Number | - | ||||||
Line Number | - | ||||||
Interp Status | --- | ||||||
Final Accepted Text | See Note: 0003974. | ||||||
Summary | 0001101: inet_ntoa(): superfluous and not thread-safe. Mark as [OB] for issue 8? | ||||||
Description |
Issue 6 added the new functions inet_ntop() and inet_pton() to <arpa/inet.h>, as replacement for the existing functions. The main advantage of these new functions is that they can be used for multiple network protocols, whereas inet_addr() and inet_ntoa() only support IPv4. Reading the description of inet_ntoa(), it's not entirely clear to me what this function has to offer over inet_ntop(). They both generate a string of the same format. inet_ntoa() does have one really big disadvantage: it's not thread-safe. |
||||||
Desired Action |
Given that software authors nowadays care more strongly about thread-safety than they did in the past, I would hereby like to propose that we mark inet_ntoa() as obsolete. Proposed changes: In article http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/arpa_inet.h.html: [^] - Add [OB] markers around the prototype of inet_ntoa(). In article http://pubs.opengroup.org/onlinepubs/9699919799/functions/inet_addr.html: [^] - Add [OB] markers around the prototype of inet_ntoa(). Maybe it should also have a blue background colour now? - Add [OB] markers around the following sentences from the description and return value: "The inet_ntoa() function shall convert the Internet host address specified by in to a string in the Internet standard dot notation." "The inet_ntoa() function need not be thread-safe." "The inet_ntoa() function shall return a pointer to the network address in Internet standard dot notation." |
||||||
Tags | issue8 | ||||||
Attached Files | |||||||
|
Relationships | ||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2016-11-16 15:58 | EdSchouten | New Issue | |
2016-11-16 15:58 | EdSchouten | Status | New => Under Review |
2016-11-16 15:58 | EdSchouten | Assigned To | => ajosey |
2016-11-16 15:58 | EdSchouten | Name | => Ed Schouten |
2016-11-16 15:58 | EdSchouten | Organization | => Nuxi |
2016-11-16 15:58 | EdSchouten | Section | => arpa/inet.h |
2016-11-16 15:58 | EdSchouten | Page Number | => - |
2016-11-16 15:58 | EdSchouten | Line Number | => - |
2016-11-17 20:20 | shware_systems | Note Added: 0003496 | |
2016-12-08 15:25 | geoffclare | Project | 1003.1(2008)/Issue 7 => 1003.1(2016/18)/Issue7+TC2 |
2018-04-19 15:43 | Don Cragun | Interp Status | => --- |
2018-04-19 15:43 | Don Cragun | Note Added: 0003974 | |
2018-04-19 15:43 | Don Cragun | Status | Under Review => Resolved |
2018-04-19 15:43 | Don Cragun | Resolution | Open => Accepted As Marked |
2018-04-19 15:43 | Don Cragun | Final Accepted Text | => See Note: 0003974. |
2018-04-19 15:44 | Don Cragun | Tag Attached: issue8 | |
2018-04-19 16:14 | geoffclare | Relationship added | related to 0001102 |
2020-04-21 14:01 | geoffclare | Status | Resolved => Applied |
2024-06-11 09:09 | agadmin | Status | Applied => Closed |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |