From f91ca7c0d21aa40a184550621293cb8cc8ca25cd Mon Sep 17 00:00:00 2001 From: auronandace Date: Fri, 15 May 2026 11:27:07 +0100 Subject: [PATCH] remove sys_types from sys_times includes --- src/header/sys_times/cbindgen.toml | 13 +++++++++++-- src/header/sys_times/mod.rs | 6 +++--- 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/header/sys_times/cbindgen.toml b/src/header/sys_times/cbindgen.toml index fe95544def..7871e12691 100644 --- a/src/header/sys_times/cbindgen.toml +++ b/src/header/sys_times/cbindgen.toml @@ -1,5 +1,8 @@ -sys_includes = ["sys/types.h"] -include_guard = "_SYS_TIMES_H" +sys_includes = [] +after_includes = """ +#include // for clock_t from sys/types.h +""" +include_guard = "_RELIBC_SYS_TIMES_H" language = "C" style = "Tag" no_includes = true @@ -7,3 +10,9 @@ cpp_compat = true [enum] prefix_with_name = true + +[export] +include = ["tms"] + +[export.rename] +"tms" = "struct tms" diff --git a/src/header/sys_times/mod.rs b/src/header/sys_times/mod.rs index 8149f352bf..7aad81c3a8 100644 --- a/src/header/sys_times/mod.rs +++ b/src/header/sys_times/mod.rs @@ -2,10 +2,10 @@ //! //! See . -use crate::platform; -use platform::{Pal, Sys, types::clock_t}; +use crate::platform::types::clock_t; /// See . +#[allow(non_camel_case_types)] #[repr(C)] pub struct tms { tms_utime: clock_t, @@ -17,5 +17,5 @@ pub struct tms { /// See . #[unsafe(no_mangle)] pub extern "C" fn times(out: *mut tms) -> clock_t { - Sys::times(out) + todo_panic!(0, "TODO: times not implemented"); }