Ignore:
Timestamp:
2013-05-06T10:37:45Z (12 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9e73b80
Parents:
a269d05
Message:

Add ucontext.h (parts of signal.h)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/posix/include/posix/signal.h

    ra269d05 rdb3cef9f  
    4141
    4242#include "sys/types.h"
     43#include <posix/ucontext.h>
    4344
    4445extern void __posix_default_signal_handler(int signo);
     
    5556#define SIG_IGN ((void (*)(int)) __posix_ignore_signal_handler)
    5657
    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 };
    7658
    7759typedef struct {
     
    9880};
    9981
    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);
    11282
    11383/* Values of __POSIX_DEF__(sigevent)::sigev_notify */
Note: See TracChangeset for help on using the changeset viewer.