basic.%shmget

C Function/BASIC Program, Releases: AP/Unix

Creates shared memory segment and returns identifier.

Syntax

shmid=%shmget(key, size, shmflg)

Description

creates a shared memory segment and returns a shared memory identifier.

Valid values for 'key' and 'shmflg' are defined in 'shm.h' and 'ipc.h'. See the Unix Programmer's guide.

See Also

Command Name Type Description
basic.%shmat C Function Attaches to a shared memory segment.
basic.%shmdt C Function Detaches from a shared memory segment.
basic.cfunc Definition can be called from a Pick/BASIC program or subroutine in AP/DOS and AP/Unix implementations using a syntax similar to that of normal C.
basic.cfunction Definition Declare a list of C functions.

User Comments

What do you think?

Share your experience or ask a question by using the form below.

Login to leave your comments.