| 78 | } |
| 79 | |
| 80 | int main(int argc, char* argv[]) |
| 81 | { |
| 82 | acl::log::stdout_open(true); |
| 83 | |
| 84 | int nblock = 2, capacity = 1000, incr = 999; |
| 85 | int n, max = 100000, pos = 987; |
| 86 | while ((n = getopt(argc, argv, "hn:p:b:c:i:")) > 0) |
| 87 | { |
| 88 | switch (n) |
| 89 | { |
| 90 | case 'h': |
| 91 | usage(argv[0]); |
| 92 | return 0; |
| 93 | case 'n': |
| 94 | max = atoi(optarg); |
| 95 | break; |
| 96 | case 'p': |
| 97 | pos = atoi(optarg); |
| 98 | break; |
| 99 | case 'c': |
| 100 | capacity = atoi(optarg); |
| 101 | break; |
| 102 | case 'i': |
| 103 | incr = atoi(optarg); |
| 104 | break; |
| 105 | case 'b': |
| 106 | nblock = atoi(optarg); |
| 107 | break; |
| 108 | default: |
| 109 | break; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | test(nblock, capacity, incr, max, pos); |
| 114 | return 0; |
| 115 | } |