Back to index

glibc  2.9
Defines | Functions
statfsconv.c File Reference
#include <sys/statfs.h>
#include <errno.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DO(memb)

Functions

static int statfs64_conv (struct statfs *buf, const struct statfs64 *buf64)

Define Documentation

#define DO (   memb)
Value:
buf->memb = buf64->memb;                                             \
  if (sizeof buf->memb != sizeof buf64->memb && buf->memb != buf64->memb)     \
    {                                                                \
      __set_errno (EOVERFLOW);                                              \
      return -1;                                                     \
    }

Function Documentation

static int statfs64_conv ( struct statfs buf,
const struct statfs64 *  buf64 
) [inline, static]

Definition at line 24 of file statfsconv.c.

{
# define DO(memb)                                                    \
  buf->memb = buf64->memb;                                           \
  if (sizeof buf->memb != sizeof buf64->memb && buf->memb != buf64->memb)     \
    {                                                                \
      __set_errno (EOVERFLOW);                                              \
      return -1;                                                     \
    }

  DO (f_type);
  DO (f_bsize);
  DO (f_blocks);
  DO (f_bfree);
  DO (f_bavail);
  DO (f_files);
  DO (f_fsid);
  DO (f_namelen);
  DO (f_favail);
  DO (f_frsize);
  DO (f_flag);

# undef DO

  return 0;
}

Here is the caller graph for this function: