[1003.1(2013)/Issue7+TC1 0000696]: either NAME_MAX shouldn't be optional, or readdir_r() needs clarification

2023-04-11 Thread Austin Group Bug Tracker via austin-group-l at The Open Group


The following issue has been set as RELATED TO issue 0001664. 
== 
https://austingroupbugs.net/view.php?id=696 
== 
Reported By:philip-guenther
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   696
Category:   Base Definitions and Headers
Type:   Clarification Requested
Severity:   Objection
Priority:   normal
Status: Applied
Name:   Philip Guenther 
Organization:   OpenBSD 
User Reference:  
Section: 
Page Number:273 
Line Number:8986-8990 
Interp Status:  --- 
Final Accepted Text:See
https://austingroupbugs.net/view.php?id=696#c5850. 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2013-05-14 17:32 UTC
Last Modified:  2022-06-30 14:11 UTC
== 
Summary:either NAME_MAX shouldn't be optional, or
readdir_r() needs clarification
==
Relationships   ID  Summary
--
related to  697 Adding of a getdirentries() function
has duplicate   831 How to allocate memory for readdir_r is...
related to  0001664 Some readdir() non-normative text needs...
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2013-05-14 17:32 philip-guentherNew Issue
2013-05-14 17:32 philip-guentherName  => Philip Guenther 
2013-05-14 17:32 philip-guentherOrganization  => OpenBSD 
2013-05-14 17:32 philip-guentherSection   =>   
2013-05-14 17:32 philip-guentherPage Number   => 273 
2013-05-14 17:32 philip-guentherLine Number   => 8986-8990   
2013-05-14 18:03 wlerch Note Added: 0001604  
2013-05-14 18:57 philip-guentherNote Added: 0001605  
2013-05-15 16:17 dalias Note Added: 0001606  
2013-05-30 15:37 eblake Relationship added   related to 697  
2013-05-31 09:08 david-bartley  Note Added: 0001632  
2013-05-31 09:46 geoffclare Note Added: 0001633  
2013-05-31 09:53 geoffclare Note Edited: 0001633 
2013-05-31 11:56 dalias Note Added: 0001634  
2013-08-05 02:37 shware_systems Note Added: 0001697  
2013-08-05 02:46 shware_systems Note Edited: 0001697 
2013-08-05 04:00 dalias Note Added: 0001698  
2013-08-06 11:23 shware_systems Note Added: 0001700  
2013-08-06 11:30 shware_systems Note Edited: 0001700 
2013-08-06 11:37 shware_systems Note Edited: 0001700 
2013-08-06 18:55 shware_systems Note Added: 0001701  
2013-08-06 21:26 dalias Note Added: 0001702  
2013-08-08 07:45 Don Cragun Tag Attached: issue8 
2013-08-08 07:45 Don Cragun Tag Detached: issue8 
2014-03-29 23:32 eblake Relationship added   has duplicate 831
2014-03-30 00:33 sstewartgallus Issue Monitored: sstewartgallus 
  
2015-10-02 12:51 Florian Weimer Note Added: 0002854  
2015-10-02 12:51 Florian Weimer Issue Monitored: Florian Weimer 
  
2015-10-04 01:01 shware_systems Note Added: 0002857  
2015-10-04 01:02 shware_systems Note Edited: 0002857 
2022-06-16 16:00 Don Cragun Note Added: 0005850  
2022-06-16 16:01 Don Cragun Interp Status => --- 
2022-06-16 16:01 Don Cragun Final Accepted Text   => See
https://austingroupbugs.net/view.php?id=696#c5850.
2022-06-16 16:01 Don Cragun Status   New => Resolved 
2022-06-16 16:01 Don Cragun Resolution   Open => Accepted As
Marked
2022-06-16 16:01 Don Cragun Tag Attached: issue8 
2022-06-30 14:11 geoffclare Note Added: 0005877 

[1003.1(2013)/Issue7+TC1 0000696]: either NAME_MAX shouldn't be optional, or readdir_r() needs clarification

2022-06-30 Thread Austin Group Bug Tracker via austin-group-l at The Open Group


The following issue has a resolution that has been APPLIED. 
== 
https://austingroupbugs.net/view.php?id=696 
== 
Reported By:philip-guenther
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   696
Category:   Base Definitions and Headers
Type:   Clarification Requested
Severity:   Objection
Priority:   normal
Status: Applied
Name:   Philip Guenther 
Organization:   OpenBSD 
User Reference:  
Section: 
Page Number:273 
Line Number:8986-8990 
Interp Status:  --- 
Final Accepted Text:See
https://austingroupbugs.net/view.php?id=696#c5850. 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2013-05-14 17:32 UTC
Last Modified:  2022-06-30 14:11 UTC
== 
Summary:either NAME_MAX shouldn't be optional, or
readdir_r() needs clarification
==
Relationships   ID  Summary
--
related to  697 Adding of a getdirentries() function
has duplicate   831 How to allocate memory for readdir_r is...
== 

-- 
 (0005877) geoffclare (manager) - 2022-06-30 14:11
 https://austingroupbugs.net/view.php?id=696#c5877 
-- 
When applying this bug I realised that all references to readdir_r() on the
readdir() page need OB shading, not just the SYNOPSIS. I also added the
usual FUTURE DIRECTIONS text for OB functions saying readdir_r() may be
removed in a future version. 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2013-05-14 17:32 philip-guentherNew Issue
2013-05-14 17:32 philip-guentherName  => Philip Guenther 
2013-05-14 17:32 philip-guentherOrganization  => OpenBSD 
2013-05-14 17:32 philip-guentherSection   =>   
2013-05-14 17:32 philip-guentherPage Number   => 273 
2013-05-14 17:32 philip-guentherLine Number   => 8986-8990   
2013-05-14 18:03 wlerch Note Added: 0001604  
2013-05-14 18:57 philip-guentherNote Added: 0001605  
2013-05-15 16:17 dalias Note Added: 0001606  
2013-05-30 15:37 eblake Relationship added   related to 697  
2013-05-31 09:08 david-bartley  Note Added: 0001632  
2013-05-31 09:46 geoffclare Note Added: 0001633  
2013-05-31 09:53 geoffclare Note Edited: 0001633 
2013-05-31 11:56 dalias Note Added: 0001634  
2013-08-05 02:37 shware_systems Note Added: 0001697  
2013-08-05 02:46 shware_systems Note Edited: 0001697 
2013-08-05 04:00 dalias Note Added: 0001698  
2013-08-06 11:23 shware_systems Note Added: 0001700  
2013-08-06 11:30 shware_systems Note Edited: 0001700 
2013-08-06 11:37 shware_systems Note Edited: 0001700 
2013-08-06 18:55 shware_systems Note Added: 0001701  
2013-08-06 21:26 dalias Note Added: 0001702  
2013-08-08 07:45 Don Cragun Tag Attached: issue8 
2013-08-08 07:45 Don Cragun Tag Detached: issue8 
2014-03-29 23:32 eblake Relationship added   has duplicate 831
2014-03-30 00:33 sstewartgallus Issue Monitored: sstewartgallus 
  
2015-10-02 12:51 Florian Weimer Note Added: 0002854  
2015-10-02 12:51 Florian Weimer Issue Monitored: Florian Weimer 
  
2015-10-04 01:01 shware_systems Note Added: 0002857  
2015-10-04 01:02 shware_systems Note Edited: 0002857 
2022-06-16 16:00 Don Cragun Note Added: 0005850  
2022-06-16 16:01 Don Cragun Interp Status => --- 

[1003.1(2013)/Issue7+TC1 0000696]: either NAME_MAX shouldn't be optional, or readdir_r() needs clarification

2022-06-16 Thread Austin Group Bug Tracker via austin-group-l at The Open Group


The following issue has been RESOLVED. 
== 
https://austingroupbugs.net/view.php?id=696 
== 
Reported By:philip-guenther
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   696
Category:   Base Definitions and Headers
Type:   Clarification Requested
Severity:   Objection
Priority:   normal
Status: Resolved
Name:   Philip Guenther 
Organization:   OpenBSD 
User Reference:  
Section: 
Page Number:273 
Line Number:8986-8990 
Interp Status:  --- 
Final Accepted Text:See
https://austingroupbugs.net/view.php?id=696#c5850. 
Resolution: Accepted As Marked
Fixed in Version:   
== 
Date Submitted: 2013-05-14 17:32 UTC
Last Modified:  2022-06-16 16:01 UTC
== 
Summary:either NAME_MAX shouldn't be optional, or
readdir_r() needs clarification
==
Relationships   ID  Summary
--
related to  697 Adding of a getdirentries() function
has duplicate   831 How to allocate memory for readdir_r is...
== 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2013-05-14 17:32 philip-guentherNew Issue
2013-05-14 17:32 philip-guentherName  => Philip Guenther 
2013-05-14 17:32 philip-guentherOrganization  => OpenBSD 
2013-05-14 17:32 philip-guentherSection   =>   
2013-05-14 17:32 philip-guentherPage Number   => 273 
2013-05-14 17:32 philip-guentherLine Number   => 8986-8990   
2013-05-14 18:03 wlerch Note Added: 0001604  
2013-05-14 18:57 philip-guentherNote Added: 0001605  
2013-05-15 16:17 dalias Note Added: 0001606  
2013-05-30 15:37 eblake Relationship added   related to 697  
2013-05-31 09:08 david-bartley  Note Added: 0001632  
2013-05-31 09:46 geoffclare Note Added: 0001633  
2013-05-31 09:53 geoffclare Note Edited: 0001633 
2013-05-31 11:56 dalias Note Added: 0001634  
2013-08-05 02:37 shware_systems Note Added: 0001697  
2013-08-05 02:46 shware_systems Note Edited: 0001697 
2013-08-05 04:00 dalias Note Added: 0001698  
2013-08-06 11:23 shware_systems Note Added: 0001700  
2013-08-06 11:30 shware_systems Note Edited: 0001700 
2013-08-06 11:37 shware_systems Note Edited: 0001700 
2013-08-06 18:55 shware_systems Note Added: 0001701  
2013-08-06 21:26 dalias Note Added: 0001702  
2013-08-08 07:45 Don Cragun Tag Attached: issue8 
2013-08-08 07:45 Don Cragun Tag Detached: issue8 
2014-03-29 23:32 eblake Relationship added   has duplicate 831
2014-03-30 00:33 sstewartgallus Issue Monitored: sstewartgallus 
  
2015-10-02 12:51 Florian Weimer Note Added: 0002854  
2015-10-02 12:51 Florian Weimer Issue Monitored: Florian Weimer 
  
2015-10-04 01:01 shware_systems Note Added: 0002857  
2015-10-04 01:02 shware_systems Note Edited: 0002857 
2022-06-16 16:00 Don Cragun Note Added: 0005850  
2022-06-16 16:01 Don Cragun Interp Status => --- 
2022-06-16 16:01 Don Cragun Final Accepted Text   => See
https://austingroupbugs.net/view.php?id=696#c5850.
2022-06-16 16:01 Don Cragun Status   New => Resolved 
2022-06-16 16:01 Don Cragun Resolution   Open => Accepted As
Marked
==




[1003.1(2013)/Issue7+TC1 0000696]: either NAME_MAX shouldn't be optional, or readdir_r() needs clarification

2022-06-16 Thread Austin Group Bug Tracker via austin-group-l at The Open Group


A NOTE has been added to this issue. 
== 
https://austingroupbugs.net/view.php?id=696 
== 
Reported By:philip-guenther
Assigned To:
== 
Project:1003.1(2013)/Issue7+TC1
Issue ID:   696
Category:   Base Definitions and Headers
Type:   Clarification Requested
Severity:   Objection
Priority:   normal
Status: New
Name:   Philip Guenther 
Organization:   OpenBSD 
User Reference:  
Section: 
Page Number:273 
Line Number:8986-8990 
Interp Status:  --- 
Final Accepted Text: 
== 
Date Submitted: 2013-05-14 17:32 UTC
Last Modified:  2022-06-16 16:00 UTC
== 
Summary:either NAME_MAX shouldn't be optional, or
readdir_r() needs clarification
==
Relationships   ID  Summary
--
related to  697 Adding of a getdirentries() function
has duplicate   831 How to allocate memory for readdir_r is...
== 

-- 
 (0005850) Don Cragun (manager) - 2022-06-16 16:00
 https://austingroupbugs.net/view.php?id=696#c5850 
-- 
All page and line numbers refer to 202x D2.1.

On page 501 line 17715 section 2.9.1, remove readdir() from the list
of non-thread-safe functions

On page 501 line 17737 section 2.9.1, append:The
readdir() function need not be thread-safe if concurrent calls are
made for the same directory stream.


Shade P219, L7616-7617 ( readdir_r() declaration) with OB
shading.

Shade P1724, L56494-56495 (readdir_r() SYNOPSIS) with OB shading.

Change P1724, L56528 (readdir() DESCRIPTION) from:The
readdir() function need not be
thread-safe.to:The readdir() function need
not be thread-safe if concurrent calls are made for the same directory
stream.

Add after P1725, L56555 (readdir() ERRORS):
[ENOMEM]   Insufficient memory is available.

Add new paragraph after P1725, L56944 (readdir() RATIONALE):
Since the size of a filename has no limit on some filesystem
types, there is no way to reliably allocate a buffer large enough to hold a
filename being returned by readdir_r().  Therefore,
readdir_r() has been marked obsolescent and readdir() is now
required to be thread safe as long as there are no concurrent calls to it
on a single stream. 

Issue History 
Date ModifiedUsername   FieldChange   
== 
2013-05-14 17:32 philip-guentherNew Issue
2013-05-14 17:32 philip-guentherName  => Philip Guenther 
2013-05-14 17:32 philip-guentherOrganization  => OpenBSD 
2013-05-14 17:32 philip-guentherSection   =>   
2013-05-14 17:32 philip-guentherPage Number   => 273 
2013-05-14 17:32 philip-guentherLine Number   => 8986-8990   
2013-05-14 18:03 wlerch Note Added: 0001604  
2013-05-14 18:57 philip-guentherNote Added: 0001605  
2013-05-15 16:17 dalias Note Added: 0001606  
2013-05-30 15:37 eblake Relationship added   related to 697  
2013-05-31 09:08 david-bartley  Note Added: 0001632  
2013-05-31 09:46 geoffclare Note Added: 0001633  
2013-05-31 09:53 geoffclare Note Edited: 0001633 
2013-05-31 11:56 dalias Note Added: 0001634  
2013-08-05 02:37 shware_systems Note Added: 0001697  
2013-08-05 02:46 shware_systems Note Edited: 0001697 
2013-08-05 04:00 dalias Note Added: 0001698  
2013-08-06 11:23 shware_systems Note Added: 0001700  
2013-08-06 11:30 shware_systems Note Edited: 0001700 
2013-08-06 11:37 shware_systems Note Edited: 0001700 
2013-08-06 18:55 shware_systems Note Added: 0001701  
2013-08-06 21:26 dalias Note Added: 0001702  
2013-08-08 07:45 Don Cragun Tag Attached: issue8