mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] kernel/signal.c: change vars pid and tgid types to pid_t
@ 2008-06-25  7:07 Gustavo Fernando Padovan
  0 siblings, 0 replies; 2+ messages in thread
From: Gustavo Fernando Padovan @ 2008-06-25  7:07 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm


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>


--- a/kernel/signal.c	2008-06-09 23:45:49.000000000 -0300
+++ b/kernel/signal.c	2008-06-11 19:55:55.000000000 -0300
@@ -1120,7 +1120,7 @@
  * is probably wrong.  Should make it like BSD or SYSV.
  */
 
-static int kill_something_info(int sig, struct siginfo *info, int pid)
+static int kill_something_info(int sig, struct siginfo *info, pid_t pid)
 {
 	int ret;
 
@@ -2228,7 +2228,7 @@
 }
 
 asmlinkage long
-sys_kill(int pid, int sig)
+sys_kill(pid_t pid, int sig)
 {
 	struct siginfo info;
 
@@ -2241,7 +2241,7 @@
 	return kill_something_info(sig, &info, pid);
 }
 
-static int do_tkill(int tgid, int pid, int sig)
+static int do_tkill(pid_t tgid, pid_t pid, int sig)
 {
 	int error;
 	struct siginfo info;
@@ -2284,7 +2284,7 @@
  *  exists but it's not belonging to the target process anymore. This
  *  method solves the problem of threads exiting and PIDs getting reused.
  */
-asmlinkage long sys_tgkill(int tgid, int pid, int sig)
+asmlinkage long sys_tgkill(pid_t tgid, pid_t pid, int sig)
 {
 	/* This is only valid for single tasks */
 	if (pid <= 0 || tgid <= 0)
@@ -2297,7 +2297,7 @@
  *  Send a signal to only one task, even if it's a CLONE_THREAD task.
  */
 asmlinkage long
-sys_tkill(int pid, int sig)
+sys_tkill(pid_t pid, int sig)
 {
 	/* This is only valid for single tasks */
 	if (pid <= 0)
@@ -2307,7 +2307,7 @@
 }
 
 asmlinkage long
-sys_rt_sigqueueinfo(int pid, int sig, siginfo_t __user *uinfo)
+sys_rt_sigqueueinfo(pid_t pid, int sig, siginfo_t __user *uinfo)
 {
 	siginfo_t info;
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] kernel/signal.c: change vars pid and tgid types to pid_t
@ 2008-06-11 23:11 Gustavo Fernando Padovan
  0 siblings, 0 replies; 2+ messages in thread
From: Gustavo Fernando Padovan @ 2008-06-11 23:11 UTC (permalink / raw)
  To: linux-kernel

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset=UTF-8, Size: 2162 bytes --]

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>

--- a/kernel/signal.c  2008-06-09 23:45:49.000000000 -0300+++ b/kernel/signal.c       2008-06-09 23:52:36.000000000 -0300@@ -1120,7 +1120,7 @@  * is probably wrong.  Should make it like BSD or SYSV.  */
-static int kill_something_info(int sig, struct siginfo *info, int pid)+static int kill_something_info(int sig, struct siginfo *info, pid_t pid) {        int ret;
@@ -2228,7 +2228,7 @@ }
 asmlinkage long-sys_kill(int pid, int sig)+sys_kill(pid_t pid, int sig) {        struct siginfo info;
@@ -2241,7 +2241,7 @@        return kill_something_info(sig, &info, pid); }
-static int do_tkill(int tgid, int pid, int sig)+static int do_tkill(pid_t tgid, pid_t pid, int sig) {        int error;        struct siginfo info;@@ -2284,7 +2284,7 @@  *  exists but it's not belonging to the target process anymore. This  *  method solves the problem of threads exiting and PIDs getting reused.  */-asmlinkage long sys_tgkill(int tgid, int pid, int sig)+asmlinkage long sys_tgkill(pid_t tgid, pid_t pid, int sig) {        /* This is only valid for single tasks */        if (pid <= 0 || tgid <= 0)@@ -2297,7 +2297,7 @@  *  Send a signal to only one task, even if it's a CLONE_THREAD task.  */ asmlinkage long-sys_tkill(int pid, int sig)+sys_tkill(pid_t pid, int sig) {        /* This is only valid for single tasks */        if (pid <= 0)@@ -2307,7 +2307,7 @@ }
 asmlinkage long-sys_rt_sigqueueinfo(int pid, int sig, siginfo_t __user *uinfo)+sys_rt_sigqueueinfo(pid_t pid, int sig, siginfo_t __user *uinfo) {        siginfo_t info;


-- ----------------------------------------------Gustavo Fernando PadovanEngenharia de Computação 2006LAS - Laboratório de Administração e Segurança de SistemasInstituto de Computação - UNICAMP
gfpadovan@gmail.comra061316@students.ic.unicamp.brpao@jabber.org-------------------------------------------
Seja Livre, use Software Livreÿôèº{.nÇ+‰·Ÿ®‰­†+%ŠËÿ±éݶ\x17¥Šwÿº{.nÇ+‰·¥Š{±þG«éÿŠ{ayº\x1dʇڙë,j\a­¢f£¢·hšïêÿ‘êçz_è®\x03(­éšŽŠÝ¢j"ú\x1a¶^[m§ÿÿ¾\a«þG«éÿ¢¸?™¨è­Ú&£ø§~á¶iO•æ¬z·švØ^\x14\x04\x1a¶^[m§ÿÿÃ\fÿ¶ìÿ¢¸?–I¥

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-06-25  7:07 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-25  7:07 [PATCH] kernel/signal.c: change vars pid and tgid types to pid_t Gustavo Fernando Padovan
  -- strict thread matches above, loose matches on Subject: below --
2008-06-11 23:11 Gustavo Fernando Padovan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®