Apache HTTPD
framework
httpd-2.4.62
srclib
apr
test
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
11
int
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
}
buf
const unsigned char * buf
Definition
util_md5.h:50
size
apr_size_t size
Definition
apr_allocator.h:115
bytes
const void apr_size_t bytes
Definition
apr_random.h:91
main
int main(void)
Definition
proc_child.c:11
int
typedef int(WSAAPI *apr_winapi_fpt_WSAPoll)(IN OUT LPWSAPOLLFD fdArray
Generated by
1.9.8