Skip to content
Snippets Groups Projects
Commit 164ef739 authored by Ahmed Abd El Mawgood's avatar Ahmed Abd El Mawgood
Browse files

Apply Cargo fmt for src/ld_so

parent 12d3838f
No related branches found
No related tags found
1 merge request!277Scanf
......@@ -26,10 +26,10 @@ use crate::{
};
use super::{
access,
debug::{RTLDDebug, RTLDState, _dl_debug_state, _r_debug},
tcb::{Master, Tcb},
PAGE_SIZE,
access,
};
#[cfg(target_os = "redox")]
......
use goblin::elf::program_header::{self, program_header32, program_header64, ProgramHeader};
use self::tcb::{Master, Tcb};
use crate::{
start::Stack,
c_str::CStr,
platform::types::*
};
use crate::{c_str::CStr, platform::types::*, start::Stack};
pub const PAGE_SIZE: usize = 4096;
pub mod debug;
......@@ -85,8 +81,8 @@ pub fn static_init(sp: &'static Stack) {
// Wrapper over the systemcall, Do not use outside of ld_so
pub unsafe fn access(path: *const c_char, mode: c_int) -> c_int {
let path = CStr::from_ptr(path);
syscall!(ACCESS, (path).as_ptr(), mode) as c_int
let path = CStr::from_ptr(path);
syscall!(ACCESS, (path).as_ptr(), mode) as c_int
}
#[cfg(target_os = "linux")]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment