Return the ID of a shared memory block, possibly creating it.
Source position: ipc.pp line 426
function shmget( |
key: TKey; |
size: size_t; |
flag: cint |
):cint; |
shmget returns the ID of a shared memory block, described by key. Depending on the flags in flag, a new memory block is created.
flag can have one or more of the following values (combined by ORs):
Optionally, the flags can be ORed with a permission mode, which is the same mode that can be used in the file system.
if a new memory block is created, then it will have size Size bytes in it.
On error, -1 is returned, and IPCError is set.