View Issue Details

IDProjectCategoryView StatusLast Update
00004621003.1(2008)/Issue 7System Interfacespublic2013-04-16 13:06
Reportermarkh Assigned Toajosey  
PrioritynormalSeverityObjectionTypeOmission
Status ClosedResolutionAccepted 
NameMark Harris
Organization
User Reference
Sectionrecv
Page Number1760
Line Number56238
Interp Status---
Final Accepted Text
Summary0000462: recv() equivalency issues
DescriptionThe 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 ActionChange:

  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.
Tagstc1-2008

Activities

There are no notes attached to this issue.

Issue History

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