1f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project/*
2f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * Dropbear - a SSH2 server
3f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project *
4f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * Copyright (c) 2002,2003 Matt Johnston
5f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * All rights reserved.
6f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project *
7f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * Permission is hereby granted, free of charge, to any person obtaining a copy
8f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * of this software and associated documentation files (the "Software"), to deal
9f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * in the Software without restriction, including without limitation the rights
10f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * copies of the Software, and to permit persons to whom the Software is
12f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * furnished to do so, subject to the following conditions:
13f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project *
14f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * The above copyright notice and this permission notice shall be included in
15f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * all copies or substantial portions of the Software.
16f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project *
17f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project * SOFTWARE. */
24f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project
25f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project#include "chansession.h"
26f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project
27f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project/* Mapping of signal values to ssh signal strings */
28f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Projectconst struct SigMap signames[] = {
29f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGABRT, "ABRT"},
30f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGALRM, "ALRM"},
31f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGFPE, "FPE"},
32f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGHUP, "HUP"},
33f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGILL, "ILL"},
34f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGINT, "INT"},
35f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGKILL, "KILL"},
36f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGPIPE, "PIPE"},
37f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGQUIT, "QUIT"},
38f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGSEGV, "SEGV"},
39f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGTERM, "TERM"},
40f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGUSR1, "USR1"},
41f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{SIGUSR2, "USR2"},
42f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project	{0, NULL}
43f7fc46c63fdc8f39234fea409b8dbe116d73ebf8The Android Open Source Project};
44