use core::ffi::c_int;

mod file;
mod get_put;
mod io;
mod printf;
mod scanf;
mod util;

// includes:
// va_list from <stdarg.h>
// FILE from <bits/stdio.h>
// size_t from <stddef.h>
// ssize_t from <sys/types.h>
//
// stdin, stdout, stderr as externs from <bits/stdio.h>
pub const L_tmpnam: c_int = 64;
pub const L_ctermid: c_int = 64;

pub const _IOFBF: c_int = 0;
pub const _IOLBF: c_int = 1;
pub const _IONBF: c_int = 2;

pub const SEEK_SET: c_int = 0;
pub const SEEK_CUR: c_int = 1;
pub const SEEK_END: c_int = 2;

pub const FILENAME_MAX: usize = 4096;
pub const FOPEN_MAX: usize = 4096;
pub const TMP_MAX: usize = 216000;

pub const EOF: c_int = -1;

pub type fpos_t = u64;

pub const BUFSIZ: usize = 8192;

pub const UNGETC_MAX: usize = 128;
