time32.h 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #ifndef TIME32_H
  2. #define TIME32_H
  3. #include <sys/types.h>
  4. typedef long time32_t;
  5. struct timeval32 {
  6. long tv_sec;
  7. long tv_usec;
  8. };
  9. struct itimerval32 {
  10. struct timeval32 it_interval;
  11. struct timeval32 it_value;
  12. };
  13. struct timespec32 {
  14. long tv_sec;
  15. long tv_nsec;
  16. };
  17. struct itimerspec32 {
  18. struct timespec32 it_interval;
  19. struct timespec32 it_value;
  20. };
  21. int __adjtime32() __asm__("adjtime");
  22. int __adjtimex_time32() __asm__("adjtimex");
  23. int __aio_suspend_time32() __asm__("aio_suspend");
  24. int __clock_adjtime32() __asm__("clock_adjtime");
  25. int __clock_getres_time32() __asm__("clock_getres");
  26. int __clock_gettime32() __asm__("clock_gettime");
  27. int __clock_nanosleep_time32() __asm__("clock_nanosleep");
  28. int __clock_settime32() __asm__("clock_settime");
  29. int __cnd_timedwait_time32() __asm__("cnd_timedwait");
  30. char *__ctime32() __asm__("ctime");
  31. char *__ctime32_r() __asm__("ctime_r");
  32. double __difftime32() __asm__("difftime");
  33. int __fstat_time32() __asm__("fstat");
  34. int __fstatat_time32() __asm__("fstatat");
  35. int __ftime32() __asm__("ftime");
  36. int __futimens_time32() __asm__("futimens");
  37. int __futimes_time32() __asm__("futimes");
  38. int __futimesat_time32() __asm__("futimesat");
  39. int __getitimer_time32() __asm__("getitimer");
  40. int __getrusage_time32() __asm__("getrusage");
  41. int __gettimeofday_time32() __asm__("gettimeofday");
  42. struct tm *__gmtime32() __asm__("gmtime");
  43. struct tm *__gmtime32_r() __asm__("gmtime_r");
  44. struct tm *__localtime32() __asm__("localtime");
  45. struct tm *__localtime32_r() __asm__("localtime_r");
  46. int __lstat_time32() __asm__("lstat");
  47. int __lutimes_time32() __asm__("lutimes");
  48. time32_t __mktime32() __asm__("mktime");
  49. ssize_t __mq_timedreceive_time32() __asm__("mq_timedreceive");
  50. int __mq_timedsend_time32() __asm__("mq_timedsend");
  51. int __mtx_timedlock_time32() __asm__("mtx_timedlock");
  52. int __nanosleep_time32() __asm__("nanosleep");
  53. int __ppoll_time32() __asm__("ppoll");
  54. int __pselect_time32() __asm__("pselect");
  55. int __pthread_cond_timedwait_time32() __asm__("pthread_cond_timedwait");
  56. int __pthread_mutex_timedlock_time32() __asm__("pthread_mutex_timedlock");
  57. int __pthread_rwlock_timedrdlock_time32() __asm__("pthread_rwlock_timedrdlock");
  58. int __pthread_rwlock_timedwrlock_time32() __asm__("pthread_rwlock_timedwrlock");
  59. int __pthread_timedjoin_np_time32() __asm__("pthread_timedjoin_np");
  60. int __recvmmsg_time32() __asm__("recvmmsg");
  61. int __sched_rr_get_interval_time32() __asm__("sched_rr_get_interval");
  62. int __select_time32() __asm__("select");
  63. int __sem_timedwait_time32() __asm__("sem_timedwait");
  64. int __semtimedop_time32() __asm__("semtimedop");
  65. int __setitimer_time32() __asm__("setitimer");
  66. int __settimeofday_time32() __asm__("settimeofday");
  67. int __sigtimedwait_time32() __asm__("sigtimedwait");
  68. int __stat_time32() __asm__("stat");
  69. int __stime32() __asm__("stime");
  70. int __thrd_sleep_time32() __asm__("thrd_sleep");
  71. time32_t __time32() __asm__("time");
  72. time32_t __time32gm() __asm__("timegm");
  73. int __timer_gettime32() __asm__("timer_gettime");
  74. int __timer_settime32() __asm__("timer_settime");
  75. int __timerfd_gettime32() __asm__("timerfd_gettime");
  76. int __timerfd_settime32() __asm__("timerfd_settime");
  77. int __timespec_get_time32() __asm__("timespec_get");
  78. int __utime_time32() __asm__("utime");
  79. int __utimensat_time32() __asm__("utimensat");
  80. int __utimes_time32() __asm__("utimes");
  81. pid_t __wait3_time32() __asm__("wait3");
  82. pid_t __wait4_time32() __asm__("wait4");
  83. #endif