Changeset bc56f30 in mainline for uspace/lib/posix/include/posix/signal.h
- Timestamp:
- 2019-05-27T12:38:26Z (5 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0d14c25
- Parents:
- 4d51c60
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-02-13 16:06:49)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2019-05-27 12:38:26)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/signal.h
r4d51c60 rbc56f30 39 39 #include <ucontext.h> 40 40 41 extern void __posix_default_signal_handler(int signo);42 extern void __posix_hold_signal_handler(int signo);43 extern void __posix_ignore_signal_handler(int signo);44 45 #undef SIG_DFL46 41 #define SIG_DFL ((void (*)(int)) __posix_default_signal_handler) 47 #undef SIG_ERR48 42 #define SIG_ERR ((void (*)(int)) NULL) 49 #undef SIG_HOLD50 43 #define SIG_HOLD ((void (*)(int)) __posix_hold_signal_handler) 51 #undef SIG_IGN52 44 #define SIG_IGN ((void (*)(int)) __posix_ignore_signal_handler) 53 45 54 typedef struct {55 int si_signo;56 int si_code;57 58 int si_errno;59 60 pid_t si_pid;61 uid_t si_uid;62 void *si_addr;63 int si_status;64 65 long si_band;66 67 union sigval si_value;68 } siginfo_t;69 70 struct sigaction {71 void (*sa_handler)(int);72 sigset_t sa_mask;73 int sa_flags;74 void (*sa_sigaction)(int, siginfo_t *, void *);75 };76 77 46 /* Values of sigevent::sigev_notify */ 78 #undef SIGEV_NONE79 #undef SIGEV_SIGNAL80 #undef SIGEV_THREAD81 47 #define SIGEV_NONE 0 82 48 #define SIGEV_SIGNAL 0 83 49 #define SIGEV_THREAD 0 84 50 85 #undef SIGRT_MIN86 #undef SIGRT_MAX87 51 #define SIGRT_MIN 0 88 52 #define SIGRT_MAX 0 89 53 90 #undef SIG_BLOCK91 #undef SIG_UNBLOCK92 #undef SIG_SETMASK93 54 #define SIG_BLOCK 0 94 55 #define SIG_UNBLOCK 1 95 56 #define SIG_SETMASK 2 96 57 97 #undef SA_NOCLDSTOP98 #undef SA_ONSTACK99 #undef SA_RESETHAND100 #undef SA_RESTART101 #undef SA_SIGINFO102 #undef SA_NOCLDWAIT103 #undef SA_NODEFER104 58 #define SA_NOCLDSTOP (1 << 0) 105 59 #define SA_ONSTACK (1 << 1) … … 110 64 #define SA_NODEFER (1 << 6) 111 65 112 #undef SS_ONSTACK113 #undef SS_DISABLE114 66 #define SS_ONSTACK 0 115 67 #define SS_DISABLE 0 116 68 117 #undef MINSIGSTKSZ118 #undef SIGSTKSZ119 69 #define MINSIGSTKSZ 0 120 70 #define SIGSTKSZ 0 71 72 __C_DECLS_BEGIN; 73 74 extern void __posix_default_signal_handler(int signo); 75 extern void __posix_hold_signal_handler(int signo); 76 extern void __posix_ignore_signal_handler(int signo); 77 78 typedef struct { 79 int si_signo; 80 int si_code; 81 82 int si_errno; 83 84 pid_t si_pid; 85 uid_t si_uid; 86 void *si_addr; 87 int si_status; 88 89 long si_band; 90 91 union sigval si_value; 92 } siginfo_t; 93 94 struct sigaction { 95 void (*sa_handler)(int); 96 sigset_t sa_mask; 97 int sa_flags; 98 void (*sa_sigaction)(int, siginfo_t *, void *); 99 }; 121 100 122 101 /* Full POSIX set */ … … 245 224 sigset_t *__restrict__ oset); 246 225 226 __C_DECLS_END; 227 247 228 #endif /* POSIX_SIGNAL_H_ */ 248 229
Note:
See TracChangeset
for help on using the changeset viewer.