siginfo.h 568 字节
Newer Older
L
Linus Torvalds 已提交
1 2 3
#ifndef _ASM_GENERIC_SIGINFO_H
#define _ASM_GENERIC_SIGINFO_H

4
#include <uapi/asm-generic/siginfo.h>
L
Linus Torvalds 已提交
5 6 7 8 9 10 11 12 13

#define __SI_MASK	0xffff0000u
#define __SI_KILL	(0 << 16)
#define __SI_TIMER	(1 << 16)
#define __SI_POLL	(2 << 16)
#define __SI_FAULT	(3 << 16)
#define __SI_CHLD	(4 << 16)
#define __SI_RT		(5 << 16)
#define __SI_MESGQ	(6 << 16)
14
#define __SI_SYS	(7 << 16)
L
Linus Torvalds 已提交
15 16 17 18 19
#define __SI_CODE(T,N)	((T) | ((N) & 0xffff))

struct siginfo;
void do_schedule_next_timer(struct siginfo *info);

A
Al Viro 已提交
20
extern int copy_siginfo_to_user(struct siginfo __user *to, const struct siginfo *from);
L
Linus Torvalds 已提交
21 22

#endif