userspace/
file.rs

1pub mod load;
2pub use load::load;
3
4pub mod information;
5pub use information::information;
6
7pub mod print;
8pub use print::print;
9
10pub mod open;
11pub use open::open;
12
13pub mod seek;
14pub use seek::seek;
15
16pub mod format;
17
18// impl traits::Bytes<Origin, Origin> for &str {
19//     const BYTES_SIZE: usize = core::mem::size_of::<&str>();
20//     fn to_bytes(&self, endianness: bool) -> [u8; Self::BYTES_SIZE] {
21//         let bytes =
22//         memory::alloc::<char>(self.len());
23//     }
24// }
25
26pub mod a {
27    r#struct!(pub Information {
28       size : usize,
29    });
30}
31pub use a::Information;
32
33r#struct!(pub File {
34    pub descriptor : isize,
35    pub information : Information
36    // pub memory : Option<*const u8>
37});