4.104.114.84.95
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-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 | * $Id$ |
---|
15 | */ |
---|
16 | |
---|
17 | #include <errno.h> |
---|
18 | #include <sys/time.h> |
---|
19 | |
---|
20 | #include "libio_.h" |
---|
21 | #include "imfs.h" |
---|
22 | |
---|
23 | int IMFS_utime( |
---|
24 | rtems_filesystem_location_info_t *pathloc, /* IN */ |
---|
25 | time_t actime, /* IN */ |
---|
26 | time_t modtime /* IN */ |
---|
27 | ) |
---|
28 | { |
---|
29 | IMFS_jnode_t *the_jnode; |
---|
30 | |
---|
31 | the_jnode = (IMFS_jnode_t *) pathloc->node_access; |
---|
32 | |
---|
33 | the_jnode->st_atime = actime; |
---|
34 | the_jnode->st_mtime = modtime; |
---|
35 | |
---|
36 | return 0; |
---|
37 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.