diff options
author | Gennady Sharapov <Gennady.V.Sharapov@intel.com> | 2006-01-08 04:01:29 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-01-08 23:13:39 -0500 |
commit | 0805d89c151b4800eade4c2f50d39c5253d7d054 (patch) | |
tree | 3ff8a48973e266f5e9eccf6aa38c80282aef12ca /arch/um/include | |
parent | b2de464f7f0006bec162559a8db161869d32ee93 (diff) |
[PATCH] uml: move libc-dependent code from signal_user.c
The serial UML OS-abstraction layer patch (um/kernel dir).
This moves all systemcalls from signal_user.c file under os-Linux dir
Signed-off-by: Gennady Sharapov <Gennady.V.Sharapov@intel.com>
Signed-off-by: Jeff Dike <jdike@addtoit.com>
Cc: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/um/include')
-rw-r--r-- | arch/um/include/kern_util.h | 2 | ||||
-rw-r--r-- | arch/um/include/os.h | 10 | ||||
-rw-r--r-- | arch/um/include/signal_user.h | 28 |
3 files changed, 10 insertions, 30 deletions
diff --git a/arch/um/include/kern_util.h b/arch/um/include/kern_util.h index e5fec5570199..58c0b10fcf2d 100644 --- a/arch/um/include/kern_util.h +++ b/arch/um/include/kern_util.h | |||
@@ -51,8 +51,6 @@ extern void timer_handler(int sig, union uml_pt_regs *regs); | |||
51 | extern int set_signals(int enable); | 51 | extern int set_signals(int enable); |
52 | extern void force_sigbus(void); | 52 | extern void force_sigbus(void); |
53 | extern int pid_to_processor_id(int pid); | 53 | extern int pid_to_processor_id(int pid); |
54 | extern void block_signals(void); | ||
55 | extern void unblock_signals(void); | ||
56 | extern void deliver_signals(void *t); | 54 | extern void deliver_signals(void *t); |
57 | extern int next_syscall_index(int max); | 55 | extern int next_syscall_index(int max); |
58 | extern int next_trap_index(int max); | 56 | extern int next_trap_index(int max); |
diff --git a/arch/um/include/os.h b/arch/um/include/os.h index c279ee6d89e4..cfc806e4610b 100644 --- a/arch/um/include/os.h +++ b/arch/um/include/os.h | |||
@@ -219,4 +219,14 @@ extern int umid_file_name(char *name, char *buf, int len); | |||
219 | extern int set_umid(char *name); | 219 | extern int set_umid(char *name); |
220 | extern char *get_umid(void); | 220 | extern char *get_umid(void); |
221 | 221 | ||
222 | /* signal.c */ | ||
223 | extern void set_sigstack(void *sig_stack, int size); | ||
224 | extern void remove_sigstack(void); | ||
225 | extern void set_handler(int sig, void (*handler)(int), int flags, ...); | ||
226 | extern int change_sig(int signal, int on); | ||
227 | extern void block_signals(void); | ||
228 | extern void unblock_signals(void); | ||
229 | extern int get_signals(void); | ||
230 | extern int set_signals(int enable); | ||
231 | |||
222 | #endif | 232 | #endif |
diff --git a/arch/um/include/signal_user.h b/arch/um/include/signal_user.h deleted file mode 100644 index b075e543d864..000000000000 --- a/arch/um/include/signal_user.h +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | /* | ||
2 | * Copyright (C) 2001 Jeff Dike (jdike@karaya.com) | ||
3 | * Licensed under the GPL | ||
4 | */ | ||
5 | |||
6 | #ifndef __SIGNAL_USER_H__ | ||
7 | #define __SIGNAL_USER_H__ | ||
8 | |||
9 | extern int signal_stack_size; | ||
10 | |||
11 | extern int change_sig(int signal, int on); | ||
12 | extern void set_sigstack(void *stack, int size); | ||
13 | extern void set_handler(int sig, void (*handler)(int), int flags, ...); | ||
14 | extern int set_signals(int enable); | ||
15 | extern int get_signals(void); | ||
16 | |||
17 | #endif | ||
18 | |||
19 | /* | ||
20 | * Overrides for Emacs so that we follow Linus's tabbing style. | ||
21 | * Emacs will notice this stuff at the end of the file and automatically | ||
22 | * adjust the settings for this buffer only. This must remain at the end | ||
23 | * of the file. | ||
24 | * --------------------------------------------------------------------------- | ||
25 | * Local variables: | ||
26 | * c-file-style: "linux" | ||
27 | * End: | ||
28 | */ | ||