[libc][NFC] Add a separate flag for capturing the '+' in fopen mode string.
authorSiva Chandra Reddy <sivachandra@google.com>
Thu, 17 Mar 2022 08:39:58 +0000 (08:39 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Thu, 17 Mar 2022 15:44:04 +0000 (15:44 +0000)
commit29a631a273d7e64b6eeb15e5403f8b0f4c2ab5aa
tree85a0b9e2588e4f35273749ecbd43e649b4314bdf
parent295172ef51c6b9a73bc0fdcfd25f8c41ead9034a
[libc][NFC] Add a separate flag for capturing the '+' in fopen mode string.

Having a separate flag helps in setting up proper flags when
implementing, say the Linux specialization of File.

Along the way, a signature for a function which is to be used to open
files has been added. The implementation of the function is to be
included in platform specializations.

Reviewed By: lntue

Differential Revision: https://reviews.llvm.org/D121889
libc/src/__support/File/file.cpp
libc/src/__support/File/file.h