Displaying 2 results from an estimated 2 matches for "name2sig".
Did you mean:
name2sid
2001 Oct 29
0
signal messages
...n.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/session.c,v
retrieving revision 1.108
diff -u -r1.108 session.c
--- session.c 11 Oct 2001 13:45:21 -0000 1.108
+++ session.c 29 Oct 2001 19:25:44 -0000
@@ -1383,6 +1383,47 @@
}
}
+static int
+name2sig(char *name)
+{
+#define SIG(x) if (strcmp(name, #x) == 0) return SIG ## x
+ SIG(ABRT);
+ SIG(ALRM);
+ SIG(FPE);
+ SIG(HUP);
+ SIG(ILL);
+ SIG(INT);
+ SIG(KILL);
+ SIG(PIPE);
+ SIG(QUIT);
+ SIG(SEGV);
+ SIG(TERM);
+ SIG(USR1);
+ SIG(USR2);
+ return -1;
+}
+
+static int
+session_signal_req(Session *s...
2002 Jan 31
4
signal transmission in ssh2
...n.c
===================================================================
RCS file: /cvs/src/usr.bin/ssh/session.c,v
retrieving revision 1.122
diff -u -r1.122 session.c
--- session.c 29 Jan 2002 22:46:41 -0000 1.122
+++ session.c 31 Jan 2002 17:17:21 -0000
@@ -1375,6 +1375,47 @@
}
}
+static int
+name2sig(char *name)
+{
+#define SIG(x) if (strcmp(name, #x) == 0) return SIG ## x
+ SIG(ABRT);
+ SIG(ALRM);
+ SIG(FPE);
+ SIG(HUP);
+ SIG(ILL);
+ SIG(INT);
+ SIG(KILL);
+ SIG(PIPE);
+ SIG(QUIT);
+ SIG(SEGV);
+ SIG(TERM);
+ SIG(USR1);
+ SIG(USR2);
+ return -1;
+}
+
+static int
+session_signal_req(Session *s...