[Overview][Constants][Types][Procedures and functions] |
Create token from filename
Source position: ipc.pp line 88
function ftok( |
Path: pchar; |
ID: cint |
):TKey; |
ftokreturns a key that can be used in a semgetshmgetor msggetcall to access a new or existing IPC resource.
Pathis the name of a file in the file system, IDis a character of your choice. The ftok call does the same as it's C couterpart, so a pascal program and a C program will access the same resource if they use the same Pathand ID
For an example, see msgctl, semctlor shmctl.
ftokreturns -1 if the file in Pathdoesn't exist.
|
Return the ID of a semaphore set, possibly creating the set |
|
|
Return the ID of a shared memory block, possibly creating it |
|
|
Return message queue ID, possibly creating the queue |