/usr/include/reiser4/object.h is in libreiser4-dev 1.1.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | /* Copyright (C) 2001-2005 by Hans Reiser, licensing governed by
reiser4progs/COPYING.
object.h -- reiser4 common object functions (regular file, directory,
etc). */
#ifndef REISER4_OBJECT_H
#define REISER4_OBJECT_H
#include <reiser4/types.h>
extern reiser4_object_t *reiser4_object_prep(reiser4_tree_t *tree,
reiser4_object_t *parent,
reiser4_key_t *object,
reiser4_place_t *place);
extern reiser4_object_t *reiser4_object_obtain(reiser4_tree_t *tree,
reiser4_object_t *parent,
reiser4_key_t *key);
extern reiser4_object_t *reiser4_object_open(reiser4_tree_t *tree,
reiser4_object_t *parent,
reiser4_place_t *place);
uint64_t reiser4_object_size(reiser4_object_t *object);
extern void reiser4_object_close(reiser4_object_t *object);
#ifndef ENABLE_MINIMAL
extern errno_t reiser4_object_add_entry(reiser4_object_t *object,
entry_hint_t *entry);
extern errno_t reiser4_object_rem_entry(reiser4_object_t *object,
entry_hint_t *entry);
extern errno_t reiser4_object_truncate(reiser4_object_t *object,
uint64_t n);
extern int64_t reiser4_object_write(reiser4_object_t *object,
void *buff, uint64_t n);
extern errno_t reiser4_object_refresh(reiser4_object_t *object);
extern reiser4_object_t *reiser4_object_create(entry_hint_t *entry,
object_info_t *info,
object_hint_t *hint);
extern errno_t reiser4_object_clobber(reiser4_object_t *object);
extern errno_t reiser4_object_link(reiser4_object_t *object,
reiser4_object_t *child,
entry_hint_t *entry);
extern errno_t reiser4_object_unlink(reiser4_object_t *object,
char *name);
extern errno_t reiser4_object_attach(reiser4_object_t *object,
reiser4_object_t *parent);
extern errno_t reiser4_object_detach(reiser4_object_t *object,
reiser4_object_t *parent);
extern errno_t reiser4_object_layout(reiser4_object_t *object,
region_func_t region_func,
void *data);
extern errno_t reiser4_object_metadata(reiser4_object_t *object,
place_func_t place_func,
void *data);
extern lookup_t reiser4_object_lookup(reiser4_object_t *object,
const char *name,
entry_hint_t *entry);
extern errno_t reiser4_object_stat(reiser4_object_t *object,
stat_hint_t *hint);
extern errno_t reiser4_object_reset(reiser4_object_t *object);
extern errno_t reiser4_object_seek(reiser4_object_t *object,
uint32_t offset);
extern errno_t reiser4_object_seekdir(reiser4_object_t *object,
reiser4_key_t *offset);
extern uint32_t reiser4_object_offset(reiser4_object_t *object);
extern errno_t reiser4_object_telldir(reiser4_object_t *object,
reiser4_key_t *offset);
extern int64_t reiser4_object_read(reiser4_object_t *object,
void *buff, uint64_t n);
extern errno_t reiser4_object_readdir(reiser4_object_t *object,
entry_hint_t *entry);
extern errno_t reiser4_object_entry_prep(reiser4_tree_t *tree,
reiser4_object_t *parent,
entry_hint_t *entry,
const char *name);
extern reiser4_object_t *reiser4_dir_create(reiser4_object_t *parent,
const char *name);
extern reiser4_object_t *reiser4_reg_create(reiser4_object_t *parent,
const char *name);
extern reiser4_object_t *reiser4_sym_create(reiser4_object_t *parent,
const char *name,
const char *target);
extern reiser4_object_t *reiser4_spl_create(reiser4_object_t *parent,
const char *name,
uint32_t mode,
uint64_t rdev);
extern reiser4_object_t *reiser4_ccreg_create(reiser4_object_t *parent,
const char *name,
const char *key);
extern errno_t reiser4_object_traverse(reiser4_object_t *object,
object_open_func_t open_func,
void *data);
#endif
#define object_start(object) (&(object)->info.start)
#endif
|