~ubuntu-branches/ubuntu/hardy/ruby1.8/hardy-updates

« back to all changes in this revision

Viewing changes to wince/signal.h

  • Committer: Bazaar Package Importer
  • Author(s): akira yamada
  • Date: 2007-03-13 22:11:58 UTC
  • mfrom: (1.1.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20070313221158-h3oql37brlaf2go2
Tags: 1.8.6-1
* new upstream version, 1.8.6.
* libruby1.8 conflicts with libopenssl-ruby1.8 (< 1.8.6) (closes: #410018)
* changed packaging style to cdbs from dbs.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef SIGNAL_H
 
2
#define SIGNAL_H 1
 
3
 
 
4
#include <sys/types.h>
 
5
 
 
6
#define SIGHUP          1
 
7
#define SIGINT      2
 
8
#define SIGQUIT         3
 
9
#define SIGILL      4
 
10
#define SIGPIPE     5
 
11
#define SIGFPE      8
 
12
#define SIGUSR1         10
 
13
#define SIGSEGV     11
 
14
#define SIGUSR2         12
 
15
#define SIGTERM     15
 
16
#define SIGCHLD         17
 
17
#define SIGTSTP         20
 
18
#define SIGBREAK    21
 
19
#define SIGABRT     22
 
20
#define NSIG        22
 
21
 
 
22
#define SA_NOCLDSTOP    1
 
23
#define SA_SHIRQ        0x04000000
 
24
#define SA_STACK        0x08000000
 
25
#define SA_RESTART      0x10000000
 
26
#define SA_INTERRUPT    0x20000000
 
27
#define SA_NOMASK       0x40000000
 
28
#define SA_ONESHOT      0x80000000
 
29
 
 
30
/* signal action codes */
 
31
 
 
32
#define SIG_DFL (void (*)(int))0           /* default signal action */
 
33
#define SIG_IGN (void (*)(int))1           /* ignore signal */
 
34
#define SIG_SGE (void (*)(int))3           /* signal gets error */
 
35
#define SIG_ACK (void (*)(int))4           /* acknowledge */
 
36
#define SIG_ERR (void (*)(int))-1          /* signal error value */
 
37
 
 
38
#define SIG_BLOCK          0    /* for blocking signals */
 
39
#define SIG_UNBLOCK        1    /* for unblocking signals */
 
40
#define SIG_SETMASK        2    /* for setting the signal mask */
 
41
 
 
42
 
 
43
#ifdef __cplusplus
 
44
extern "C" {
 
45
#endif
 
46
 
 
47
typedef void (* SIGHANDLER)(int);
 
48
typedef void (* sighandler_t)(int);
 
49
 
 
50
typedef int sig_atomic_t;
 
51
typedef unsigned int sigset_t;
 
52
 
 
53
struct sigaction{
 
54
        sighandler_t sa_handler;
 
55
        sigset_t sa_mask;
 
56
        unsigned long sa_flags;
 
57
        void (*sa_restorer)(void);
 
58
};
 
59
 
 
60
int raise(int sig);
 
61
//#ifndef _WIN32_WCE_EMULATION
 
62
  void (* signal(int sig, void (__cdecl *func)(int)))(int);
 
63
//#else
 
64
//  void (* signal(int sig, void (*func)));
 
65
//#endif
 
66
 
 
67
#ifdef __cplusplus
 
68
};
 
69
#endif
 
70
 
 
71
#endif