[libc-commits] [libc] [libc] Add the implementation of the fdopen function (PR #94186)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Fri Jun 7 13:57:23 PDT 2024
================
@@ -300,9 +300,11 @@ class File {
}
};
-// The implementaiton of this function is provided by the platform_file
-// library.
+// The implementation of the following functions is provided by the
+// platform_file library.
ErrorOr<File *> openfile(const char *path, const char *mode);
+// Create a File object and associate it with a fd.
+ErrorOr<File *> create_file_from_fd(int fd, const char *mode);
----------------
michaelrj-google wrote:
this shouldn't be in the top level `file.h` since it's linux specific. It should be in the linux specific `file.h`
https://github.com/llvm/llvm-project/pull/94186
More information about the libc-commits
mailing list