[libc-commits] [libc] [libc] Implement tcgetwinsize in termios (PR #228435)

Michael Jones via libc-commits libc-commits at lists.llvm.org
Tue Oct 6 14:57:36 PDT 2026


================
@@ -0,0 +1,38 @@
+//===----------------------------------------------------------------------===//
+//
+// 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
+//
+//===----------------------------------------------------------------------===//
+///
+/// \file
+/// Linux implementation of tcgetwinsize.
+///
+//===----------------------------------------------------------------------===//
+
+#include "src/termios/tcgetwinsize.h"
+
+#include "hdr/types/struct_winsize.h"
+#include "src/__support/OSUtil/linux/syscall_wrappers/ioctl.h"
+#include "src/__support/common.h"
+#include "src/__support/libc_errno.h"
+#include "src/__support/macros/config.h"
+#include "src/__support/macros/null_check.h"
+
+#include <asm/ioctls.h> // Safe to include without the risk of name pollution.
----------------
michaelrj-google wrote:

this should be in a proxy header, same as the other PR

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


More information about the libc-commits mailing list