stat(), get_sched_affinity(), gettimeofday() and some detailed debug msgs
This commit is contained in:
39
kernel/include/time.h
Normal file
39
kernel/include/time.h
Normal file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* time.h:
|
||||
*
|
||||
* excerpted from the cross-compiler's header folder
|
||||
*/
|
||||
|
||||
#ifndef __TIME_H
|
||||
#define __TIME_H
|
||||
|
||||
typedef long int __time_t;
|
||||
|
||||
/* POSIX.1b structure for a time value. This is like a `struct timeval' but
|
||||
has nanoseconds instead of microseconds. */
|
||||
struct timespec
|
||||
{
|
||||
__time_t tv_sec; /* Seconds. */
|
||||
long int tv_nsec; /* Nanoseconds. */
|
||||
};
|
||||
|
||||
|
||||
/* A time value that is accurate to the nearest
|
||||
microsecond but also has a range of years. */
|
||||
struct timeval
|
||||
{
|
||||
__time_t tv_sec; /* Seconds. */
|
||||
long tv_usec; /* Microseconds. */
|
||||
};
|
||||
|
||||
|
||||
/* Structure crudely representing a timezone.
|
||||
This is obsolete and should never be used. */
|
||||
struct timezone
|
||||
{
|
||||
int tz_minuteswest; /* Minutes west of GMT. */
|
||||
int tz_dsttime; /* Nonzero if DST is ever in effect. */
|
||||
};
|
||||
|
||||
#endif // __TIME_H
|
||||
|
||||
Reference in New Issue
Block a user