[libc-commits] [PATCH] D151377: [libc][darwin] Add OSUtil for darwin arm64 target so that unit tests can be run.

Michael Jones via Phabricator via libc-commits libc-commits at lists.llvm.org
Thu May 25 15:19:44 PDT 2023


michaelrj added inline comments.


================
Comment at: libc/src/__support/OSUtil/darwin/io.h:18
+LIBC_INLINE void write_to_stderr(cpp::string_view msg) {
+  __llvm_libc::syscall_impl(4 /*SYS_write*/, 2 /* stderr */,
+                            reinterpret_cast<long>(msg.data()), msg.size());
----------------
can we use the macro name if we include `<sys/syscall.h>`?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D151377/new/

https://reviews.llvm.org/D151377



More information about the libc-commits mailing list