5
Last change
on this file since a397c7d8 was
a397c7d8,
checked in by Sebastian Huber <sebastian.huber@…>, on 12/13/17 at 07:00:02
|
IMFS: Include <rtems/imfs.h>
Prepare for header file move to common include directory.
Update #3254.
|
-
Property mode set to
100644
|
File size:
743 bytes
|
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief Set IMFS File Access and Modification Times |
---|
5 | * @ingroup IMFS |
---|
6 | */ |
---|
7 | |
---|
8 | /* |
---|
9 | * COPYRIGHT (c) 1989-1999. |
---|
10 | * On-Line Applications Research Corporation (OAR). |
---|
11 | * |
---|
12 | * The license and distribution terms for this file may be |
---|
13 | * found in the file LICENSE in this distribution or at |
---|
14 | * http://www.rtems.org/license/LICENSE. |
---|
15 | */ |
---|
16 | |
---|
17 | #if HAVE_CONFIG_H |
---|
18 | #include "config.h" |
---|
19 | #endif |
---|
20 | |
---|
21 | #include <rtems/imfs.h> |
---|
22 | |
---|
23 | #include <sys/time.h> |
---|
24 | |
---|
25 | int IMFS_utime( |
---|
26 | const rtems_filesystem_location_info_t *loc, |
---|
27 | time_t actime, |
---|
28 | time_t modtime |
---|
29 | ) |
---|
30 | { |
---|
31 | IMFS_jnode_t *the_jnode; |
---|
32 | |
---|
33 | the_jnode = (IMFS_jnode_t *) loc->node_access; |
---|
34 | |
---|
35 | the_jnode->stat_atime = actime; |
---|
36 | the_jnode->stat_mtime = modtime; |
---|
37 | the_jnode->stat_ctime = time( NULL ); |
---|
38 | |
---|
39 | return 0; |
---|
40 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.