Austin Group Defect Tracker

Aardvark Mark IV


Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001666 [Issue 8 drafts] System Interfaces Objection Error 2023-04-13 09:50 2023-06-27 15:20
Reporter geoffclare View Status public  
Assigned To
Priority normal Resolution Accepted  
Status Applied   Product Version Draft 3
Name Geoff Clare
Organization The Open Group
User Reference
Section getresgid(), getresuid()
Page Number 1170, 1171
Line Number 40031, 40061
Final Accepted Text
Summary 0001666: getresgid() and getresuid() are missing "restrict"
Description These functions modify multiple values of the same type via pointers passed as arguments, and there is no reason to allow applications to pass the same pointer value in two or more arguments, so the functions should have "restrict" in their prototypes.
Desired Action On page 470 line 16562,16563 section <unistd.h>, change:
int    getresgid(gid_t *, gid_t *, gid_t *);
int    getresuid(uid_t *, uid_t *, uid_t *);
to:
int    getresgid(gid_t *restrict, gid_t *restrict, gid_t *restrict);
int    getresuid(uid_t *restrict, uid_t *restrict, uid_t *restrict);

On page 1170 line 40031 section getresgid(), change:
int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid);
to:
int getresgid(gid_t *restrict rgid, gid_t *restrict egid, gid_t *restrict sgid);

On page 1171 line 40061 section getresgid(), change:
int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid);
to:
int getresuid(uid_t *restrict ruid, uid_t *restrict euid, uid_t *restrict suid);

Tags applied_after_i8d3, issue8
Attached Files

- Relationships
related to 0001344Appliedajosey 1003.1(2016/18)/Issue7+TC2 Addition of setresuid()/setresgid()/getresuid()/getresgid() 

-  Notes
(0006315)
shware_systems (reporter)
2023-06-08 16:20

During the discussion of this it was noted there was a chance some existing code might break with this change, but it was felt the increase in portability was enough to offset this for the long run.

- Issue History
Date Modified Username Field Change
2023-04-13 09:50 geoffclare New Issue
2023-04-13 09:50 geoffclare Name => Geoff Clare
2023-04-13 09:50 geoffclare Organization => The Open Group
2023-04-13 09:50 geoffclare Section => getresgid(), getresuid()
2023-04-13 09:50 geoffclare Page Number => 1170, 1171
2023-04-13 09:50 geoffclare Line Number => 40031, 40061
2023-04-13 09:50 geoffclare Relationship added related to 0001344
2023-06-08 16:19 Don Cragun Status New => Resolved
2023-06-08 16:19 Don Cragun Resolution Open => Accepted
2023-06-08 16:19 Don Cragun Tag Attached: issue8
2023-06-08 16:20 shware_systems Note Added: 0006315
2023-06-27 15:20 geoffclare Status Resolved => Applied
2023-06-27 15:20 geoffclare Tag Attached: applied_after_i8d3


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