Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
a70118a5
Commit
a70118a5
authored
Oct 28, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added fixes to ensure binary I/O on win32.
parent
858cdc26
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
pcgi/pcgi-wrapper.c
pcgi/pcgi-wrapper.c
+5
-1
pcgi/pcgi.h
pcgi/pcgi.h
+1
-0
No files found.
pcgi/pcgi-wrapper.c
View file @
a70118a5
...
...
@@ -55,7 +55,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
char
spewbuf
[
1024
];
/* yes, it's a global, but only for debugging */
#endif
static
char
_id_
[]
=
"$Id: pcgi-wrapper.c,v 1.
5 1998/12/03 22:43:03
brian Exp $"
;
static
char
_id_
[]
=
"$Id: pcgi-wrapper.c,v 1.
6 1999/10/28 17:34:56
brian Exp $"
;
/* Globals, OR: "I'll know I'll hate myself in the morning" */
extern
char
**
environ
;
...
...
@@ -85,6 +85,10 @@ int main(int argc, char *argv[])
CloseFileDescriptors
=
1
;
#endif
#ifdef WIN32
_setmode
(
fileno
(
stdin
),
O_BINARY
);
_setmode
(
fileno
(
stdout
),
O_BINARY
);
#endif
/*
// Initialize resource info
...
...
pcgi/pcgi.h
View file @
a70118a5
...
...
@@ -67,6 +67,7 @@ IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <io.h>
#include <iostream.h>
#include <winsock.h>
#include <fcntl.h>
#endif
#define MAXLINEBUFFER 12
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment