Anonymous | Login | 2024-03-29 12:10 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 | ||
0000522 | [1003.1(2008)/Issue 7] System Interfaces | Editorial | Error | 2011-11-30 23:57 | 2019-06-10 08:55 | ||
Reporter | kst | View Status | public | ||||
Assigned To | ajosey | ||||||
Priority | normal | Resolution | Accepted | ||||
Status | Closed | ||||||
Name | Keith Thompson | ||||||
Organization | |||||||
User Reference | |||||||
Section | shmat | ||||||
Page Number | 1905 | ||||||
Line Number | 60591 | ||||||
Interp Status | --- | ||||||
Final Accepted Text | |||||||
Summary | 0000522: Says shmat() returns -1 on error; should be (void*)-1 | ||||||
Description |
The declaration for shmat() is: void *shmat(int shmid, const void *shmaddr, int shmflg); The description of the returned value say, in part: Otherwise, the shared memory segment shall not be attached, shmat() shall return -1, and errno shall be set to indicate the error. -1 is of type int, not of type void* |
||||||
Desired Action |
Change: shmat() shall return -1 to: shmat() shall return (void*)-1 (Note that the Linux man pages project made this change several years ago.) |
||||||
Tags | tc2-2008 | ||||||
Attached Files | |||||||
|
There are no notes attached to this issue. |
Mantis 1.1.6[^] Copyright © 2000 - 2008 Mantis Group |