stat(), get_sched_affinity(), gettimeofday() and some detailed debug msgs

This commit is contained in:
Balazs Gerofi
2012-05-19 16:54:14 +09:00
parent c8d6ec9356
commit 9394c9fa54
3 changed files with 240 additions and 3 deletions

39
kernel/include/time.h Normal file
View 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