Ticket #5324: ucontext.diff

File ucontext.diff, 561 bytes (added by andreasf, 14 years ago)

patch extracted from #2695

  • new file headers/posix/ucontext.h

    diff --git a/headers/posix/ucontext.h b/headers/posix/ucontext.h
    new file mode 100644
    index 0000000..6900401
    - +  
     1/*
     2 * Copyright 2008, Haiku Inc. All Rights Reserved.
     3 * Distributed under the terms of the MIT license.
     4 */
     5#ifndef _UCONTEXT_H_
     6#define _UCONTEXT_H_
     7
     8#include <signal.h>
     9
     10
     11typedef struct vregs mcontext_t;
     12
     13
     14typedef struct ucontext_t {
     15    ucontext_t  *uc_link;
     16    sigset_t    uc_sigmask;
     17    stack_t     uc_stack;
     18    mcontext_t  uc_mcontext;
     19} ucontext_t;
     20
     21
     22#endif /* _UCONTEXT_H_ */