Re: CVS update: php3/functions

From: Date: Sun, 13 Jun 1999 13:06:17 +0000
Subject: Re: CVS update: php3/functions
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-6933@lists.php.net to get a copy of this message
On Sun, Jun 13, 1999 at 10:07:44AM -0000, sas wrote: > Date: Sunday June 13, 1999 @ 6:07 > Author: sas > > Update of /repository/php3/functions > In directory php:/tmp/cvs-serv3013/functions > > Modified Files: > file.c file.h fsock.c > Log Message: > optimize fgets for blocking sockets Uh, silly bug in glibc-2.x. They've forgot to include all MSG_* attributes > 0x10 which includes MSG_DONTWAIT. The bugfix should be in glibc-2.1.2. Premilinary patch for /usr/include/bits/socket.h which suits our need is attached (note that the patch is not required, the PHP3 code implements a work around for that scenario). -- Regards, Sascha Schumann Consultant

--- socket.h_ Sun Jun 13 15:00:16 1999 +++ socket.h Sun Jun 13 15:01:47 1999 @@ -174,8 +174,10 @@ #endif MSG_CTRUNC = 0x08, /* Control data lost before delivery. */ #define MSG_CTRUNC MSG_CTRUNC - MSG_PROXY = 0x10 /* Supply or ask second address. */ + MSG_PROXY = 0x10, /* Supply or ask second address. */ #define MSG_PROXY MSG_PROXY + MSG_DONTWAIT = 0x40 +#define MSG_DONTWAIT MSG_DONTWAIT };
« previous php.dev (#6933) next »