Added arginfos and tweaked function declarations to be compatible with PHP8

This commit is contained in:
ftc
2023-03-06 23:09:49 +03:00
parent e0db3806d6
commit f4a3095c66
4 changed files with 66 additions and 19 deletions
+11
View File
@@ -0,0 +1,11 @@
<?php
function posix_sem_open(string $name, int $flags, int $mode, int $value) : resource|null {}
function posix_sem_close(resource $semaphore) : boolean {}
function posix_sem_unlink(resource $semaphore) : boolean {}
function posix_sem_post(resource $semaphore) : boolean {}
function posix_sem_wait(resource $semaphore) : boolean {}
function posix_sem_trywait(resource $semaphore) : boolean {}
function posix_sem_timedwait(resource $semaphore, int $timeout_sec, int $timeout_nsec = 0) : boolean {}
function posix_sem_getvalue(resource $semaphore) : int|null {}
function posix_sem_error() : int {}