View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000462 | 1003.1(2008)/Issue 7 | System Interfaces | public | 2011-06-13 06:45 | 2013-04-16 13:06 |
| Reporter | markh | Assigned To | ajosey | ||
| Priority | normal | Severity | Objection | Type | Omission |
| Status | Closed | Resolution | Accepted | ||
| Name | Mark Harris | ||||
| Organization | |||||
| User Reference | |||||
| Section | recv | ||||
| Page Number | 1760 | ||||
| Line Number | 56238 | ||||
| Interp Status | --- | ||||
| Final Accepted Text | |||||
| Summary | 0000462: recv() equivalency issues | ||||
| Description | The description of recv() states: The recv() function is equivalent to recvfrom() with a zero address_len argument, and to read() if no flags are used. recvfrom() takes two additional pointer arguments, address and address_len, and the value of address is not specified here. If address is not a null pointer then a value is read from and written to *address_len, so it would only be valid for address_len to be zero (i.e. a null pointer) if address was also a null pointer. Also since address_len is a pointer it should use the term "null pointer" rather than "zero" when describing its value. As for the equivalency with read() if no flags are used, recv() is required to fail with [ENOTSOCK] if the file descriptor argument does not refer to a socket, even if no flags are used, whereas read() is required to support regular files and other kinds of file descriptors. This equivalency should be qualified as applying only to sockets. | ||||
| Desired Action | Change: The recv() function is equivalent to recvfrom() with a zero address_len argument, and to read() if no flags are used. to: The recv() function is equivalent to recvfrom() with null pointer address and address_len arguments, and to read() if the socket argument refers to a socket and the flags argument is 0. | ||||
| Tags | tc1-2008 | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-06-13 06:45 | markh | New Issue | |
| 2011-06-13 06:45 | markh | Status | New => Under Review |
| 2011-06-13 06:45 | markh | Assigned To | => ajosey |
| 2011-06-13 06:45 | markh | Name | => Mark Harris |
| 2011-06-13 06:45 | markh | Section | => recv |
| 2011-06-13 06:45 | markh | Page Number | => 1760 |
| 2011-06-13 06:45 | markh | Line Number | => 56238 |
| 2011-06-16 15:42 | nick | Tag Attached: tc1-2008 | |
| 2011-06-16 15:43 | nick | Interp Status | => --- |
| 2011-06-16 15:43 | nick | Status | Under Review => Resolved |
| 2011-06-16 15:43 | nick | Resolution | Open => Accepted |
| 2013-04-16 13:06 | ajosey | Status | Resolved => Closed |