sigstack.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /* sigstack, sigaltstack definitions.
  2. Copyright (C) 1998, 1999 Free Software Foundation, Inc.
  3. This file is part of the GNU C Library.
  4. The GNU C Library is free software; you can redistribute it and/or
  5. modify it under the terms of the GNU Lesser General Public
  6. License as published by the Free Software Foundation; either
  7. version 2.1 of the License, or (at your option) any later version.
  8. The GNU C Library 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 GNU
  11. Lesser General Public License for more details.
  12. You should have received a copy of the GNU Lesser General Public
  13. License along with the GNU C Library; if not, see
  14. <http://www.gnu.org/licenses/>. */
  15. #ifndef _SIGNAL_H
  16. # error "Never include this file directly. Use <signal.h> instead"
  17. #endif
  18. #if defined __UCLIBC_SUSV4_LEGACY__ || !defined __UCLIBC_STRICT_HEADERS__
  19. /* Structure describing a signal stack (obsolete). */
  20. struct sigstack
  21. {
  22. void *ss_sp; /* Signal stack pointer. */
  23. int ss_onstack; /* Nonzero if executing on this stack. */
  24. };
  25. #endif
  26. /* Possible values for `ss_flags.'. */
  27. enum
  28. {
  29. SS_ONSTACK = 1,
  30. #define SS_ONSTACK SS_ONSTACK
  31. SS_DISABLE
  32. #define SS_DISABLE SS_DISABLE
  33. };
  34. /* Minimum stack size for a signal handler. */
  35. #define MINSIGSTKSZ 2048
  36. /* System default stack size. */
  37. #define SIGSTKSZ 8192
  38. /* Alternate, preferred interface. */
  39. typedef struct sigaltstack
  40. {
  41. void *ss_sp;
  42. int ss_flags;
  43. size_t ss_size;
  44. } stack_t;