OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [newlib-1.18.0/] [newlib/] [libc/] [sys/] [linux/] [include/] [setjmp.h] - Blame information for rev 207

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 207 jeremybenn
/*
2
        setjmp.h
3
        stubs for future use.
4
*/
5
 
6
#ifndef _SETJMP_H_
7
#ifdef __cplusplus
8
extern "C" {
9
#endif
10
#define _SETJMP_H_
11
 
12
#include "_ansi.h"
13
#include <machine/setjmp.h>
14
#include <signal.h> /* for sigset_t and sigprocmask */
15
 
16
typedef struct __sigjmpbuf
17
{
18
  __jmp_buf __buf;
19
  int __is_mask_saved;
20
  sigset_t __saved_mask;
21
} sigjmp_buf;
22
 
23
typedef __jmp_buf jmp_buf;
24
 
25
void    _EXFUN(longjmp,(jmp_buf __jmpb, int __retval));
26
int     _EXFUN(setjmp,(jmp_buf __jmpb));
27
void    _EXFUN(siglongjmp,(sigjmp_buf __jmpb, int __retval));
28
int     _EXFUN(sigsetjmp,(sigjmp_buf __jmpb, int __savemask));
29
 
30
/* sigsetjmp is implemented as macro using setjmp */
31
 
32
#define sigsetjmp(__jmpb, __savemask) \
33
                 ( __jmpb.__is_mask_saved = __savemask && \
34
                   (sigprocmask (SIG_BLOCK, NULL, &__jmpb.__saved_mask) == 0), \
35
                    setjmp (__jmpb.__buf) )
36
 
37
#ifdef __cplusplus
38
}
39
#endif
40
#endif /* _SETJMP_H_ */
41
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.