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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [rtems-20020807/] [cpukit/] [libfs/] [src/] [imfs/] [imfs_utime.c] - Blame information for rev 1026

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

Line No. Rev Author Line
1 1026 ivang
/*
2
 *  IMFS_utime
3
 *
4
 *  This routine is the implementation of the utime() system
5
 *  call for the IMFS.
6
 *
7
 *  COPYRIGHT (c) 1989-1999.
8
 *  On-Line Applications Research Corporation (OAR).
9
 *
10
 *  The license and distribution terms for this file may be
11
 *  found in the file LICENSE in this distribution or at
12
 *  http://www.OARcorp.com/rtems/license.html.
13
 *
14
 *  imfs_utime.c,v 1.5 2001/01/22 14:05:14 joel Exp
15
 */
16
 
17
#if HAVE_CONFIG_H
18
#include "config.h"
19
#endif
20
 
21
#include <errno.h>
22
#include <sys/time.h>
23
 
24
#include <rtems/libio_.h>
25
#include "imfs.h"
26
 
27
int IMFS_utime(
28
  rtems_filesystem_location_info_t  *pathloc,       /* IN */
29
  time_t                             actime,        /* IN */
30
  time_t                             modtime        /* IN */
31
)
32
{
33
  IMFS_jnode_t *the_jnode;
34
 
35
  the_jnode = (IMFS_jnode_t *) pathloc->node_access;
36
 
37
  the_jnode->stat_atime = actime;
38
  the_jnode->stat_mtime = modtime;
39
 
40
  return 0;
41
}

powered by: WebSVN 2.1.0

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