xref: /csrg-svn/lib/libc/gen/utime.c (revision 12844)
1*12844Ssam /*	utime.c	4.1	83/05/31	*/
2*12844Ssam 
3*12844Ssam /*
4*12844Ssam  * Backwards compatible utime.
5*12844Ssam  */
6*12844Ssam 
7*12844Ssam utime(name, otv)
8*12844Ssam 	char *name;
9*12844Ssam 	int otv[];
10*12844Ssam {
11*12844Ssam 	struct timeval tv[2];
12*12844Ssam 
13*12844Ssam 	tv[0].tv_sec = otv[0]; tv[0].tv_usec = 0;
14*12844Ssam 	tv[1].tv_sec = otv[1]; tv[1].tv_usec = 0;
15*12844Ssam 	return (utimes(name, tv));
16*12844Ssam }
17