From efe5848fca116521e58e44a35267993b47291bde Mon Sep 17 00:00:00 2001 From: mengfansheng Date: Mon, 27 May 2024 10:14:32 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20stat?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utshell-0.5/r_general/src/lib.rs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/utshell-0.5/r_general/src/lib.rs b/utshell-0.5/r_general/src/lib.rs index a6a68e80..b9bb7e40 100644 --- a/utshell-0.5/r_general/src/lib.rs +++ b/utshell-0.5/r_general/src/lib.rs @@ -371,4 +371,21 @@ macro_rules! STANDARD_UTILS_PATH { () => { (b"/bin:/usr/bin:/usr/sbin:/sbin\0" as *const u8 as *const libc::c_char) }; +} + +#[inline] +unsafe extern "C" fn strtoimax( + mut nptr: *const libc::c_char, + mut endptr: *mut *mut libc::c_char, + mut base: libc::c_int, +) -> intmax_t { + return __strtol_internal(nptr, endptr, base, 0 as libc::c_int); +} + +#[inline] +unsafe extern "C" fn stat( + mut __path: *const libc::c_char, + mut __statbuf: *mut stat, +) -> libc::c_int { + return __xstat(1 as libc::c_int, __path, __statbuf); } \ No newline at end of file -- Gitee