1570af302Sopenharmony_ci#ifndef TIME32_H
2570af302Sopenharmony_ci#define TIME32_H
3570af302Sopenharmony_ci
4570af302Sopenharmony_ci#include <sys/types.h>
5570af302Sopenharmony_ci
6570af302Sopenharmony_citypedef long time32_t;
7570af302Sopenharmony_ci
8570af302Sopenharmony_cistruct timeval32 {
9570af302Sopenharmony_ci	long tv_sec;
10570af302Sopenharmony_ci	long tv_usec;
11570af302Sopenharmony_ci};
12570af302Sopenharmony_ci
13570af302Sopenharmony_cistruct itimerval32 {
14570af302Sopenharmony_ci	struct timeval32 it_interval;
15570af302Sopenharmony_ci	struct timeval32 it_value;
16570af302Sopenharmony_ci};
17570af302Sopenharmony_ci
18570af302Sopenharmony_cistruct timespec32 {
19570af302Sopenharmony_ci	long tv_sec;
20570af302Sopenharmony_ci	long tv_nsec;
21570af302Sopenharmony_ci};
22570af302Sopenharmony_ci
23570af302Sopenharmony_cistruct itimerspec32 {
24570af302Sopenharmony_ci	struct timespec32 it_interval;
25570af302Sopenharmony_ci	struct timespec32 it_value;
26570af302Sopenharmony_ci};
27570af302Sopenharmony_ci
28570af302Sopenharmony_ciint __adjtime32() __asm__("adjtime");
29570af302Sopenharmony_ciint __adjtimex_time32() __asm__("adjtimex");
30570af302Sopenharmony_ciint __aio_suspend_time32() __asm__("aio_suspend");
31570af302Sopenharmony_ciint __clock_adjtime32() __asm__("clock_adjtime");
32570af302Sopenharmony_ciint __clock_getres_time32() __asm__("clock_getres");
33570af302Sopenharmony_ciint __clock_gettime32() __asm__("clock_gettime");
34570af302Sopenharmony_ciint __clock_nanosleep_time32() __asm__("clock_nanosleep");
35570af302Sopenharmony_ciint __clock_settime32() __asm__("clock_settime");
36570af302Sopenharmony_ciint __cnd_timedwait_time32() __asm__("cnd_timedwait");
37570af302Sopenharmony_cichar *__ctime32() __asm__("ctime");
38570af302Sopenharmony_cichar *__ctime32_r() __asm__("ctime_r");
39570af302Sopenharmony_cidouble __difftime32() __asm__("difftime");
40570af302Sopenharmony_ciint __fstat_time32() __asm__("fstat");
41570af302Sopenharmony_ciint __fstatat_time32() __asm__("fstatat");
42570af302Sopenharmony_ciint __ftime32() __asm__("ftime");
43570af302Sopenharmony_ciint __futimens_time32() __asm__("futimens");
44570af302Sopenharmony_ciint __futimes_time32() __asm__("futimes");
45570af302Sopenharmony_ciint __futimesat_time32() __asm__("futimesat");
46570af302Sopenharmony_ciint __getitimer_time32() __asm__("getitimer");
47570af302Sopenharmony_ciint __getrusage_time32() __asm__("getrusage");
48570af302Sopenharmony_ciint __gettimeofday_time32() __asm__("gettimeofday");
49570af302Sopenharmony_cistruct tm *__gmtime32() __asm__("gmtime");
50570af302Sopenharmony_cistruct tm *__gmtime32_r() __asm__("gmtime_r");
51570af302Sopenharmony_cistruct tm *__localtime32() __asm__("localtime");
52570af302Sopenharmony_cistruct tm *__localtime32_r() __asm__("localtime_r");
53570af302Sopenharmony_ciint __lstat_time32() __asm__("lstat");
54570af302Sopenharmony_ciint __lutimes_time32() __asm__("lutimes");
55570af302Sopenharmony_citime32_t __mktime32() __asm__("mktime");
56570af302Sopenharmony_cissize_t __mq_timedreceive_time32() __asm__("mq_timedreceive");
57570af302Sopenharmony_ciint __mq_timedsend_time32() __asm__("mq_timedsend");
58570af302Sopenharmony_ciint __mtx_timedlock_time32() __asm__("mtx_timedlock");
59570af302Sopenharmony_ciint __nanosleep_time32() __asm__("nanosleep");
60570af302Sopenharmony_ciint __ppoll_time32() __asm__("ppoll");
61570af302Sopenharmony_ciint __pselect_time32() __asm__("pselect");
62570af302Sopenharmony_ciint __pthread_cond_timedwait_time32() __asm__("pthread_cond_timedwait");
63570af302Sopenharmony_ciint __pthread_mutex_timedlock_time32() __asm__("pthread_mutex_timedlock");
64570af302Sopenharmony_ciint __pthread_rwlock_timedrdlock_time32() __asm__("pthread_rwlock_timedrdlock");
65570af302Sopenharmony_ciint __pthread_rwlock_timedwrlock_time32() __asm__("pthread_rwlock_timedwrlock");
66570af302Sopenharmony_ciint __pthread_timedjoin_np_time32() __asm__("pthread_timedjoin_np");
67570af302Sopenharmony_ciint __recvmmsg_time32() __asm__("recvmmsg");
68570af302Sopenharmony_ciint __sched_rr_get_interval_time32() __asm__("sched_rr_get_interval");
69570af302Sopenharmony_ciint __select_time32() __asm__("select");
70570af302Sopenharmony_ciint __sem_timedwait_time32() __asm__("sem_timedwait");
71570af302Sopenharmony_ciint __semtimedop_time32() __asm__("semtimedop");
72570af302Sopenharmony_ciint __setitimer_time32() __asm__("setitimer");
73570af302Sopenharmony_ciint __settimeofday_time32() __asm__("settimeofday");
74570af302Sopenharmony_ciint __sigtimedwait_time32() __asm__("sigtimedwait");
75570af302Sopenharmony_ciint __stat_time32() __asm__("stat");
76570af302Sopenharmony_ciint __stime32() __asm__("stime");
77570af302Sopenharmony_ciint __thrd_sleep_time32() __asm__("thrd_sleep");
78570af302Sopenharmony_citime32_t __time32() __asm__("time");
79570af302Sopenharmony_citime32_t __time32gm() __asm__("timegm");
80570af302Sopenharmony_ciint __timer_gettime32() __asm__("timer_gettime");
81570af302Sopenharmony_ciint __timer_settime32() __asm__("timer_settime");
82570af302Sopenharmony_ciint __timerfd_gettime32() __asm__("timerfd_gettime");
83570af302Sopenharmony_ciint __timerfd_settime32() __asm__("timerfd_settime");
84570af302Sopenharmony_ciint __timespec_get_time32() __asm__("timespec_get");
85570af302Sopenharmony_ciint __utime_time32() __asm__("utime");
86570af302Sopenharmony_ciint __utimensat_time32() __asm__("utimensat");
87570af302Sopenharmony_ciint __utimes_time32() __asm__("utimes");
88570af302Sopenharmony_cipid_t __wait3_time32() __asm__("wait3");
89570af302Sopenharmony_cipid_t __wait4_time32() __asm__("wait4");
90570af302Sopenharmony_ci
91570af302Sopenharmony_ci#endif
92