lib.rs 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548
  1. #[no_mangle]
  2. pub extern "C" fn pthread_attr_destroy(arg1: *mut pthread_attr_t) -> libc::c_int {
  3. unimplemented!();
  4. }
  5. #[no_mangle]
  6. pub extern "C" fn pthread_attr_getdetachstate(
  7. arg1: *const pthread_attr_t,
  8. arg2: *mut libc::c_int,
  9. ) -> libc::c_int {
  10. unimplemented!();
  11. }
  12. #[no_mangle]
  13. pub extern "C" fn pthread_attr_getguardsize(
  14. arg1: *const pthread_attr_t,
  15. arg2: *mut usize,
  16. ) -> libc::c_int {
  17. unimplemented!();
  18. }
  19. #[no_mangle]
  20. pub extern "C" fn pthread_attr_getinheritsched(
  21. arg1: *const pthread_attr_t,
  22. arg2: *mut libc::c_int,
  23. ) -> libc::c_int {
  24. unimplemented!();
  25. }
  26. #[no_mangle]
  27. pub extern "C" fn pthread_attr_getschedparam(
  28. arg1: *const pthread_attr_t,
  29. arg2: *mut sched_param,
  30. ) -> libc::c_int {
  31. unimplemented!();
  32. }
  33. #[no_mangle]
  34. pub extern "C" fn pthread_attr_getschedpolicy(
  35. arg1: *const pthread_attr_t,
  36. arg2: *mut libc::c_int,
  37. ) -> libc::c_int {
  38. unimplemented!();
  39. }
  40. #[no_mangle]
  41. pub extern "C" fn pthread_attr_getscope(
  42. arg1: *const pthread_attr_t,
  43. arg2: *mut libc::c_int,
  44. ) -> libc::c_int {
  45. unimplemented!();
  46. }
  47. #[no_mangle]
  48. pub extern "C" fn pthread_attr_getstackaddr(
  49. arg1: *const pthread_attr_t,
  50. arg2: *mut *mut libc::c_void,
  51. ) -> libc::c_int {
  52. unimplemented!();
  53. }
  54. #[no_mangle]
  55. pub extern "C" fn pthread_attr_getstacksize(
  56. arg1: *const pthread_attr_t,
  57. arg2: *mut usize,
  58. ) -> libc::c_int {
  59. unimplemented!();
  60. }
  61. #[no_mangle]
  62. pub extern "C" fn pthread_attr_init(arg1: *mut pthread_attr_t) -> libc::c_int {
  63. unimplemented!();
  64. }
  65. #[no_mangle]
  66. pub extern "C" fn pthread_attr_setdetachstate(
  67. arg1: *mut pthread_attr_t,
  68. arg2: libc::c_int,
  69. ) -> libc::c_int {
  70. unimplemented!();
  71. }
  72. #[no_mangle]
  73. pub extern "C" fn pthread_attr_setguardsize(arg1: *mut pthread_attr_t, arg2: usize) -> libc::c_int {
  74. unimplemented!();
  75. }
  76. #[no_mangle]
  77. pub extern "C" fn pthread_attr_setinheritsched(
  78. arg1: *mut pthread_attr_t,
  79. arg2: libc::c_int,
  80. ) -> libc::c_int {
  81. unimplemented!();
  82. }
  83. #[no_mangle]
  84. pub extern "C" fn pthread_attr_setschedparam(
  85. arg1: *mut pthread_attr_t,
  86. arg2: *mut sched_param,
  87. ) -> libc::c_int {
  88. unimplemented!();
  89. }
  90. #[no_mangle]
  91. pub extern "C" fn pthread_attr_setschedpolicy(
  92. arg1: *mut pthread_attr_t,
  93. arg2: libc::c_int,
  94. ) -> libc::c_int {
  95. unimplemented!();
  96. }
  97. #[no_mangle]
  98. pub extern "C" fn pthread_attr_setscope(
  99. arg1: *mut pthread_attr_t,
  100. arg2: libc::c_int,
  101. ) -> libc::c_int {
  102. unimplemented!();
  103. }
  104. #[no_mangle]
  105. pub extern "C" fn pthread_attr_setstackaddr(
  106. arg1: *mut pthread_attr_t,
  107. arg2: *mut libc::c_void,
  108. ) -> libc::c_int {
  109. unimplemented!();
  110. }
  111. #[no_mangle]
  112. pub extern "C" fn pthread_attr_setstacksize(arg1: *mut pthread_attr_t, arg2: usize) -> libc::c_int {
  113. unimplemented!();
  114. }
  115. #[no_mangle]
  116. pub extern "C" fn pthread_cancel(arg1: pthread_t) -> libc::c_int {
  117. unimplemented!();
  118. }
  119. #[no_mangle]
  120. pub extern "C" fn pthread_cleanup_push(arg1: *mut libc::c_void, arg2: *mut libc::c_void) {
  121. unimplemented!();
  122. }
  123. #[no_mangle]
  124. pub extern "C" fn pthread_cleanup_pop(arg1: libc::c_int) {
  125. unimplemented!();
  126. }
  127. #[no_mangle]
  128. pub extern "C" fn pthread_cond_broadcast(arg1: *mut pthread_cond_t) -> libc::c_int {
  129. unimplemented!();
  130. }
  131. #[no_mangle]
  132. pub extern "C" fn pthread_cond_destroy(arg1: *mut pthread_cond_t) -> libc::c_int {
  133. unimplemented!();
  134. }
  135. #[no_mangle]
  136. pub extern "C" fn pthread_cond_init(
  137. arg1: *mut pthread_cond_t,
  138. arg2: *const pthread_condattr_t,
  139. ) -> libc::c_int {
  140. unimplemented!();
  141. }
  142. #[no_mangle]
  143. pub extern "C" fn pthread_cond_signal(arg1: *mut pthread_cond_t) -> libc::c_int {
  144. unimplemented!();
  145. }
  146. #[no_mangle]
  147. pub extern "C" fn pthread_cond_timedwait(
  148. arg1: *mut pthread_cond_t,
  149. arg2: *mut pthread_mutex_t,
  150. arg3: *const timespec,
  151. ) -> libc::c_int {
  152. unimplemented!();
  153. }
  154. #[no_mangle]
  155. pub extern "C" fn pthread_cond_wait(
  156. arg1: *mut pthread_cond_t,
  157. arg2: *mut pthread_mutex_t,
  158. ) -> libc::c_int {
  159. unimplemented!();
  160. }
  161. #[no_mangle]
  162. pub extern "C" fn pthread_condattr_destroy(arg1: *mut pthread_condattr_t) -> libc::c_int {
  163. unimplemented!();
  164. }
  165. #[no_mangle]
  166. pub extern "C" fn pthread_condattr_getpshared(
  167. arg1: *const pthread_condattr_t,
  168. arg2: *mut libc::c_int,
  169. ) -> libc::c_int {
  170. unimplemented!();
  171. }
  172. #[no_mangle]
  173. pub extern "C" fn pthread_condattr_init(arg1: *mut pthread_condattr_t) -> libc::c_int {
  174. unimplemented!();
  175. }
  176. #[no_mangle]
  177. pub extern "C" fn pthread_condattr_setpshared(
  178. arg1: *mut pthread_condattr_t,
  179. arg2: libc::c_int,
  180. ) -> libc::c_int {
  181. unimplemented!();
  182. }
  183. #[no_mangle]
  184. pub extern "C" fn pthread_create(
  185. arg1: *mut pthread_t,
  186. arg2: *const pthread_attr_t,
  187. arg3: ::std::option::Option<unsafe extern "C" fn(arg1: *mut libc::c_void) -> *mut libc::c_void>,
  188. arg4: *mut libc::c_void,
  189. ) -> libc::c_int {
  190. unimplemented!();
  191. }
  192. #[no_mangle]
  193. pub extern "C" fn pthread_detach(arg1: pthread_t) -> libc::c_int {
  194. unimplemented!();
  195. }
  196. #[no_mangle]
  197. pub extern "C" fn pthread_equal(arg1: pthread_t, arg2: pthread_t) -> libc::c_int {
  198. unimplemented!();
  199. }
  200. #[no_mangle]
  201. pub extern "C" fn pthread_exit(arg1: *mut libc::c_void) {
  202. unimplemented!();
  203. }
  204. #[no_mangle]
  205. pub extern "C" fn pthread_getconcurrency() -> libc::c_int {
  206. unimplemented!();
  207. }
  208. #[no_mangle]
  209. pub extern "C" fn pthread_getschedparam(
  210. arg1: pthread_t,
  211. arg2: *mut libc::c_int,
  212. arg3: *mut sched_param,
  213. ) -> libc::c_int {
  214. unimplemented!();
  215. }
  216. #[no_mangle]
  217. pub extern "C" fn pthread_getspecific(arg1: pthread_key_t) -> *mut libc::c_void {
  218. unimplemented!();
  219. }
  220. #[no_mangle]
  221. pub extern "C" fn pthread_join(arg1: pthread_t, arg2: *mut *mut libc::c_void) -> libc::c_int {
  222. unimplemented!();
  223. }
  224. #[no_mangle]
  225. pub extern "C" fn pthread_key_create(
  226. arg1: *mut pthread_key_t,
  227. arg2: ::std::option::Option<unsafe extern "C" fn(arg1: *mut libc::c_void)>,
  228. ) -> libc::c_int {
  229. unimplemented!();
  230. }
  231. #[no_mangle]
  232. pub extern "C" fn pthread_key_delete(arg1: pthread_key_t) -> libc::c_int {
  233. unimplemented!();
  234. }
  235. #[no_mangle]
  236. pub extern "C" fn pthread_mutex_destroy(arg1: *mut pthread_mutex_t) -> libc::c_int {
  237. unimplemented!();
  238. }
  239. #[no_mangle]
  240. pub extern "C" fn pthread_mutex_getprioceiling(
  241. arg1: *const pthread_mutex_t,
  242. arg2: *mut libc::c_int,
  243. ) -> libc::c_int {
  244. unimplemented!();
  245. }
  246. #[no_mangle]
  247. pub extern "C" fn pthread_mutex_init(
  248. arg1: *mut pthread_mutex_t,
  249. arg2: *const pthread_mutexattr_t,
  250. ) -> libc::c_int {
  251. unimplemented!();
  252. }
  253. #[no_mangle]
  254. pub extern "C" fn pthread_mutex_lock(arg1: *mut pthread_mutex_t) -> libc::c_int {
  255. unimplemented!();
  256. }
  257. #[no_mangle]
  258. pub extern "C" fn pthread_mutex_setprioceiling(
  259. arg1: *mut pthread_mutex_t,
  260. arg2: libc::c_int,
  261. arg3: *mut libc::c_int,
  262. ) -> libc::c_int {
  263. unimplemented!();
  264. }
  265. #[no_mangle]
  266. pub extern "C" fn pthread_mutex_trylock(arg1: *mut pthread_mutex_t) -> libc::c_int {
  267. unimplemented!();
  268. }
  269. #[no_mangle]
  270. pub extern "C" fn pthread_mutex_unlock(arg1: *mut pthread_mutex_t) -> libc::c_int {
  271. unimplemented!();
  272. }
  273. #[no_mangle]
  274. pub extern "C" fn pthread_mutexattr_destroy(arg1: *mut pthread_mutexattr_t) -> libc::c_int {
  275. unimplemented!();
  276. }
  277. #[no_mangle]
  278. pub extern "C" fn pthread_mutexattr_getprioceiling(
  279. arg1: *const pthread_mutexattr_t,
  280. arg2: *mut libc::c_int,
  281. ) -> libc::c_int {
  282. unimplemented!();
  283. }
  284. #[no_mangle]
  285. pub extern "C" fn pthread_mutexattr_getprotocol(
  286. arg1: *const pthread_mutexattr_t,
  287. arg2: *mut libc::c_int,
  288. ) -> libc::c_int {
  289. unimplemented!();
  290. }
  291. #[no_mangle]
  292. pub extern "C" fn pthread_mutexattr_getpshared(
  293. arg1: *const pthread_mutexattr_t,
  294. arg2: *mut libc::c_int,
  295. ) -> libc::c_int {
  296. unimplemented!();
  297. }
  298. #[no_mangle]
  299. pub extern "C" fn pthread_mutexattr_gettype(
  300. arg1: *const pthread_mutexattr_t,
  301. arg2: *mut libc::c_int,
  302. ) -> libc::c_int {
  303. unimplemented!();
  304. }
  305. #[no_mangle]
  306. pub extern "C" fn pthread_mutexattr_init(arg1: *mut pthread_mutexattr_t) -> libc::c_int {
  307. unimplemented!();
  308. }
  309. #[no_mangle]
  310. pub extern "C" fn pthread_mutexattr_setprioceiling(
  311. arg1: *mut pthread_mutexattr_t,
  312. arg2: libc::c_int,
  313. ) -> libc::c_int {
  314. unimplemented!();
  315. }
  316. #[no_mangle]
  317. pub extern "C" fn pthread_mutexattr_setprotocol(
  318. arg1: *mut pthread_mutexattr_t,
  319. arg2: libc::c_int,
  320. ) -> libc::c_int {
  321. unimplemented!();
  322. }
  323. #[no_mangle]
  324. pub extern "C" fn pthread_mutexattr_setpshared(
  325. arg1: *mut pthread_mutexattr_t,
  326. arg2: libc::c_int,
  327. ) -> libc::c_int {
  328. unimplemented!();
  329. }
  330. #[no_mangle]
  331. pub extern "C" fn pthread_mutexattr_settype(
  332. arg1: *mut pthread_mutexattr_t,
  333. arg2: libc::c_int,
  334. ) -> libc::c_int {
  335. unimplemented!();
  336. }
  337. #[no_mangle]
  338. pub extern "C" fn pthread_once(
  339. arg1: *mut pthread_once_t,
  340. arg2: ::std::option::Option<unsafe extern "C" fn()>,
  341. ) -> libc::c_int {
  342. unimplemented!();
  343. }
  344. #[no_mangle]
  345. pub extern "C" fn pthread_rwlock_destroy(arg1: *mut pthread_rwlock_t) -> libc::c_int {
  346. unimplemented!();
  347. }
  348. #[no_mangle]
  349. pub extern "C" fn pthread_rwlock_init(
  350. arg1: *mut pthread_rwlock_t,
  351. arg2: *const pthread_rwlockattr_t,
  352. ) -> libc::c_int {
  353. unimplemented!();
  354. }
  355. #[no_mangle]
  356. pub extern "C" fn pthread_rwlock_rdlock(arg1: *mut pthread_rwlock_t) -> libc::c_int {
  357. unimplemented!();
  358. }
  359. #[no_mangle]
  360. pub extern "C" fn pthread_rwlock_tryrdlock(arg1: *mut pthread_rwlock_t) -> libc::c_int {
  361. unimplemented!();
  362. }
  363. #[no_mangle]
  364. pub extern "C" fn pthread_rwlock_trywrlock(arg1: *mut pthread_rwlock_t) -> libc::c_int {
  365. unimplemented!();
  366. }
  367. #[no_mangle]
  368. pub extern "C" fn pthread_rwlock_unlock(arg1: *mut pthread_rwlock_t) -> libc::c_int {
  369. unimplemented!();
  370. }
  371. #[no_mangle]
  372. pub extern "C" fn pthread_rwlock_wrlock(arg1: *mut pthread_rwlock_t) -> libc::c_int {
  373. unimplemented!();
  374. }
  375. #[no_mangle]
  376. pub extern "C" fn pthread_rwlockattr_destroy(arg1: *mut pthread_rwlockattr_t) -> libc::c_int {
  377. unimplemented!();
  378. }
  379. #[no_mangle]
  380. pub extern "C" fn pthread_rwlockattr_getpshared(
  381. arg1: *const pthread_rwlockattr_t,
  382. arg2: *mut libc::c_int,
  383. ) -> libc::c_int {
  384. unimplemented!();
  385. }
  386. #[no_mangle]
  387. pub extern "C" fn pthread_rwlockattr_init(arg1: *mut pthread_rwlockattr_t) -> libc::c_int {
  388. unimplemented!();
  389. }
  390. #[no_mangle]
  391. pub extern "C" fn pthread_rwlockattr_setpshared(
  392. arg1: *mut pthread_rwlockattr_t,
  393. arg2: libc::c_int,
  394. ) -> libc::c_int {
  395. unimplemented!();
  396. }
  397. #[no_mangle]
  398. pub extern "C" fn pthread_self() -> pthread_t {
  399. unimplemented!();
  400. }
  401. #[no_mangle]
  402. pub extern "C" fn pthread_setcancelstate(arg1: libc::c_int, arg2: *mut libc::c_int) -> libc::c_int {
  403. unimplemented!();
  404. }
  405. #[no_mangle]
  406. pub extern "C" fn pthread_setcanceltype(arg1: libc::c_int, arg2: *mut libc::c_int) -> libc::c_int {
  407. unimplemented!();
  408. }
  409. #[no_mangle]
  410. pub extern "C" fn pthread_setconcurrency(arg1: libc::c_int) -> libc::c_int {
  411. unimplemented!();
  412. }
  413. #[no_mangle]
  414. pub extern "C" fn pthread_setschedparam(
  415. arg1: pthread_t,
  416. arg2: libc::c_int,
  417. arg3: *mut sched_param,
  418. ) -> libc::c_int {
  419. unimplemented!();
  420. }
  421. #[no_mangle]
  422. pub extern "C" fn pthread_setspecific(
  423. arg1: pthread_key_t,
  424. arg2: *const libc::c_void,
  425. ) -> libc::c_int {
  426. unimplemented!();
  427. }
  428. #[no_mangle]
  429. pub extern "C" fn pthread_testcancel() {
  430. unimplemented!();
  431. }
  432. #[repr(C)]
  433. #[derive(Debug, Copy)]
  434. pub struct sched_param {
  435. pub _address: u8,
  436. }
  437. impl Clone for sched_param {
  438. fn clone(&self) -> Self {
  439. *self
  440. }
  441. }
  442. #[repr(C)]
  443. #[derive(Debug, Copy)]
  444. pub struct sched_param {
  445. pub _address: u8,
  446. }
  447. impl Clone for sched_param {
  448. fn clone(&self) -> Self {
  449. *self
  450. }
  451. }
  452. #[repr(C)]
  453. #[derive(Debug, Copy)]
  454. pub struct sched_param {
  455. pub _address: u8,
  456. }
  457. impl Clone for sched_param {
  458. fn clone(&self) -> Self {
  459. *self
  460. }
  461. }
  462. #[repr(C)]
  463. #[derive(Debug, Copy)]
  464. pub struct sched_param {
  465. pub _address: u8,
  466. }
  467. impl Clone for sched_param {
  468. fn clone(&self) -> Self {
  469. *self
  470. }
  471. }