A NOTE has been added to this issue. 
====================================================================== 
https://www.austingroupbugs.net/view.php?id=1406 
====================================================================== 
Reported By:                djdelorie
Assigned To:                
====================================================================== 
Project:                    1003.1(2016/18)/Issue7+TC2
Issue ID:                   1406
Category:                   System Interfaces
Type:                       Clarification Requested
Severity:                   Editorial
Priority:                   normal
Status:                     New
Name:                       DJ Delorie 
Organization:               Red Hat Inc 
User Reference:              
Section:                    open_memstream 
Page Number:               
https://pubs.opengroup.org/onlinepubs/9699919799/functions/open_memstream.html 
Line Number:                n/a 
Interp Status:              --- 
Final Accepted Text:         
====================================================================== 
Date Submitted:             2020-09-28 21:26 UTC
Last Modified:              2023-09-25 16:13 UTC
====================================================================== 
Summary:                    clarification of SEEK_END when current pointer
doesn't match buffer size
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0000456 mandate binary mode of fmemopen
====================================================================== 

---------------------------------------------------------------------- 
 (0006489) Don Cragun (manager) - 2023-09-25 16:13
 https://www.austingroupbugs.net/view.php?id=1406#c6489 
---------------------------------------------------------------------- 
New text that allows both behaviours, as an Issue 8 compromise:
Add a new paragraph after issue8 draft 3 P1617. L50906 (in
open_memstream())
<blockquote>The <i>fseek</i>() and <i>fseeko</i>() functions can be used to
set the file position beyond the current buffer length. It is
implementation-defined whether this extends the buffer to the new length.
If it extends the buffer, the added buffer contents shall be set to null
bytes for <i>open_memstream</i>(), or null wide characters for
<i>open_wmemstream</i>(); if it does not extend the buffer, then if data is
later written at this point, the buffer contents in the gap shall be set to
null bytes for <i>open_memstream</i>(), or null wide characters for
<i>open_wmemstream</i>(). If <i>fseek</i>() or <i>fseeko</i>() is called
with SEEK_END as the <i>whence</i> argument, it is implementation-defined
whether the file position shall be adjusted either relative to the current
buffer length or relative to the buffer size that would be set by an
<i>fflush</i>() call made immediately before the <i>fseek</i>() or
<i>fseeko</i>() call.</blockquote> 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2020-09-28 21:26 djdelorie      New Issue                                    
2020-09-28 21:26 djdelorie      Name                      => DJ Delorie      
2020-09-28 21:26 djdelorie      Organization              => Red Hat Inc     
2020-09-28 21:26 djdelorie      Section                   => open_memstream  
2020-09-28 21:26 djdelorie      Page Number               =>
https://pubs.opengroup.org/onlinepubs/9699919799/functions/open_memstream.html
2020-09-28 21:26 djdelorie      Line Number               => n/a             
2020-09-29 06:22 Florian Weimer Issue Monitored: Florian Weimer                 
  
2020-09-29 17:53 carlos         Note Added: 0005011                          
2020-09-29 20:54 Don Cragun     Interp Status             => ---             
2020-09-29 20:54 Don Cragun     Note Added: 0005012                          
2020-09-29 20:54 Don Cragun     Category                 Base Definitions and
Headers => System Interfaces
2020-09-29 20:55 Don Cragun     Note Edited: 0005012                         
2020-09-29 20:55 Don Cragun     Relationship added       related to 0000456  
2020-09-29 23:32 djdelorie      Note Added: 0005013                          
2021-02-11 17:40 rhansen        Note Added: 0005233                          
2021-02-11 18:43 shware_systems Note Added: 0005234                          
2021-02-11 18:43 shware_systems Note Added: 0005235                          
2021-02-11 18:43 shware_systems Note Deleted: 0005235                        
2023-09-25 16:13 Don Cragun     Note Added: 0006489                          
======================================================================


  • [1003.1(2016... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group
    • [1003.1... Austin Group Bug Tracker via austin-group-l at The Open Group

Reply via email to