Add S_ISSOCK and fix str(c)spn

This commit is contained in:
jD91mZM2
2018-08-05 21:49:39 +02:00
parent b20307dca0
commit f6ca7d7c2d
4 changed files with 40 additions and 41 deletions
+14
View File
@@ -893,6 +893,20 @@ pub unsafe extern "C" fn strtol(s: *const c_char, endptr: *mut *mut c_char, base
)
}
#[no_mangle]
pub unsafe extern "C" fn strtoull(
s: *const c_char,
endptr: *mut *mut c_char,
base: c_int,
) -> c_ulong {
strtoul(s, endptr, base)
}
#[no_mangle]
pub unsafe extern "C" fn strtoll(s: *const c_char, endptr: *mut *mut c_char, base: c_int) -> c_long {
strtol(s, endptr, base)
}
#[no_mangle]
pub unsafe extern "C" fn system(command: *const c_char) -> c_int {
let child_pid = unistd::fork();