BPX1MAT (shmat) example
The following code attaches a shared memory segment. For
the callable service, see shmat (BPX1MAT, BPX4MAT) — Attach to a shared memory segment. For the data
structure, see BPXYSHM—Map interprocess communication shared memory segments.
AMODE 64 callers use BPX4MAT (shmat) example.
CALL BPX1MAT, Shared memory segment control +
(SHM_ID, Input: Shared memory segment ID +
SEGADDR, Input: ST loc for seg address +
=A(0), Input: Flags BPXYSHM +
RETVAL, Return value: 0, -1 or ->segment +
RETCODE, Return code +
RSNCODE), Reason code +
VL,MF=(E,PLIST) ----------------------------------