Anonymous | Login | 2023-12-06 14:07 UTC |
Main | My View | View Issues | Change Log | Docs |
Viewing Issue Simple Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||
ID | Category | Severity | Type | Date Submitted | Last Update | ||
0000444 | [1003.1(2008)/Issue 7] System Interfaces | Objection | Omission | 2011-05-15 12:19 | 2020-03-03 14:46 | ||
Reporter | drepper | View Status | public | ||||
Assigned To | ajosey | ||||||
Priority | normal | Resolution | Accepted | ||||
Status | Applied | ||||||
Name | Ulrich Drepper | ||||||
Organization | |||||||
User Reference | ud-getsubopt-restrict | ||||||
Section | getsubopt() | ||||||
Page Number | 1078 | ||||||
Line Number | 35929 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0000444: restrict missing from getsubopt | ||||||
Description |
getsubopt takes pointers to pointers to char as parameters. For completeness sake the prototype should use restrict with all the parameters since it cannot be that any of them overlap. The same applies to the declaration in XBD. |
||||||
Desired Action |
On XSH page 1078 line 35929 change int getsubopt(char **optionp, char * const *keylistp, char **valuep) to int getsubopt(char **restrict optionp, char * const *restrict keylistp, char ** restrict valuep) On XBD page 356 line 11992 change int getsubopt(char **, char * const *, char **) to int getsubopt(char **restrict, char * const *restrict, char **restrict) Also, getsubopt should be marked CX in <stdlib.h>, in case this hasn't already been fixed. |
||||||
Tags | issue8 | ||||||
Attached Files | |||||||
|
![]() |
||||||
|
![]() |
|
(0000784) eblake (manager) 2011-05-16 12:15 |
0000197 already covers the CX shading issue. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |