[libc-commits] [libc] [libc] Add the implementation of the fdopen function (PR #94186)
Xu Zhang via libc-commits
libc-commits at lists.llvm.org
Fri Jun 7 18:14:28 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);
----------------
simonzgx wrote:
If so, I hava to include `linux/file.h` in `fdopen.cpp`, is that OK?
https://github.com/llvm/llvm-project/pull/94186
More information about the libc-commits
mailing list