summaryrefslogtreecommitdiff
path: root/ext/sysvsem/sysvsem.c
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>1999-05-21 10:06:25 +0000
committerSascha Schumann <sas@php.net>1999-05-21 10:06:25 +0000
commitb57dc275950b228f2399990471c4f22b7d154c6c (patch)
treea89fe99e356b218591b0b0b392862e0b9ddd4e7e /ext/sysvsem/sysvsem.c
parent4fe8fe715e4347a4063a57e1a9fd6dc013ca9ee0 (diff)
downloadphp-git-b57dc275950b228f2399990471c4f22b7d154c6c.tar.gz
- run ext sources through conv_proto
- add necessary phpext_*_ptr
Diffstat (limited to 'ext/sysvsem/sysvsem.c')
-rw-r--r--ext/sysvsem/sysvsem.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ext/sysvsem/sysvsem.c b/ext/sysvsem/sysvsem.c
index c38d93d6c9..afe25b09bc 100644
--- a/ext/sysvsem/sysvsem.c
+++ b/ext/sysvsem/sysvsem.c
@@ -135,7 +135,7 @@ int php3_minit_sysvsem(INIT_FUNC_ARGS)
/* {{{ proto int sem_get(int key [, int max_acquire [, int perm]])
Return an id for the semaphore with the given key, and allow max_acquire (default 1) processes to acquire it simultaneously. */
-void php3_sysvsem_get(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(sysvsem_get)
{
pval *arg_key, *arg_max_acquire, *arg_perm;
int key, max_acquire, perm;
@@ -330,7 +330,7 @@ static void _php3_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, int acquire)
/* {{{ proto int sem_acquire(int id)
Acquires the semaphore with the given id, blocking if necessary. */
-void php3_sysvsem_acquire(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(sysvsem_acquire)
{
_php3_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
}
@@ -338,7 +338,7 @@ void php3_sysvsem_acquire(INTERNAL_FUNCTION_PARAMETERS)
/* {{{ proto int sem_release(int id)
Releases the semaphore with the given id. */
-void php3_sysvsem_release(INTERNAL_FUNCTION_PARAMETERS)
+PHP_FUNCTION(sysvsem_release)
{
_php3_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
}