diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2004-11-22 10:33:03 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2004-11-22 10:33:03 +0000 |
commit | 5141e68daa20caa8523361d5dff63e9384c30191 (patch) | |
tree | 7521410b050a3f152e5dd902c209ff12477bd455 /Src/utils.c | |
parent | f1846d402bed119a74409c3b417484661e100e27 (diff) | |
download | zsh-5141e68daa20caa8523361d5dff63e9384c30191.tar.gz zsh-5141e68daa20caa8523361d5dff63e9384c30191.tar.xz zsh-5141e68daa20caa8523361d5dff63e9384c30191.zip |
20572: Allow alternative signal names
Diffstat (limited to 'Src/utils.c')
-rw-r--r-- | Src/utils.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/Src/utils.c b/Src/utils.c index 047aa2644..20eef2ac6 100644 --- a/Src/utils.c +++ b/Src/utils.c @@ -3969,27 +3969,6 @@ restoredir(struct dirsav *d) return err; } -/* Get a signal number from a string */ - -/**/ -mod_export int -getsignum(char *s) -{ - int x, i; - - /* check for a signal specified by number */ - x = atoi(s); - if (idigit(*s) && x >= 0 && x < VSIGCOUNT) - return x; - - /* search for signal by name */ - for (i = 0; i < VSIGCOUNT; i++) - if (!strcmp(s, sigs[i])) - return i; - - /* no matching signal */ - return -1; -} /* Check whether the shell is running with privileges in effect. * * This is the case if EITHER the euid is zero, OR (if the system * |