aboutsummaryrefslogtreecommitdiff
path: root/ctru-sys/src/sys
diff options
context:
space:
mode:
Diffstat (limited to 'ctru-sys/src/sys')
-rw-r--r--ctru-sys/src/sys/inaddr.rs42
-rw-r--r--ctru-sys/src/sys/libc.rs92
-rw-r--r--ctru-sys/src/sys/lock.rs32
-rw-r--r--ctru-sys/src/sys/mod.rs3
-rw-r--r--ctru-sys/src/sys/socket.rs75
5 files changed, 0 insertions, 244 deletions
diff --git a/ctru-sys/src/sys/inaddr.rs b/ctru-sys/src/sys/inaddr.rs
deleted file mode 100644
index d188f2c..0000000
--- a/ctru-sys/src/sys/inaddr.rs
+++ /dev/null
@@ -1,42 +0,0 @@
-/* automatically generated by rust-bindgen */
-
-#![allow(dead_code,
- non_camel_case_types,
- non_upper_case_globals,
- non_snake_case)]
-
-use super::socket::*;
-
-pub type in_port_t = ::libc::uint16_t;
-pub type in_addr_t = ::libc::uint32_t;
-#[repr(C)]
-#[derive(Copy, Clone)]
-#[derive(Debug)]
-pub struct in_addr {
- pub s_addr: in_addr_t,
-}
-impl ::core::default::Default for in_addr {
- fn default() -> Self { unsafe { ::core::mem::zeroed() } }
-}
-#[repr(C)]
-#[derive(Copy, Clone)]
-#[derive(Debug)]
-pub struct sockaddr_in {
- pub sin_family: sa_family_t,
- pub sin_port: in_port_t,
- pub sin_addr: in_addr,
- pub sin_zero: [::libc::c_uchar; 8usize],
-}
-impl ::core::default::Default for sockaddr_in {
- fn default() -> Self { unsafe { ::core::mem::zeroed() } }
-}
-#[repr(C)]
-#[derive(Copy, Clone)]
-#[derive(Debug)]
-pub struct ip_mreq {
- pub imr_multiaddr: in_addr,
- pub imr_interface: in_addr,
-}
-impl ::core::default::Default for ip_mreq {
- fn default() -> Self { unsafe { ::core::mem::zeroed() } }
-}
diff --git a/ctru-sys/src/sys/libc.rs b/ctru-sys/src/sys/libc.rs
deleted file mode 100644
index 3ae6456..0000000
--- a/ctru-sys/src/sys/libc.rs
+++ /dev/null
@@ -1,92 +0,0 @@
-#![allow(dead_code,
- non_camel_case_types,
- non_upper_case_globals,
- non_snake_case)]
-
-pub const STDOUT_FILENO: c_int = 1;
-
-#[repr(u8)]
-pub enum c_void {
- __variant1,
- __variant2,
-}
-
-pub type c_schar = i8;
-pub type c_uchar = u8;
-pub type c_char = u8;
-pub type c_short = i16;
-pub type c_ushort = u16;
-pub type c_int = i32;
-pub type c_uint = u32;
-pub type c_long = i32;
-pub type c_ulong = u32;
-pub type c_longlong = i64;
-pub type c_ulonglong = u64;
-pub type c_float = f32;
-pub type c_double = f64;
-pub type size_t = usize;
-pub type ssize_t = isize;
-
-pub type u_char = c_uchar;
-pub type u_short = c_ushort;
-pub type u_int = c_uint;
-pub type u_long = c_ulong;
-pub type ushort = c_ushort;
-pub type uint_ = c_uint;
-pub type ulong = c_ulong;
-pub type clock_t = c_ulong;
-pub type time_t = c_long;
-#[repr(C)]
-#[derive(Copy, Clone)]
-#[derive(Debug)]
-pub struct timespec {
- pub tv_sec: time_t,
- pub tv_nsec: c_long,
-}
-impl ::core::default::Default for timespec {
- fn default() -> Self { unsafe { ::core::mem::zeroed() } }
-}
-#[repr(C)]
-#[derive(Copy, Clone)]
-#[derive(Debug)]
-pub struct itimerspec {
- pub it_interval: timespec,
- pub it_value: timespec,
-}
-impl ::core::default::Default for itimerspec {
- fn default() -> Self { unsafe { ::core::mem::zeroed() } }
-}
-pub type daddr_t = c_long;
-pub type caddr_t = *mut c_char;
-pub type ino_t = c_uint;
-pub type off_t = c_long;
-pub type dev_t = c_int;
-pub type uid_t = c_ushort;
-pub type gid_t = c_ushort;
-pub type pid_t = c_int;
-pub type key_t = c_long;
-pub type mode_t = c_uint;
-pub type nlink_t = c_ushort;
-pub type fd_mask = c_long;
-#[repr(C)]
-#[derive(Copy, Clone)]
-#[derive(Debug)]
-pub struct _types_fd_set {
- pub fds_bits: [fd_mask; 1usize],
-}
-impl ::core::default::Default for _types_fd_set {
- fn default() -> Self { unsafe { ::core::mem::zeroed() } }
-}
-pub type clockid_t = c_ulong;
-pub type timer_t = c_ulong;
-pub type useconds_t = c_ulong;
-pub type suseconds_t = c_long;
-pub type fsblkcnt_t = c_uint;
-pub type fsfilcnt_t = c_uint;
-
-extern "C" {
- pub fn memchr(cx: *const c_void, c: c_int, n: ::libc::size_t) -> *mut c_void;
- pub fn memrchr(cx: *const c_void, c: c_int, n: ::libc::size_t) -> *mut c_void;
- pub fn strlen(cs: *const c_char) -> size_t;
- pub fn write(fd: c_int, buf: *const c_void, count: ::libc::size_t) -> ::libc::ssize_t;
-}
diff --git a/ctru-sys/src/sys/lock.rs b/ctru-sys/src/sys/lock.rs
deleted file mode 100644
index 0fece83..0000000
--- a/ctru-sys/src/sys/lock.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-/* automatically generated by rust-bindgen */
-
-#![allow(dead_code,
- non_camel_case_types,
- non_upper_case_globals,
- non_snake_case)]
-pub type _LOCK_T = i32;
-#[repr(C)]
-#[derive(Copy, Clone)]
-#[derive(Debug)]
-pub struct __lock_t {
- pub lock: _LOCK_T,
- pub thread_tag: u32,
- pub counter: u32,
-}
-impl ::core::default::Default for __lock_t {
- fn default() -> Self { unsafe { ::core::mem::zeroed() } }
-}
-pub type _LOCK_RECURSIVE_T = __lock_t;
-extern "C" {
- pub fn __libc_lock_init(lock: *mut _LOCK_T);
- pub fn __libc_lock_init_recursive(lock: *mut _LOCK_RECURSIVE_T);
- pub fn __libc_lock_close(lock: *mut _LOCK_T);
- pub fn __libc_lock_close_recursive(lock: *mut _LOCK_RECURSIVE_T);
- pub fn __libc_lock_acquire(lock: *mut _LOCK_T);
- pub fn __libc_lock_acquire_recursive(lock: *mut _LOCK_RECURSIVE_T);
- pub fn __libc_lock_release(lock: *mut _LOCK_T);
- pub fn __libc_lock_release_recursive(lock: *mut _LOCK_RECURSIVE_T);
- pub fn __libc_lock_try_acquire(lock: *mut _LOCK_T) -> ::libc::c_int;
- pub fn __libc_lock_try_acquire_recursive(lock: *mut _LOCK_RECURSIVE_T)
- -> ::libc::c_int;
-}
diff --git a/ctru-sys/src/sys/mod.rs b/ctru-sys/src/sys/mod.rs
deleted file mode 100644
index d2d4cbe..0000000
--- a/ctru-sys/src/sys/mod.rs
+++ /dev/null
@@ -1,3 +0,0 @@
-pub mod lock;
-pub mod inaddr;
-pub mod socket;
diff --git a/ctru-sys/src/sys/socket.rs b/ctru-sys/src/sys/socket.rs
deleted file mode 100644
index 19d1cb1..0000000
--- a/ctru-sys/src/sys/socket.rs
+++ /dev/null
@@ -1,75 +0,0 @@
-/* automatically generated by rust-bindgen */
-
-#![allow(dead_code,
- non_camel_case_types,
- non_upper_case_globals,
- non_snake_case)]
-pub type socklen_t = ::libc::uint32_t;
-pub type sa_family_t = ::libc::uint16_t;
-#[repr(C)]
-#[derive(Copy, Clone)]
-#[derive(Debug)]
-pub struct sockaddr {
- pub sa_family: sa_family_t,
- pub sa_data: [::libc::c_char; 0usize],
-}
-impl ::core::default::Default for sockaddr {
- fn default() -> Self { unsafe { ::core::mem::zeroed() } }
-}
-#[repr(C)]
-#[derive(Copy, Clone)]
-#[derive(Debug)]
-pub struct sockaddr_storage {
- pub ss_family: sa_family_t,
- pub __ss_padding: [::libc::c_char; 26usize],
-}
-impl ::core::default::Default for sockaddr_storage {
- fn default() -> Self { unsafe { ::core::mem::zeroed() } }
-}
-#[repr(C)]
-#[derive(Copy, Clone)]
-#[derive(Debug)]
-pub struct linger {
- pub l_onoff: ::libc::c_int,
- pub l_linger: ::libc::c_int,
-}
-impl ::core::default::Default for linger {
- fn default() -> Self { unsafe { ::core::mem::zeroed() } }
-}
-extern "C" {
- pub fn accept(sockfd: ::libc::c_int, addr: *mut sockaddr,
- addrlen: *mut socklen_t) -> ::libc::c_int;
- pub fn bind(sockfd: ::libc::c_int, addr: *const sockaddr,
- addrlen: socklen_t) -> ::libc::c_int;
- pub fn closesocket(sockfd: ::libc::c_int) -> ::libc::c_int;
- pub fn connect(sockfd: ::libc::c_int, addr: *const sockaddr,
- addrlen: socklen_t) -> ::libc::c_int;
- pub fn getpeername(sockfd: ::libc::c_int, addr: *mut sockaddr,
- addrlen: *mut socklen_t) -> ::libc::c_int;
- pub fn getsockname(sockfd: ::libc::c_int, addr: *mut sockaddr,
- addrlen: *mut socklen_t) -> ::libc::c_int;
- pub fn getsockopt(sockfd: ::libc::c_int, level: ::libc::c_int,
- optname: ::libc::c_int, optval: *mut ::libc::c_void,
- optlen: *mut socklen_t) -> ::libc::c_int;
- pub fn listen(sockfd: ::libc::c_int, backlog: ::libc::c_int)
- -> ::libc::c_int;
- pub fn recv(sockfd: ::libc::c_int, buf: *mut ::libc::c_void, len: ::libc::size_t,
- flags: ::libc::c_int) -> ::libc::ssize_t;
- pub fn recvfrom(sockfd: ::libc::c_int, buf: *mut ::libc::c_void,
- len: ::libc::size_t, flags: ::libc::c_int,
- src_addr: *mut sockaddr, addrlen: *mut socklen_t)
- -> ::libc::ssize_t;
- pub fn send(sockfd: ::libc::c_int, buf: *const ::libc::c_void,
- len: ::libc::size_t, flags: ::libc::c_int) -> ::libc::ssize_t;
- pub fn sendto(sockfd: ::libc::c_int, buf: *const ::libc::c_void,
- len: ::libc::size_t, flags: ::libc::c_int,
- dest_addr: *const sockaddr, addrlen: socklen_t) -> ::libc::ssize_t;
- pub fn setsockopt(sockfd: ::libc::c_int, level: ::libc::c_int,
- optname: ::libc::c_int, optval: *const ::libc::c_void,
- optlen: socklen_t) -> ::libc::c_int;
- pub fn shutdown(sockfd: ::libc::c_int, how: ::libc::c_int)
- -> ::libc::c_int;
- pub fn socket(domain: ::libc::c_int, type_: ::libc::c_int,
- protocol: ::libc::c_int) -> ::libc::c_int;
- pub fn sockatmark(sockfd: ::libc::c_int) -> ::libc::c_int;
-}