HPlogo MPE/iX Developer's Kit Reference Manual Volume 2: HP 3000 MPE/iX Computer Systems > Chapter 2 SVID IPC Library Function Descriptions

sys/shm.h

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Macros

SHM_NO_PID

No pid protection - MPE/iX only

SHM_PRIV_ACCESS

Privileged area - MPE/iX only

SHM_RDONLY

Read access only

SHM_RND

Round attach address (not implemented)

SHM_DEST

Delete when attach = 0 (not implemented)

SHM_CLEAR

Clear on first attach (not implemented)

SHM_LOCK

Not implemented

SHM_UNLOCK

Not implemented

Functions

If __STDC__ is defined:

   extern char *shmat( int, char *m, int );

   extern int  shmctl( int, int, struct shmid_ds * );

   extern int  shmdt ( char * );

   extern int  shmget( key_t, int, int );

If __STDC__ is not defined:

   extern char *shmat( );

   extern int  shmctl( );

   extern int  shmdt ( );

   extern int  shmget( );

Structures

Shared memory ID control structure:

   struct shmid_ds {



    struct ipc_perm  shm_perm;       /* permission structure          */

    int              shm_segsz;      /* segment size                  */

    void             *shm_ptbl;      /* not used on MPE/iX            */

    pid_t            shm_lpid;       /* pid of last shmop call        */

    pid_t            shm_cpid;       /* pid of last change            */

    int              shm_nattch;     /* attached users                */

    int              shm_cnattch;    /* in memory attached users ??   */

    time_t           shm_atime;      /* last shmat time               */

    time_t           shm_dtime;      /* last shmdt time               */

    time_t           shm_ctime;      /* last change time              */



    void             *shm_ptr;       /* pointer to the shm area.      */

    };
Feedback to webmaster