split out stdio constants for fcntl header

This commit is contained in:
auronandace
2026-06-04 14:09:38 +01:00
parent fca1a59849
commit 3603161a6f
8 changed files with 22 additions and 8 deletions
+1
View File
@@ -3,6 +3,7 @@ sys_includes = ["stdarg.h", "stddef.h", "stdint.h", "features.h"]
after_includes = """
#include <bits/off-t.h> // for off_t from sys/types.h
#include <bits/ssize-t.h> // for ssize_t from sys/types.h
#include <bits/fcntl.h> // for SEEK_CUR, SEEK_END and SEEK_SET
"""
include_guard = "_RELIBC_STDIO_H"
trailer = """
+1 -3
View File
@@ -16,9 +16,7 @@ pub const F_SVB: c_int = 64;
pub const F_APP: c_int = 128;
pub const F_BADJ: c_int = 256;
pub const SEEK_SET: c_int = 0;
pub const SEEK_CUR: c_int = 1;
pub const SEEK_END: c_int = 2;
/// SEEK_SET, SEEK_CUR and SEEK_END defined in fcntl bits header
pub const _IOFBF: c_int = 0;
pub const _IOLBF: c_int = 1;
+1
View File
@@ -39,6 +39,7 @@ use crate::{
use reader::Reader;
pub use self::constants::*;
pub use crate::header::bits_fcntl::{SEEK_CUR, SEEK_END, SEEK_SET};
mod constants;
pub use self::default::*;