Browse Source

Merge pull request #19 from rust3ds/fix/process-api-stubs

Add process API stubs from ctru-rs test runner
pull/21/head
Meziu 2 years ago committed by GitHub
parent
commit
09969b5702
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  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