verify termios header includes
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user