Back to index

glibc  2.9
Defines | Functions | Variables
bsdstat.h File Reference
#include <errno.h>
#include <stddef.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "/usr/include/sys/stat.h"

Go to the source code of this file.

Defines

#define stat   system_stat
#define fstat   system_fstat
#define KERNEL   /* Try to avoid misc decls. */
#define member_same(statbufp, sysbufp, member)
#define need_stat_mapping(statbufp, sysbufp)

Functions

static int mapstat (sysbuf, statbuf) const struct system_stat *sysbuf

Variables

struct __statbuf

Define Documentation

#define fstat   system_fstat

Definition at line 51 of file bsdstat.h.

#define KERNEL   /* Try to avoid misc decls. */

Definition at line 52 of file bsdstat.h.

#define member_same (   statbufp,
  sysbufp,
  member 
)
Value:
(offsetof(struct __stat, member) == offsetof(struct system_stat, member) && \
   sizeof((statbufp)->member) == sizeof((sysbufp)->member))

Definition at line 58 of file bsdstat.h.

#define need_stat_mapping (   statbufp,
  sysbufp 
)
Value:
(!(member_same(statbufp, sysbufp, st_dev) &&                                \
     member_same(statbufp, sysbufp, st_ino) &&                              \
     member_same(statbufp, sysbufp, st_mode) &&                             \
     member_same(statbufp, sysbufp, st_nlink) &&                     \
     member_same(statbufp, sysbufp, st_uid) &&                              \
     member_same(statbufp, sysbufp, st_gid) &&                              \
     member_same(statbufp, sysbufp, st_rdev) &&                             \
     member_same(statbufp, sysbufp, st_size) &&                             \
     member_same(statbufp, sysbufp, st_atime) &&                     \
     member_same(statbufp, sysbufp, st_mtime) &&                     \
     member_same(statbufp, sysbufp, st_ctime) &&                     \
     member_same(statbufp, sysbufp, st_blksize) &&                          \
     member_same(statbufp, sysbufp, st_blocks)))

Definition at line 61 of file bsdstat.h.

#define stat   system_stat

Definition at line 50 of file bsdstat.h.


Function Documentation

static int mapstat ( sysbuf  ,
statbuf   
) const [static]

Variable Documentation

struct __stat* buf

Definition at line 83 of file bsdstat.h.