verify termios header includes

This commit is contained in:
auronandace
2026-04-14 12:59:14 +01:00
parent 022f040f05
commit a0d1e5648b
2 changed files with 8 additions and 1 deletions
+5 -1
View File
@@ -1,4 +1,8 @@
sys_includes = ["sys/types.h", "stdint.h", "features.h"]
# POSIX header spec: https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/termios.h.html
#
# Spec quotations relating to includes:
# - "The <termios.h> header shall define the pid_t type as described in <sys/types.h>."
sys_includes = ["sys/types.h"]
include_guard = "_RELIBC_TERMIOS_H"
language = "C"
style = "Tag"
+3
View File
@@ -40,6 +40,9 @@ pub const TCSANOW: c_int = 0;
pub const TCSADRAIN: c_int = 1;
pub const TCSAFLUSH: c_int = 2;
#[unsafe(no_mangle)]
pub unsafe extern "C" fn cbindgen_export_winsize(winsize: winsize) {}
/// See <https://pubs.opengroup.org/onlinepubs/9799919799/basedefs/termios.h.html>.
#[cfg(target_os = "linux")]
#[repr(C)]