summaryrefslogtreecommitdiff
path: root/usr/src/lib/libshell/common/features/time
blob: f8d212984190d6aff3e1ce5d027bf25d17a9c804 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
hdr	utime
lib	gettimeofday,setitimer
mem	timeval.tv_usec sys/time.h
tst	lib_2_timeofday note{ 2 arg gettimeofday() }end link{
	#include <sys/types.h>
	#include <sys/time.h>
	int main()
	{
		struct timeval tv;
		struct timezone tz;
		return gettimeofday(&tv, &tz);
	}
}end
tst	lib_1_timeofday note{ 1 arg gettimeofday() }end link{
	#include <sys/types.h>
	#include <sys/time.h>
	int main()
	{
		struct timeval tv;
		return gettimeofday(&tv);
	}
}end
cat{
	#undef _def_time
	#include	<times.h>
	#define _def_time	1
	#undef timeofday
	#if _lib_2_timeofday
	#define timeofday(p)	gettimeofday(p,(struct timezone*)0)
	#else
	#if _lib_1_timeofday
	#define timeofday(p)	gettimeofday(p)
	#endif
	#endif
}end