A NOTE has been added to this issue. 
====================================================================== 
http://austingroupbugs.net/view.php?id=1142 
====================================================================== 
Reported By:                dancol
Assigned To:                
====================================================================== 
Project:                    1003.1(2016)/Issue7+TC2
Issue ID:                   1142
Category:                   Base Definitions and Headers
Type:                       Omission
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       Daniel Colascione 
Organization:                
User Reference:              
Section:                    2.4.3 Signal Actions 
Page Number:                 
Line Number:                 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2017-06-03 23:42 UTC
Last Modified:              2017-06-06 13:48 UTC
====================================================================== 
Summary:                    pread(2) and pwrite(2) should be async-signal-safe
====================================================================== 

---------------------------------------------------------------------- 
 (0003754) geoffclare (manager) - 2017-06-06 13:48
 http://austingroupbugs.net/view.php?id=1142#c3754 
---------------------------------------------------------------------- 
The standard already requires pread() and pwrite() to be async-signal-safe.
The fact that they are missing from the list in 2.4.3 is simply an
editorial omission (and Daniel correctly classified this bug as such).

This is because the description of pread() says "The pread() function shall
be equivalent to read(), except that it shall read from a given position in
the file without changing the file offset."

In order for pread() not to be required to be async-signal-safe, the
standard would instead have to say "The pread() function shall be
equivalent to read(), except that it shall read from a given position in
the file without changing the file offset and it need not be
async-signal-safe."

Likewise for pwrite(). 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2017-06-03 23:42 dancol         New Issue                                    
2017-06-03 23:42 dancol         Name                      => Daniel Colascione
2017-06-03 23:42 dancol         Section                   => 2.4.3 Signal
Actions
2017-06-06 12:14 shware_systems Note Added: 0003753                          
2017-06-06 13:48 geoffclare     Note Added: 0003754                          
======================================================================


Reply via email to