|
74 | 74 | #include <asm/unistd.h>
|
75 | 75 | #include <asm/mmu_context.h>
|
76 | 76 |
|
| 77 | +#include "exit.h" |
| 78 | + |
77 | 79 | /*
|
78 | 80 | * The default value should be high enough to not crash a system that randomly
|
79 | 81 | * crashes its kernel from time to time, but low enough to at least not permit
|
@@ -1037,26 +1039,6 @@ SYSCALL_DEFINE1(exit_group, int, error_code)
|
1037 | 1039 | return 0;
|
1038 | 1040 | }
|
1039 | 1041 |
|
1040 |
| -struct waitid_info { |
1041 |
| - pid_t pid; |
1042 |
| - uid_t uid; |
1043 |
| - int status; |
1044 |
| - int cause; |
1045 |
| -}; |
1046 |
| - |
1047 |
| -struct wait_opts { |
1048 |
| - enum pid_type wo_type; |
1049 |
| - int wo_flags; |
1050 |
| - struct pid *wo_pid; |
1051 |
| - |
1052 |
| - struct waitid_info *wo_info; |
1053 |
| - int wo_stat; |
1054 |
| - struct rusage *wo_rusage; |
1055 |
| - |
1056 |
| - wait_queue_entry_t child_wait; |
1057 |
| - int notask_error; |
1058 |
| -}; |
1059 |
| - |
1060 | 1042 | static int eligible_pid(struct wait_opts *wo, struct task_struct *p)
|
1061 | 1043 | {
|
1062 | 1044 | return wo->wo_type == PIDTYPE_MAX ||
|
@@ -1520,7 +1502,7 @@ static int ptrace_do_wait(struct wait_opts *wo, struct task_struct *tsk)
|
1520 | 1502 | return 0;
|
1521 | 1503 | }
|
1522 | 1504 |
|
1523 |
| -static bool pid_child_should_wake(struct wait_opts *wo, struct task_struct *p) |
| 1505 | +bool pid_child_should_wake(struct wait_opts *wo, struct task_struct *p) |
1524 | 1506 | {
|
1525 | 1507 | if (!eligible_pid(wo, p))
|
1526 | 1508 | return false;
|
@@ -1590,7 +1572,7 @@ static int do_wait_pid(struct wait_opts *wo)
|
1590 | 1572 | return 0;
|
1591 | 1573 | }
|
1592 | 1574 |
|
1593 |
| -static long __do_wait(struct wait_opts *wo) |
| 1575 | +long __do_wait(struct wait_opts *wo) |
1594 | 1576 | {
|
1595 | 1577 | long retval;
|
1596 | 1578 |
|
@@ -1662,9 +1644,9 @@ static long do_wait(struct wait_opts *wo)
|
1662 | 1644 | return retval;
|
1663 | 1645 | }
|
1664 | 1646 |
|
1665 |
| -static int kernel_waitid_prepare(struct wait_opts *wo, int which, pid_t upid, |
1666 |
| - struct waitid_info *infop, int options, |
1667 |
| - struct rusage *ru) |
| 1647 | +int kernel_waitid_prepare(struct wait_opts *wo, int which, pid_t upid, |
| 1648 | + struct waitid_info *infop, int options, |
| 1649 | + struct rusage *ru) |
1668 | 1650 | {
|
1669 | 1651 | unsigned int f_flags = 0;
|
1670 | 1652 | struct pid *pid = NULL;
|
|
0 commit comments