MODULE PosixCtime ['time.h']; (* generated by genposix.sh, do not modify *) IMPORT SYSTEM, PosixCtypes, PosixCsys_types, PosixClocale; TYPE char* = PosixCtypes.char; signed_char* = PosixCtypes.signed_char; unsigned_char* = PosixCtypes.unsigned_char; short* = PosixCtypes.short; short_int* = PosixCtypes.short_int; signed_short* = PosixCtypes.signed_short; signed_short_int* = PosixCtypes.signed_short_int; unsigned_short* = PosixCtypes.unsigned_short; unsigned_short_int* = PosixCtypes.unsigned_short_int; int* = PosixCtypes.int; signed* = PosixCtypes.signed; signed_int* = PosixCtypes.signed_int; unsigned* = PosixCtypes.unsigned; unsigned_int* = PosixCtypes.unsigned_int; long* = PosixCtypes.long; long_int* = PosixCtypes.long_int; signed_long* = PosixCtypes.signed_long; signed_long_int* = PosixCtypes.signed_long_int; unsigned_long* = PosixCtypes.unsigned_long; unsigned_long_int* = PosixCtypes.unsigned_long_int; long_long* = PosixCtypes.long_long; long_long_int* = PosixCtypes.long_long_int; signed_long_long* = PosixCtypes.signed_long_long; signed_long_long_int* = PosixCtypes.signed_long_long_int; unsigned_long_long* = PosixCtypes.unsigned_long_long; unsigned_long_long_int* = PosixCtypes.unsigned_long_long_int; float* = PosixCtypes.float; double* = PosixCtypes.double; long_double* = PosixCtypes.long_double; TYPE clock_t* = PosixCsys_types.clock_t; size_t* = PosixCsys_types.size_t; time_t* = PosixCsys_types.time_t; clockid_t* = PosixCsys_types.clockid_t; timer_t* = PosixCsys_types.timer_t; pid_t* = PosixCsys_types.pid_t; TYPE locale_t* = PosixClocale.locale_t; TYPE Pstruct_tm* = POINTER TO struct_tm; struct_tm* ['struct tm'] = RECORD [noalign] (* 44 *) tm_sec*: int; (* 0+4 *) tm_min*: int; (* 4+4 *) tm_hour*: int; (* 8+4 *) tm_mday*: int; (* 12+4 *) tm_mon*: int; (* 16+4 *) tm_year*: int; (* 20+4 *) tm_wday*: int; (* 24+4 *) tm_yday*: int; (* 28+4 *) tm_isdst*: int; (* 32+4 *) END; TYPE Pstruct_timespec* = POINTER TO struct_timespec; struct_timespec* ['struct timespec'] = RECORD [noalign] (* 8 *) tv_sec*: time_t; (* 0+4 *) tv_nsec*: long; (* 4+4 *) END; TYPE Pstruct_itimerspec* = POINTER TO struct_itimerspec; struct_itimerspec* ['struct itimerspec'] = RECORD [noalign] (* 16 *) it_interval*: struct_timespec; (* 0+8 *) it_value*: struct_timespec; (* 8+8 *) END; CONST CLOCKS_PER_SEC* = 1000000; CONST CLOCK_MONOTONIC* = 1; CLOCK_PROCESS_CPUTIME_ID* = 2; CLOCK_REALTIME* = 0; CLOCK_THREAD_CPUTIME_ID* = 3; CONST TIMER_ABSTIME* = 1; PROCEDURE [ccall] asctime* (IN tm: struct_tm): POINTER TO ARRAY [untagged] OF SHORTCHAR; PROCEDURE [ccall] asctime_r* (IN tm: struct_tm; buf: POINTER TO ARRAY [untagged] OF SHORTCHAR): POINTER TO ARRAY [untagged] OF SHORTCHAR; PROCEDURE [ccall] clock* (): clock_t; PROCEDURE [ccall] clock_getcpuclockid* (pid: pid_t; VAR clock_id: clockid_t): int; PROCEDURE [ccall] clock_getres* (clk_id: clockid_t; VAR res: struct_timespec): int; PROCEDURE [ccall] clock_gettime* (clk_id: clockid_t; VAR res: struct_timespec): int; PROCEDURE [ccall] clock_nanosleep* (clock_id: clockid_t; falgs: int; IN [nil] rqtp: struct_timespec; VAR [nil] rmtp: struct_timespec): int; PROCEDURE [ccall] clock_settime* (clk_id: clockid_t; IN res: struct_timespec): int; PROCEDURE [ccall] ctime* (VAR timep: time_t): POINTER TO ARRAY [untagged] OF SHORTCHAR; PROCEDURE [ccall] ctime_r* (VAR timep: time_t; buf: POINTER TO ARRAY [untagged] OF SHORTCHAR): POINTER TO ARRAY [untagged] OF SHORTCHAR; PROCEDURE [ccall] difftime* (time0, time1: time_t): double; PROCEDURE [ccall] getdate* (IN string: ARRAY [untagged] OF SHORTCHAR): Pstruct_tm; PROCEDURE [ccall] gmtime* (VAR timep: time_t): Pstruct_tm; PROCEDURE [ccall] gmtime_r* (VAR timep: time_t; VAR result: struct_tm): Pstruct_tm; PROCEDURE [ccall] localtime* (VAR timep: time_t): Pstruct_tm; PROCEDURE [ccall] localtime_r* (VAR timep: time_t; VAR result: struct_tm): Pstruct_tm; PROCEDURE [ccall] mktime* (VAR tm: struct_tm): time_t; PROCEDURE [ccall] nanosleep* (IN [nil] rqtp: struct_timespec; VAR [nil] rmtp: struct_timespec): int; PROCEDURE [ccall] strftime* (VAR s: ARRAY [untagged] OF SHORTCHAR; max: size_t; IN format: ARRAY [untagged] OF SHORTCHAR; IN tm: struct_tm): size_t; PROCEDURE [ccall] strftime_l* (VAR s: ARRAY [untagged] OF SHORTCHAR; max: size_t; IN format: ARRAY [untagged] OF SHORTCHAR; IN tm: struct_tm; locale: locale_t): size_t; PROCEDURE [ccall] strptime* (IN s, format: ARRAY [untagged] OF SHORTCHAR; VAR tm: struct_tm): POINTER TO ARRAY [untagged] OF SHORTCHAR; PROCEDURE [ccall] time* (VAR [nil] tloc: time_t): time_t; PROCEDURE [ccall] timer_delete* (timerid: timer_t): int; PROCEDURE [ccall] timer_getoverrun* (timerid: timer_t): int; PROCEDURE [ccall] timer_gettime* (timerid: timer_t; VAR value: struct_itimerspec): int; PROCEDURE [ccall] timer_settime* (timerid: timer_t; flags: int; IN value: struct_itimerspec; VAR [nil] ovalue: struct_itimerspec): int; PROCEDURE [ccall] tzset* ; END PosixCtime.