summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/stdio.c
diff options
context:
space:
mode:
authorJason Evans <jasone@FreeBSD.org>2000-01-12 09:23:48 +0000
committerJason Evans <jasone@FreeBSD.org>2000-01-12 09:23:48 +0000
commit929273386f6e688c008b15fd24932df2ed7e7172 (patch)
treeb3edfb3b0b6bdadce3b9cf019cabf1218f08038d /lib/libc/stdio/stdio.c
parentf3d5d34b459fcd295a618227c37e2bacae1cdf67 (diff)
Notes
Diffstat (limited to 'lib/libc/stdio/stdio.c')
-rw-r--r--lib/libc/stdio/stdio.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/stdio.c b/lib/libc/stdio/stdio.c
index e12dc28ab9dc..777f33677ec0 100644
--- a/lib/libc/stdio/stdio.c
+++ b/lib/libc/stdio/stdio.c
@@ -60,7 +60,7 @@ __sread(cookie, buf, n)
register FILE *fp = cookie;
register int ret;
- ret = read(fp->_file, buf, (size_t)n);
+ ret = _libc_read(fp->_file, buf, (size_t)n);
/* if the read succeeded, update the current offset */
if (ret >= 0)
fp->_offset += ret;
@@ -80,7 +80,7 @@ __swrite(cookie, buf, n)
if (fp->_flags & __SAPP)
(void) lseek(fp->_file, (off_t)0, SEEK_END);
fp->_flags &= ~__SOFF; /* in case FAPPEND mode is set */
- return (write(fp->_file, buf, (size_t)n));
+ return (_libc_write(fp->_file, buf, (size_t)n));
}
fpos_t
@@ -107,5 +107,5 @@ __sclose(cookie)
void *cookie;
{
- return (close(((FILE *)cookie)->_file));
+ return (_libc_close(((FILE *)cookie)->_file));
}