blob: ec1fbeba43ae22b4e4584015d83c2858d1fe8777 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/* $FreeBSD$ */
#ifndef _OSF1_SIGNAL_H
#define _OSF1_SIGNAL_H
#define OSF1_NSIG 64
#define OSF1_SIG_DFL 0
#define OSF1_SIG_ERR -1
#define OSF1_SIG_IGN 1
#define OSF1_SIG_HOLD 2
#define OSF1_SIGNO(a) ((a) & OSF1_SIGNO_MASK)
#define OSF1_SIGCALL(a) ((a) & ~OSF1_SIGNO_MASK)
#define OSF1_SIG_BLOCK 1
#define OSF1_SIG_UNBLOCK 2
#define OSF1_SIG_SETMASK 3
typedef u_long osf1_sigset_t;
typedef void (*osf1_handler_t)(int);
struct osf1_sigaction {
osf1_handler_t osa_handler;
osf1_sigset_t osa_mask;
int osa_flags;
};
struct osf1_sigaltstack {
caddr_t ss_sp;
int ss_flags;
size_t ss_size;
};
/* sa_flags */
#define OSF1_SA_ONSTACK 0x00000001
#define OSF1_SA_RESTART 0x00000002
#define OSF1_SA_NOCLDSTOP 0x00000004
#define OSF1_SA_NODEFER 0x00000008
#define OSF1_SA_RESETHAND 0x00000010
#define OSF1_SA_NOCLDWAIT 0x00000020
#define OSF1_SA_SIGINFO 0x00000040
/* ss_flags */
#define OSF1_SS_ONSTACK 0x00000001
#define OSF1_SS_DISABLE 0x00000002
#define OSF1_SIGNO_MASK 0x00FF
#define OSF1_SIGNAL_MASK 0x0000
#define OSF1_SIGDEFER_MASK 0x0100
#define OSF1_SIGHOLD_MASK 0x0200
#define OSF1_SIGRELSE_MASK 0x0400
#define OSF1_SIGIGNORE_MASK 0x0800
#define OSF1_SIGPAUSE_MASK 0x1000
extern int osf1_to_linux_sig[];
void bsd_to_osf1_sigaltstack(const struct sigaltstack *, struct osf1_sigaltstack *);
void bsd_to_osf1_sigset(const sigset_t *, osf1_sigset_t *);
void osf1_to_bsd_sigaltstack(const struct osf1_sigaltstack *, struct sigaltstack *);
void osf1_to_bsd_sigset(const osf1_sigset_t *, sigset_t *);
void osf1_sendsig(sig_t, int , sigset_t *, u_long );
#endif /* !_OSF1_SIGNAL_H */
|