summaryrefslogtreecommitdiff
path: root/system/csh/glibc-2.32-sys_siglist.diff
blob: 4830e62ae744023203f204b0df3d837b9d713cbb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff -Naur csh-20110502.orig/proc.c csh-20110502.orig.patched/proc.c
--- csh-20110502.orig/proc.c	2009-10-27 19:59:21.000000000 -0400
+++ csh-20110502.orig.patched/proc.c	2021-08-27 02:56:08.386981036 -0400
@@ -726,8 +726,7 @@
 			    && (reason != SIGPIPE
 				|| (pp->p_flags & PPOU) == 0))) {
 			(void) fprintf(cshout, format,
-				       sys_siglist[(unsigned char)
-						   pp->p_reason]);
+				       sigdescr_np(pp->p_reason));
 			hadnl = 0;
 		    }
 		    break;
@@ -948,10 +947,10 @@
 		else if (signum == 0)
 		    (void) fputc('0', cshout); /* 0's symbolic name is '0' */
 		else
-		    (void) fprintf(cshout, "%s ", sys_signame[signum]);
+		    (void) fprintf(cshout, "%s ", sigabbrev_np(signum));
 	    } else {
 		for (signum = 1; signum < NSIG; signum++) {
-		    (void) fprintf(cshout, "%s ", sys_signame[signum]);
+		    (void) fprintf(cshout, "%s ", sigabbrev_np(signum));
 		    if (signum == NSIG / 2)
 			(void) fputc('\n', cshout);
 	    	}
@@ -978,9 +977,9 @@
 	    }
 
 	    for (signum = 1; signum < NSIG; signum++)
-		if (!strcasecmp(sys_signame[signum], name) ||
+		if (!strcasecmp(sigabbrev_np(signum), name) ||
 		    (strlen(name) > 3 && !strncasecmp("SIG", name, 3) &&
-		     !strcasecmp(sys_signame[signum], name + 3)))
+		     !strcasecmp(sigabbrev_np(signum), name + 3)))
 			break;
 
 	    if (signum == NSIG) {