File: stat40.h

package info (click to toggle)
reiser4progs 1.2.2-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 5,904 kB
  • sloc: ansic: 34,331; sh: 4,251; makefile: 994
file content (34 lines) | stat: -rw-r--r-- 859 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
   reiser4progs/COPYING.
   
   stat40.h -- reiser4 default stat data structures. */

#ifndef STAT40_H
#define STAT40_H

#include <aal/libaal.h>
#include <reiser4/plugin.h>

/* Macro for getting stat data body from item */
#define stat40_body(place) ((stat40_t *)place->body)

/* Type for stat40 layout callback function */
typedef errno_t (*ext_func_t) (stat_entity_t *,
			       uint64_t, void *);

extern errno_t stat40_traverse(reiser4_place_t *place,
			       ext_func_t ext_func,
			       void *data);

typedef struct stat40 {
	d16_t extmask;
} stat40_t;

extern reiser4_core_t *stat40_core;

#define STAT40_EXTNR (64)

#define st40_get_extmask(stat)		aal_get_le16(((stat40_t *)stat), extmask)
#define st40_set_extmask(stat, val)	aal_set_le16(((stat40_t *)stat), extmask, val)

#endif