ucontext.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
  2. /*
  3. * Copyright (C) 2012 ARM Ltd.
  4. *
  5. * This program is free software; you can redistribute it and/or modify
  6. * it under the terms of the GNU General Public License version 2 as
  7. * published by the Free Software Foundation.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. * You should have received a copy of the GNU General Public License
  15. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. */
  17. #ifndef _UAPI__ASM_UCONTEXT_H
  18. #define _UAPI__ASM_UCONTEXT_H
  19. #include <linux/types.h>
  20. struct ucontext {
  21. unsigned long uc_flags;
  22. struct ucontext *uc_link;
  23. stack_t uc_stack;
  24. sigset_t uc_sigmask;
  25. /* glibc uses a 1024-bit sigset_t */
  26. __u8 __unused[1024 / 8 - sizeof(sigset_t)];
  27. /* last for future expansion */
  28. struct sigcontext uc_mcontext;
  29. };
  30. #endif /* _UAPI__ASM_UCONTEXT_H */