use core::ffi::c_int;

use super::stdio::{SEEK_CUR, SEEK_END, SEEK_SET};

pub const L_SET: c_int = SEEK_SET;
pub const L_INCR: c_int = SEEK_CUR;
pub const L_XTND: c_int = SEEK_END;

pub const LOCK_SH: c_int = 1 << 0; // shared
pub const LOCK_EX: c_int = 1 << 1; // exclusive
pub const LOCK_NB: c_int = 1 << 2; // non-blocking
pub const LOCK_UN: c_int = 1 << 3; // unlock
