A NOTE has been added to this issue. 
====================================================================== 
https://austingroupbugs.net/view.php?id=1810 
====================================================================== 
Reported By:                alanc
Assigned To:                
====================================================================== 
Project:                    Issue 8 drafts
Issue ID:                   1810
Category:                   System Interfaces
Type:                       Clarification Requested
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       Alan Coopersmith 
Organization:               Oracle Solaris Engineering 
User Reference:              
Section:                    fdopen() 
Page Number:                917 
Line Number:                31300-31397 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2024-02-10 17:41 UTC
Last Modified:              2024-02-12 19:09 UTC
====================================================================== 
Summary:                    fdopen() can only be used once per file descriptor
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0001809 close() guidance to use fclose() should...
====================================================================== 

---------------------------------------------------------------------- 
 (0006652) alanc (reporter) - 2024-02-12 19:09
 https://austingroupbugs.net/view.php?id=1810#c6652 
---------------------------------------------------------------------- 
After further reflection, I believe the warning should be that
applications
must not use fdopen() on an fd already associated with a stdio stream,
whether that be an fd they already called fdopen() on, an fd returned by
fileno() on an existing stream, the default fds (0, 1, 2) associated with
stdin/stdout/stderr, etc. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2024-02-10 17:41 alanc          New Issue                                    
2024-02-10 17:41 alanc          Name                      => Alan Coopersmith
2024-02-10 17:41 alanc          Organization              => Oracle Solaris
Engineering
2024-02-10 17:41 alanc          Section                   => fdopen()        
2024-02-10 17:41 alanc          Page Number               => 917             
2024-02-10 17:41 alanc          Line Number               => 31300-31397     
2024-02-10 18:57 Don Cragun     Relationship added       related to 0001809  
2024-02-12 19:09 alanc          Note Added: 0006652                          
======================================================================


  • [Issue 8 dra... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [Issue ... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to