OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [uclinux/] [uC-libc/] [sysdeps/] [utimes.c] - Blame information for rev 1775

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 199 simons
#include <utime.h>
2
#include <sys/time.h>
3
 
4
int utimes(char *path, struct timeval *tvp)
5
{
6
        struct utimbuf buf, *times;
7
 
8
        if (tvp) {
9
                times = &buf;
10
                times->actime = tvp[0].tv_sec;
11
                times->modtime = tvp[1].tv_sec;
12
        }
13
        else
14
                times = NULL;
15
        return utime(path, times);
16
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.