vserver 1.9.5.x5
[linux-2.6.git] / arch / um / kernel / skas / syscall_user.c
1 /* 
2  * Copyright (C) 2002 Jeff Dike (jdike@karaya.com)
3  * Licensed under the GPL
4  */
5
6 #include <stdlib.h>
7 #include <signal.h>
8 #include "kern_util.h"
9 #include "syscall_user.h"
10 #include "sysdep/ptrace.h"
11 #include "sysdep/sigcontext.h"
12
13
14 void handle_syscall(union uml_pt_regs *regs)
15 {
16         long result;
17         int index;
18
19         index = record_syscall_start(UPT_SYSCALL_NR(regs));
20
21         syscall_trace(regs, 0);
22         result = execute_syscall(regs);
23
24         REGS_SET_SYSCALL_RETURN(regs->skas.regs, result);
25
26         syscall_trace(regs, 1);
27         record_syscall_end(index, result);
28 }
29
30 /*
31  * Overrides for Emacs so that we follow Linus's tabbing style.
32  * Emacs will notice this stuff at the end of the file and automatically
33  * adjust the settings for this buffer only.  This must remain at the end
34  * of the file.
35  * ---------------------------------------------------------------------------
36  * Local variables:
37  * c-file-style: "linux"
38  * End:
39  */