386 peculiar files touchup
[unix-history] / usr / src / lib / libc / gen / utime.c
CommitLineData
ac6492d0
KB
1/*-
2 * Copyright (c) 1990 The Regents of the University of California.
3 * All rights reserved.
4 *
5 * %sccs.include.redist.c%
bb0cfa24
DF
6 */
7
2ce81398 8#if defined(LIBC_SCCS) && !defined(lint)
ac6492d0
KB
9static char sccsid[] = "@(#)utime.c 5.3 (Berkeley) %G%";
10#endif /* LIBC_SCCS and not lint */
d322f548 11
9bfbc81c 12#include <sys/time.h>
ac6492d0 13#include <utime.h>
d322f548 14
ac6492d0
KB
15utime(path, times)
16 char *path;
17 struct utimbuf *times;
d322f548
SL
18{
19 struct timeval tv[2];
20
ac6492d0
KB
21 tv[0].tv_sec = times->actime;
22 tv[1].tv_sec = times->modtime;
23 tv[0].tv_usec = tv[1].tv_usec = 0;
24 return(utimes(path, tv));
d322f548 25}