Large reorganization of headers (WIP)

This commit is contained in:
Jeremy Soller
2018-08-26 08:11:35 -06:00
parent ff32c8cbbd
commit c20ce5ffed
261 changed files with 236 additions and 1672 deletions
+7
View File
@@ -0,0 +1,7 @@
sys_includes = []
include_guard = "_GRP_H"
language = "C"
style = "Tag"
[enum]
prefix_with_name = true
+66
View File
@@ -0,0 +1,66 @@
//! grp implementation for Redox, following http://pubs.opengroup.org/onlinepubs/7908799/xsh/grp.h.html
use platform;
use 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!();
}
*/