CVS update: php3/functions
| From: | tommay | Date: | Thu, 19 Nov 1998 15:46:52 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-2482@lists.php.net to get a copy of this message | ||
Date: Thursday November 19, 1998 @ 10:46
Author: tommay
Update of /repository/php3/functions
In directory asf:/u2/tmp/cvs-serv18457
Modified Files:
sysvsem.c
Log Message:
Fix/update the proto stuff.
Index: php3/functions/sysvsem.c
diff -c php3/functions/sysvsem.c:1.1 php3/functions/sysvsem.c:1.2
*** php3/functions/sysvsem.c:1.1 Tue Nov 17 18:21:21 1998
--- php3/functions/sysvsem.c Thu Nov 19 10:46:51 1998
***************
*** 27,33 ****
+----------------------------------------------------------------------+
*/
! /* $Id: sysvsem.c,v 1.1 1998/11/17 23:21:21 tommay 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.
--- 27,33 ----
+----------------------------------------------------------------------+
*/
! /* $Id: sysvsem.c,v 1.2 1998/11/19 15:46:51 tommay 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.
***************
*** 123,129 ****
}
! /* {{{ proto int sem_get(int key [, int max_acquire])
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)
{
--- 123,129 ----
}
! /* {{{ 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)
{
***************
*** 261,267 ****
return_value->type = IS_LONG;
sem_ptr->id = (int)return_value->value.lval;
! } /* }}} */
static void _php3_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, int acquire)
{
--- 261,268 ----
return_value->type = IS_LONG;
sem_ptr->id = (int)return_value->value.lval;
! }
! /* }}} */
static void _php3_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, int acquire)
{
***************
*** 316,329 ****
void php3_sysvsem_acquire(INTERNAL_FUNCTION_PARAMETERS)
{
_php3_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
! } /* }}} */
! /* {{{ proto int sem_acquire(int id)
Releases the semaphore with the given id. */
void php3_sysvsem_release(INTERNAL_FUNCTION_PARAMETERS)
{
_php3_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
! } /* }}} */
#endif /* HAVE_SYSVSEM */
/*
--- 317,332 ----
void php3_sysvsem_acquire(INTERNAL_FUNCTION_PARAMETERS)
{
_php3_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
! }
! /* }}} */
! /* {{{ proto int sem_release(int id)
Releases the semaphore with the given id. */
void php3_sysvsem_release(INTERNAL_FUNCTION_PARAMETERS)
{
_php3_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
! }
! /* }}} */
#endif /* HAVE_SYSVSEM */
/*
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net