Added our versions of BeOS compatible sys/timeb.h, and sys/times.h
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@1741 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
f2bc61304f
commit
03360f3bb7
26
headers/posix/sys/timeb.h
Normal file
26
headers/posix/sys/timeb.h
Normal file
@ -0,0 +1,26 @@
|
||||
#ifndef _SYS_TIMEB_H
|
||||
#define _SYS_TIMEB_H
|
||||
/*
|
||||
** Distributed under the terms of the OpenBeOS License.
|
||||
*/
|
||||
|
||||
|
||||
#include <time.h>
|
||||
|
||||
|
||||
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 */
|
25
headers/posix/sys/times.h
Normal file
25
headers/posix/sys/times.h
Normal file
@ -0,0 +1,25 @@
|
||||
#ifndef _SYS_TIMES_H
|
||||
#define _SYS_TIMES_H
|
||||
/*
|
||||
** Distributed under the terms of the OpenBeOS License.
|
||||
*/
|
||||
|
||||
|
||||
#include <time.h>
|
||||
|
||||
|
||||
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 */
|
Loading…
Reference in New Issue
Block a user