From bc25b5a7edfaf94a996e812661f21d01541a7ec4 Mon Sep 17 00:00:00 2001 From: auronandace Date: Thu, 12 Feb 2026 13:33:54 +0000 Subject: [PATCH] add export renames to cbindgen files --- src/header/poll/cbindgen.toml | 3 +++ src/header/sched/cbindgen.toml | 3 +++ src/header/semaphore/cbindgen.toml | 3 +++ src/header/signal/cbindgen.toml | 1 + src/header/sys_stat/cbindgen.toml | 3 +++ src/header/sys_time/cbindgen.toml | 1 + src/header/time/cbindgen.toml | 1 + 7 files changed, 15 insertions(+) diff --git a/src/header/poll/cbindgen.toml b/src/header/poll/cbindgen.toml index d623b3a811..11047d5e92 100644 --- a/src/header/poll/cbindgen.toml +++ b/src/header/poll/cbindgen.toml @@ -10,3 +10,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export.rename] +"timespec" = "struct timespec" diff --git a/src/header/sched/cbindgen.toml b/src/header/sched/cbindgen.toml index 39dfb744db..1fadf677f2 100644 --- a/src/header/sched/cbindgen.toml +++ b/src/header/sched/cbindgen.toml @@ -10,3 +10,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export.rename] +"timespec" = "struct timespec" diff --git a/src/header/semaphore/cbindgen.toml b/src/header/semaphore/cbindgen.toml index 0bb0fb24ce..13bdf9cdc9 100644 --- a/src/header/semaphore/cbindgen.toml +++ b/src/header/semaphore/cbindgen.toml @@ -10,3 +10,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export.rename] +"timespec" = "struct timespec" diff --git a/src/header/signal/cbindgen.toml b/src/header/signal/cbindgen.toml index 8eb7d42591..fe4d3bf84a 100644 --- a/src/header/signal/cbindgen.toml +++ b/src/header/signal/cbindgen.toml @@ -14,3 +14,4 @@ prefix_with_name = true [export.rename] "sigaction" = "struct sigaction" +"timespec" = "struct timespec" diff --git a/src/header/sys_stat/cbindgen.toml b/src/header/sys_stat/cbindgen.toml index 7cd8feee2b..51cba69644 100644 --- a/src/header/sys_stat/cbindgen.toml +++ b/src/header/sys_stat/cbindgen.toml @@ -11,3 +11,6 @@ cpp_compat = true [enum] prefix_with_name = true + +[export.rename] +"timespec" = "struct timespec" diff --git a/src/header/sys_time/cbindgen.toml b/src/header/sys_time/cbindgen.toml index 1815e8c0a1..dea065fa69 100644 --- a/src/header/sys_time/cbindgen.toml +++ b/src/header/sys_time/cbindgen.toml @@ -13,4 +13,5 @@ cpp_compat = true prefix_with_name = true [export.rename] +"timespec" = "struct timespec" "timeval" = "struct timeval" diff --git a/src/header/time/cbindgen.toml b/src/header/time/cbindgen.toml index a09b92ed85..1f409617ca 100644 --- a/src/header/time/cbindgen.toml +++ b/src/header/time/cbindgen.toml @@ -13,4 +13,5 @@ struct sigevent; prefix_with_name = true [export.rename] +"timespec" = "struct timespec" "sigevent" = "struct sigevent"