xref: /csrg-svn/lib/libc/gen/utime.c (revision 21335)
1*21335Sdist /*
2*21335Sdist  * Copyright (c) 1980 Regents of the University of California.
3*21335Sdist  * All rights reserved.  The Berkeley software License Agreement
4*21335Sdist  * specifies the terms and conditions for redistribution.
5*21335Sdist  */
612844Ssam 
7*21335Sdist #ifndef lint
8*21335Sdist static char sccsid[] = "@(#)utime.c	5.1 (Berkeley) 05/30/85";
9*21335Sdist #endif not lint
10*21335Sdist 
1112845Ssam #include <sys/time.h>
1212844Ssam /*
1312844Ssam  * Backwards compatible utime.
1412844Ssam  */
1512844Ssam 
1612844Ssam utime(name, otv)
1712844Ssam 	char *name;
1812844Ssam 	int otv[];
1912844Ssam {
2012844Ssam 	struct timeval tv[2];
2112844Ssam 
2212844Ssam 	tv[0].tv_sec = otv[0]; tv[0].tv_usec = 0;
2312844Ssam 	tv[1].tv_sec = otv[1]; tv[1].tv_usec = 0;
2412844Ssam 	return (utimes(name, tv));
2512844Ssam }
26