2012-08-26 20:12:51 -04:00
|
|
|
/*
|
2019-04-29 07:21:51 -06:00
|
|
|
* SPDX-License-Identifier: ISC
|
|
|
|
*
|
2021-08-19 09:50:05 -06:00
|
|
|
* Copyright (c) 2010-2012, 2015, 2021 Todd C. Miller <Todd.Miller@sudo.ws>
|
2012-08-26 20:12:51 -04:00
|
|
|
*
|
|
|
|
* Permission to use, copy, modify, and distribute this software for any
|
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
|
|
|
*
|
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
* WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
* MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
* ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
* WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
*/
|
|
|
|
|
2018-10-26 08:39:09 -06:00
|
|
|
/*
|
|
|
|
* This is an open source non-commercial project. Dear PVS-Studio, please check it.
|
|
|
|
* PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
|
|
|
|
*/
|
2018-10-21 08:46:05 -06:00
|
|
|
|
2012-08-26 20:12:51 -04:00
|
|
|
|
|
|
|
#include <config.h>
|
|
|
|
|
2015-06-19 14:29:27 -06:00
|
|
|
#include <stdlib.h>
|
2012-08-26 20:12:51 -04:00
|
|
|
#include <signal.h>
|
|
|
|
|
2014-07-22 14:25:16 -06:00
|
|
|
#include "sudo_compat.h"
|
2012-08-26 20:12:51 -04:00
|
|
|
|
2020-08-12 09:57:42 -06:00
|
|
|
sudo_dso_public int main(int argc, char *argv[]);
|
2012-10-02 15:08:02 -04:00
|
|
|
|
2012-08-26 20:12:51 -04:00
|
|
|
int
|
|
|
|
main(int argc, char *argv[])
|
|
|
|
{
|
2021-08-19 09:50:05 -06:00
|
|
|
unsigned int i;
|
2012-08-26 20:12:51 -04:00
|
|
|
|
2014-07-14 09:46:17 -06:00
|
|
|
#include "mksigname.h"
|
2012-08-26 20:12:51 -04:00
|
|
|
|
2021-08-19 09:50:05 -06:00
|
|
|
printf("const char *const sudo_sys_signame[] = {\n");
|
|
|
|
for (i = 0; i < nitems(sudo_sys_signame); i++) {
|
2012-08-28 09:28:25 -04:00
|
|
|
if (sudo_sys_signame[i] != NULL) {
|
|
|
|
printf(" \"%s\",\n", sudo_sys_signame[i]);
|
2012-08-26 20:12:51 -04:00
|
|
|
} else {
|
|
|
|
printf(" \"Signal %d\",\n", i);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
printf("};\n");
|
|
|
|
|
2020-02-08 12:43:00 -07:00
|
|
|
exit(EXIT_SUCCESS);
|
2012-08-26 20:12:51 -04:00
|
|
|
}
|