Lines Matching refs:argv
116 void parse_args(int argc, char *argv[]) {
136 const char *progname = argv[0];
137 argc--; argv++;
139 if (0 == strcmp("-verbose", argv[0])) {
141 argc--; argv++;
142 } else if (0 == strcmp("-affinity", argv[0])) {
144 argc--; argv++;
145 } else if (0 == strcmp("-timeshare", argv[0])) {
147 argc--; argv++;
148 } else if (0 == strcmp("-threaded", argv[0])) {
150 argc--; argv++;
151 } else if (0 == strcmp("-oneway", argv[0])) {
153 argc--; argv++;
154 } else if (0 == strcmp("-type", argv[0])) {
157 if (0 == strcmp("trivial", argv[1])) {
159 } else if (0 == strcmp("inline", argv[1])) {
161 } else if (0 == strcmp("complex", argv[1])) {
165 argc -= 2; argv += 2;
166 } else if (0 == strcmp("-numints", argv[0])) {
169 num_ints = strtoul(argv[1], NULL, 0);
170 argc -= 2; argv += 2;
171 } else if (0 == strcmp("-count", argv[0])) {
174 num_msgs = strtoul(argv[1], NULL, 0);
175 argc -= 2; argv += 2;
176 } else if (0 == strcmp("-clients", argv[0])) {
179 num_clients = strtoul(argv[1], NULL, 0);
180 argc -= 2; argv += 2;
181 } else if (0 == strcmp("-servers", argv[0])) {
184 num_servers = strtoul(argv[1], NULL, 0);
185 argc -= 2; argv += 2;
186 } else if (0 == strcmp("-delay", argv[0])) {
189 client_delay = strtoul(argv[1], NULL, 0);
190 argc -= 2; argv += 2;
191 } else if (0 == strcmp("-spin", argv[0])) {
194 client_spin = strtoul(argv[1], NULL, 0);
195 argc -= 2; argv += 2;
196 } else if (0 == strcmp("-pages", argv[0])) {
199 client_pages = strtoul(argv[1], NULL, 0);
200 argc -= 2; argv += 2;
201 } else if (0 == strcmp("-set", argv[0])) {
204 portcount = strtoul(argv[1], NULL, 0);
206 argc -= 2; argv += 2;
207 argc--; argv++;
687 int main(int argc, char *argv[])
695 parse_args(argc, argv);