source: rtems/cpukit/libcsupport/src/statvfs.c @ 9b4422a2

4.115
Last change on this file since 9b4422a2 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: 901 bytes
Line 
1/*
2 *  COPYRIGHT (c) 2009 Chris Johns <chrisj@rtems.org>
3 *
4 *  The license and distribution terms for this file may be
5 *  found in the file LICENSE in this distribution or at
6 *  http://www.rtems.com/license/LICENSE.
7 */
8/*
9 * The statvfs as defined by the SUS:
10 *    http://www.opengroup.org/onlinepubs/009695399/basedefs/sys/statvfs.h.html
11 */
12
13#if HAVE_CONFIG_H
14  #include "config.h"
15#endif
16
17#include <sys/statvfs.h>
18#include <string.h>
19
20#include <rtems/libio_.h>
21
22int statvfs( const char *path, struct statvfs *buf )
23{
24  int rv = 0;
25  rtems_filesystem_eval_path_context_t ctx;
26  int eval_flags = RTEMS_FS_FOLLOW_LINK;
27  const rtems_filesystem_location_info_t *currentloc =
28    rtems_filesystem_eval_path_start( &ctx, path, eval_flags );
29
30  memset( buf, 0, sizeof( *buf ) );
31
32  rv = (*currentloc->ops->statvfs_h)( currentloc, buf );
33
34  rtems_filesystem_eval_path_cleanup( &ctx );
35
36  return rv;
37}
Note: See TracBrowser for help on using the repository browser.