public inbox for linux-man@vger.kernel.org
 help / color / mirror / Atom feed
* [patch], ptrace(2): Unnecessary escape before ">"
@ 2012-05-06 20:02 Bjarni Ingi Gislason
       [not found] ` <20120506200217.GA1004-2945IVfuVpf1P9xLtpHBDw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Bjarni Ingi Gislason @ 2012-05-06 20:02 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

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	2012-04-26 22:58:36.000000000 +0000
+++ ptrace.2.new	2012-05-06 01:13:38.000000000 +0000
@@ -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

-- 
Bjarni I. Gislason
--
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	[flat|nested] 4+ messages in thread

* Re: [patch], ptrace(2): Unnecessary escape before ">"
       [not found] ` <20120506200217.GA1004-2945IVfuVpf1P9xLtpHBDw@public.gmane.org>
@ 2012-05-06 20:51   ` Michael Kerrisk (man-pages)
       [not found]     ` <CAKgNAki_0bW43ffUsYLtRG06_h_iaGbBg-tzxjczPnqS660sdg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2012-05-06 20:51 UTC (permalink / raw)
  To: Bjarni Ingi Gislason; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Bjarni,

On Mon, May 7, 2012 at 8:02 AM, Bjarni Ingi Gislason <bjarniig-2945IVfuVpc@public.gmane.orgs> wrote:
> 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


>
>  Patch:
>
> --- ptrace.2    2012-04-26 22:58:36.000000000 +0000
> +++ ptrace.2.new        2012-05-06 01:13:38.000000000 +0000
> @@ -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
>
> --
> Bjarni I. Gislason



-- 
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

* Re: [patch], ptrace(2): Unnecessary escape before ">"
       [not found]     ` <CAKgNAki_0bW43ffUsYLtRG06_h_iaGbBg-tzxjczPnqS660sdg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2012-05-06 21:39       ` Bjarni Ingi Gislason
       [not found]         ` <20120506213950.GA2078-2945IVfuVpf1P9xLtpHBDw@public.gmane.org>
  0 siblings, 1 reply; 4+ messages in thread
From: Bjarni Ingi Gislason @ 2012-05-06 21:39 UTC (permalink / raw)
  To: Michael Kerrisk (man-pages); +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

On Mon, May 07, 2012 at 08:51:41AM +1200, Michael Kerrisk (man-pages) wrote:
> Bjarni,
> 
> On Mon, May 7, 2012 at 8:02 AM, Bjarni Ingi Gislason <bjarniig-5zMUtr2BsJg@public.gmane.org.is> wrote:
> > 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.
> 

  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.

-- 
Bjarni I. Gislason
--
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	[flat|nested] 4+ messages in thread

* Re: [patch], ptrace(2): Unnecessary escape before ">"
       [not found]         ` <20120506213950.GA2078-2945IVfuVpf1P9xLtpHBDw@public.gmane.org>
@ 2012-05-06 21:43           ` Michael Kerrisk (man-pages)
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Kerrisk (man-pages) @ 2012-05-06 21:43 UTC (permalink / raw)
  To: Bjarni Ingi Gislason; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

Bjarni,

On Mon, May 7, 2012 at 9:39 AM, Bjarni Ingi Gislason <bjarniig-2945IVfuVpc@public.gmane.orgs> wrote:
> On Mon, May 07, 2012 at 08:51:41AM +1200, Michael Kerrisk (man-pages) wrote:
>> Bjarni,
>>
>> On Mon, May 7, 2012 at 8:02 AM, Bjarni Ingi Gislason <bjarniig@rhi.hi.is> wrote:
>> > 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.
>>
>
>  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


-- 
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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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

end of thread, other threads:[~2012-05-06 21:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-06 20:02 [patch], ptrace(2): Unnecessary escape before ">" Bjarni Ingi Gislason
     [not found] ` <20120506200217.GA1004-2945IVfuVpf1P9xLtpHBDw@public.gmane.org>
2012-05-06 20:51   ` Michael Kerrisk (man-pages)
     [not found]     ` <CAKgNAki_0bW43ffUsYLtRG06_h_iaGbBg-tzxjczPnqS660sdg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2012-05-06 21:39       ` Bjarni Ingi Gislason
     [not found]         ` <20120506213950.GA2078-2945IVfuVpf1P9xLtpHBDw@public.gmane.org>
2012-05-06 21:43           ` Michael Kerrisk (man-pages)

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