diff --git a/headers/posix/sys/timeb.h b/headers/posix/sys/timeb.h new file mode 100644 index 0000000000..0ba9e726c9 --- /dev/null +++ b/headers/posix/sys/timeb.h @@ -0,0 +1,26 @@ +#ifndef _SYS_TIMEB_H +#define _SYS_TIMEB_H +/* +** Distributed under the terms of the OpenBeOS License. +*/ + + +#include + + +struct timeb { + time_t time; /* seconds of current time */ + unsigned short millitm; /* milliseconds of current time */ + short timezone; /* timezone difference to GMT in minutes */ + short dstflag; /* daylight saving flag */ +}; + + +extern +#ifdef __cplusplus +"C" +#endif +int ftime(struct timeb *timeb); + /* legacy */ + +#endif /* _SYS_TIMEB_H */ diff --git a/headers/posix/sys/times.h b/headers/posix/sys/times.h new file mode 100644 index 0000000000..156456e29d --- /dev/null +++ b/headers/posix/sys/times.h @@ -0,0 +1,25 @@ +#ifndef _SYS_TIMES_H +#define _SYS_TIMES_H +/* +** Distributed under the terms of the OpenBeOS License. +*/ + + +#include + + +struct tms { + clock_t tms_utime; /* user CPU time */ + clock_t tms_stime; /* system CPU time */ + clock_t tms_cutime; /* user CPU time of terminated child processes */ + clock_t tms_cstime; /* system CPU time of terminated child processes */ +}; + + +extern +#ifdef __cplusplus +"C" +#endif +clock_t times(struct tms *tms); + +#endif /* _SYS_TIMES_H */