CVS update: php3/functions
| From: | sas | Date: | Fri, 28 May 1999 14:08:28 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-6161@lists.php.net to get a copy of this message | ||
Date: Friday May 28, 1999 @ 10:08
Author: sas
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv19579
Modified Files:
fsock.c
Log Message:
add some notes
Index: php3/functions/fsock.c
diff -u php3/functions/fsock.c:1.107 php3/functions/fsock.c:1.108
--- php3/functions/fsock.c:1.107 Thu May 27 09:54:26 1999
+++ php3/functions/fsock.c Fri May 28 10:08:27 1999
@@ -27,7 +27,7 @@
| Jim Winstead (jimw@php.net) |
+----------------------------------------------------------------------+
*/
-/* $Id: fsock.c,v 1.107 1999/05/27 13:54:26 sas Exp $ */
+/* $Id: fsock.c,v 1.108 1999/05/28 14:08:27 sas Exp $ */
#ifdef THREAD_SAFE
#include "tls.h"
#endif
@@ -493,7 +493,11 @@
#define SOCK_FIND_AND_READ_MAX(max) \
SOCK_FIND(sock, socket); \
if(sock->is_blocked) _php3_sock_read_limited(sock, max); else _php3_sock_read(sock)
-
+
+/*
+ * FIXME: fgets depends on '\n' as line delimiters
+ */
+
char *_php3_sock_fgets(char *buf, size_t maxlen, int socket)
{
char *p = NULL;
@@ -532,6 +536,13 @@
return ret;
}
+
+/*
+ * FIXME: fgetc returns EOF, if no data is available on a nonblocking socket.
+ * I don't have any documentation on the semantics of fgetc in this case.
+ *
+ * ss@2ns.de 19990528
+ */
int _php3_sock_fgetc(int socket)
{
--
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