[libc-commits] [libc] [libc] Add the implementation of the fdopen function (PR #94186)
Michael Jones via libc-commits
libc-commits at lists.llvm.org
Thu Jun 6 10:37:40 PDT 2024
================
@@ -0,0 +1,76 @@
+//===-- Implementation of fprintf -------------------------------*- C++ -*-===//
+//
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+//
+//===----------------------------------------------------------------------===//
+
+#include "src/stdio/fdopen.h"
+
+#include "include/llvm-libc-macros/generic-error-number-macros.h"
+#include "include/llvm-libc-macros/linux/fcntl-macros.h"
+#include "src/__support/File/linux/file.h"
+#include "src/errno/libc_errno.h"
+#include "src/fcntl/fcntl.h"
----------------
michaelrj-google wrote:
the current code that implements `fcntl` should be moved into `__support/OSUtil`. That code is the code that calls `syscall_impl`.
https://github.com/llvm/llvm-project/pull/94186
More information about the libc-commits
mailing list