Changeset db3cef9f in mainline for uspace/lib/posix/include/posix/signal.h
- Timestamp:
- 2013-05-06T10:37:45Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9e73b80
- Parents:
- a269d05
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/posix/include/posix/signal.h
ra269d05 rdb3cef9f 41 41 42 42 #include "sys/types.h" 43 #include <posix/ucontext.h> 43 44 44 45 extern void __posix_default_signal_handler(int signo); … … 55 56 #define SIG_IGN ((void (*)(int)) __posix_ignore_signal_handler) 56 57 57 typedef int __POSIX_DEF__(sig_atomic_t);58 typedef uint32_t __POSIX_DEF__(sigset_t);59 typedef struct __POSIX_DEF__(mcontext) {60 /* must not be empty to avoid compiler warnings (-pedantic) */61 int dummy;62 } __POSIX_DEF__(mcontext_t);63 64 union __POSIX_DEF__(sigval) {65 int sival_int;66 void *sival_ptr;67 };68 69 struct __POSIX_DEF__(sigevent) {70 int sigev_notify; /* Notification type. */71 int sigev_signo; /* Signal number. */72 union __POSIX_DEF__(sigval) sigev_value; /* Signal value. */73 void (*sigev_notify_function)(union __POSIX_DEF__(sigval)); /* Notification function. */74 __POSIX_DEF__(thread_attr_t) *sigev_notify_attributes; /* Notification attributes. */75 };76 58 77 59 typedef struct { … … 98 80 }; 99 81 100 typedef struct {101 void *ss_sp;102 size_t ss_size;103 int ss_flags;104 } __POSIX_DEF__(stack_t);105 106 typedef struct __POSIX_DEF__(ucontext) {107 struct __POSIX_DEF__(ucontext) *uc_link;108 __POSIX_DEF__(sigset_t) uc_sigmask;109 __POSIX_DEF__(stack_t) uc_stack;110 __POSIX_DEF__(mcontext_t) uc_mcontext;111 } __POSIX_DEF__(ucontext_t);112 82 113 83 /* Values of __POSIX_DEF__(sigevent)::sigev_notify */
Note:
See TracChangeset
for help on using the changeset viewer.