aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/exit.c
diff options
context:
space:
mode:
authorIngo Molnar <mingo@elte.hu>2009-01-21 04:39:51 -0500
committerIngo Molnar <mingo@elte.hu>2009-01-21 04:39:51 -0500
commit198030782cedf25391e67e7c88b04f87a5eb6563 (patch)
tree5b7368c6bf052bcb4bb273497a57900720d36f51 /kernel/exit.c
parent4ec71fa2d2c3f1040348f2604f4b8ccc833d1c2e (diff)
parent92181f190b649f7ef2b79cbf5c00f26ccc66da2a (diff)
Merge branch 'x86/mm' into core/percpu
Conflicts: arch/x86/mm/fault.c
Diffstat (limited to 'kernel/exit.c')
-rw-r--r--kernel/exit.c17
1 files changed, 9 insertions, 8 deletions
diff --git a/kernel/exit.c b/kernel/exit.c
index 2a803c28df9e..70612c19ac96 100644
--- a/kernel/exit.c
+++ b/kernel/exit.c
@@ -1138,7 +1138,7 @@ NORET_TYPE void complete_and_exit(struct completion *comp, long code)
1138 1138
1139EXPORT_SYMBOL(complete_and_exit); 1139EXPORT_SYMBOL(complete_and_exit);
1140 1140
1141asmlinkage long sys_exit(int error_code) 1141SYSCALL_DEFINE1(exit, int, error_code)
1142{ 1142{
1143 do_exit((error_code&0xff)<<8); 1143 do_exit((error_code&0xff)<<8);
1144} 1144}
@@ -1179,9 +1179,11 @@ do_group_exit(int exit_code)
1179 * wait4()-ing process will get the correct exit code - even if this 1179 * wait4()-ing process will get the correct exit code - even if this
1180 * thread is not the thread group leader. 1180 * thread is not the thread group leader.
1181 */ 1181 */
1182asmlinkage void sys_exit_group(int error_code) 1182SYSCALL_DEFINE1(exit_group, int, error_code)
1183{ 1183{
1184 do_group_exit((error_code & 0xff) << 8); 1184 do_group_exit((error_code & 0xff) << 8);
1185 /* NOTREACHED */
1186 return 0;
1185} 1187}
1186 1188
1187static struct pid *task_pid_type(struct task_struct *task, enum pid_type type) 1189static struct pid *task_pid_type(struct task_struct *task, enum pid_type type)
@@ -1749,9 +1751,8 @@ end:
1749 return retval; 1751 return retval;
1750} 1752}
1751 1753
1752asmlinkage long sys_waitid(int which, pid_t upid, 1754SYSCALL_DEFINE5(waitid, int, which, pid_t, upid, struct siginfo __user *,
1753 struct siginfo __user *infop, int options, 1755 infop, int, options, struct rusage __user *, ru)
1754 struct rusage __user *ru)
1755{ 1756{
1756 struct pid *pid = NULL; 1757 struct pid *pid = NULL;
1757 enum pid_type type; 1758 enum pid_type type;
@@ -1790,8 +1791,8 @@ asmlinkage long sys_waitid(int which, pid_t upid,
1790 return ret; 1791 return ret;
1791} 1792}
1792 1793
1793asmlinkage long sys_wait4(pid_t upid, int __user *stat_addr, 1794SYSCALL_DEFINE4(wait4, pid_t, upid, int __user *, stat_addr,
1794 int options, struct rusage __user *ru) 1795 int, options, struct rusage __user *, ru)
1795{ 1796{
1796 struct pid *pid = NULL; 1797 struct pid *pid = NULL;
1797 enum pid_type type; 1798 enum pid_type type;
@@ -1828,7 +1829,7 @@ asmlinkage long sys_wait4(pid_t upid, int __user *stat_addr,
1828 * sys_waitpid() remains for compatibility. waitpid() should be 1829 * sys_waitpid() remains for compatibility. waitpid() should be
1829 * implemented by calling sys_wait4() from libc.a. 1830 * implemented by calling sys_wait4() from libc.a.
1830 */ 1831 */
1831asmlinkage long sys_waitpid(pid_t pid, int __user *stat_addr, int options) 1832SYSCALL_DEFINE3(waitpid, pid_t, pid, int __user *, stat_addr, int, options)
1832{ 1833{
1833 return sys_wait4(pid, stat_addr, options, NULL); 1834 return sys_wait4(pid, stat_addr, options, NULL);
1834} 1835}