linux-man.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] strcpy.3: Remove reference to non-existent strpcpy(3)
@ 2009-11-21 17:55 Mark Hills
       [not found] ` <1258826146-4474-1-git-send-email-mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Hills @ 2009-11-21 17:55 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w; +Cc: linux-man-u79uwXL29TY76Z2rM5mHXA

There is no man page or function by this name.

Signed-off-by: Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
---
 man3/strcpy.3 |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/man3/strcpy.3 b/man3/strcpy.3
index 9d47e37..c79efb1 100644
--- a/man3/strcpy.3
+++ b/man3/strcpy.3
@@ -137,6 +137,5 @@ in ways that may make the impossible possible.
 .BR memcpy (3),
 .BR memmove (3),
 .BR strdup (3),
-.BR strpcpy (3),
 .BR wcscpy (3),
 .BR wcsncpy (3)
-- 
1.6.5.2

--
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] 9+ messages in thread

* Re: [PATCH] strcpy.3: Remove reference to non-existent strpcpy(3)
       [not found] ` <1258826146-4474-1-git-send-email-mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
@ 2009-11-21 20:50   ` Petr Baudis
       [not found]     ` <20091121205012.GF3708-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Petr Baudis @ 2009-11-21 20:50 UTC (permalink / raw)
  To: Mark Hills
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On Sat, Nov 21, 2009 at 05:55:46PM +0000, Mark Hills wrote:
> There is no man page or function by this name.
> 
> Signed-off-by: Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
> ---
>  man3/strcpy.3 |    1 -
>  1 files changed, 0 insertions(+), 1 deletions(-)
> 
> diff --git a/man3/strcpy.3 b/man3/strcpy.3
> index 9d47e37..c79efb1 100644
> --- a/man3/strcpy.3
> +++ b/man3/strcpy.3
> @@ -137,6 +137,5 @@ in ways that may make the impossible possible.
>  .BR memcpy (3),
>  .BR memmove (3),
>  .BR strdup (3),
> -.BR strpcpy (3),
>  .BR wcscpy (3),
>  .BR wcsncpy (3)

In fact, this should be fixed by making it a reference to stpcpy().

-- 
				Petr "Pasky" Baudis
A lot of people have my books on their bookshelves.
That's the problem, they need to read them. -- Don Knuth
--
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] 9+ messages in thread

* Re: [PATCH] strcpy.3: Remove reference to non-existent strpcpy(3)
       [not found]     ` <20091121205012.GF3708-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
@ 2009-11-21 21:16       ` Mark Hills
       [not found]         ` <alpine.NEB.2.01.0911212052050.25031-4Gsws06j5aKxDRllUHgonQ@public.gmane.org>
  0 siblings, 1 reply; 9+ messages in thread
From: Mark Hills @ 2009-11-21 21:16 UTC (permalink / raw)
  To: Petr Baudis
  Cc: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w,
	linux-man-u79uwXL29TY76Z2rM5mHXA

On Sat, 21 Nov 2009, Petr Baudis wrote:

> On Sat, Nov 21, 2009 at 05:55:46PM +0000, Mark Hills wrote:
> > There is no man page or function by this name.
> > 
> > Signed-off-by: Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
> > ---
> >  man3/strcpy.3 |    1 -
> >  1 files changed, 0 insertions(+), 1 deletions(-)
> > 
> > diff --git a/man3/strcpy.3 b/man3/strcpy.3
> > index 9d47e37..c79efb1 100644
> > --- a/man3/strcpy.3
> > +++ b/man3/strcpy.3
> > @@ -137,6 +137,5 @@ in ways that may make the impossible possible.
> >  .BR memcpy (3),
> >  .BR memmove (3),
> >  .BR strdup (3),
> > -.BR strpcpy (3),
> >  .BR wcscpy (3),
> >  .BR wcsncpy (3)
> 
> In fact, this should be fixed by making it a reference to stpcpy().

... which is the function I was looking for when I stumbled across the 
missing strpcpy() reference. Thanks for finding it for me :-)

I grep'd for any other misleading references to strpcpy() and can't see 
any, so I'll follow up with a revised (tiny) patch, and an extra reference 
in string(3).

-- 
Mark
--
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] 9+ messages in thread

* [PATCH 1/2] strcpy.3: Fix typo in reference
       [not found]         ` <alpine.NEB.2.01.0911212052050.25031-4Gsws06j5aKxDRllUHgonQ@public.gmane.org>
@ 2009-11-21 21:18           ` Mark Hills
       [not found]             ` <1258838327-31762-1-git-send-email-mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
  2009-12-05  7:36           ` [PATCH] strcpy.3: Remove reference to non-existent strpcpy(3) Michael Kerrisk
  1 sibling, 1 reply; 9+ messages in thread
From: Mark Hills @ 2009-11-21 21:18 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: Petr Baudis, linux-man-u79uwXL29TY76Z2rM5mHXA


Signed-off-by: Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
---
 man3/strcpy.3 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/man3/strcpy.3 b/man3/strcpy.3
index 9d47e37..a3e6d3b 100644
--- a/man3/strcpy.3
+++ b/man3/strcpy.3
@@ -137,6 +137,6 @@ in ways that may make the impossible possible.
 .BR memcpy (3),
 .BR memmove (3),
 .BR strdup (3),
-.BR strpcpy (3),
+.BR stpcpy (3),
 .BR wcscpy (3),
 .BR wcsncpy (3)
-- 
1.6.5.2

--
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] 9+ messages in thread

* [PATCH 2/2] string.3: Reference stpcpy(3)
       [not found]             ` <1258838327-31762-1-git-send-email-mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
@ 2009-11-21 21:18               ` Mark Hills
       [not found]                 ` <1258838327-31762-2-git-send-email-mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
  2009-12-05  6:05               ` [PATCH 1/2] strcpy.3: Fix typo in reference Michael Kerrisk
  1 sibling, 1 reply; 9+ messages in thread
From: Mark Hills @ 2009-11-21 21:18 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: Petr Baudis, linux-man-u79uwXL29TY76Z2rM5mHXA

This function is a variant of strcpy(3). Even though it is lesser-used
it appears at the top alphabetically because of its unusual name.

Signed-off-by: Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
---
 man3/string.3 |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/man3/string.3 b/man3/string.3
index 89d60e1..1fa71b8 100644
--- a/man3/string.3
+++ b/man3/string.3
@@ -27,7 +27,7 @@
 .\" Modified Sun Jul 25 10:54:31 1993, Rik Faith (faith-+5Oa3zvhR2o3uPMLIKxrzw@public.gmane.org)
 .TH STRING 3  1993-04-09 "" "Linux Programmer's Manual"
 .SH NAME
-strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn,
+stpcpy, strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn,
 strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk,
 strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex
 \- string operations
@@ -45,6 +45,8 @@ strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex
 .sp
 .B #include <string.h>
 .sp
+.BI "char *stpcpy(char *" dest ", const char *" src );
+.sp
 .BI "char *strcat(char *" dest ", const char *" src );
 .sp
 .BI "char *strchr(const char *" s ", int " c );
@@ -90,6 +92,7 @@ See the individual man pages for descriptions of each function.
 .SH "SEE ALSO"
 .BR index (3),
 .BR rindex (3),
+.BR stpcpy (3),
 .BR strcasecmp (3),
 .BR strcat (3),
 .BR strchr (3),
-- 
1.6.5.2

--
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] 9+ messages in thread

* Re: [PATCH 1/2] strcpy.3: Fix typo in reference
       [not found]             ` <1258838327-31762-1-git-send-email-mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
  2009-11-21 21:18               ` [PATCH 2/2] string.3: Reference stpcpy(3) Mark Hills
@ 2009-12-05  6:05               ` Michael Kerrisk
  1 sibling, 0 replies; 9+ messages in thread
From: Michael Kerrisk @ 2009-12-05  6:05 UTC (permalink / raw)
  To: Mark Hills; +Cc: Petr Baudis, linux-man-u79uwXL29TY76Z2rM5mHXA

Hi Mark,

On Sat, Nov 21, 2009 at 10:18 PM, Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org> wrote:
>
> Signed-off-by: Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
> ---
>  man3/strcpy.3 |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/man3/strcpy.3 b/man3/strcpy.3
> index 9d47e37..a3e6d3b 100644
> --- a/man3/strcpy.3
> +++ b/man3/strcpy.3
> @@ -137,6 +137,6 @@ in ways that may make the impossible possible.
>  .BR memcpy (3),
>  .BR memmove (3),
>  .BR strdup (3),
> -.BR strpcpy (3),
> +.BR stpcpy (3),
>  .BR wcscpy (3),
>  .BR wcsncpy (3)
> --
> 1.6.5.2

Thanks.

Applied for 3.24.

Thanks,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
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] 9+ messages in thread

* Re: [PATCH] strcpy.3: Remove reference to non-existent strpcpy(3)
       [not found]         ` <alpine.NEB.2.01.0911212052050.25031-4Gsws06j5aKxDRllUHgonQ@public.gmane.org>
  2009-11-21 21:18           ` [PATCH 1/2] strcpy.3: Fix typo in reference Mark Hills
@ 2009-12-05  7:36           ` Michael Kerrisk
       [not found]             ` <cfd18e0f0912042336i5deb6e19kdbfc6de94435035f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  1 sibling, 1 reply; 9+ messages in thread
From: Michael Kerrisk @ 2009-12-05  7:36 UTC (permalink / raw)
  To: Mark Hills; +Cc: Petr Baudis, linux-man-u79uwXL29TY76Z2rM5mHXA

On Sat, Nov 21, 2009 at 10:16 PM, Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org> wrote:
> On Sat, 21 Nov 2009, Petr Baudis wrote:
>
>> On Sat, Nov 21, 2009 at 05:55:46PM +0000, Mark Hills wrote:
>> > There is no man page or function by this name.
>> >
>> > Signed-off-by: Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
>> > ---
>> >  man3/strcpy.3 |    1 -
>> >  1 files changed, 0 insertions(+), 1 deletions(-)
>> >
>> > diff --git a/man3/strcpy.3 b/man3/strcpy.3
>> > index 9d47e37..c79efb1 100644
>> > --- a/man3/strcpy.3
>> > +++ b/man3/strcpy.3
>> > @@ -137,6 +137,5 @@ in ways that may make the impossible possible.
>> >  .BR memcpy (3),
>> >  .BR memmove (3),
>> >  .BR strdup (3),
>> > -.BR strpcpy (3),
>> >  .BR wcscpy (3),
>> >  .BR wcsncpy (3)
>>
>> In fact, this should be fixed by making it a reference to stpcpy().
>
> ... which is the function I was looking for when I stumbled across the
> missing strpcpy() reference. Thanks for finding it for me :-)
>
> I grep'd for any other misleading references to strpcpy() and can't see
> any, so I'll follow up with a revised (tiny) patch, and an extra reference
> in string(3).

Okay -- so in the light of your other report, this report is obsolete. Right?

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
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] 9+ messages in thread

* Re: [PATCH 2/2] string.3: Reference stpcpy(3)
       [not found]                 ` <1258838327-31762-2-git-send-email-mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
@ 2009-12-05  7:42                   ` Michael Kerrisk
  0 siblings, 0 replies; 9+ messages in thread
From: Michael Kerrisk @ 2009-12-05  7:42 UTC (permalink / raw)
  To: Mark Hills; +Cc: Petr Baudis, linux-man-u79uwXL29TY76Z2rM5mHXA

Hello Mark,

On Sat, Nov 21, 2009 at 10:18 PM, Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org> wrote:
> This function is a variant of strcpy(3). Even though it is lesser-used
> it appears at the top alphabetically because of its unusual name.

Thanks. Applied for 2.34.

Cheers,

Michael


> Signed-off-by: Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
> ---
>  man3/string.3 |    5 ++++-
>  1 files changed, 4 insertions(+), 1 deletions(-)
>
> diff --git a/man3/string.3 b/man3/string.3
> index 89d60e1..1fa71b8 100644
> --- a/man3/string.3
> +++ b/man3/string.3
> @@ -27,7 +27,7 @@
>  .\" Modified Sun Jul 25 10:54:31 1993, Rik Faith (faith-+5Oa3zvhR2o3uPMLIKxrzw@public.gmane.org)
>  .TH STRING 3  1993-04-09 "" "Linux Programmer's Manual"
>  .SH NAME
> -strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn,
> +stpcpy, strcasecmp, strcat, strchr, strcmp, strcoll, strcpy, strcspn,
>  strdup, strfry, strlen, strncat, strncmp, strncpy, strncasecmp, strpbrk,
>  strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex
>  \- string operations
> @@ -45,6 +45,8 @@ strrchr, strsep, strspn, strstr, strtok, strxfrm, index, rindex
>  .sp
>  .B #include <string.h>
>  .sp
> +.BI "char *stpcpy(char *" dest ", const char *" src );
> +.sp
>  .BI "char *strcat(char *" dest ", const char *" src );
>  .sp
>  .BI "char *strchr(const char *" s ", int " c );
> @@ -90,6 +92,7 @@ See the individual man pages for descriptions of each function.
>  .SH "SEE ALSO"
>  .BR index (3),
>  .BR rindex (3),
> +.BR stpcpy (3),
>  .BR strcasecmp (3),
>  .BR strcat (3),
>  .BR strchr (3),
> --
> 1.6.5.2
>
>



-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
Author of "The Linux Programming Interface" http://blog.man7.org/
--
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] 9+ messages in thread

* Re: [PATCH] strcpy.3: Remove reference to non-existent strpcpy(3)
       [not found]             ` <cfd18e0f0912042336i5deb6e19kdbfc6de94435035f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2009-12-05 10:05               ` Mark Hills
  0 siblings, 0 replies; 9+ messages in thread
From: Mark Hills @ 2009-12-05 10:05 UTC (permalink / raw)
  To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w
  Cc: Petr Baudis, linux-man-u79uwXL29TY76Z2rM5mHXA

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1502 bytes --]

On Sat, 5 Dec 2009, Michael Kerrisk wrote:

> On Sat, Nov 21, 2009 at 10:16 PM, Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org> wrote:
> > On Sat, 21 Nov 2009, Petr Baudis wrote:
> >
> >> On Sat, Nov 21, 2009 at 05:55:46PM +0000, Mark Hills wrote:
> >> > There is no man page or function by this name.
> >> >
> >> > Signed-off-by: Mark Hills <mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
> >> > ---
> >> >  man3/strcpy.3 |    1 -
> >> >  1 files changed, 0 insertions(+), 1 deletions(-)
> >> >
> >> > diff --git a/man3/strcpy.3 b/man3/strcpy.3
> >> > index 9d47e37..c79efb1 100644
> >> > --- a/man3/strcpy.3
> >> > +++ b/man3/strcpy.3
> >> > @@ -137,6 +137,5 @@ in ways that may make the impossible possible.
> >> >  .BR memcpy (3),
> >> >  .BR memmove (3),
> >> >  .BR strdup (3),
> >> > -.BR strpcpy (3),
> >> >  .BR wcscpy (3),
> >> >  .BR wcsncpy (3)
> >>
> >> In fact, this should be fixed by making it a reference to stpcpy().
> >
> > ... which is the function I was looking for when I stumbled across the
> > missing strpcpy() reference. Thanks for finding it for me :-)
> >
> > I grep'd for any other misleading references to strpcpy() and can't see
> > any, so I'll follow up with a revised (tiny) patch, and an extra reference
> > in string(3).
> 
> Okay -- so in the light of your other report, this report is obsolete. Right?

That's correct. And you've applied the revised patches, thanks.

> Cheers,
> 
> Michael
> 
> 
> 

-- 
Mark

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

end of thread, other threads:[~2009-12-05 10:05 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-21 17:55 [PATCH] strcpy.3: Remove reference to non-existent strpcpy(3) Mark Hills
     [not found] ` <1258826146-4474-1-git-send-email-mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
2009-11-21 20:50   ` Petr Baudis
     [not found]     ` <20091121205012.GF3708-DDGJ70k9y3lX+M3pkMnKjw@public.gmane.org>
2009-11-21 21:16       ` Mark Hills
     [not found]         ` <alpine.NEB.2.01.0911212052050.25031-4Gsws06j5aKxDRllUHgonQ@public.gmane.org>
2009-11-21 21:18           ` [PATCH 1/2] strcpy.3: Fix typo in reference Mark Hills
     [not found]             ` <1258838327-31762-1-git-send-email-mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
2009-11-21 21:18               ` [PATCH 2/2] string.3: Reference stpcpy(3) Mark Hills
     [not found]                 ` <1258838327-31762-2-git-send-email-mark-UrrBsZIrrsb10XsdtD+oqA@public.gmane.org>
2009-12-05  7:42                   ` Michael Kerrisk
2009-12-05  6:05               ` [PATCH 1/2] strcpy.3: Fix typo in reference Michael Kerrisk
2009-12-05  7:36           ` [PATCH] strcpy.3: Remove reference to non-existent strpcpy(3) Michael Kerrisk
     [not found]             ` <cfd18e0f0912042336i5deb6e19kdbfc6de94435035f-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2009-12-05 10:05               ` Mark Hills

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).