12345678910111213141516171819202122232425262728293031323334353637 |
- use platform::types::*;
- pub const EOF: c_int = -1;
- pub const BUFSIZ: c_int = 1024;
- pub const UNGET: c_int = 8;
- pub const FILENAME_MAX: c_int = 4096;
- pub const F_PERM: c_int = 1;
- pub const F_NORD: c_int = 4;
- pub const F_NOWR: c_int = 8;
- pub const F_EOF: c_int = 16;
- pub const F_ERR: c_int = 32;
- 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;
- pub const _IOFBF: c_int = 0;
- pub const _IOLBF: c_int = 1;
- pub const _IONBF: c_int = 2;
- // form of name is /XXXXXX, so 7
- pub const L_tmpnam: c_int = 7;
- // 36^6 (26 letters + 10 digits) is larger than i32::MAX, so just set to that
- // for now
- pub const TMP_MAX: int32_t = 2_147_483_647;
- // XXX: defined manually in bits/stdio.h as well because cbindgen can't handle
- // string constants in any form AFAICT
- pub const P_tmpdir: &[u8; 5] = b"/tmp\0";
- #[allow(non_camel_case_types)]
- pub type fpos_t = off_t;
|