From: jacmet at uclibc.org <jacmet@uclibc.org>
To: buildroot@busybox.net
Subject: [Buildroot] svn commit: trunk/buildroot/package/x11r7/xlib_libFS
Date: Wed, 22 Oct 2008 07:39:46 -0700 (PDT) [thread overview]
Message-ID: <20081022143947.08EE43C666@busybox.net> (raw)
Author: jacmet
Date: 2008-10-22 07:39:46 -0700 (Wed, 22 Oct 2008)
New Revision: 23765
Log:
x11r7/libFS susv3-legacy: update to what got applied upstream
For details, see:
http://lists.freedesktop.org/archives/xorg/2008-October/039630.html
Modified:
trunk/buildroot/package/x11r7/xlib_libFS/xlib_libFS-susv3-legacy.patch
Changeset:
Modified: trunk/buildroot/package/x11r7/xlib_libFS/xlib_libFS-susv3-legacy.patch
===================================================================
--- trunk/buildroot/package/x11r7/xlib_libFS/xlib_libFS-susv3-legacy.patch 2008-10-22 13:36:10 UTC (rev 23764)
+++ trunk/buildroot/package/x11r7/xlib_libFS/xlib_libFS-susv3-legacy.patch 2008-10-22 14:39:46 UTC (rev 23765)
@@ -1,4 +1,10 @@
-libFS: use memcpy instead of bcopy
+From: Peter Korsgaard <jacmet@sunsite.dk>
+Subject: [PATCH] libFS: use memmove instead of bcopy
+
+bcopy is marked as legacy in SuSv3 and not available in the default
+configuration of uClibc. Replace with memmove proposed by SuSv3.
+
+Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
---
src/FSOpenServ.c | 2 +-
src/FSlibInt.c | 2 +-
@@ -15,7 +21,7 @@
return (FSServer *) 0;
}
- bcopy(ad, alts[i].name, altlen);
-+ memcpy(alts[i].name, ad, altlen);
++ memmove(alts[i].name, ad, altlen);
alts[i].name[altlen] = '\0';
ad += altlen + ((4 - (altlen + 2)) & 3);
}
@@ -28,7 +34,7 @@
{
if (svr->bufptr + (len) <= svr->bufmax) {
- bcopy(data, svr->bufptr, (int) len);
-+ memcpy(svr->bufptr, data, (int) len);
++ memmove(svr->bufptr, data, (int) len);
svr->bufptr += ((len) + 3) & ~3;
} else {
_FSSend(svr, data, len);
@@ -41,7 +47,7 @@
#define Data(svr, data, len) \
if (svr->bufptr + (len) <= svr->bufmax) {\
- bcopy(data, svr->bufptr, (int)len);\
-+ memcpy(svr->bufptr, data, (int)len); \
++ memmove(svr->bufptr, data, (int)len); \
svr->bufptr += ((len) + 3) & ~3;\
} else\
_FSSend(svr, data, len)
@@ -50,7 +56,7 @@
{ register char *cpvar; \
for (cpvar = (char *) start; endcond; cpvar = NEXTPTR(cpvar,type), decr) { \
- type dummy; bcopy (cpvar, (char *) &dummy, SIZEOF(type)); \
-+ type dummy; memcpy ((char *) &dummy, cpvar, SIZEOF(type)); \
++ type dummy; memmove ((char *) &dummy, cpvar, SIZEOF(type)); \
tpvar = (type *) cpvar;
#define ENDITERATE }}
@@ -63,7 +69,7 @@
#if (MSKCNT>4)
-#define COPYBITS(src, dst) bcopy((caddr_t) src, (caddr_t) dst, sizeof(FdSet))
-+#define COPYBITS(src, dst) memcpy((caddr_t) dst, (caddr_t) src, sizeof(FdSet))
++#define COPYBITS(src, dst) memmove((caddr_t) dst, (caddr_t) src, sizeof(FdSet))
#define CLEARBITS(buf) bzero((caddr_t) buf, sizeof(FdSet))
#define MASKANDSETBITS(dst, b1, b2) \
{ int cri; \
next reply other threads:[~2008-10-22 14:39 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-22 14:39 jacmet at uclibc.org [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-10-21 15:06 [Buildroot] svn commit: trunk/buildroot/package/x11r7/xlib_libFS jacmet at uclibc.org
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=20081022143947.08EE43C666@busybox.net \
--to=jacmet@uclibc.org \
--cc=buildroot@busybox.net \
/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