mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-05-19 15:22:31 +02:00

varargs/array of const overloads) * arrayconstructor and array of const are no longer compatible with the extra varargs parameters (so overloaded varargs and array of const cdecl functions can be distinguished) * fixed tprintf2 for the correct varargs syntax git-svn-id: trunk@4909 -
26 lines
962 B
PHP
26 lines
962 B
PHP
|
|
type
|
|
Psembuf = ^sembuf;
|
|
sembuf = record
|
|
sem_num : word;
|
|
sem_op : smallint;
|
|
sem_flg : smallint;
|
|
end;
|
|
|
|
|
|
function semctl(__semid:longint; __semnum:longint; __cmd:longint; args:array of const):longint;cdecl;external clib name 'semctl';
|
|
function semctl(__semid:longint; __semnum:longint; __cmd:longint):longint;varargs;cdecl;external clib name 'semctl';
|
|
function semget(__key:key_t; __nsems:longint; __semflg:longint):longint;cdecl;external clib name 'semget';
|
|
function semop(__semid:longint; __sops:psembuf; __nsops:size_t):longint;cdecl;external clib name 'semop';
|
|
|
|
|
|
{ ---------------------------------------------------------------------
|
|
Borland compatibility types
|
|
---------------------------------------------------------------------}
|
|
|
|
Type
|
|
TSemaphoreBuffer = sembuf;
|
|
PSemaphoreBuffer = ^TSemaphoreBuffer;
|
|
|
|
function semop(__semid:longint; var __sops:sembuf; __nsops:size_t):longint;cdecl;external clib name 'semop';
|