Apache HTTPD
proc_child.c
Go to the documentation of this file.
1#include "apr.h"
2#include <stdio.h>
3#if APR_HAVE_UNISTD_H
4#include <unistd.h>
5#endif
6#if APR_HAVE_IO_H
7#include <io.h>
8#endif
9#include <stdlib.h>
10
11int main(void)
12{
13 char buf[256];
14 int bytes, rv = 0;
15
16 bytes = (int)read(STDIN_FILENO, buf, 256);
17 if (bytes > 0)
18 rv = write(STDOUT_FILENO, buf, (unsigned int)bytes) == bytes ? 0 : 1;
19
20 return rv;
21}
const unsigned char * buf
Definition util_md5.h:50
apr_size_t size
const void apr_size_t bytes
Definition apr_random.h:91
int main(void)
Definition proc_child.c:11
typedef int(WSAAPI *apr_winapi_fpt_WSAPoll)(IN OUT LPWSAPOLLFD fdArray