basic.%shmat

C Function/BASIC Program, Releases: AP/Unix

Attaches to a shared memory segment.

Syntax

pointer=(char*)%shmat(shmid, (char*)shmaddr, shmflg)

Description

attaches a shared memory segment associated with the shared memory identifier 'shmid' and returns the address of the segment.

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

See Also

Command Name Type Description
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.
basic.%shmget C Function Creates shared memory segment and returns identifier.

User Comments

What do you think?

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

Login to leave your comments.