version 1.1, 2012/02/21 16:23:02
|
version 1.1.1.3, 2013/07/22 10:46:11
|
Line 1
|
Line 1
|
/* |
/* |
* Copyright (c) 2010-2011 Todd C. Miller <Todd.Miller@courtesan.com> | * Copyright (c) 2010-2012 Todd C. Miller <Todd.Miller@courtesan.com> |
* |
* |
* Permission to use, copy, modify, and distribute this software for any |
* Permission to use, copy, modify, and distribute this software for any |
* purpose with or without fee is hereby granted, provided that the above |
* purpose with or without fee is hereby granted, provided that the above |
Line 32
|
Line 32
|
|
|
#include "missing.h" |
#include "missing.h" |
|
|
|
__dso_public int main(int argc, char *argv[]); |
|
|
int |
int |
main(int argc, char *argv[]) |
main(int argc, char *argv[]) |
{ |
{ |
static char *my_sys_siglist[NSIG]; | static char *sudo_sys_siglist[NSIG]; |
int i; |
int i; |
|
|
#include "compat/mksiglist.h" |
#include "compat/mksiglist.h" |
Line 43 main(int argc, char *argv[])
|
Line 45 main(int argc, char *argv[])
|
printf("#include <config.h>\n"); |
printf("#include <config.h>\n"); |
printf("#include <signal.h>\n"); |
printf("#include <signal.h>\n"); |
printf("#include \"missing.h\"\n\n"); |
printf("#include \"missing.h\"\n\n"); |
printf("const char *const my_sys_siglist[NSIG] = {\n"); | printf("const char *const sudo_sys_siglist[NSIG] = {\n"); |
for (i = 0; i < NSIG; i++) { |
for (i = 0; i < NSIG; i++) { |
if (my_sys_siglist[i] != NULL) { | if (sudo_sys_siglist[i] != NULL) { |
printf(" \"%s\",\n", my_sys_siglist[i]); | printf(" \"%s\",\n", sudo_sys_siglist[i]); |
} else { |
} else { |
printf(" \"Signal %d\",\n", i); |
printf(" \"Signal %d\",\n", i); |
} |
} |