lib.rs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. #[repr(C)]
  2. #[derive(Copy)]
  3. pub union sem_t {
  4. pub __size: [libc::c_char; 32usize],
  5. pub __align: libc::c_long,
  6. _bindgen_union_align: [u64; 4usize],
  7. }
  8. impl Clone for sem_t {
  9. fn clone(&self) -> Self { *self }
  10. }
  11. #[no_mangle]
  12. pub extern "C" fn sem_init(__sem: *mut sem_t, __pshared: libc::c_int,
  13. __value: libc::c_uint) -> libc::c_int {
  14. unimplemented!();
  15. }
  16. #[no_mangle]
  17. pub extern "C" fn sem_destroy(__sem: *mut sem_t) -> libc::c_int {
  18. unimplemented!();
  19. }
  20. #[no_mangle]
  21. pub extern "C" fn sem_open(__name: *const libc::c_char,
  22. __oflag: libc::c_int, ...) -> *mut sem_t {
  23. unimplemented!();
  24. }
  25. #[no_mangle]
  26. pub extern "C" fn sem_close(__sem: *mut sem_t) -> libc::c_int {
  27. unimplemented!();
  28. }
  29. #[no_mangle]
  30. pub extern "C" fn sem_unlink(__name: *const libc::c_char)
  31. -> libc::c_int {
  32. unimplemented!();
  33. }
  34. #[no_mangle]
  35. pub extern "C" fn sem_wait(__sem: *mut sem_t) -> libc::c_int {
  36. unimplemented!();
  37. }
  38. #[no_mangle]
  39. pub extern "C" fn sem_timedwait(__sem: *mut sem_t, __abstime: *const timespec)
  40. -> libc::c_int {
  41. unimplemented!();
  42. }
  43. #[no_mangle]
  44. pub extern "C" fn sem_trywait(__sem: *mut sem_t) -> libc::c_int {
  45. unimplemented!();
  46. }
  47. #[no_mangle]
  48. pub extern "C" fn sem_post(__sem: *mut sem_t) -> libc::c_int {
  49. unimplemented!();
  50. }
  51. #[no_mangle]
  52. pub extern "C" fn sem_getvalue(__sem: *mut sem_t, __sval: *mut libc::c_int)
  53. -> libc::c_int {
  54. unimplemented!();
  55. }