use alloc::{boxed::Box, str::SplitWhitespace, vec::Vec};
use core::{mem, ptr};
use crate::{
c_str::CString,
error::ResultExt,
header::{
arpa_inet::inet_aton, fcntl::O_RDONLY, netinet_in::in_addr, sys_socket::constants::AF_INET,
unistd::SEEK_SET,
},
platform::{
Pal, Sys,
rlb::{Line, RawLineBuffer},
types::{c_char, c_int},
},
raw_cell::RawCell,
};
use super::{bytes_to_box_str, hostent};
static mut HOSTDB: c_int = -1;
pub static mut HOST_ENTRY: hostent = hostent {
h_name: ptr::null_mut(),
h_aliases: ptr::null_mut(),
h_addrtype: 0,
h_length: 0,
h_addr_list: ptr::null_mut(),
};
pub static HOST_NAME: RawCell