SCCS-vsn: lib/libc/stdio/fgetln.c 5.2
SCCS-vsn: lib/libc/stdio/fgets.c 5.4
SCCS-vsn: lib/libc/stdio/fread.c 5.4
SCCS-vsn: lib/libc/stdio/fvwrite.c 5.3
SCCS-vsn: lib/libc/stdio/ungetc.c 5.6
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fgetln.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)fgetln.c 5.2 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
*/
if (__slbexpand(fp, len + OPTIMISTIC))
goto error;
*/
if (__slbexpand(fp, len + OPTIMISTIC))
goto error;
- (void) memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
+ (void) bcopy((void *)fp->_p, (void *)(fp->_lb._base + off),
len - off);
off = len;
if (__srefill(fp))
len - off);
off = len;
if (__srefill(fp))
len += diff;
if (__slbexpand(fp, len))
goto error;
len += diff;
if (__slbexpand(fp, len))
goto error;
- (void) memcpy((void *)(fp->_lb._base + off), (void *)fp->_p,
+ (void) bcopy((void *)fp->_p, (void *)(fp->_lb._base + off),
diff);
fp->_r -= diff + 1;
fp->_p = p + 1;
diff);
fp->_r -= diff + 1;
fp->_p = p + 1;
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fgets.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)fgets.c 5.4 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
len = ++t - p;
fp->_r -= len;
fp->_p = t;
len = ++t - p;
fp->_r -= len;
fp->_p = t;
- (void) memcpy((void *)s, (void *)p, len);
+ (void) bcopy((void *)p, (void *)s, len);
s[len] = 0;
return (buf);
}
fp->_r -= len;
fp->_p += len;
s[len] = 0;
return (buf);
}
fp->_r -= len;
fp->_p += len;
- (void) memcpy((void *)s, (void *)p, len);
+ (void) bcopy((void *)p, (void *)s, len);
s += len;
} while ((n -= len) != 0);
*s = 0;
s += len;
} while ((n -= len) != 0);
*s = 0;
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fread.c 5.3 (Berkeley) %G%";
+static char sccsid[] = "@(#)fread.c 5.4 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
total = resid;
p = buf;
while (resid > (r = fp->_r)) {
total = resid;
p = buf;
while (resid > (r = fp->_r)) {
- (void) memcpy((void *)p, (void *)fp->_p, (size_t)r);
+ (void) bcopy((void *)fp->_p, (void *)p, (size_t)r);
fp->_p += r;
/* fp->_r = 0 ... done in __srefill */
p += r;
fp->_p += r;
/* fp->_r = 0 ... done in __srefill */
p += r;
return ((total - resid) / size);
}
}
return ((total - resid) / size);
}
}
- (void) memcpy((void *)p, (void *)fp->_p, resid);
+ (void) bcopy((void *)fp->_p, (void *)p, resid);
fp->_r -= resid;
fp->_p += resid;
return (count);
fp->_r -= resid;
fp->_p += resid;
return (count);
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)fvwrite.c 5.2 (Berkeley) %G%";
+static char sccsid[] = "@(#)fvwrite.c 5.3 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
return (EOF);
#define MIN(a, b) ((a) < (b) ? (a) : (b))
return (EOF);
#define MIN(a, b) ((a) < (b) ? (a) : (b))
-#define COPY(n) (void) memcpy((void *)fp->_p, (void *)p, (size_t)(n));
+#define COPY(n) (void) bcopy((void *)p, (void *)fp->_p, (size_t)(n));
iov = uio->uio_iov;
p = iov->iov_base;
iov = uio->uio_iov;
p = iov->iov_base;
*/
#if defined(LIBC_SCCS) && !defined(lint)
*/
#if defined(LIBC_SCCS) && !defined(lint)
-static char sccsid[] = "@(#)ungetc.c 5.5 (Berkeley) %G%";
+static char sccsid[] = "@(#)ungetc.c 5.6 (Berkeley) %G%";
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
#endif /* LIBC_SCCS and not lint */
#include <stdio.h>
p = realloc(fp->_ub._base, i << 1);
if (p == NULL)
return (EOF);
p = realloc(fp->_ub._base, i << 1);
if (p == NULL)
return (EOF);
- (void) memcpy((void *)(p + i), (void *)p, (size_t)i);
+ (void) bcopy((void *)p, (void *)(p + i), (size_t)i);
fp->_p = p + i;
fp->_ub._base = p;
fp->_ub._size = i << 1;
fp->_p = p + i;
fp->_ub._base = p;
fp->_ub._size = i << 1;