siglist.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* siglist.h -- encapsulate various definitions for sys_siglist */
  2. /* Copyright (C) 1993, 2001, 2005, 2008,2009 Free Software Foundation, Inc.
  3. This file is part of GNU Bash, the Bourne Again SHell.
  4. Bash is free software: you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation, either version 3 of the License, or
  7. (at your option) any later version.
  8. Bash is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with Bash. If not, see <http://www.gnu.org/licenses/>.
  14. */
  15. #if !defined (_SIGLIST_H_)
  16. #define _SIGLIST_H_
  17. #if !defined (SYS_SIGLIST_DECLARED) && !defined (HAVE_STRSIGNAL)
  18. #if defined (HAVE_UNDER_SYS_SIGLIST) && !defined (HAVE_SYS_SIGLIST) && !defined (sys_siglist)
  19. # define sys_siglist _sys_siglist
  20. #endif /* HAVE_UNDER_SYS_SIGLIST && !HAVE_SYS_SIGLIST && !sys_siglist */
  21. #if !defined (sys_siglist)
  22. extern char *sys_siglist[];
  23. #endif /* !sys_siglist */
  24. #endif /* !SYS_SIGLIST_DECLARED && !HAVE_STRSIGNAL */
  25. #if !defined (strsignal) && !defined (HAVE_STRSIGNAL)
  26. # define strsignal(sig) (char *)sys_siglist[sig]
  27. #endif /* !strsignal && !HAVE_STRSIGNAL */
  28. #if !defined (strsignal) && !HAVE_DECL_STRSIGNAL
  29. extern char *strsignal __P((int));
  30. #endif
  31. #endif /* _SIGLIST_H */