[PHP4BETA] CVS update: php4/ext/sysvsem

From: Date: Fri, 21 May 1999 08:04:37 +0000
Subject: [PHP4BETA] CVS update: php4/ext/sysvsem
Groups: php.version4 
Request: Send a blank email to php-version4+get-920@lists.php.net to get a copy of this message
Date: Friday May 21, 1999 @ 4:04 Author: sas Update of /repository/php4/ext/sysvsem In directory php:/tmp/cvs-serv17580/ext/sysvsem Modified Files: sysvsem.c Log Message: - add phpext_pgsql_ptr - semaphore update for glibc-2.1 systems Index: php4/ext/sysvsem/sysvsem.c diff -u php4/ext/sysvsem/sysvsem.c:1.2 php4/ext/sysvsem/sysvsem.c:1.3 --- php4/ext/sysvsem/sysvsem.c:1.2 Mon May 10 20:01:46 1999 +++ php4/ext/sysvsem/sysvsem.c Fri May 21 04:04:35 1999 @@ -2,7 +2,7 @@ +----------------------------------------------------------------------+ | PHP HTML Embedded Scripting Language Version 3.0 | +----------------------------------------------------------------------+ - | Copyright (c) 1997,1998 PHP Development Team (See Credits file) | + | Copyright (c) 1997-1999 PHP Development Team (See Credits file) | +----------------------------------------------------------------------+ | This program is free software; you can redistribute it and/or modify | | it under the terms of one of the following licenses: | @@ -27,7 +27,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: sysvsem.c,v 1.2 1999/05/11 00:01:46 zeev Exp $ */ +/* $Id: sysvsem.c,v 1.3 1999/05/21 08:04:35 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. @@ -49,6 +49,19 @@ #include "php.h" #include "php3_sysvsem.h" +#if !HAVE_SEMUN && defined(__GNU_LIBRARY__) && __GNU_LIBRARY__ == 6 + +union semun { + int val; /* value for SETVAL */ + struct semid_ds *buf; /* buffer for IPC_STAT, IPC_SET */ + unsigned short int *array; /* array for GETALL, SETALL */ + struct seminfo *__buf; /* buffer for IPC_INFO */ +}; + +#undef HAVE_SEMUN +#define HAVE_SEMUN 1 + +#endif function_entry sysvsem_functions[] = { {"sem_get", php3_sysvsem_get, NULL}, -- PHP 4 Beta

« previous php.version4 (#920) next »