xref: /aosp_15_r20/external/cronet/third_party/apache-portable-runtime/src/test/occhild.c (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
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 
main(void)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 }
27