From 6b900b344974360925bf80f70c48d04034e552b6 Mon Sep 17 00:00:00 2001 From: SVN Migration Date: Thu, 20 Sep 2001 15:50:12 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'NAMESPACES_BRANCH'. --- ext/sockets/php_sockets_win.c | 177 ------------------------------------------ 1 file changed, 177 deletions(-) delete mode 100644 ext/sockets/php_sockets_win.c (limited to 'ext/sockets/php_sockets_win.c') diff --git a/ext/sockets/php_sockets_win.c b/ext/sockets/php_sockets_win.c deleted file mode 100644 index f352ac4b5c..0000000000 --- a/ext/sockets/php_sockets_win.c +++ /dev/null @@ -1,177 +0,0 @@ -/* - +----------------------------------------------------------------------+ - | PHP version 4.0 | - +----------------------------------------------------------------------+ - | Copyright (c) 1997, 1998, 1999, 2000 The PHP Group | - +----------------------------------------------------------------------+ - | This source file is subject to version 2.02 of the PHP license, | - | that is bundled with this package in the file LICENSE, and is | - | available at through the world-wide-web at | - | http://www.php.net/license/2_02.txt. | - | If you did not receive a copy of the PHP license and are unable to | - | obtain it through the world-wide-web, please send a note to | - | license@php.net so we can mail you a copy immediately. | - +----------------------------------------------------------------------+ - | Authors: Chris Vandomelen | - | Sterling Hughes | - | | - | WinSock: Daniel Beulshausen | - +----------------------------------------------------------------------+ - */ - -#ifdef PHP_WIN32 - -#include -#include - -#include "php.h" -#include "php_sockets.h" -#include "php_sockets_win.h" - -ssize_t readv(SOCKET sock, const struct iovec *iov, int iovcnt) { - size_t bytes, remain, len, pos = 0; - ssize_t retval; - int i; - char *buffer = NULL; - - for(bytes=0, i=0; is_addr = inet_addr(cp); - - if (inp->s_addr == INADDR_NONE) { - return 0; - } - - return 1; -} - -int fcntl(int fd, int cmd, ...) { - va_list va; - int retval, io, mode; - - va_start(va, cmd); - - switch(cmd) { - case F_GETFL: - case F_SETFD: - case F_GETFD: - default: - retval = -1; - break; - - case F_SETFL: - io = va_arg(va, int); - mode = io == O_NONBLOCK ? 1 : 0; - retval = ioctlsocket(fd, io, &mode); - break; - } - - va_end(va); - return retval; -} -#endif \ No newline at end of file -- cgit v1.2.1