summaryrefslogtreecommitdiff
path: root/ext/sysvsem/sysvsem.stub.php
blob: 095720df601036608e8bfbbab9c18dbc690107c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php

/** @generate-function-entries */

final class SysvSemaphore
{
}

/**
 * @todo use bool for $auto_release
 */
function sem_get(int $key, int $max_acquire = 1, int $perm = 0666, int $auto_release = 1): SysvSemaphore|false {}

function sem_acquire(SysvSemaphore $semaphore, bool $nowait = false): bool {}

function sem_release(SysvSemaphore $semaphore): bool {}

function sem_remove(SysvSemaphore $semaphore): bool {}