summaryrefslogtreecommitdiffstats
path: root/libc/stdio/open_memstream.c
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-02 01:50:58 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2005-12-02 01:50:58 +0000
commit6fd3ac79613c9e1832513b0f614860be2735993f (patch)
tree5f6bfb750aed249d5951d84de663c03f9e4b82dd /libc/stdio/open_memstream.c
parent9acef89e60381a298801e4b221d66b1538072b28 (diff)
downloaduClibc-alpine-6fd3ac79613c9e1832513b0f614860be2735993f.tar.bz2
uClibc-alpine-6fd3ac79613c9e1832513b0f614860be2735993f.tar.xz
Merge from trunk.
Diffstat (limited to 'libc/stdio/open_memstream.c')
-rw-r--r--libc/stdio/open_memstream.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libc/stdio/open_memstream.c b/libc/stdio/open_memstream.c
index 0e3df43d1..358486010 100644
--- a/libc/stdio/open_memstream.c
+++ b/libc/stdio/open_memstream.c
@@ -51,7 +51,7 @@ static ssize_t oms_write(register void *cookie, const char *buf, size_t bufsize)
}
}
- memcpy(COOKIE->buf + COOKIE->pos, buf, bufsize);
+ __memcpy(COOKIE->buf + COOKIE->pos, buf, bufsize);
COOKIE->pos += bufsize;
if (COOKIE->pos > COOKIE->eof) {
@@ -90,7 +90,7 @@ static int oms_seek(register void *cookie, __offmax_t *pos, int whence)
if (buf) {
*COOKIE->bufloc = COOKIE->buf = buf;
COOKIE->len = leastlen;
- memset(buf + COOKIE->eof, leastlen - COOKIE->eof, 0); /* 0-fill */
+ __memset(buf + COOKIE->eof, leastlen - COOKIE->eof, 0); /* 0-fill */
} else {
/* TODO: check glibc errno setting... */
return -1;
@@ -100,7 +100,7 @@ static int oms_seek(register void *cookie, __offmax_t *pos, int whence)
*pos = COOKIE->pos = --leastlen;
if (leastlen > COOKIE->eof) {
- memset(COOKIE->buf + COOKIE->eof, leastlen - COOKIE->eof, 0);
+ __memset(COOKIE->buf + COOKIE->eof, leastlen - COOKIE->eof, 0);
*COOKIE->sizeloc = COOKIE->eof;
}