Initialize semaphore
- Parameters:
-
| keyfile | seed for generating unique IPC key |
| keyid | seed for generating unique IPC key |
| nsems | number of semaphore to initialize |
| ifexistdestroy | set to true to destroy if semaphore already exists |
- Returns:
- non-negative shared memory identifier if successful, otherwise returns -1
Definition at line 95 of file qSem.c.