source: rtems/c/src/lib/libc/imfs_utime.c @ 08b5f55

4.104.114.84.95
Last change on this file since 08b5f55 was 07a3253d, checked in by Joel Sherrill <joel.sherrill@…>, on 11/23/98 at 19:07:58

Added base version of file system infrastructure. This includes a major
overhaul of the RTEMS system call interface. This base file system is
the "In-Memory File System" aka IMFS.

The design and implementation was done by the following people:

+ Joel Sherrill (joel@…)
+ Jennifer Averett (jennifer@…)
+ Steve "Mr Mount" Salitasc (salitasc@…)
+ Kerwin Wade (wade@…)

PROBLEMS
========

+ It is VERY likely that merging this will break the UNIX port. This

can/will be fixed.

+ There is likely some reentrancy/mutual exclusion needed.

+ Eventually, there should be a "mini-IMFS" description table to

eliminate links, symlinks, etc to save memory. All you need to
have "classic RTEMS" functionality is technically directories
and device IO. All the rest could be left out to save memory.

  • Property mode set to 100644
File size: 870 bytes
Line 
1/*
2 *  IMFS_utime
3 *
4 *  This routine is the implementation of the utime() system
5 *  call for the IMFS.
6 *
7 *  COPYRIGHT (c) 1989-1998.
8 *  On-Line Applications Research Corporation (OAR).
9 *  Copyright assigned to U.S. Government, 1994.
10 *
11 *  The license and distribution terms for this file may be
12 *  found in the file LICENSE in this distribution or at
13 *  http://www.OARcorp.com/rtems/license.html.
14 *
15 *  $Id$
16 */
17
18#include <errno.h>
19#include <sys/time.h>
20
21#include "libio_.h"
22#include "imfs.h"
23
24int IMFS_utime(
25  rtems_filesystem_location_info_t  *pathloc,       /* IN */
26  time_t                             actime,        /* IN */
27  time_t                             modtime        /* IN */
28)
29{
30  IMFS_jnode_t *the_jnode;
31
32  the_jnode = (IMFS_jnode_t *) pathloc->node_access;
33
34  the_jnode->st_atime = actime;
35  the_jnode->st_mtime = modtime;
36
37  return 0;
38}
Note: See TracBrowser for help on using the repository browser.