[libc-commits] [libc] Recommit "[libc] Introduce the ioctl syscall wrapper and port all callers (#204640)" (PR #205317)

via libc-commits libc-commits at lists.llvm.org
Tue Jun 23 03:59:27 PDT 2026


github-actions[bot] wrote:

<!--LLVM CODE FORMAT COMMENT: {clang-format}-->


:warning: C/C++ code formatter, clang-format found issues in your code. :warning:

<details>
<summary>
You can test this locally with the following command:
</summary>

``````````bash
git-clang-format --diff origin/main HEAD --extensions h,cpp -- libc/src/__support/OSUtil/linux/syscall_wrappers/ioctl.h libc/src/sys/ioctl/linux/ioctl.cpp libc/src/termios/linux/tcdrain.cpp libc/src/termios/linux/tcflow.cpp libc/src/termios/linux/tcflush.cpp libc/src/termios/linux/tcgetattr.cpp libc/src/termios/linux/tcgetsid.cpp libc/src/termios/linux/tcsendbreak.cpp libc/src/termios/linux/tcsetattr.cpp libc/src/unistd/linux/isatty.cpp --diff_from_common_commit
``````````

:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:

</details>

<details>
<summary>
View the diff from clang-format here.
</summary>

``````````diff
diff --git a/libc/src/__support/OSUtil/linux/syscall_wrappers/ioctl.h b/libc/src/__support/OSUtil/linux/syscall_wrappers/ioctl.h
index 6c29c2f3f..397269028 100644
--- a/libc/src/__support/OSUtil/linux/syscall_wrappers/ioctl.h
+++ b/libc/src/__support/OSUtil/linux/syscall_wrappers/ioctl.h
@@ -34,8 +34,7 @@ struct IoctlArg {
   // for passing the correct pointer type.
   LIBC_INLINE IoctlArg(const void *ptr)
       : val(reinterpret_cast<unsigned long>(ptr)) {}
-  LIBC_INLINE IoctlArg(void *ptr)
-      : val(reinterpret_cast<unsigned long>(ptr)) {}
+  LIBC_INLINE IoctlArg(void *ptr) : val(reinterpret_cast<unsigned long>(ptr)) {}
 
   template <typename T, cpp::enable_if_t<cpp::is_integral_v<T>, int> = 0>
   LIBC_INLINE constexpr IoctlArg(T num = 0)

``````````

</details>


https://github.com/llvm/llvm-project/pull/205317


More information about the libc-commits mailing list