lib.rs 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365
  1. /* automatically generated by rust-bindgen */
  2. pub type wchar_t = libc::c_int;
  3. #[repr(C)]
  4. #[derive(Debug, Copy)]
  5. pub struct div_t {
  6. pub quot: libc::c_int,
  7. pub rem: libc::c_int,
  8. }
  9. impl Clone for div_t {
  10. fn clone(&self) -> Self {
  11. *self
  12. }
  13. }
  14. #[repr(C)]
  15. #[derive(Debug, Copy)]
  16. pub struct ldiv_t {
  17. pub quot: libc::c_long,
  18. pub rem: libc::c_long,
  19. }
  20. impl Clone for ldiv_t {
  21. fn clone(&self) -> Self {
  22. *self
  23. }
  24. }
  25. #[no_mangle]
  26. pub extern "C" fn a64l(s: *const char)
  27. #[no_mangle]
  28. pub extern "C" fn abort() {
  29. unimplemented!();
  30. }
  31. #[no_mangle]
  32. pub extern "C" fn abs(i: libc::c_int) -> libc::c_int {
  33. unimplemented!();
  34. }
  35. #[no_mangle]
  36. pub extern "C" fn atexit(func: ::std::option::Option<unsafe extern "C" fn()>) -> libc::c_int {
  37. unimplemented!();
  38. }
  39. #[no_mangle]
  40. pub extern "C" fn atof(str_: *const libc::c_char) -> f64 {
  41. unimplemented!();
  42. }
  43. #[no_mangle]
  44. pub extern "C" fn atoi(str_: *const libc::c_char) -> libc::c_int {
  45. unimplemented!();
  46. }
  47. #[no_mangle]
  48. pub extern "C" fn atol(str_: *const libc::c_char) -> libc::c_long {
  49. unimplemented!();
  50. }
  51. #[no_mangle]
  52. pub extern "C" fn bsearch(
  53. key: *const libc::c_void,
  54. base: *const libc::c_void,
  55. nel: usize,
  56. width: usize,
  57. compar: ::std::option::Option<
  58. unsafe extern "C" fn(arg1: *const libc::c_void,
  59. arg2: *const libc::c_void)
  60. -> libc::c_int,
  61. >,
  62. ) -> *mut libc::c_void {
  63. unimplemented!();
  64. }
  65. #[no_mangle]
  66. pub extern "C" fn calloc(nelem: usize, elsize: usize) -> *mut libc::c_void {
  67. unimplemented!();
  68. }
  69. #[no_mangle]
  70. pub extern "C" fn div(numer: libc::c_int, denom: libc::c_int) -> div_t {
  71. unimplemented!();
  72. }
  73. #[no_mangle]
  74. pub extern "C" fn drand48() -> f64 {
  75. unimplemented!();
  76. }
  77. #[no_mangle]
  78. pub extern "C" fn ecvt(
  79. value: f64,
  80. ndigit: libc::c_int,
  81. decept: *mut libc::c_int,
  82. sign: *mut libc::c_int,
  83. ) -> *mut libc::c_char {
  84. unimplemented!();
  85. }
  86. #[no_mangle]
  87. pub extern "C" fn erand48(xsubi: *mut libc::c_ushort) -> f64 {
  88. unimplemented!();
  89. }
  90. #[no_mangle]
  91. pub extern "C" fn exit(status: libc::c_int) {
  92. unimplemented!();
  93. }
  94. #[no_mangle]
  95. pub extern "C" fn fcvt(
  96. value: f64,
  97. ndigit: libc::c_int,
  98. decept: *mut libc::c_int,
  99. sign: *mut libc::c_int,
  100. ) -> *mut libc::c_char {
  101. unimplemented!();
  102. }
  103. #[no_mangle]
  104. pub extern "C" fn free(ptr: *mut libc::c_void) {
  105. unimplemented!();
  106. }
  107. #[no_mangle]
  108. pub extern "C" fn gcvt(value: f64, ndigit: libc::c_int, buf: *mut libc::c_char) -> *mut libc::c_char {
  109. unimplemented!();
  110. }
  111. #[no_mangle]
  112. pub extern "C" fn getenv(name: *const libc::c_char) -> *mut libc::c_char {
  113. unimplemented!();
  114. }
  115. #[no_mangle]
  116. pub extern "C" fn getsubopt(
  117. optionp: *mut *mut libc::c_char,
  118. tokens: *const *const libc::c_char,
  119. valuep: *mut *mut libc::c_char,
  120. ) -> libc::c_int {
  121. unimplemented!();
  122. }
  123. #[no_mangle]
  124. pub extern "C" fn grantpt(fildes: libc::c_int) -> libc::c_int {
  125. unimplemented!();
  126. }
  127. #[no_mangle]
  128. pub extern "C" fn initstate(
  129. seed: libc::c_uint,
  130. state: *mut libc::c_char,
  131. size: usize,
  132. ) -> *mut libc::c_char {
  133. unimplemented!();
  134. }
  135. #[no_mangle]
  136. pub extern "C" fn jrand48(xsubi: *mut libc::c_ushort) -> libc::c_long {
  137. unimplemented!();
  138. }
  139. #[no_mangle]
  140. pub extern "C" fn l64a(value: libc::c_long) -> *mut libc::c_char {
  141. unimplemented!();
  142. }
  143. #[no_mangle]
  144. pub extern "C" fn labs(i: libc::c_long) -> libc::c_long {
  145. unimplemented!();
  146. }
  147. #[no_mangle]
  148. pub extern "C" fn lcong48(param: *mut libc::c_ushort) {
  149. unimplemented!();
  150. }
  151. #[no_mangle]
  152. pub extern "C" fn ldiv(numer: libc::c_long, denom: libc::c_long) -> ldiv_t {
  153. unimplemented!();
  154. }
  155. #[no_mangle]
  156. pub extern "C" fn lrand48() -> libc::c_long {
  157. unimplemented!();
  158. }
  159. #[no_mangle]
  160. pub extern "C" fn malloc(size: usize) -> *mut libc::c_void {
  161. unimplemented!();
  162. }
  163. #[no_mangle]
  164. pub extern "C" fn mblen(s: *const libc::c_char, n: usize) -> libc::c_int {
  165. unimplemented!();
  166. }
  167. #[no_mangle]
  168. pub extern "C" fn mbstowcs(pwcs: *mut wchar_t, s: *const libc::c_char, n: usize) -> usize {
  169. unimplemented!();
  170. }
  171. #[no_mangle]
  172. pub extern "C" fn mbtowc(
  173. pwc: *mut wchar_t,
  174. s: *const libc::c_char,
  175. n: usize,
  176. ) -> libc::c_int {
  177. unimplemented!();
  178. }
  179. #[no_mangle]
  180. pub extern "C" fn mktemp(template: *mut libc::c_char) -> *mut libc::c_char {
  181. unimplemented!();
  182. }
  183. #[no_mangle]
  184. pub extern "C" fn mkstemp(template: *mut libc::c_char) -> libc::c_int {
  185. unimplemented!();
  186. }
  187. #[no_mangle]
  188. pub extern "C" fn mrand48() -> libc::c_long {
  189. unimplemented!();
  190. }
  191. #[no_mangle]
  192. pub extern "C" fn nrand48(xsubi: *mut libc::c_ushort) -> libc::c_long {
  193. unimplemented!();
  194. }
  195. #[no_mangle]
  196. pub extern "C" fn ptsname(fildes: libc::c_int) -> *mut libc::c_char {
  197. unimplemented!();
  198. }
  199. #[no_mangle]
  200. pub extern "C" fn putenv(string: *mut libc::c_char) -> libc::c_int {
  201. unimplemented!();
  202. }
  203. #[no_mangle]
  204. pub extern "C" fn qsort(
  205. base: *mut libc::c_void,
  206. nel: usize,
  207. width: usize,
  208. compar: ::std::option::Option<
  209. unsafe extern "C" fn(arg1: *const libc::c_void,
  210. arg2: *const libc::c_void)
  211. -> libc::c_int,
  212. >,
  213. ) {
  214. unimplemented!();
  215. }
  216. #[no_mangle]
  217. pub extern "C" fn rand() -> libc::c_int {
  218. unimplemented!();
  219. }
  220. #[no_mangle]
  221. pub extern "C" fn rand_r(seed: *mut libc::c_uint) -> libc::c_int {
  222. unimplemented!();
  223. }
  224. #[no_mangle]
  225. pub extern "C" fn random() -> libc::c_long {
  226. unimplemented!();
  227. }
  228. #[no_mangle]
  229. pub extern "C" fn realloc(ptr: *mut libc::c_void, size: usize) -> *mut libc::c_void {
  230. unimplemented!();
  231. }
  232. #[no_mangle]
  233. pub extern "C" fn realpath(
  234. file_name: *const libc::c_char,
  235. resolved_name: *mut libc::c_char,
  236. ) -> *mut libc::c_char {
  237. unimplemented!();
  238. }
  239. #[no_mangle]
  240. pub extern "C" fn seed48(seed16v: *mut libc::c_ushort) -> libc::c_ushort {
  241. unimplemented!();
  242. }
  243. #[no_mangle]
  244. pub extern "C" fn setkey(key: *const libc::c_char) {
  245. unimplemented!();
  246. }
  247. #[no_mangle]
  248. pub extern "C" fn setstate(state: *const libc::c_char) -> *mut libc::c_char {
  249. unimplemented!();
  250. }
  251. #[no_mangle]
  252. pub extern "C" fn srand(seed: libc::c_uint) {
  253. unimplemented!();
  254. }
  255. #[no_mangle]
  256. pub extern "C" fn srand48(seedval: libc::c_long) {
  257. unimplemented!();
  258. }
  259. #[no_mangle]
  260. pub extern "C" fn srandom(seed: libc::c_uint) {
  261. unimplemented!();
  262. }
  263. #[no_mangle]
  264. pub extern "C" fn strtod(str_: *const libc::c_char, endptr: *mut *mut libc::c_char) -> f64 {
  265. unimplemented!();
  266. }
  267. #[no_mangle]
  268. pub extern "C" fn strtol(
  269. str_: *const libc::c_char,
  270. endptr: *mut *mut libc::c_char,
  271. base: libc::c_int,
  272. ) -> libc::c_long {
  273. unimplemented!();
  274. }
  275. #[no_mangle]
  276. pub extern "C" fn strtoul(
  277. str_: *const libc::c_char,
  278. endptr: *mut *mut libc::c_char,
  279. base: libc::c_int,
  280. ) -> libc::c_ulong {
  281. unimplemented!();
  282. }
  283. #[no_mangle]
  284. pub extern "C" fn system(command: *const libc::c_char) -> libc::c_int {
  285. unimplemented!();
  286. }
  287. #[no_mangle]
  288. pub extern "C" fn ttyslot() -> libc::c_int {
  289. unimplemented!();
  290. }
  291. #[no_mangle]
  292. pub extern "C" fn unlockpt(fildes: libc::c_int) -> libc::c_int {
  293. unimplemented!();
  294. }
  295. #[no_mangle]
  296. pub extern "C" fn valloc(size: usize) -> *mut libc::c_void {
  297. unimplemented!();
  298. }
  299. #[no_mangle]
  300. pub extern "C" fn wcstombs(s: *mut libc::c_char, pwcs: *const wchar_t, n: usize) -> usize {
  301. unimplemented!();
  302. }
  303. #[no_mangle]
  304. pub extern "C" fn wctomb(s: *mut libc::c_char, wchar: wchar_t) -> libc::c_int {
  305. unimplemented!();
  306. }