split out stdio constants for fcntl header
This commit is contained in:
@@ -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 = """
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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::*;
|
||||
|
||||
Reference in New Issue
Block a user