Austin Group Defect Tracker

Aardvark Mark III


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0000143 [1003.1(2008)/Issue 7] System Interfaces Objection Error 2009-09-05 14:03 2009-12-07 16:56
Reporter eblake View Status public  
Assigned To ajosey
Priority normal Resolution Accepted  
Status Interpretation Required  
Name Eric Blake
Organization N/A
User Reference ebb.readlinkat
Section readlink
Page Number 1749
Line Number 55865
Interp Status Approved
Final Accepted Text Note: 0000234
Summary 0000143: readlinkat return value
Description The standard says that readlinkat returns 0 on success, rather than the resulting buffer length. This is a gratuitous difference from readlink, and makes the interface impossible to use (the standard is clear that the buffer of readlink() need not be NULL-terminated, so an application can't even trust strlen() after readlinkat). It also disagrees with implementation practice.
Desired Action Replace the two paragraphs at 55865-55869:

Upon successful completion, readlink( ) shall return the count of bytes placed in the buffer. Otherwise, it shall return a value of −1, leave the buffer unchanged, and set errno to indicate the error.
Upon successful completion, the readlinkat( ) function shall return 0. Otherwise, it shall return −1 and set errno to indicate the error.

with one paragraph:

Upon successful completion, these functions shall return the count of bytes placed in the buffer. Otherwise, these functions shall return a value of −1, leave the buffer unchanged, and set errno to indicate the error.
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0000234)
ajosey (manager)
2009-09-17 16:17

Interpretation response
------------------------
The standard states the requirements for readlinkat()
and conforming implementations must conform to this. However, concerns
have been raised about this which are being referred to the sponsor.

Rationale:
-------------
None.

Notes to the Editor (not part of this interpretation):
-------------------------------------------------------

Make changes as suggested by the submitter

- Issue History
Date Modified Username Field Change
2009-09-05 14:03 eblake New Issue
2009-09-05 14:03 eblake Status New => Under Review
2009-09-05 14:03 eblake Assigned To => ajosey
2009-09-05 14:03 eblake Name => Eric Blake
2009-09-05 14:03 eblake Organization => N/A
2009-09-05 14:03 eblake User Reference => ebb.readlinkat
2009-09-05 14:03 eblake Section => readlink
2009-09-05 14:03 eblake Page Number => 1749
2009-09-05 14:03 eblake Line Number => 55865
2009-09-17 16:17 ajosey Interp Status => Pending
2009-09-17 16:17 ajosey Note Added: 0000234
2009-09-17 16:17 ajosey Status Under Review => Interpretation Required
2009-09-17 16:17 ajosey Resolution Open => Accepted
2009-09-17 16:18 ajosey Final Accepted Text => Note: 0000234
2009-11-07 07:33 ajosey Interp Status Pending => Proposed
2009-12-07 16:56 ajosey Interp Status Proposed => Approved


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