[PHP4BETA] CVS update: php4/ext/sysvsem

From: Date: Fri, 21 May 1999 10:06:23 +0000
Subject: [PHP4BETA] CVS update: php4/ext/sysvsem
Groups: php.version4 
Request: Send a blank email to php-version4+get-960@lists.php.net to get a copy of this message
Date: Friday May 21, 1999 @ 6:06 Author: sas Update of /repository/php4/ext/sysvsem In directory php:/tmp/cvs-serv14196/ext/sysvsem Modified Files: php3_sysvsem.h sysvsem.c Log Message: - run ext sources through conv_proto - add necessary phpext_*_ptr Index: php4/ext/sysvsem/php3_sysvsem.h diff -u php4/ext/sysvsem/php3_sysvsem.h:1.2 php4/ext/sysvsem/php3_sysvsem.h:1.3 --- php4/ext/sysvsem/php3_sysvsem.h:1.2 Fri May 21 04:20:12 1999 +++ php4/ext/sysvsem/php3_sysvsem.h Fri May 21 06:06:22 1999 @@ -28,7 +28,7 @@ */ -/* $Id: php3_sysvsem.h,v 1.2 1999/05/21 08:20:12 sas Exp $ */ +/* $Id: php3_sysvsem.h,v 1.3 1999/05/21 10:06:22 sas Exp $ */ #ifndef _PHP3_SYSVSEM_H #define _PHP3_SYSVSEM_H @@ -47,10 +47,10 @@ extern int php3_rinit_sysvsem(INIT_FUNC_ARGS); extern int php3_mshutdown_sysvsem(SHUTDOWN_FUNC_ARGS); extern int php3_rshutdown_sysvsem(SHUTDOWN_FUNC_ARGS); -extern void php3_info_sysvsem(void); -extern void php3_sysvsem_get(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_sysvsem_acquire(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_sysvsem_release(INTERNAL_FUNCTION_PARAMETERS); +void php3_info_sysvsem(void); +PHP_FUNCTION(sysvsem_get); +PHP_FUNCTION(sysvsem_acquire); +PHP_FUNCTION(sysvsem_release); typedef struct { int le_sem; Index: php4/ext/sysvsem/sysvsem.c diff -u php4/ext/sysvsem/sysvsem.c:1.4 php4/ext/sysvsem/sysvsem.c:1.5 --- php4/ext/sysvsem/sysvsem.c:1.4 Fri May 21 04:20:12 1999 +++ php4/ext/sysvsem/sysvsem.c Fri May 21 06:06:23 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sysvsem.c,v 1.4 1999/05/21 08:20:12 sas Exp $ */ +/* $Id: sysvsem.c,v 1.5 1999/05/21 10:06:23 sas Exp $ */ /* This has been built and tested on Solaris 2.6 and Linux 2.1.122. * It may not compile or execute correctly on other systems. @@ -135,7 +135,7 @@ /* {{{ 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 @@ /* {{{ 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 @@ /* {{{ 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); } -- PHP 4 Beta

« previous php.version4 (#960) next »