aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorGustavo Fernando Padovan <gustavo@las.ic.unicamp.br>2008-07-25 04:47:33 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2008-07-25 13:53:39 -0400
commitbc64efd220dcd4449aef8dd2564d73127b583b09 (patch)
tree21739809b2ab9b13677cae99f175c3983114abc6 /kernel
parentd8878ba3f05ae5bbfad5a6e72e5121c0ea35f989 (diff)
kernel/signal.c: change vars pid and tgid types to pid_t
Change the type of pid and tgid variables from int to the POSIX type pid_t. Signed-off-by: Gustavo F. Padovan <gustavo@las.ic.unicamp.br> Cc: Oleg Nesterov <oleg@tv-sign.ru> Cc: Roland McGrath <roland@redhat.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/signal.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index ba60eeeb63aa..fdab7b363fa7 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -1116,7 +1116,7 @@ EXPORT_SYMBOL_GPL(kill_pid_info_as_uid);
1116 * is probably wrong. Should make it like BSD or SYSV. 1116 * is probably wrong. Should make it like BSD or SYSV.
1117 */ 1117 */
1118 1118
1119static int kill_something_info(int sig, struct siginfo *info, int pid) 1119static int kill_something_info(int sig, struct siginfo *info, pid_t pid)
1120{ 1120{
1121 int ret; 1121 int ret;
1122 1122
@@ -2184,7 +2184,7 @@ sys_rt_sigtimedwait(const sigset_t __user *uthese,
2184} 2184}
2185 2185
2186asmlinkage long 2186asmlinkage long
2187sys_kill(int pid, int sig) 2187sys_kill(pid_t pid, int sig)
2188{ 2188{
2189 struct siginfo info; 2189 struct siginfo info;
2190 2190
@@ -2197,7 +2197,7 @@ sys_kill(int pid, int sig)
2197 return kill_something_info(sig, &info, pid); 2197 return kill_something_info(sig, &info, pid);
2198} 2198}
2199 2199
2200static int do_tkill(int tgid, int pid, int sig) 2200static int do_tkill(pid_t tgid, pid_t pid, int sig)
2201{ 2201{
2202 int error; 2202 int error;
2203 struct siginfo info; 2203 struct siginfo info;
@@ -2243,7 +2243,7 @@ static int do_tkill(int tgid, int pid, int sig)
2243 * exists but it's not belonging to the target process anymore. This 2243 * exists but it's not belonging to the target process anymore. This
2244 * method solves the problem of threads exiting and PIDs getting reused. 2244 * method solves the problem of threads exiting and PIDs getting reused.
2245 */ 2245 */
2246asmlinkage long sys_tgkill(int tgid, int pid, int sig) 2246asmlinkage long sys_tgkill(pid_t tgid, pid_t pid, int sig)
2247{ 2247{
2248 /* This is only valid for single tasks */ 2248 /* This is only valid for single tasks */
2249 if (pid <= 0 || tgid <= 0) 2249 if (pid <= 0 || tgid <= 0)
@@ -2256,7 +2256,7 @@ asmlinkage long sys_tgkill(int tgid, int pid, int sig)
2256 * Send a signal to only one task, even if it's a CLONE_THREAD task. 2256 * Send a signal to only one task, even if it's a CLONE_THREAD task.
2257 */ 2257 */
2258asmlinkage long 2258asmlinkage long
2259sys_tkill(int pid, int sig) 2259sys_tkill(pid_t pid, int sig)
2260{ 2260{
2261 /* This is only valid for single tasks */ 2261 /* This is only valid for single tasks */
2262 if (pid <= 0) 2262 if (pid <= 0)
@@ -2266,7 +2266,7 @@ sys_tkill(int pid, int sig)
2266} 2266}
2267 2267
2268asmlinkage long 2268asmlinkage long
2269sys_rt_sigqueueinfo(int pid, int sig, siginfo_t __user *uinfo) 2269sys_rt_sigqueueinfo(pid_t pid, int sig, siginfo_t __user *uinfo)
2270{ 2270{
2271 siginfo_t info; 2271 siginfo_t info;
2272 2272