[libc-commits] [libc] [libc] implement ioctl (PR #85890)

Nick Desaulniers via libc-commits libc-commits at lists.llvm.org
Fri Mar 22 16:08:56 PDT 2024


================
@@ -0,0 +1,13 @@
+add_entrypoint_object(
+  ioctl
+  SRCS
+    ioctl.cpp
+  HDRS
+    ../ioctl.h
+  DEPENDS
+    libc.include.sys_ioctl
----------------
nickdesaulniers wrote:

I think whats going wrong in the presubmit test failure is that you did not provide a definition of libc.include.sys_ioctl and we don't have an existing one, yet you are adding a dependency on it.

I'll bet you need a `add_gen_header` in libc/include/CMakeLists.txt for this.  Checkout how it's done for sys/select.h.def as an example.

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


More information about the libc-commits mailing list