projects
/
oweals
/
musl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix indention with spaces in powerpc asm
[oweals/musl.git]
/
src
/
stdio
/
ext.c
diff --git
a/src/stdio/ext.c
b/src/stdio/ext.c
index 6b8ce91c5eb2a9fca45a8a9771ccea99452b5152..1fd9549019330f5944a83c4ac7a70c2bce93daab 100644
(file)
--- a/
src/stdio/ext.c
+++ b/
src/stdio/ext.c
@@
-14,12
+14,12
@@
int __fsetlocking(FILE *f, int type)
int __fwriting(FILE *f)
{
- return
f->wend && f->wpos > f->wbase
;
+ return
(f->flags & F_NORD) || f->wend
;
}
int __freading(FILE *f)
{
- return
f->rend > f->rpos
;
+ return
(f->flags & F_NOWR) || f->rend
;
}
int __freadable(FILE *f)