add directory Linux-0.98
This commit is contained in:
33
Linux-0.98/Yggdrasil-0.98.3/usr/include/linux/time.h
Normal file
33
Linux-0.98/Yggdrasil-0.98.3/usr/include/linux/time.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef _LINUX_TIME_H
|
||||
#define _LINUX_TIME_H
|
||||
|
||||
struct timeval {
|
||||
long tv_sec; /* seconds */
|
||||
long tv_usec; /* microseconds */
|
||||
};
|
||||
|
||||
struct timezone {
|
||||
int tz_minuteswest; /* minutes west of Greenwich */
|
||||
int tz_dsttime; /* type of dst correction */
|
||||
};
|
||||
|
||||
#define FD_SETSIZE (8*sizeof(fd_set))
|
||||
#define FD_SET(fd,fdsetp) (*(fdsetp) |= (1 << (fd)))
|
||||
#define FD_CLR(fd,fdsetp) (*(fdsetp) &= ~(1 << (fd)))
|
||||
#define FD_ISSET(fd,fdsetp) ((*(fdsetp) >> fd) & 1)
|
||||
#define FD_ZERO(fdsetp) (*(fdsetp) = 0)
|
||||
|
||||
/*
|
||||
* Names of the interval timers, and structure
|
||||
* defining a timer setting.
|
||||
*/
|
||||
#define ITIMER_REAL 0
|
||||
#define ITIMER_VIRTUAL 1
|
||||
#define ITIMER_PROF 2
|
||||
|
||||
struct itimerval {
|
||||
struct timeval it_interval; /* timer interval */
|
||||
struct timeval it_value; /* current value */
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user