Comment out functions not implemented by Redox

This commit is contained in:
Jeremy Soller
2018-09-15 12:31:40 -06:00
parent f661d5d1c0
commit dfb07e473a
14 changed files with 271 additions and 477 deletions
+38 -38
View File
@@ -62,21 +62,21 @@ pub unsafe extern "C" fn getsockname(
Sys::getsockname(socket, address, address_len)
}
#[no_mangle]
pub unsafe extern "C" fn getsockopt(
socket: c_int,
level: c_int,
option_name: c_int,
option_value: *mut c_void,
option_len: *mut socklen_t,
) -> c_int {
Sys::getsockopt(socket, level, option_name, option_value, option_len)
}
#[no_mangle]
pub unsafe extern "C" fn listen(socket: c_int, backlog: c_int) -> c_int {
Sys::listen(socket, backlog)
}
// #[no_mangle]
// pub unsafe extern "C" fn getsockopt(
// socket: c_int,
// level: c_int,
// option_name: c_int,
// option_value: *mut c_void,
// option_len: *mut socklen_t,
// ) -> c_int {
// Sys::getsockopt(socket, level, option_name, option_value, option_len)
// }
//
// #[no_mangle]
// pub unsafe extern "C" fn listen(socket: c_int, backlog: c_int) -> c_int {
// Sys::listen(socket, backlog)
// }
#[no_mangle]
pub unsafe extern "C" fn recv(
@@ -129,33 +129,33 @@ pub unsafe extern "C" fn sendto(
Sys::sendto(socket, message, length, flags, dest_addr, dest_len)
}
#[no_mangle]
pub unsafe extern "C" fn setsockopt(
socket: c_int,
level: c_int,
option_name: c_int,
option_value: *const c_void,
option_len: socklen_t,
) -> c_int {
Sys::setsockopt(socket, level, option_name, option_value, option_len)
}
// #[no_mangle]
// pub unsafe extern "C" fn setsockopt(
// socket: c_int,
// level: c_int,
// option_name: c_int,
// option_value: *const c_void,
// option_len: socklen_t,
// ) -> c_int {
// Sys::setsockopt(socket, level, option_name, option_value, option_len)
// }
#[no_mangle]
pub unsafe extern "C" fn shutdown(socket: c_int, how: c_int) -> c_int {
Sys::shutdown(socket, how)
}
// #[no_mangle]
// pub unsafe extern "C" fn shutdown(socket: c_int, how: c_int) -> c_int {
// Sys::shutdown(socket, how)
// }
#[no_mangle]
pub unsafe extern "C" fn socket(domain: c_int, kind: c_int, protocol: c_int) -> c_int {
Sys::socket(domain, kind, protocol)
}
#[no_mangle]
pub unsafe extern "C" fn socketpair(
domain: c_int,
kind: c_int,
protocol: c_int,
socket_vector: *mut c_int,
) -> c_int {
Sys::socketpair(domain, kind, protocol, socket_vector)
}
// #[no_mangle]
// pub unsafe extern "C" fn socketpair(
// domain: c_int,
// kind: c_int,
// protocol: c_int,
// socket_vector: *mut c_int,
// ) -> c_int {
// Sys::socketpair(domain, kind, protocol, socket_vector)
// }