f8a024a81b
* include/direct.h: Ditto. * include/dirent.h: Ditto. * include/dos.h: Ditto. * include/excpt.h: Ditto. * inlude/fcntl,h * include/io.h: Ditto. * inlude/mem.h: Ditto. * include/memory.h: Ditto. * include/process.h: Ditto. * inlude/search.h: Ditto. * include/share.h: Ditto. * include/unistd.h: Ditto. * include/sys/fcntl.h: Ditto. * include/file.h: Ditto. * include/sys/locking.h: Ditto. * include/sys/param.h: Ditto. * include/sys/stat,h * include/sys/time.h: Ditto. * include/sys/timeb.h: Ditto. * include/sys/types.h: Ditto. * include/sys/unistd.h: Ditto. * include/sys/utime.h: Ditto.
17 lines
447 B
C
17 lines
447 B
C
|
|
#include <time.h>
|
|
|
|
#ifndef _TIMEVAL_DEFINED /* also in winsock[2].h */
|
|
#define _TIMEVAL_DEFINED
|
|
struct timeval {
|
|
long tv_sec;
|
|
long tv_usec;
|
|
};
|
|
#define timerisset(tvp) ((tvp)->tv_sec || (tvp)->tv_usec)
|
|
#define timercmp(tvp, uvp, cmp) \
|
|
(((tvp)->tv_sec != (uvp)->tv_sec) ? \
|
|
((tvp)->tv_sec cmp (uvp)->tv_sec) : \
|
|
((tvp)->tv_usec cmp (uvp)->tv_usec))
|
|
#define timerclear(tvp) (tvp)->tv_sec = (tvp)->tv_usec = 0
|
|
#endif /* _TIMEVAL_DEFINED */
|