All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] syscall.2: clarify example, add missing parameter
@ 2013-08-08 23:53 Johan Erlandsson
       [not found] ` <CALiXj0BkB-0bSw6gcDnCFDkqO0_7836=a0kCOQF0gAzaG6cUQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Johan Erlandsson @ 2013-08-08 23:53 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

An attempt to clarify example by adding a missing parameter.

---
 man2/syscall.2 |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/man2/syscall.2 b/man2/syscall.2
index 0560634..1cca9ce 100644
--- a/man2/syscall.2
+++ b/man2/syscall.2
@@ -205,6 +205,7 @@ architectures may indiscriminately clobber other
registers not listed here.
 #include <unistd.h>
 #include <sys/syscall.h>
 #include <sys/types.h>
+#include <signal.h>

 int
 main(int argc, char *argv[])
@@ -212,7 +213,7 @@ main(int argc, char *argv[])
     pid_t tid;

     tid = syscall(SYS_gettid);
-    tid = syscall(SYS_tgkill, getpid(), tid);
+    tid = syscall(SYS_tgkill, getpid(), tid, SIGHUP);
 }
 .fi
 .SH SEE ALSO
-- 
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2013-08-09  7:34 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-08 23:53 [PATCH] syscall.2: clarify example, add missing parameter Johan Erlandsson
     [not found] ` <CALiXj0BkB-0bSw6gcDnCFDkqO0_7836=a0kCOQF0gAzaG6cUQQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2013-08-09  7:34   ` Michael Kerrisk (man-pages)

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.