Browse Source

Add process API stubs from ctru-rs test runner

pull/19/head
Ian Chamberlain 2 years ago
parent
commit
6238f8422c
No known key found for this signature in database
GPG Key ID: AE5484D09405AA60
  1. 19
      src/lib.rs

19
src/lib.rs

@ -63,7 +63,7 @@ pub unsafe extern "C" fn getrandom(
// The caller doesn't have the right to call the service // The caller doesn't have the right to call the service
_ => ECTRU, _ => ECTRU,
}; };
return -1 return -1;
} }
let ret = ctru_sys::PS_GenerateRandomBytes(buf, buflen); let ret = ctru_sys::PS_GenerateRandomBytes(buf, buflen);
@ -85,7 +85,7 @@ pub unsafe extern "C" fn getrandom(
} }
_ => ECTRU, _ => ECTRU,
}; };
return -1 return -1;
} }
} }
@ -99,3 +99,18 @@ pub extern "C" fn sysconf(name: libc::c_int) -> libc::c_long {
} }
} }
} }
#[no_mangle]
extern "C" fn execvp(_argc: *const libc::c_char, _argv: *mut *const libc::c_char) -> libc::c_int {
-1
}
#[no_mangle]
extern "C" fn pipe(_fildes: *mut libc::c_int) -> libc::c_int {
-1
}
#[no_mangle]
extern "C" fn sigemptyset(_arg1: *mut libc::sigset_t) -> ::libc::c_int {
-1
}

Loading…
Cancel
Save