[PHP4BETA] CVS update: php4/ext/sysvshm

From: Date: Fri, 21 May 1999 10:06:24 +0000
Subject: [PHP4BETA] CVS update: php4/ext/sysvshm
Groups: php.version4 
Request: Send a blank email to php-version4+get-961@lists.php.net to get a copy of this message
Date: Friday May 21, 1999 @ 6:06 Author: sas Update of /repository/php4/ext/sysvshm In directory php:/tmp/cvs-serv14196/ext/sysvshm Modified Files: php3_sysvshm.h sysvshm.c Log Message: - run ext sources through conv_proto - add necessary phpext_*_ptr Index: php4/ext/sysvshm/php3_sysvshm.h diff -u php4/ext/sysvshm/php3_sysvshm.h:1.2 php4/ext/sysvshm/php3_sysvshm.h:1.3 --- php4/ext/sysvshm/php3_sysvshm.h:1.2 Fri May 21 04:20:12 1999 +++ php4/ext/sysvshm/php3_sysvshm.h Fri May 21 06:06:23 1999 @@ -28,7 +28,7 @@ */ -/* $Id: php3_sysvshm.h,v 1.2 1999/05/21 08:20:12 sas Exp $ */ +/* $Id: php3_sysvshm.h,v 1.3 1999/05/21 10:06:23 sas Exp $ */ #ifndef _PHP3_SYSVSHM_H #define _PHP3_SYSVSHM_H @@ -80,12 +80,12 @@ extern int php3_minit_sysvshm(INIT_FUNC_ARGS); -extern void php3_sysvshm_attach(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_sysvshm_detach(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_sysvshm_remove(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_sysvshm_put_var(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_sysvshm_get_var(INTERNAL_FUNCTION_PARAMETERS); -extern void php3_sysvshm_remove_var(INTERNAL_FUNCTION_PARAMETERS); +PHP_FUNCTION(sysvshm_attach); +PHP_FUNCTION(sysvshm_detach); +PHP_FUNCTION(sysvshm_remove); +PHP_FUNCTION(sysvshm_put_var); +PHP_FUNCTION(sysvshm_get_var); +PHP_FUNCTION(sysvshm_remove_var); extern int php3int_put_shmdata(sysvshm_chunk_head *ptr,long key,char *data, long len); extern long php3int_check_shmdata(sysvshm_chunk_head *ptr, long key); extern int php3int_remove_shmdata(sysvshm_chunk_head *ptr, long shm_varpos); Index: php4/ext/sysvshm/sysvshm.c diff -u php4/ext/sysvshm/sysvshm.c:1.3 php4/ext/sysvshm/sysvshm.c:1.4 --- php4/ext/sysvshm/sysvshm.c:1.3 Fri May 21 04:20:12 1999 +++ php4/ext/sysvshm/sysvshm.c Fri May 21 06:06:24 1999 @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sysvshm.c,v 1.3 1999/05/21 08:20:12 sas Exp $ */ +/* $Id: sysvshm.c,v 1.4 1999/05/21 10:06:24 sas Exp $ */ /* This has been built and tested on Solaris 2.6. * It may not compile or execute correctly on other systems. @@ -86,7 +86,7 @@ /* {{{ proto int shm_attach(int key, int size, int flag) Return an id for the shared memory with the given key. */ -void php3_sysvshm_attach(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(sysvshm_attach) { pval *arg_key,*arg_size,*arg_flag; long shm_size,shm_flag; @@ -178,7 +178,7 @@ /* {{{ proto int shm_detach(int id) releases the shared memory attachment with the given id. */ -void php3_sysvshm_detach(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(sysvshm_detach) { pval *arg_id; long id; @@ -218,7 +218,7 @@ /* {{{ proto int shm_remove(int key) removes the shared memory with the given key. */ -void php3_sysvshm_remove(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(sysvshm_remove) { pval *arg_key; long id; @@ -255,7 +255,7 @@ /* {{{ proto int shm_put(int id, int key, object *variable) insert a variable into shared memory. */ -void php3_sysvshm_put_var(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(sysvshm_put_var) { pval *arg_id, *arg_key, *arg_var; long key, id; @@ -310,7 +310,7 @@ /* {{{ proto string/float/int/array shm_get_var(int id, int key) returns a variable into shared memory. */ -void php3_sysvshm_get_var(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(sysvshm_get_var) { pval *arg_id, *arg_key; long key, id; @@ -361,7 +361,7 @@ /* {{{ proto int shm_remove_var(int id, int key) removes variable from shared memory. */ -void php3_sysvshm_remove_var(INTERNAL_FUNCTION_PARAMETERS) +PHP_FUNCTION(sysvshm_remove_var) { pval *arg_id, *arg_key; long key, id; -- PHP 4 Beta

« previous php.version4 (#961) next »