source: rtems/cpukit/libfs/src/imfs/imfs_stat_file.c @ f785492

4.115
Last change on this file since f785492 was e4d35d8, checked in by Sebastian Huber <sebastian.huber@…>, on 02/05/15 at 15:43:58

IMFS: Split linfile and memfile modules

Make several functions static.

  • Property mode set to 100644
File size: 616 bytes
Line 
1/**
2 * @file
3 *
4 * @ingroup IMFS
5 */
6
7/*
8 *  COPYRIGHT (c) 1989-1999.
9 *  On-Line Applications Research Corporation (OAR).
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.rtems.org/license/LICENSE.
14 */
15
16#if HAVE_CONFIG_H
17  #include "config.h"
18#endif
19
20#include "imfs.h"
21
22int IMFS_stat_file(
23  const rtems_filesystem_location_info_t *loc,
24  struct stat *buf
25)
26{
27  const IMFS_file_t *file = loc->node_access;
28
29  buf->st_size = file->File.size;
30  buf->st_blksize = imfs_rq_memfile_bytes_per_block;
31
32  return IMFS_stat( loc, buf );
33}
Note: See TracBrowser for help on using the repository browser.