Comment out #[no_mangle] on unimplemented functions
This stops configure scripts from identifying them as valid
This commit is contained in:
+10
-10
@@ -17,17 +17,17 @@ pub struct fenv_t {
|
||||
pub cw: u64,
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn feclearexcept(excepts: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn fegenenv(envp: *mut fenv_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn fegetexceptflag(flagp: *mut fexcept_t, excepts: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -37,37 +37,37 @@ pub unsafe extern "C" fn fegetround() -> c_int {
|
||||
FE_TONEAREST
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn feholdexcept(envp: *mut fenv_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn feraiseexcept(except: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn fesetenv(envp: *const fenv_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn fesetexceptflag(flagp: *const fexcept_t, excepts: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn fesetround(round: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn fetestexcept(excepts: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn feupdateenv(envp: *const fenv_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
+7
-7
@@ -14,17 +14,17 @@ pub struct group {
|
||||
pub gr_mem: *mut *mut c_char,
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getgrgid(gid: gid_t) -> *mut group {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getgrnam(name: *const c_char) -> *mut group {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getgrgid_r(
|
||||
gid: gid_t,
|
||||
grp: *mut group,
|
||||
@@ -35,7 +35,7 @@ pub extern "C" fn getgrgid_r(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getgrnam_r(
|
||||
name: *const c_char,
|
||||
grp: *mut group,
|
||||
@@ -46,17 +46,17 @@ pub extern "C" fn getgrnam_r(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getgrent() -> *mut group {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn endgrent() {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn setgrent() {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ pub unsafe extern "C" fn strtoumax(
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcstoimax(
|
||||
nptr: *const wchar_t,
|
||||
endptr: *mut *mut wchar_t,
|
||||
@@ -74,8 +74,9 @@ pub extern "C" fn wcstoimax(
|
||||
) -> intmax_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[allow(unused)]
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcstoumax(
|
||||
nptr: *const wchar_t,
|
||||
endptr: *mut *mut wchar_t,
|
||||
|
||||
@@ -16,12 +16,12 @@ impl Clone for sem_t {
|
||||
*self
|
||||
}
|
||||
}
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sem_init(sem: *mut sem_t, pshared: c_int, value: c_uint) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sem_destroy(sem: *mut sem_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -34,32 +34,32 @@ pub extern "C" fn sem_destroy(sem: *mut sem_t) -> c_int {
|
||||
*}
|
||||
*/
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sem_close(sem: *mut sem_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sem_unlink(name: *const c_char) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sem_wait(sem: *mut sem_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sem_trywait(sem: *mut sem_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sem_post(sem: *mut sem_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sem_getvalue(sem: *mut sem_t, sval: *mut c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
+18
-18
@@ -39,92 +39,92 @@ pub extern "C" fn killpg(pgrp: pid_t, sig: c_int) -> c_int {
|
||||
platform::killpg(pgrp, sig)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn raise(sig: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigaction(sig: c_int, act: *const sigaction, oact: *const sigaction) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigaddset(set: *mut sigset_t, signo: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigdelset(set: *mut sigset_t, signo: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigemptyset(set: *mut sigset_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigfillset(set: *mut sigset_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sighold(sig: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigignore(sig: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn siginterrupt(sig: c_int, flag: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigismember(set: *const sigset_t, signo: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn signal(sig: c_int, func: fn(c_int)) -> fn(c_int) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigpause(sig: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigpending(set: *mut sigset_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigprocmask(how: c_int, set: *const sigset_t, oset: *mut sigset_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigrelse(sig: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigset(sig: c_int, func: fn(c_int)) -> fn(c_int) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigsuspend(sigmask: *const sigset_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sigwait(set: *const sigset_t, sig: *mut c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
@@ -221,12 +221,12 @@ pub extern "C" fn clearerr(stream: &mut FILE) {
|
||||
stream.flags &= !(F_EOF | F_ERR);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn ctermid(_s: *mut c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn cuserid(_s: *mut c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -704,7 +704,7 @@ pub extern "C" fn getw(stream: &mut FILE) -> c_int {
|
||||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pclose(_stream: &mut FILE) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -723,7 +723,7 @@ pub unsafe extern "C" fn perror(s: *const c_char) {
|
||||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn popen(_command: *const c_char, _mode: *const c_char) -> *mut FILE {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -850,17 +850,17 @@ pub extern "C" fn setvbuf(stream: &mut FILE, buf: *mut c_char, mode: c_int, size
|
||||
0
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn tempnam(_dir: *const c_char, _pfx: *const c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn tmpfile() -> *mut FILE {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn tmpnam(_s: *mut c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
+31
-31
@@ -208,12 +208,12 @@ pub extern "C" fn div(numer: c_int, denom: c_int) -> div_t {
|
||||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn drand48() -> c_double {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn ecvt(
|
||||
value: c_double,
|
||||
ndigit: c_int,
|
||||
@@ -223,7 +223,7 @@ pub extern "C" fn ecvt(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn erand(xsubi: [c_ushort; 3]) -> c_double {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -239,7 +239,7 @@ pub unsafe extern "C" fn exit(status: c_int) {
|
||||
platform::exit(status);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn fcvt(
|
||||
value: c_double,
|
||||
ndigit: c_int,
|
||||
@@ -254,17 +254,17 @@ pub unsafe extern "C" fn free(ptr: *mut c_void) {
|
||||
platform::free(ptr);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn gcvt(value: c_double, ndigit: c_int, buf: *mut c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getenv(name: *const c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getsubopt(
|
||||
optionp: *mut *mut c_char,
|
||||
tokens: *const *mut c_char,
|
||||
@@ -273,22 +273,22 @@ pub extern "C" fn getsubopt(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn grantpt(fildes: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn initstate(seec: c_uint, state: *mut c_char, size: size_t) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn jrand48(xsubi: [c_ushort; 3]) -> c_long {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn l64a(value: c_long) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -302,7 +302,7 @@ pub extern "C" fn labs(i: c_long) -> c_long {
|
||||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn lcong48(param: [c_ushort; 7]) {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -321,7 +321,7 @@ pub extern "C" fn ldiv(numer: c_long, denom: c_long) -> ldiv_t {
|
||||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn lrand48() -> c_long {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -352,12 +352,12 @@ pub unsafe extern "C" fn mblen(s: *const c_char, n: size_t) -> c_int {
|
||||
result as i32
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn mbstowcs(pwcs: *mut wchar_t, s: *const c_char, n: size_t) -> size_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn mbtowc(pwc: *mut wchar_t, s: *const c_char, n: size_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -421,27 +421,27 @@ fn get_nstime() -> u64 {
|
||||
unsafe { ts.tv_nsec as u64 }
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn mkstemp(name: *mut c_char) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn mrand48() -> c_long {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn nrand48(xsubi: [c_ushort; 3]) -> c_long {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn ptsname(fildes: c_int) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn putenv(s: *mut c_char) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -476,12 +476,12 @@ pub unsafe extern "C" fn rand() -> c_int {
|
||||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn rand_r(seed: *mut c_uint) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn random() -> c_long {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -491,22 +491,22 @@ pub unsafe extern "C" fn realloc(ptr: *mut c_void, size: size_t) -> *mut c_void
|
||||
platform::realloc(ptr, size)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn realpath(file_name: *const c_char, resolved_name: *mut c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn seed48(seed16v: [c_ushort; 3]) -> c_ushort {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn setkey(key: *const c_char) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn setstate(state: *const c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -516,12 +516,12 @@ pub unsafe extern "C" fn srand(seed: c_uint) {
|
||||
RNG = Some(XorShiftRng::from_seed([seed as u8; 16]));
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn srand48(seed: c_long) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn srandom(seed: c_uint) {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -782,17 +782,17 @@ pub unsafe extern "C" fn strtol(s: *const c_char, endptr: *mut *mut c_char, base
|
||||
)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn system(command: *const c_char) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn ttyslot() -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn unlockpt(fildes: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
@@ -142,7 +142,7 @@ pub unsafe extern "C" fn strcmp(s1: *const c_char, s2: *const c_char) -> c_int {
|
||||
strncmp(s1, s2, usize::MAX)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn strcoll(s1: *const c_char, s2: *const c_char) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -400,7 +400,7 @@ pub extern "C" fn strtok_r(
|
||||
}
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn strxfrm(s1: *mut c_char, s2: *const c_char, n: usize) -> size_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
+10
-10
@@ -14,17 +14,17 @@ pub mod sys;
|
||||
#[path = "redox.rs"]
|
||||
pub mod sys;
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn mlock(addr: *const c_void, len: usize) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn mlockall(flags: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn mmap(
|
||||
addr: *mut c_void,
|
||||
len: usize,
|
||||
@@ -36,37 +36,37 @@ pub extern "C" fn mmap(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn mprotect(addr: *mut c_void, len: usize, prot: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn msync(addr: *mut c_void, len: usize, flags: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn munlock(addr: *const c_void, len: usize) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn munlockall() -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn munmap(addr: *mut c_void, len: usize) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn shm_open(name: *const c_char, oflag: c_int, mode: mode_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn shm_unlink(name: *const c_char) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
@@ -29,27 +29,27 @@ pub struct rusage {
|
||||
pub ru_stime: timeval,
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn getpriority(which: c_int, who: id_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn getrlimit(resource: c_int, rlp: *mut rlimit) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn getrusage(who: c_int, r_usage: *mut rusage) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn setpriority(which: c_int, who: id_t, nice: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn setrlimit(resource: c_int, rlp: *const rlimit) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ pub extern "C" fn mkfifo(path: *const c_char, mode: mode_t) -> c_int {
|
||||
platform::mkfifo(path, mode)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn mknod(path: *const c_char, mode: mode_t, dev: dev_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -94,7 +94,7 @@ pub extern "C" fn stat(file: *const c_char, buf: *mut platform::types::stat) ->
|
||||
platform::stat(file, buf)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn umask(mask: mode_t) -> mode_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
@@ -23,12 +23,12 @@ pub struct fd_set {
|
||||
pub fds_bits: [c_long; 16usize],
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getitimer(which: c_int, value: *mut itimerval) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn setitimer(
|
||||
which: c_int,
|
||||
value: *const itimerval,
|
||||
@@ -37,12 +37,12 @@ pub extern "C" fn setitimer(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn gettimeofday(tp: *mut timeval, tzp: *const c_void) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn select(
|
||||
nfds: c_int,
|
||||
readfds: *mut fd_set,
|
||||
@@ -53,7 +53,7 @@ pub extern "C" fn select(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn utimes(path: *const c_char, times: [timeval; 2]) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ pub unsafe extern "C" fn wait(stat_loc: *mut c_int) -> pid_t {
|
||||
waitpid(!0, stat_loc, 0)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub unsafe extern "C" fn wait3(
|
||||
stat_loc: *mut c_int,
|
||||
options: c_int,
|
||||
|
||||
+16
-16
@@ -114,7 +114,7 @@ pub extern "C" fn clock() -> clock_t {
|
||||
return ts.tv_sec * CLOCKS_PER_SEC + ts.tv_nsec / (1_000_000_000 / CLOCKS_PER_SEC);
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn clock_getres(clock_id: clockid_t, res: *mut timespec) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -124,17 +124,17 @@ pub extern "C" fn clock_gettime(clock_id: clockid_t, tp: *mut timespec) -> c_int
|
||||
platform::clock_gettime(clock_id, tp)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn clock_settime(clock_id: clockid_t, tp: *const timespec) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn ctime(clock: *const time_t) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn ctime_r(clock: *const time_t, buf: *mut c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -144,7 +144,7 @@ pub extern "C" fn difftime(time1: time_t, time0: time_t) -> c_double {
|
||||
(time1 - time0) as c_double
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getdate(string: *const c_char) -> tm {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -193,17 +193,17 @@ pub extern "C" fn gmtime_r(clock: *const time_t, result: *mut tm) -> *mut tm {
|
||||
result
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn localtime(timer: *const time_t) -> *mut tm {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn localtime_r(clock: *const time_t, result: *mut tm) -> *mut tm {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn mktime(timeptr: *mut tm) -> time_t {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -213,7 +213,7 @@ pub extern "C" fn nanosleep(rqtp: *const timespec, rmtp: *mut timespec) -> c_int
|
||||
platform::nanosleep(rqtp, rmtp)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn strftime(
|
||||
s: *mut c_char,
|
||||
maxsize: usize,
|
||||
@@ -223,7 +223,7 @@ pub extern "C" fn strftime(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn strptime(buf: *const c_char, format: *const c_char, tm: *mut tm) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -240,7 +240,7 @@ pub extern "C" fn time(tloc: *mut time_t) -> time_t {
|
||||
ts.tv_sec
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn timer_create(
|
||||
clock_id: clockid_t,
|
||||
evp: *mut sigevent,
|
||||
@@ -249,17 +249,17 @@ pub extern "C" fn timer_create(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn timer_delete(timerid: timer_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn tzset() {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn timer_settime(
|
||||
timerid: timer_t,
|
||||
flags: c_int,
|
||||
@@ -269,12 +269,12 @@ pub extern "C" fn timer_settime(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn timer_gettime(timerid: timer_t, value: *mut itimerspec) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn timer_getoverrun(timerid: timer_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
+8
-8
@@ -7,17 +7,17 @@ pub struct aiocb {
|
||||
pub aio_sigevent: sigevent,
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn aio_read(aiocbp: *mut aiocb) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn aio_write(aiocbp: *mut aiocb) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn lio_listio(
|
||||
mode: libc::c_int,
|
||||
list: *const *const aiocb,
|
||||
@@ -27,22 +27,22 @@ pub extern "C" fn lio_listio(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn aio_error(aiocbp: *const aiocb) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn aio_return(aiocbp: *mut aiocb) -> usize {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn aio_cancel(fildes: libc::c_int, aiocbp: *mut aiocb) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn aio_suspend(
|
||||
list: *const *const aiocb,
|
||||
nent: libc::c_int,
|
||||
@@ -51,7 +51,7 @@ pub extern "C" fn aio_suspend(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn aio_fsync(operation: libc::c_int, aiocbp: *mut aiocb) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
+77
-77
@@ -1,9 +1,9 @@
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_destroy(attr: *mut pthread_attr_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_getdetachstate(
|
||||
attr: *const pthread_attr_t,
|
||||
detachstate: *mut libc::c_int,
|
||||
@@ -11,7 +11,7 @@ pub extern "C" fn pthread_attr_getdetachstate(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_getguardsize(
|
||||
attr: *const pthread_attr_t,
|
||||
guardsize: *mut usize,
|
||||
@@ -19,7 +19,7 @@ pub extern "C" fn pthread_attr_getguardsize(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_getinheritsched(
|
||||
attr: *const pthread_attr_t,
|
||||
inheritsched: *mut libc::c_int,
|
||||
@@ -27,7 +27,7 @@ pub extern "C" fn pthread_attr_getinheritsched(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_getschedparam(
|
||||
attr: *const pthread_attr_t,
|
||||
param: *mut sched_param,
|
||||
@@ -35,7 +35,7 @@ pub extern "C" fn pthread_attr_getschedparam(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_getschedpolicy(
|
||||
attr: *const pthread_attr_t,
|
||||
policy: *mut libc::c_int,
|
||||
@@ -43,7 +43,7 @@ pub extern "C" fn pthread_attr_getschedpolicy(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_getscope(
|
||||
attr: *const pthread_attr_t,
|
||||
contentionscope: *mut libc::c_int,
|
||||
@@ -51,7 +51,7 @@ pub extern "C" fn pthread_attr_getscope(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_getstackaddr(
|
||||
attr: *const pthread_attr_t,
|
||||
stackaddr: *mut *mut libc::c_void,
|
||||
@@ -59,7 +59,7 @@ pub extern "C" fn pthread_attr_getstackaddr(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_getstacksize(
|
||||
attr: *const pthread_attr_t,
|
||||
stacksize: *mut usize,
|
||||
@@ -67,12 +67,12 @@ pub extern "C" fn pthread_attr_getstacksize(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_init(arg1: *mut pthread_attr_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_setdetachstate(
|
||||
attr: *mut pthread_attr_t,
|
||||
detachstate: libc::c_int,
|
||||
@@ -80,12 +80,12 @@ pub extern "C" fn pthread_attr_setdetachstate(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_setguardsize(arg1: *mut pthread_attr_t, arg2: usize) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_setinheritsched(
|
||||
attr: *mut pthread_attr_t,
|
||||
inheritsched: libc::c_int,
|
||||
@@ -93,7 +93,7 @@ pub extern "C" fn pthread_attr_setinheritsched(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_setschedparam(
|
||||
attr: *mut pthread_attr_t,
|
||||
param: *mut sched_param,
|
||||
@@ -101,7 +101,7 @@ pub extern "C" fn pthread_attr_setschedparam(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_setschedpolicy(
|
||||
attr: *mut pthread_attr_t,
|
||||
policy: libc::c_int,
|
||||
@@ -109,7 +109,7 @@ pub extern "C" fn pthread_attr_setschedpolicy(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_setscope(
|
||||
attr: *mut pthread_attr_t,
|
||||
contentionscope: libc::c_int,
|
||||
@@ -117,7 +117,7 @@ pub extern "C" fn pthread_attr_setscope(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_setstackaddr(
|
||||
attr: *mut pthread_attr_t,
|
||||
stackaddr: *mut libc::c_void,
|
||||
@@ -125,37 +125,37 @@ pub extern "C" fn pthread_attr_setstackaddr(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_attr_setstacksize(attr: *mut pthread_attr_t, stacksize: usize) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_cancel(thread: pthread_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_cleanup_push(routine: *mut libc::c_void, arg: *mut libc::c_void) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_cleanup_pop(execute: libc::c_int) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_cond_broadcast(cond: *mut pthread_cond_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_cond_destroy(cond: *mut pthread_cond_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_cond_init(
|
||||
cond: *mut pthread_cond_t,
|
||||
attr: *const pthread_condattr_t,
|
||||
@@ -163,12 +163,12 @@ pub extern "C" fn pthread_cond_init(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_cond_signal(cond: *mut pthread_cond_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_cond_timedwait(
|
||||
cond: *mut pthread_cond_t,
|
||||
mutex: *mut pthread_mutex_t,
|
||||
@@ -177,7 +177,7 @@ pub extern "C" fn pthread_cond_timedwait(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_cond_wait(
|
||||
cond: *mut pthread_cond_t,
|
||||
mutex: *mut pthread_mutex_t,
|
||||
@@ -185,12 +185,12 @@ pub extern "C" fn pthread_cond_wait(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_condattr_destroy(attr: *mut pthread_condattr_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_condattr_getpshared(
|
||||
attr: *const pthread_condattr_t,
|
||||
pshared: *mut libc::c_int,
|
||||
@@ -198,12 +198,12 @@ pub extern "C" fn pthread_condattr_getpshared(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_condattr_init(attr: *mut pthread_condattr_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_condattr_setpshared(
|
||||
attr: *mut pthread_condattr_t,
|
||||
pshared: libc::c_int,
|
||||
@@ -211,7 +211,7 @@ pub extern "C" fn pthread_condattr_setpshared(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_create(
|
||||
thread: *mut pthread_t,
|
||||
attr: *const pthread_attr_t,
|
||||
@@ -221,27 +221,27 @@ pub extern "C" fn pthread_create(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_detach(thread: pthread_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_equal(t1: pthread_t, t2: pthread_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_exit(value_ptr: *mut libc::c_void) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_getconcurrency() -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_getschedparam(
|
||||
thread: pthread_t,
|
||||
policy: *mut libc::c_int,
|
||||
@@ -250,17 +250,17 @@ pub extern "C" fn pthread_getschedparam(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_getspecific(key: pthread_key_t) -> *mut libc::c_void {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_join(thread: pthread_t, value_ptr: *mut *mut libc::c_void) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_key_create(
|
||||
key: *mut pthread_key_t,
|
||||
destructor: Option<unsafe extern "C" fn(arg1: *mut libc::c_void)>,
|
||||
@@ -268,17 +268,17 @@ pub extern "C" fn pthread_key_create(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_key_delete(key: pthread_key_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutex_destroy(mutex: *mut pthread_mutex_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutex_getprioceiling(
|
||||
mutex: *const pthread_mutex_t,
|
||||
prioceiling: *mut libc::c_int,
|
||||
@@ -286,7 +286,7 @@ pub extern "C" fn pthread_mutex_getprioceiling(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutex_init(
|
||||
mutex: *mut pthread_mutex_t,
|
||||
attr: *const pthread_mutexattr_t,
|
||||
@@ -294,12 +294,12 @@ pub extern "C" fn pthread_mutex_init(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutex_lock(mutex: *mut pthread_mutex_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutex_setprioceiling(
|
||||
mutex: *mut pthread_mutex_t,
|
||||
prioceiling: libc::c_int,
|
||||
@@ -308,22 +308,22 @@ pub extern "C" fn pthread_mutex_setprioceiling(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutex_trylock(mutex: *mut pthread_mutex_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutex_unlock(mutex: *mut pthread_mutex_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutexattr_destroy(attr: *mut pthread_mutexattr_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutexattr_getprioceiling(
|
||||
attr: *const pthread_mutexattr_t,
|
||||
prioceiling: *mut libc::c_int,
|
||||
@@ -331,7 +331,7 @@ pub extern "C" fn pthread_mutexattr_getprioceiling(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutexattr_getprotocol(
|
||||
attr: *const pthread_mutexattr_t,
|
||||
protocol: *mut libc::c_int,
|
||||
@@ -339,7 +339,7 @@ pub extern "C" fn pthread_mutexattr_getprotocol(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutexattr_getpshared(
|
||||
attr: *const pthread_mutexattr_t,
|
||||
pshared: *mut libc::c_int,
|
||||
@@ -347,7 +347,7 @@ pub extern "C" fn pthread_mutexattr_getpshared(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutexattr_gettype(
|
||||
attr: *const pthread_mutexattr_t,
|
||||
type_: *mut libc::c_int,
|
||||
@@ -355,12 +355,12 @@ pub extern "C" fn pthread_mutexattr_gettype(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutexattr_init(attr: *mut pthread_mutexattr_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutexattr_setprioceiling(
|
||||
attr: *mut pthread_mutexattr_t,
|
||||
prioceiling: libc::c_int,
|
||||
@@ -368,7 +368,7 @@ pub extern "C" fn pthread_mutexattr_setprioceiling(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutexattr_setprotocol(
|
||||
attr: *mut pthread_mutexattr_t,
|
||||
protocol: libc::c_int,
|
||||
@@ -376,7 +376,7 @@ pub extern "C" fn pthread_mutexattr_setprotocol(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutexattr_setpshared(
|
||||
attr: *mut pthread_mutexattr_t,
|
||||
pshared: libc::c_int,
|
||||
@@ -384,7 +384,7 @@ pub extern "C" fn pthread_mutexattr_setpshared(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_mutexattr_settype(
|
||||
attr: *mut pthread_mutexattr_t,
|
||||
type_: libc::c_int,
|
||||
@@ -392,7 +392,7 @@ pub extern "C" fn pthread_mutexattr_settype(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_once(
|
||||
once_control: *mut pthread_once_t,
|
||||
init_routine: Option<unsafe extern "C" fn()>,
|
||||
@@ -400,12 +400,12 @@ pub extern "C" fn pthread_once(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_rwlock_destroy(rwlock: *mut pthread_rwlock_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_rwlock_init(
|
||||
rwlock: *mut pthread_rwlock_t,
|
||||
attr: *const pthread_rwlockattr_t,
|
||||
@@ -413,37 +413,37 @@ pub extern "C" fn pthread_rwlock_init(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_rwlock_rdlock(rwlock: *mut pthread_rwlock_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_rwlock_tryrdlock(rwlock: *mut pthread_rwlock_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_rwlock_trywrlock(rwlock: *mut pthread_rwlock_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_rwlock_unlock(rwlock: *mut pthread_rwlock_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_rwlock_wrlock(rwlock: *mut pthread_rwlock_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_rwlockattr_destroy(rwlock: *mut pthread_rwlockattr_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_rwlockattr_getpshared(
|
||||
rwlock: *const pthread_rwlockattr_t,
|
||||
pshared: *mut libc::c_int,
|
||||
@@ -451,12 +451,12 @@ pub extern "C" fn pthread_rwlockattr_getpshared(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_rwlockattr_init(rwlock: *mut pthread_rwlockattr_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_rwlockattr_setpshared(
|
||||
rwlock: *mut pthread_rwlockattr_t,
|
||||
pshared: libc::c_int,
|
||||
@@ -464,27 +464,27 @@ pub extern "C" fn pthread_rwlockattr_setpshared(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_self() -> pthread_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_setcancelstate(state: libc::c_int, oldstate: *mut libc::c_int) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_setcanceltype(type_: libc::c_int, oldtype: *mut libc::c_int) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_setconcurrency(new_level: libc::c_int) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_setschedparam(
|
||||
thread: pthread_t,
|
||||
policy: libc::c_int,
|
||||
@@ -493,7 +493,7 @@ pub extern "C" fn pthread_setschedparam(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_setspecific(
|
||||
key: pthread_key_t,
|
||||
value: *const libc::c_void,
|
||||
@@ -501,7 +501,7 @@ pub extern "C" fn pthread_setspecific(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_testcancel() {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
+18
-18
@@ -1,89 +1,89 @@
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswalnum(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswalpha(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswcntrl(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswdigit(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswgraph(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswlower(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswprint(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswpunct(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswspace(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswupper(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswxdigit(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswblank(wc: wint_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wctype(property: *const libc::c_char, locale: locale_t) -> wctype_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswctype(wc: wint_t, desc: wctype_t, locale: locale_t) -> libc::c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn towlower(wc: wint_t, locale: locale_t) -> wint_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn towupper(wc: wint_t, locale: locale_t) -> wint_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wctrans(property: *const libc::c_char, locale: locale_t) -> wctrans_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn towctrans(wc: wint_t, desc: wctrans_t, locale: locale_t) -> wint_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
+40
-40
@@ -49,12 +49,12 @@ pub extern "C" fn _exit(status: c_int) {
|
||||
platform::exit(status)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn access(path: *const c_char, amode: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn alarm(seconds: c_uint) -> c_uint {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -64,7 +64,7 @@ pub extern "C" fn chdir(path: *const c_char) -> c_int {
|
||||
platform::chdir(path)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn chroot(path: *const c_char) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -79,12 +79,12 @@ pub extern "C" fn close(fildes: c_int) -> c_int {
|
||||
platform::close(fildes)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn confstr(name: c_int, buf: *mut c_char, len: size_t) -> size_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn crypt(key: *const c_char, salt: *const c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -99,7 +99,7 @@ pub extern "C" fn dup2(fildes: c_int, fildes2: c_int) -> c_int {
|
||||
platform::dup2(fildes, fildes2)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn encrypt(block: [c_char; 64], edflag: c_int) {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -137,7 +137,7 @@ pub unsafe extern "C" fn execve(
|
||||
platform::execve(path, argv, envp)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn execvp(file: *const c_char, argv: *const *mut c_char) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -152,7 +152,7 @@ pub extern "C" fn fchdir(fildes: c_int) -> c_int {
|
||||
platform::fchdir(fildes)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn fdatasync(fildes: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -177,7 +177,7 @@ pub extern "C" fn getcwd(buf: *mut c_char, size: size_t) -> *mut c_char {
|
||||
platform::getcwd(buf, size)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getdtablesize() -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -197,12 +197,12 @@ pub extern "C" fn getgid() -> gid_t {
|
||||
platform::getgid()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getgroups(gidsetsize: c_int, grouplist: *mut gid_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn gethostid() -> c_long {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -259,22 +259,22 @@ pub unsafe extern "C" fn gethostname(mut name: *mut c_char, len: size_t) -> c_in
|
||||
0
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getlogin() -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getlogin_r(name: *mut c_char, namesize: size_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getpagesize() -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getpass(prompt: *const c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -299,7 +299,7 @@ pub extern "C" fn getppid() -> pid_t {
|
||||
platform::getppid()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getsid(pid: pid_t) -> pid_t {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -309,17 +309,17 @@ pub extern "C" fn getuid() -> uid_t {
|
||||
platform::getuid()
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getwd(path_name: *mut c_char) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn isatty(fildes: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn lchown(path: *const c_char, owner: uid_t, group: gid_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -329,22 +329,22 @@ pub extern "C" fn link(path1: *const c_char, path2: *const c_char) -> c_int {
|
||||
platform::link(path1, path2)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn lockf(fildes: c_int, function: c_int, size: off_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn lseek(fildes: c_int, offset: off_t, whence: c_int) -> off_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn nice(incr: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pause() -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -354,12 +354,12 @@ pub extern "C" fn pipe(fildes: [c_int; 2]) -> c_int {
|
||||
platform::pipe(fildes)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pread(fildes: c_int, buf: *mut c_void, nbyte: size_t, offset: off_t) -> ssize_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pthread_atfork(
|
||||
prepare: Option<extern "C" fn()>,
|
||||
parent: Option<extern "C" fn()>,
|
||||
@@ -368,7 +368,7 @@ pub extern "C" fn pthread_atfork(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pwrite(
|
||||
fildes: c_int,
|
||||
buf: *const c_void,
|
||||
@@ -385,7 +385,7 @@ pub extern "C" fn read(fildes: c_int, buf: *const c_void, nbyte: size_t) -> ssiz
|
||||
platform::read(fildes, buf)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn readlink(path: *const c_char, buf: *mut c_char, bufsize: size_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -405,7 +405,7 @@ pub extern "C" fn setpgid(pid: pid_t, pgid: pid_t) -> c_int {
|
||||
platform::setpgid(pid, pgid)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn setpgrp() -> pid_t {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -420,7 +420,7 @@ pub extern "C" fn setreuid(ruid: uid_t, euid: uid_t) -> c_int {
|
||||
platform::setreuid(ruid, euid)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn setsid() -> pid_t {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -441,52 +441,52 @@ pub extern "C" fn sleep(seconds: c_uint) -> c_uint {
|
||||
0
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn swab(src: *const c_void, dest: *mut c_void, nbytes: ssize_t) {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn symlink(path1: *const c_char, path2: *const c_char) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sync() {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn sysconf(name: c_int) -> c_long {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn tcgetpgrp() -> pid_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn tcsetpgrp(fildes: c_int, pgid_id: pid_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn truncate(path: *const c_char, length: off_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn ttyname(fildes: c_int) -> *mut c_char {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn ttyname_r(fildes: c_int, name: *mut c_char, namesize: size_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn ualarm(useconds: useconds_t, interval: useconds_t) -> useconds_t {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -506,7 +506,7 @@ pub extern "C" fn usleep(useconds: useconds_t) -> c_int {
|
||||
platform::nanosleep(&rqtp, rmtp)
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn vfork() -> pid_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
@@ -22,12 +22,12 @@ pub const _PC_ALLOC_SIZE_MIN: c_int = 18;
|
||||
pub const _PC_SYMLINK_MAX: c_int = 19;
|
||||
pub const _PC_2_SYMLINKS: c_int = 20;
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn fpathconf(fildes: c_int, name: c_int) -> c_long {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn pathconf(path: *const c_char, name: c_int) -> c_long {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
+44
-44
@@ -64,22 +64,22 @@ pub unsafe extern "C" fn fputwc(wc: wchar_t, stream: *mut FILE) -> wint_t {
|
||||
wc as wint_t
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn fputws(ws: *const wchar_t, stream: *mut FILE) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn fwide(stream: *mut FILE, mode: c_int) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getwc(stream: *mut FILE) -> wint_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn getwchar() -> wint_t {
|
||||
unimplemented!();
|
||||
}
|
||||
@@ -207,7 +207,7 @@ pub unsafe extern "C" fn putwchar(wc: wchar_t) -> wint_t {
|
||||
fputwc(wc, &mut *__stdout())
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn swprintf(
|
||||
s: *mut wchar_t,
|
||||
n: usize,
|
||||
@@ -217,37 +217,37 @@ pub extern "C" fn swprintf(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn swscanf(s: *const wchar_t, format: *const wchar_t, mut ap: va_list) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn towlower(wc: wint_t) -> wint_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn towupper(wc: wint_t) -> wint_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn ungetwc(wc: wint_t, stream: *mut FILE) -> wint_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn vfwprintf(stream: *mut FILE, format: *const wchar_t, arg: va_list) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn vwprintf(format: *const wchar_t, arg: va_list) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn vswprintf(
|
||||
s: *mut wchar_t,
|
||||
n: usize,
|
||||
@@ -272,37 +272,37 @@ pub extern "C" fn wcrtomb(s: *mut c_char, wc: wchar_t, ps: *mut mbstate_t) -> us
|
||||
unsafe { utf8::wcrtomb(s_cpy, wc_cpy, ps) }
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcscat(ws1: *mut wchar_t, ws2: *const wchar_t) -> *mut wchar_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcschr(ws1: *const wchar_t, ws2: wchar_t) -> *mut c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcscmp(ws1: *const wchar_t, ws2: *const wchar_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcscoll(ws1: *const wchar_t, ws2: *const wchar_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcscpy(ws1: *mut wchar_t, ws2: *const wchar_t) -> *mut wchar_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcscspn(ws1: *const wchar_t, ws2: *const wchar_t) -> usize {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcsftime(
|
||||
wcs: *mut wchar_t,
|
||||
maxsize: usize,
|
||||
@@ -312,37 +312,37 @@ pub extern "C" fn wcsftime(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcslen(ws: *const wchar_t) -> c_ulong {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcsncat(ws1: *mut wchar_t, ws2: *const wchar_t, n: usize) -> *mut wchar_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcsncmp(ws1: *const wchar_t, ws2: *const wchar_t, n: usize) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcsncpy(ws1: *mut wchar_t, ws2: *const wchar_t, n: usize) -> *mut wchar_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcspbrk(ws1: *const wchar_t, ws2: *const wchar_t) -> *mut wchar_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcsrchr(ws1: *const wchar_t, ws2: wchar_t) -> *mut wchar_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcsrtombs(
|
||||
dst: *mut c_char,
|
||||
src: *mut *const wchar_t,
|
||||
@@ -352,22 +352,22 @@ pub extern "C" fn wcsrtombs(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcsspn(ws1: *const wchar_t, ws2: *const wchar_t) -> usize {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcsstr(ws1: *const wchar_t, ws2: *const wchar_t) -> *mut wchar_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcstod(nptr: *const wchar_t, endptr: *mut *mut wchar_t) -> f64 {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcstok(
|
||||
ws1: *mut wchar_t,
|
||||
ws2: *const wchar_t,
|
||||
@@ -376,72 +376,72 @@ pub extern "C" fn wcstok(
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcstol(nptr: *const wchar_t, endptr: *mut *mut wchar_t, base: c_int) -> c_long {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcstoul(nptr: *const wchar_t, endptr: *mut *mut wchar_t, base: c_int) -> c_ulong {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcswcs(ws1: *const wchar_t, ws2: *const wchar_t) -> *mut wchar_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcswidth(pwcs: *const wchar_t, n: usize) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcsxfrm(ws1: *mut wchar_t, ws2: *const wchar_t, n: usize) -> usize {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wctob(c: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wcwidth(wc: wchar_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wmemchr(ws: *const wchar_t, wc: wchar_t, n: usize) -> *mut c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wmemcmp(ws1: *const wchar_t, ws2: *const wchar_t, n: usize) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wmemcpy(ws1: *mut wchar_t, ws2: *const wchar_t, n: usize) -> *mut wchar_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wmemmove(ws1: *mut wchar_t, ws2: *const wchar_t, n: usize) -> *mut wchar_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wmemset(ws1: *mut wchar_t, ws2: wchar_t, n: usize) -> *mut wchar_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wprintf(format: *const wchar_t, mut ap: va_list) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wscanf(format: *const wchar_t, mut ap: va_list) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
+15
-15
@@ -6,77 +6,77 @@ extern crate platform;
|
||||
|
||||
use platform::types::*;
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswalnum(wc: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswalpha(wc: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswcntrl(wc: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswdigit(wc: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswgraph(wc: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswlower(wc: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswprint(wc: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswpunct(wc: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswspace(wc: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswupper(wc: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswxdigit(wc: wint_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn iswctype(wc: wint_t, charclass: wctype_t) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn towlower(wc: wint_t) -> wint_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn towupper(wc: wint_t) -> wint_t {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
#[no_mangle]
|
||||
// #[no_mangle]
|
||||
pub extern "C" fn wctype(property: *const c_char) -> c_int {
|
||||
unimplemented!();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user