Skip to contentSkip to conversation

, ptrace(2): Unnecessary escape before ">"

PATCH In review Bjarni Ingi Gislason 2 participants 4 messages May 6, 2012 3 messages not in the archive Man-pages: manual pages for Linux -- Sections 2, 3, 4, 5, and 7

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 , ptrace(2): Unnecessary escape before ">"

Package: man-pages
Version: 3.40
Severity: minor
Tags: patch

From "groff -ww ..." (or "man --warnings=w ...":

<standard input>:758: warning: escape character ignored before `>'

Also periods (full stop) in ellipises "protected" with "\&".

Patch:

ptrace.2.new renamed from ptrace.2 +5 -5
@@ -76,7 +76,7 @@
 Ptrace commands are always sent to
 a specific tracee using a call of the form
 
-    ptrace(PTRACE_foo, pid, ...)
+    ptrace(PTRACE_foo, pid, \&...\&)
 
 where
 .I pid
@@ -752,7 +752,7 @@
 .I WSTOPSIG(status)
 macro can't be used to perform this examination,
 because it returns the value
-.IR "(status\>>8)\ &\ 0xff" .)
+.IR "(status>>8)\ &\ 0xff" .)
 .SS Signal-delivery-stop
 When a (possibly multithreaded) process receives any signal except
 .BR SIGKILL ,
@@ -1507,14 +1507,14 @@
 .LP
 .nf
 *** we get syscall-enter-stop in thread 1: **
-PID1 execve("/bin/foo", "foo" <unfinished ...>
+PID1 execve("/bin/foo", "foo" <unfinished \&...\&>
 *** we issue PTRACE_SYSCALL for thread 1 **
 *** we get syscall-enter-stop in thread 2: **
-PID2 execve("/bin/bar", "bar" <unfinished ...>
+PID2 execve("/bin/bar", "bar" <unfinished \&...\&>
 *** we issue PTRACE_SYSCALL for thread 2 **
 *** we get PTRACE_EVENT_EXEC for PID0, we issue PTRACE_SYSCALL **
 *** we get syscall-exit-stop for PID0: **
-PID0 <... execve resumed> )             = 0
+PID0 <...\& execve resumed> )             = 0
 .fi
 .LP
 If the
Signature · 5 lines
Bjarni I. Gislason
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#2 lore raw

Bjarni,

Quoted 10 lines · Bjarni Ingi Gislason

Package: man-pages
Version: 3.40
Severity: minor
Tags: patch

 From "groff -ww ..." (or "man --warnings=w ...":

<standard input>:758: warning: escape character ignored before `>'

 Also periods (full stop) in ellipises "protected" with "\&".

My knowledge here is a bit thin. Can you expand on the previous sentence please.

Thanks,

Michael

Quoted 44 lines

 Patch:

ptrace.2.new        2012-05-06 01:13:38.000000000 +0000 renamed from ptrace.2    2012-04-26 22:58:36.000000000 +0000 +0 -0
@@ -76,7 +76,7 @@

 Ptrace commands are always sent to
 a specific tracee using a call of the form

-    ptrace(PTRACE_foo, pid, ...)
+    ptrace(PTRACE_foo, pid, \&...\&)

 where
 .I pid

ptrace.2.new        2012-05-06 01:13:38.000000000 +0000 renamed from ptrace.2    2012-04-26 22:58:36.000000000 +0000 +0 -0
@@ -752,7 +752,7 @@
  .I WSTOPSIG(status)
  macro can't be used to perform this examination,

 because it returns the value
-.IR "(status\>>8)\ &\ 0xff" .)
+.IR "(status>>8)\ &\ 0xff" .)
 .SS Signal-delivery-stop
 When a (possibly multithreaded) process receives any signal except .BR SIGKILL ,

ptrace.2.new        2012-05-06 01:13:38.000000000 +0000 renamed from ptrace.2    2012-04-26 22:58:36.000000000 +0000 +0 -0
@@ -1507,14 +1507,14 @@

 .LP
 .nf
 *** we get syscall-enter-stop in thread 1: **

ptrace.2.new        2012-05-06 01:13:38.000000000 +0000 renamed from ptrace.2    2012-04-26 22:58:36.000000000 +0000 +1 -1
-PID1 execve("/bin/foo", "foo" <unfinished ...>
+PID1 execve("/bin/foo", "foo" <unfinished \&...\&>

 *** we issue PTRACE_SYSCALL for thread 1 **
 *** we get syscall-enter-stop in thread 2: **

ptrace.2.new        2012-05-06 01:13:38.000000000 +0000 renamed from ptrace.2    2012-04-26 22:58:36.000000000 +0000 +1 -1
-PID2 execve("/bin/bar", "bar" <unfinished ...>
+PID2 execve("/bin/bar", "bar" <unfinished \&...\&>

 *** we issue PTRACE_SYSCALL for thread 2 **
 *** we get PTRACE_EVENT_EXEC for PID0, we issue PTRACE_SYSCALL ** *** we get syscall-exit-stop for PID0: **

ptrace.2.new        2012-05-06 01:13:38.000000000 +0000 renamed from ptrace.2    2012-04-26 22:58:36.000000000 +0000 +1 -1
-PID0 <... execve resumed> )             = 0
+PID0 <...\& execve resumed> )             = 0

 .fi
 .LP
 If the

--
Bjarni I. Gislason

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): CAKgNAki_0bW43ffUsYLtRG06_h_iaGbBg-tzxjczPnqS660sdg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org

#4 lore raw
Quoted 8 lines · Michael Kerrisk (man-pages)

Bjarni,

Quoted 5 lines · Bjarni Ingi Gislason

Package: man-pages
Version: 3.40
Severity: minor
Tags: patch

Quoted 8 lines
Quoted 5 lines

 From "groff -ww ..." (or "man --warnings=w ...":

<standard input>:758: warning: escape character ignored before `>'

 Also periods (full stop) in ellipises "protected" with "\&".

My knowledge here is a bit thin. Can you expand on the previous sentence please.

This "protection" is actually only necessary, if the
(unprotected) ellipsis is at the start (becomes a groff macro command) or (almost) at end of a line (last period interpreted as an end of a sentence). That can happen, if the paragraph (line) gets later reformatted or changed in the source.

Signature · 5 lines
Bjarni I. Gislason
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): [email protected]

#6 lore raw

Bjarni,

Quoted 15 lines · Bjarni Ingi Gislason
Quoted 14 lines · Michael Kerrisk (man-pages)

Bjarni,

Quoted 10 lines · Bjarni Ingi Gislason

Package: man-pages
Version: 3.40
Severity: minor
Tags: patch

 From "groff -ww ..." (or "man --warnings=w ...":

<standard input>:758: warning: escape character ignored before `>'

 Also periods (full stop) in ellipises "protected" with "\&".

Quoted 8 lines
Quoted 2 lines

My knowledge here is a bit thin. Can you expand on the previous sentence please.

 This "protection" is actually only necessary, if the (unprotected) ellipsis is at the start (becomes a groff macro command) or (almost) at end of a line (last period interpreted as an end of a sentence).  That can happen, if the paragraph (line) gets later reformatted or changed in the source.

Ahh -- okay. It's not currently broken then, so I'll leave as is, but I will apply the fix to "\>>".

Thanks,

Michael

Signature · 7 lines
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface"; http://man7.org/tlpi/
--
To unsubscribe from this list: send the line "unsubscribe linux-man" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html