Files
RedBear-OS/src/header/grp/mod.rs
T
jD91mZM2 c7d499d4f2 Upgrade to the 2018 edition
I didn't think it'd be this useful first, but thank god for `cargo fix --edition`!
2019-08-04 19:05:45 +02:00

66 lines
1.2 KiB
Rust

//! grp implementation for Redox, following http://pubs.opengroup.org/onlinepubs/7908799/xsh/grp.h.html
use crate::platform::types::*;
#[repr(C)]
pub struct group {
pub gr_name: *mut c_char,
pub gr_passwd: *mut c_char,
pub gr_gid: gid_t,
pub gr_mem: *mut *mut c_char,
}
// #[no_mangle]
pub extern "C" fn getgrgid(gid: gid_t) -> *mut group {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn getgrnam(name: *const c_char) -> *mut group {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn getgrgid_r(
gid: gid_t,
grp: *mut group,
buffer: *mut c_char,
bufsize: usize,
result: *mut *mut group,
) -> c_int {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn getgrnam_r(
name: *const c_char,
grp: *mut group,
buffer: *mut c_char,
bufsize: usize,
result: *mut *mut group,
) -> c_int {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn getgrent() -> *mut group {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn endgrent() {
unimplemented!();
}
// #[no_mangle]
pub extern "C" fn setgrent() {
unimplemented!();
}
/*
#[no_mangle]
pub extern "C" fn func(args) -> c_int {
unimplemented!();
}
*/