source: rtems/cpukit/libfs/src/devfs/devstat.c @ fed66f99

4.115
Last change on this file since fed66f99 was 9b4422a2, checked in by Joel Sherrill <joel.sherrill@…>, on 05/03/12 at 15:09:24

Remove All CVS Id Strings Possible Using a Script

Script does what is expected and tries to do it as
smartly as possible.

+ remove occurrences of two blank comment lines

next to each other after Id string line removed.

+ remove entire comment blocks which only exited to

contain CVS Ids

+ If the processing left a blank line at the top of

a file, it was removed.

  • Property mode set to 100644
File size: 607 bytes
Line 
1/*
2 *  The license and distribution terms for this file may be
3 *  found in the file LICENSE in this distribution or at
4 *  http://www.rtems.com/license/LICENSE.
5 */
6
7#if HAVE_CONFIG_H
8  #include "config.h"
9#endif
10
11#include "devfs.h"
12
13int devFS_stat(
14  const rtems_filesystem_location_info_t *loc,
15  struct stat *buf
16)
17{
18  int rv = 0;
19  const devFS_node *the_dev = loc->node_access;
20
21  if (the_dev != NULL) {
22    buf->st_rdev = rtems_filesystem_make_dev_t( the_dev->major, the_dev->minor );
23    buf->st_mode = the_dev->mode;
24  } else {
25    rv = rtems_filesystem_default_fstat(loc, buf);
26  }
27
28  return rv;
29}
Note: See TracBrowser for help on using the repository browser.