View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001666 | Issue 8 drafts | System Interfaces | public | 2023-04-13 09:50 | 2024-06-11 09:12 |
Reporter | geoffclare | Assigned To | |||
Priority | normal | Severity | Objection | Type | Error |
Status | Closed | Resolution | Accepted | ||
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:to:int getresgid(gid_t *, gid_t *, gid_t *); int getresuid(uid_t *, uid_t *, uid_t *); 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: to:int getresgid(gid_t *rgid, gid_t *egid, gid_t *sgid); int getresgid(gid_t *restrict rgid, gid_t *restrict egid, gid_t *restrict sgid); On page 1171 line 40061 section getresgid(), change: to:int getresuid(uid_t *ruid, uid_t *euid, uid_t *suid); int getresuid(uid_t *restrict ruid, uid_t *restrict euid, uid_t *restrict suid); | ||||
Tags | applied_after_i8d3, issue8 |
|
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. |
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 |