Austin Group Defect Tracker

Aardvark Mark III

Viewing Issue Simple Details Jump to Notes ] Issue History ] Print ]
ID Category Severity Type Date Submitted Last Update
0001239 [1003.1(2016)/Issue7+TC2] System Interfaces Objection Error 2019-03-16 09:55 2019-03-16 09:55
Reporter kre View Status public  
Assigned To
Priority normal Resolution Open  
Status New  
Name Robert Elz
User Reference
Section shmat
Page Number 1940-1, 384
Line Number 62506, 62529, 13051-2
Interp Status ---
Final Accepted Text
Summary 0001239: shmat() specifies non-portable return value
Description The standard specifies:
Otherwise, the shared memory segment shall not be attached, shmat( ) shall retur
n (void *)-1, and errno shall be set to indicate the error.

As was done with other similar operations (mmap, sem_open, ...) a new
symbol should be defined to replace the non-portable use of (void *)-1.
Desired Action Two possible solutions appear reasonable.

Pick one:

  1. In line 62506 in page 1940, change the words:
    shmat( ) shall return (void *)-1,

    shmat( ) shall return SHM_FAILED,

    In line 62529 in page 1941, change the word:


    Previous versions required an error return value of -1 with the type void * for
    the shmat( ) function, which is not guaranteed to be portable across implementat
    ions. The revised text provides the symbolic error code SHM_FAILED to eliminate
    the type conflict.

    In XBD section 13, in the page for the <sys/shm.h> header,
    add a new paragraph between lines 13051 and 13052:

    The <sys/shm.h> header shall define the symbolic constant SHM_FAILED which shall
     have type void *.

  2. Delete all of pages 1940 to 1947 (inclusive).

Tags No tags attached.
Attached Files

- Relationships

There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2019-03-16 09:55 kre New Issue
2019-03-16 09:55 kre Name => Robert Elz
2019-03-16 09:55 kre Section => shmat
2019-03-16 09:55 kre Page Number => 1940-1, 384
2019-03-16 09:55 kre Line Number => 62506, 62529, 13051-2

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker