diff options
author | steve <steve@FreeBSD.org> | 1999-06-09 09:43:06 +0800 |
---|---|---|
committer | steve <steve@FreeBSD.org> | 1999-06-09 09:43:06 +0800 |
commit | f7b04737611525e4c8f2cdee6df02ee4a8079986 (patch) | |
tree | e173523e82edbc05a64142537cc90a3eb2a90180 /www/fcgi/files | |
parent | cb2053b89b6a3ac7f07c0f8fe82a142978e86e7b (diff) | |
download | freebsd-ports-gnome-f7b04737611525e4c8f2cdee6df02ee4a8079986.tar.gz freebsd-ports-gnome-f7b04737611525e4c8f2cdee6df02ee4a8079986.tar.zst freebsd-ports-gnome-f7b04737611525e4c8f2cdee6df02ee4a8079986.zip |
Initial import of fcgi-devkit version 2.1.
The FastCGI development kit.
PR: 11699
Submitted by: Kelly Yancey <kbyanc@alcnet.com>
Diffstat (limited to 'www/fcgi/files')
-rw-r--r-- | www/fcgi/files/patch-aa | 36 | ||||
-rw-r--r-- | www/fcgi/files/patch-ab | 103 |
2 files changed, 139 insertions, 0 deletions
diff --git a/www/fcgi/files/patch-aa b/www/fcgi/files/patch-aa new file mode 100644 index 000000000000..d994c745057a --- /dev/null +++ b/www/fcgi/files/patch-aa @@ -0,0 +1,36 @@ +*** Makefile.in.orig Thu May 13 17:22:24 1999 +--- Makefile.in Thu May 13 17:31:56 1999 +*************** +*** 14,20 **** + prefix = @prefix@ + common_prefix = @common_prefix@ + CVS_TAG = @CVS_TAG@ +! EXPORT_DIR = $(prefix)/build + PROTO_DIR = ../proto + BIN_DIR = $(exec_prefix)/bin + LIB_DIR = $(prefix)/lib +--- 14,20 ---- + prefix = @prefix@ + common_prefix = @common_prefix@ + CVS_TAG = @CVS_TAG@ +! EXPORT_DIR = $(prefix)/fcgi-devkit + PROTO_DIR = ../proto + BIN_DIR = $(exec_prefix)/bin + LIB_DIR = $(prefix)/lib +*************** +*** 41,47 **** + (cd cgi-fcgi; make all) + (cd examples; make all) + +! export: + @ for i in $(TARGET_DIRS); \ + do \ + if test ! -d $$i; then \ +--- 41,47 ---- + (cd cgi-fcgi; make all) + (cd examples; make all) + +! install: all + @ for i in $(TARGET_DIRS); \ + do \ + if test ! -d $$i; then \ diff --git a/www/fcgi/files/patch-ab b/www/fcgi/files/patch-ab new file mode 100644 index 000000000000..6fc891d78bd7 --- /dev/null +++ b/www/fcgi/files/patch-ab @@ -0,0 +1,103 @@ +*** libfcgi/os_unix.c.orig Sat Feb 6 00:08:33 1999 +--- libfcgi/os_unix.c Thu May 13 10:32:00 1999 +*************** +*** 412,420 **** + */ + int OS_Read(int fd, char * buf, size_t len) + { +! return(read(fd, buf, len)); + } +! + /* + *-------------------------------------------------------------- + * +--- 412,424 ---- + */ + int OS_Read(int fd, char * buf, size_t len) + { +! int result; +! do { +! result = read(fd, buf, len); +! } while((result == -1) && (errno == EINTR)); +! return(result); + } +! + /* + *-------------------------------------------------------------- + * +*************** +*** 433,442 **** + */ + int OS_Write(int fd, char * buf, size_t len) + { +! return(write(fd, buf, len)); + } + +- + /* + *---------------------------------------------------------------------- + * +--- 437,449 ---- + */ + int OS_Write(int fd, char * buf, size_t len) + { +! int result; +! do { +! result = write(fd, buf, len); +! } while((result == -1) && (errno == EINTR)); +! return(result); + } + + /* + *---------------------------------------------------------------------- + * +*************** +*** 761,768 **** + * any work to do. + */ + if(numRdPosted == 0 && numWrPosted == 0) { +! selectStatus = select((maxFd+1), &readFdSetCpy, &writeFdSetCpy, +! NULL, tmo); + if(selectStatus < 0) { + exit(errno); + } +--- 768,777 ---- + * any work to do. + */ + if(numRdPosted == 0 && numWrPosted == 0) { +! do { +! selectStatus = select((maxFd+1), &readFdSetCpy, &writeFdSetCpy, +! NULL, tmo); +! } while ((selectStatus == -1) && (errno == EINTR)); + if(selectStatus < 0) { + exit(errno); + } +*************** +*** 1020,1030 **** + { + struct timeval tval = { READABLE_UNIX_FD_DROP_DEAD_TIMEVAL }; + fd_set read_fds; + + FD_ZERO(&read_fds); + FD_SET(fd, &read_fds); + +! return select(fd + 1, &read_fds, NULL, NULL, &tval) >= 0 && FD_ISSET(fd, &read_fds); + } + + /* +--- 1029,1043 ---- + { + struct timeval tval = { READABLE_UNIX_FD_DROP_DEAD_TIMEVAL }; + fd_set read_fds; ++ int result; + + FD_ZERO(&read_fds); + FD_SET(fd, &read_fds); + +! do { +! result = select(fd + 1, &read_fds, NULL, NULL, &tval); +! } while((result == -1) && (errno == EINTR)); +! return result >= 0 && FD_ISSET(fd, &read_fds); + } + + /* |