Code Review
/
bottlenecks.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
history
|
raw
|
HEAD
bottleneck testcase based on rubbos
[bottlenecks.git]
/
rubbos
/
app
/
httpd-2.0.64
/
srclib
/
apr
/
test
/
occhild.c
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
}