22 |
#include "getopt.h" |
#include "getopt.h" |
23 |
#include <errno.h> |
#include <errno.h> |
24 |
#include <stdarg.h> |
#include <stdarg.h> |
25 |
|
#include <stdbool.h> |
26 |
|
|
27 |
#include <sys/types.h> |
#include <sys/types.h> |
28 |
#include <sys/wait.h> |
#include <sys/wait.h> |
81 |
/* counters: */ |
/* counters: */ |
82 |
int counter_routines = 0; |
int counter_routines = 0; |
83 |
|
|
84 |
|
bool weak_p = false; |
85 |
|
|
86 |
/* XXX */ |
/* XXX */ |
87 |
FILE *output_fp; |
FILE *output_fp; |
88 |
|
|
239 |
{ "kernel", FALSE, 0, 'k' }, |
{ "kernel", FALSE, 0, 'k' }, |
240 |
{ "include", TRUE, 0, 'i' }, |
{ "include", TRUE, 0, 'i' }, |
241 |
{ "no-pthread", FALSE,0, 'P' }, |
{ "no-pthread", FALSE,0, 'P' }, |
242 |
|
{ "weak", FALSE, 0, 'W' }, |
243 |
{ 0, 0, 0, 0 } |
{ 0, 0, 0, 0 } |
244 |
}; |
}; |
245 |
FILE *fp; |
FILE *fp; |
289 |
output_file = optarg; |
output_file = optarg; |
290 |
break; |
break; |
291 |
|
|
292 |
|
case 'W': |
293 |
|
weak_p = true; |
294 |
|
break; |
295 |
|
|
296 |
case 'p': |
case 'p': |
297 |
#if 0 |
#if 0 |
298 |
sprintf (buff, "%s_", optarg); |
sprintf (buff, "%s_", optarg); |