[libc-commits] [PATCH] D153377: [libc] Make close function of the internal File class cleanup the file object.
Siva Chandra via Phabricator via libc-commits
libc-commits at lists.llvm.org
Tue Jun 20 14:50:36 PDT 2023
sivachandra created this revision.
sivachandra added a reviewer: lntue.
Herald added projects: libc-project, All.
Herald added a subscriber: libc-commits.
sivachandra requested review of this revision.
Before this change, a separate static method named cleanup was used to
cleanup the file. Instead, now the close method cleans up the full file
object using the platform's close function.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D153377
Files:
libc/src/__support/File/file.h
libc/src/__support/File/gpu/file.cpp
libc/src/__support/File/linux/file.cpp
libc/src/stdio/fclose.cpp
libc/src/stdio/fopencookie.cpp
libc/test/src/__support/File/file_test.cpp
libc/test/src/__support/File/platform_file_test.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D153377.533052.patch
Type: text/x-patch
Size: 16454 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230620/1fe53322/attachment-0001.bin>
More information about the libc-commits
mailing list