[libc] add buffering to FILE writes
authorMichael Jones <michaelrj@google.com>
Wed, 1 Jun 2022 21:42:57 +0000 (14:42 -0700)
committerMichael Jones <michaelrj@google.com>
Fri, 10 Jun 2022 16:58:46 +0000 (09:58 -0700)
commit6ce490e5a61786ec0a17cedfc4beb927acbc803b
tree84876eecc0be13717c8bab14afc80aa8f0b564a4
parent6ee5baeb9774622880bffebac8afc948347e25e4
[libc] add buffering to FILE writes

Previously all FILE objects were fully buffered, this patch adds line
buffering and unbuffered output, as well as applying them to stdout and
stderr.

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D126829
libc/config/linux/api.td
libc/spec/stdc.td
libc/src/__support/File/file.cpp
libc/src/__support/File/file.h
libc/src/__support/File/linux_file.cpp
libc/test/src/__support/File/file_test.cpp