Replace strsigname() with sig2str(), emulating it as needed.

This commit is contained in:
Todd C. Miller
2012-08-29 14:25:09 -04:00
parent 71e2d8290b
commit ab7dda035a
10 changed files with 95 additions and 51 deletions

View File

@@ -284,6 +284,11 @@ extern int errno;
# endif
#endif
/* For sig2str() */
#ifndef SIG2STR_MAX
# define SIG2STR_MAX 32
#endif
#ifndef WCOREDUMP
# define WCOREDUMP(x) ((x) & 0x80)
#endif
@@ -376,8 +381,8 @@ int unsetenv(const char *);
#ifndef HAVE_STRSIGNAL
char *strsignal(int);
#endif
#ifndef HAVE_STRSIGNAME
char *strsigname(int);
#ifndef HAVE_SIG2STR
int sig2str(int, char *);
#endif
#endif /* _SUDO_MISSING_H */