Re: sem.h changes in glibc-2.1.1
| From: | Sascha Schumann | Date: | Wed, 19 May 1999 13:56:16 +0000 |
| Subject: | Re: sem.h changes in glibc-2.1.1 | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-5788@lists.php.net to get a copy of this message | ||
On Wed, May 19, 1999 at 08:18:43AM -0400, Rasmus Lerdorf wrote:
> I think something was changed in sem.h on glibc-2.1.1 systems. I don't
> have time to track it down right now, but will in a few hours unless
> someone beats me to it. So, if you have a RH6 box and have nothing to do
> for the next little while, please check if the current cvs semaphore
> support compiles and works.
It did not work properly. The code made the assumption that, if union semun
is not defined, semctl() does not use union semun as fourth argument.
From the glibc-2.1.1pre3 FAQ:
3.15. The sys/sem.h file lacks the definition of `union semun'.
{UD} Nope. This union has to be provided by the user program. Former glibc
versions defined this but it was an error since it does not make much sense
when thinking about it. The standards describing the System V IPC functions
define it this way and therefore programs must be adopted.
------
So, even if I don't see the point of a structure used by the C interface not
being declared in the standard C header files, we should adopt PHP to match
that "standard" (X/OPEN) behaviour.
--
Regards,
Sascha Schumann
Consultant
--
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