View Issue Details

IDProjectCategoryView StatusLast Update
00005221003.1(2008)/Issue 7System Interfacespublic2019-06-10 08:55
Reporterkst Assigned Toajosey  
PrioritynormalSeverityEditorialTypeError
Status ClosedResolutionAccepted 
NameKeith Thompson
Organization
User Reference
Sectionshmat
Page Number1905
Line Number60591
Interp Status---
Final Accepted Text
Summary0000522: Says shmat() returns -1 on error; should be (void*)-1
DescriptionThe 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 ActionChange:

    shmat() shall return -1

to:

    shmat() shall return (void*)-1

(Note that the Linux man pages project made this change several years ago.)
Tagstc2-2008

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2011-11-30 23:57 kst New Issue
2011-11-30 23:57 kst Status New => Under Review
2011-11-30 23:57 kst Assigned To => ajosey
2011-11-30 23:57 kst Name => Keith Thompson
2011-11-30 23:57 kst Section => shmat
2011-11-30 23:57 kst Page Number => 1
2011-11-30 23:57 kst Line Number => ?
2011-12-15 17:23 Don Cragun Page Number 1 => 1905
2011-12-15 17:23 Don Cragun Line Number ? => 60591
2011-12-15 17:23 Don Cragun Interp Status => ---
2011-12-15 17:23 Don Cragun Status Under Review => Resolved
2011-12-15 17:23 Don Cragun Resolution Open => Accepted
2011-12-15 17:23 Don Cragun Tag Attached: tc2-2008
2019-06-10 08:55 agadmin Status Resolved => Closed