summaryrefslogtreecommitdiffstats
path: root/lib/libc/stdio/fopen.c
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2001-09-02 19:10:10 +0000
committerache <ache@FreeBSD.org>2001-09-02 19:10:10 +0000
commit245c459c3f4dcbc6da4c66aebc8879251e9af682 (patch)
treebe15c0be354e09f766522b411a1ad2af5d566a99 /lib/libc/stdio/fopen.c
parentb3ac07522908287b53a4f7e77f2e5205c4f72fb7 (diff)
downloadFreeBSD-src-245c459c3f4dcbc6da4c66aebc8879251e9af682.zip
FreeBSD-src-245c459c3f4dcbc6da4c66aebc8879251e9af682.tar.gz
Move all stdio internal flags processing and setting out of __sread(),
__swrite() and __sseek() to higher level. According to funopen(3) they all are just wrappers to something like standard read(2), write(2) and lseek(2), i.e. must not touch stdio internals because they are replaceable with any other functions knows nothing about stdio internals. See example of funopen(3) usage in sendmail sources f.e. NOTE: this is original stdio bug, not result of my range checkin added.
Diffstat (limited to 'lib/libc/stdio/fopen.c')
-rw-r--r--lib/libc/stdio/fopen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/stdio/fopen.c b/lib/libc/stdio/fopen.c
index f09fe8a..709316d 100644
--- a/lib/libc/stdio/fopen.c
+++ b/lib/libc/stdio/fopen.c
@@ -85,6 +85,6 @@ fopen(file, mode)
* fseek and ftell.)
*/
if (oflags & O_APPEND)
- (void) __sseek((void *)fp, (fpos_t)0, SEEK_END);
+ (void)_sseek(fp, (fpos_t)0, SEEK_END);
return (fp);
}
OpenPOWER on IntegriCloud