From: "Mark-André Hopf" <mhopf-0qgFeOjsUbEdnm+yROfE0A@public.gmane.org>
To: mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org
Cc: linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: memmove.3 description error
Date: Wed, 23 Jul 2008 12:58:34 +0200 [thread overview]
Message-ID: <48870EDA.8040908@mark13.org> (raw)
The memmove page in release 2.79 states that a temporary copy is used in
case the memory regions overlap. This is of course nonsense.
The memory is either copied from front to back or from back to front.
--- memmove.3.orig 2008-07-23 12:51:56.000000000 +0200
+++ memmove.3 2008-07-23 12:53:20.000000000 +0200
@@ -39,15 +39,7 @@
.BR memmove ()
function copies \fIn\fP bytes from memory area
\fIsrc\fP to memory area \fIdest\fP.
-The memory areas may overlap: copying takes place as though
-the bytes in
-.I src
-are first copied into a temporary array that does not overlap
-.I src
-or
-.IR dest ,
-and the bytes are then copied from the temporary array to
-.IR dest .
+The memory areas may overlap.
.SH "RETURN VALUE"
The
.BR memmove ()
--
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
next reply other threads:[~2008-07-23 10:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-07-23 10:58 Mark-André Hopf [this message]
[not found] ` <48870EDA.8040908-0qgFeOjsUbEdnm+yROfE0A@public.gmane.org>
2008-07-23 11:30 ` memmove.3 description error Michael Kerrisk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=48870EDA.8040908@mark13.org \
--to=mhopf-0qgfeojsubednm+yrofe0a@public.gmane.org \
--cc=linux-man-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mtk.manpages-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox