63 lines
1.3 KiB
Rust

use core::ffi::{c_char, c_int};
mod malloc;
mod number;
mod process;
mod random;
mod utility;
/*
WTF:
void setkey(const char *);
I/O:
int grantpt(int);
char *mkdtemp(char *);
int mkstemp(char *);
int posix_openpt(int);
char *ptsname(int);
char *realpath(const char *restrict, char *restrict);
int unlockpt(int);
Wide string/char:
int mblen(const char *, size_t);
size_t mbstowcs(wchar_t *restrict, const char *restrict, size_t);
int mbtowc(wchar_t *restrict, const char *restrict, size_t);
size_t wcstombs(char *restrict, const wchar_t *restrict, size_t);
int wctomb(char *, wchar_t);
*/
pub const EXIT_SUCCESS: c_int = 0;
pub const EXIT_FAILURE: c_int = 1;
pub const MB_CUR_MAX: c_int = 4;
// TODO RAND_MAX
// TODO MB_CUR_MAX
#[no_mangle]
unsafe extern "C" fn mktemp(tstr: *mut c_char) -> *mut c_char {
todo!()
}
#[no_mangle]
unsafe extern "C" fn mkdtemp(tstr: *mut c_char) -> *mut c_char {
todo!()
}
#[no_mangle]
unsafe extern "C" fn mkstemp(temp: *mut c_char) -> c_int {
todo!()
}
// #[no_mangle]
// unsafe extern "C" fn faccessat(fd: c_int, path: *const c_char, amode: c_int, flag: c_int) -> c_int {
// todo!()
// }
#[no_mangle]
unsafe extern "C" fn getprogname() -> *const c_char {
todo!()
}