Apache HTTPD
framework
httpd-2.4.62
srclib
apr
test
occhild.c
Go to the documentation of this file.
1
#include "apr.h"
2
#include "
apr_file_io.h
"
3
#include "apr.h"
4
5
#if APR_HAVE_STDLIB_H
6
#include <stdlib.h>
7
#endif
8
9
int
main
(
void
)
10
{
11
char
buf
[256];
12
apr_file_t
*
err
;
13
apr_pool_t
*
p
;
14
15
apr_initialize
();
16
atexit
(
apr_terminate
);
17
18
apr_pool_create
(&
p
,
NULL
);
19
apr_file_open_stdin
(&
err
,
p
);
20
21
while
(1) {
22
apr_size_t
length
= 256;
23
apr_file_read
(
err
,
buf
, &
length
);
24
}
25
exit
(0);
/* just to keep the compiler happy */
26
}
apr_file_io.h
APR File I/O Handling.
buf
const unsigned char * buf
Definition
util_md5.h:50
length
int apr_off_t * length
Definition
apr_buckets.h:742
size
apr_size_t size
Definition
apr_allocator.h:115
apr_pool_create
#define apr_pool_create(newpool, parent)
Definition
apr_pools.h:322
err
apr_int32_t apr_int32_t apr_int32_t err
Definition
apr_thread_proc.h:418
p
apr_pool_t * p
Definition
md_event.c:32
NULL
return NULL
Definition
mod_so.c:359
main
int main(void)
Definition
occhild.c:9
apr_file_t
Definition
apr_arch_file_io.h:97
apr_pool_t
Definition
apr_pools.c:562
Generated by
1.9.8