Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0000218 [1003.1(2008)/Issue 7] System Interfaces Objection Error 2010-02-12 12:27 2013-04-16 13:06
Reporter geoffclare View Status public  
Assigned To ajosey
Priority normal Resolution Accepted  
Status Closed  
Name Geoff Clare
Organization The Open Group
User Reference
Section read
Page Number 1739,1740
Line Number 55487,55507,55520
Interp Status Approved
Final Accepted Text Note: 0000393
Summary 0000218: Inconsistencies in pread() and read() errors
Description The error conditions on the read() page associated with pipes/FIFOs
and sockets have the same inconsistencies between pread() and read(),
and between pread() and lseek(), as were reported for pwrite() in
0000215.

In addition, there are duplicate EOVERFLOW and ENXIO errors for
pread(), one in the "these functions" part and one specific to
pread(). The suggested changes remove the pread()-specific one
in each case, as the other one seems more correct.
Desired Action
At line 55487 change

    [EAGAIN] The O_NONBLOCK flag is set for the file descriptor and
         the thread would be delayed.

to

    [EAGAIN] The file is neither a pipe, nor a FIFO, nor a socket,
             the O_NONBLOCK flag is set for the file descriptor, and
             the thread would be delayed in the read operation.

Before line 55506 insert

    The pread() function shall fail if:

    [EINVAL] The file is a regular file or block special file, and
             the offset argument is negative. The file pointer shall
             remain unchanged.

    [ESPIPE] The file is a pipe, FIFO or socket.

At line 55507 change

    [EAGAIN] or [EWOULDBLOCK]
         The file descriptor is for a socket, is marked
         O_NONBLOCK, and no data is waiting to be received.

to

    [EAGAIN] The file is a pipe or FIFO, the O_NONBLOCK flag is set
             for the file descriptor, and the thread would be delayed
             in the read operation.

    [EAGAIN] or [EWOULDBLOCK]
             The file is a socket, the O_NONBLOCK flag is set for the
             file descriptor, and the thread would be delayed in the
             read operation.

Delete lines 55520-55525 (the pread() "shall fail" errors).

Add a new paragraph to the end of RATIONALE (line 55612):

    This volume of POSIX.1-2008 intentionally does not specify any
    pread() errors related to pipes, FIFOs and sockets other than
    ESPIPE.

Tags tc1-2008
Attached Files

- Relationships
related to 0000215Closedajosey Inconsistencies in pwrite() and write() errors 
related to 0000225Closedajosey ENXIO and 'may fail' 

-  Notes
(0000393)
msbrown (manager)
2010-03-04 16:26
edited on: 2010-03-04 16:31

Interpretation response
------------------------
The standard states the current pread() and read() error conditions , and conforming implementations must conform to this. However, concerns have been raised about this which are being referred to the sponsor.


Notes to the Editor (not part of this interpretation):
-------------------------------------------------------
Make change suggested by Submitter. This interpretation should be considered in tandem with 0000215 .


- Issue History
Date Modified Username Field Change
2010-02-12 12:27 geoffclare New Issue
2010-02-12 12:27 geoffclare Status New => Under Review
2010-02-12 12:27 geoffclare Assigned To => ajosey
2010-02-12 12:27 geoffclare Name => Geoff Clare
2010-02-12 12:27 geoffclare Organization => The Open Group
2010-02-12 12:27 geoffclare Section => read
2010-02-12 12:27 geoffclare Page Number => 1739,1740
2010-02-12 12:27 geoffclare Line Number => 55487,55507,55520
2010-02-12 12:27 geoffclare Interp Status => ---
2010-03-04 16:26 msbrown Interp Status --- => Pending
2010-03-04 16:26 msbrown Note Added: 0000393
2010-03-04 16:26 msbrown Status Under Review => Interpretation Required
2010-03-04 16:26 msbrown Resolution Open => Accepted
2010-03-04 16:27 msbrown Relationship added related to 0000215
2010-03-04 16:28 msbrown Final Accepted Text => Note: 0000393
2010-03-04 16:31 msbrown Note Edited: 0000393
2010-03-25 15:44 msbrown Relationship added related to 0000225
2010-04-16 10:15 ajosey Interp Status Pending => Proposed
2010-05-28 14:04 ajosey Interp Status Proposed => Approved
2010-09-24 11:11 geoffclare Tag Attached: tc1-2008
2013-04-16 13:06 ajosey Status Interpretation Required => Closed


Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker