projects
/
musl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix ftello result for append streams with unflushed output
[musl]
/
src
/
stdio
/
__fdopen.c
diff --git
a/src/stdio/__fdopen.c
b/src/stdio/__fdopen.c
index
59690f6
..
a2ca62b
100644
(file)
--- a/
src/stdio/__fdopen.c
+++ b/
src/stdio/__fdopen.c
@@
-33,6
+33,7
@@
FILE *__fdopen(int fd, const char *mode)
if (*mode == 'a') {
int flags = __syscall(SYS_fcntl, fd, F_GETFL);
__syscall(SYS_fcntl, fd, F_SETFL, flags | O_APPEND);
+ f->flags |= F_APP;
}
f->fd = fd;