View Issue Details

IDProjectCategoryView StatusLast Update
0001666Issue 8 draftsSystem Interfacespublic2024-06-11 09:12
Reportergeoffclare Assigned To 
PrioritynormalSeverityObjectionTypeError
Status ClosedResolutionAccepted 
Product VersionDraft 3 
NameGeoff Clare
OrganizationThe Open Group
User Reference
Sectiongetresgid(), getresuid()
Page Number1170, 1171
Line Number40031, 40061
Final Accepted Text
Summary0001666: getresgid() and getresuid() are missing "restrict"
DescriptionThese 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 ActionOn 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);

Tagsapplied_after_i8d3, issue8

Relationships

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

Activities

shware_systems

2023-06-08 16:20

reporter   bugnote:0006315

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
2024-06-11 09:12 agadmin Status Applied => Closed