Index
$#! · 0-9 · A · B · C · D · E · F · G · H · I · J · K · L · M · N · O · P · Q · R · S · T · U · V · W · X · Y · Z
A
 aug_close
 aug_defnode
 aug_defvar
 aug_flags
 aug_get
 aug_init
 aug_insert
 aug_load
 aug_match
 aug_mv
 aug_print
 aug_rm
 aug_save
 aug_set
 aug_setm
 aug_span
 augeas
 augeas.h
 AUGEAS_CLONE_IF_RENAME_FAILS
 AUGEAS_FILES_TREE
 AUGEAS_LENS_DIR
 AUGEAS_LENS_ENV
 AUGEAS_META_FILES
 AUGEAS_META_ROOT
 AUGEAS_META_SAVE_MODE
 AUGEAS_META_TREE
 AUGEAS_ROOT_ENV
 AUGEAS_SPAN_OPTION
C
 close_memstream, memstream
E
 Enumerations
 escape
F
 Functions
I
 init_memstream, memstream
 internal.h
M
 Macros
 make_tree, tree
 MAX_ENV_SIZE
 memstream
P
 PATH_SEP_CHAR
 print_chars
 print_pos
T
 tree
U
 unescape
X
 xread_file
void aug_close(augeas *aug)
Close this Augeas instance and free any storage associated with it.
int aug_defnode(augeas *aug,
const char *name,
const char *expr,
const char *value,
int *created)
Define a variable NAME whose value is the result of evaluating EXPR, which must be non-NULL and evaluate to a nodeset.
int aug_defvar(augeas *aug,
const char *name,
const char *expr)
Define a variable NAME whose value is the result of evaluating EXPR.
Flags to influence the behavior of Augeas.
int aug_get(const augeas *aug,
const char *path,
const char **value)
Lookup the value associated with PATH.
augeas *aug_init(const char *root,
const char *loadpath,
unsigned int flags)
Initialize the library.
int aug_insert(augeas *aug,
const char *path,
const char *label,
int before)
Create a new sibling LABEL for PATH by inserting into the tree just before PATH if BEFORE == 1 or just after PATH if BEFORE == 0.
int aug_load(augeas *aug)
Load files into the tree.
int aug_match(const augeas *aug,
const char *path,
char ***matches)
the number of matches of the path expression PATH in AUG.
int aug_mv(augeas *aug,
const char *src,
const char *dst)
Move the node SRC to DST.
int aug_print(const augeas *aug,
FILE *out,
const char *path)
Print each node matching PATH and its descendants to OUT.
int aug_rm(augeas *aug,
const char *path)
Remove path and all its children.
int aug_save(augeas *aug)
Write all pending changes to disk.
int aug_set(augeas *aug,
const char *path,
const char *value)
Set the value associated with PATH to VALUE.
int aug_setm(augeas *aug,
const char *base,
const char *sub,
const char *value)
Set the value of multiple nodes in one operation.
int aug_span(augeas *aug,
const char *path,
char **filename,
unsigned int *label_start,
unsigned int *label_end,
unsigned int *value_start,
unsigned int *value_end,
unsigned int *span_start,
unsigned int *span_end)
Get the span according to input file of the node associated with PATH.
struct augeas
The data structure representing a connection to Augeas.
Control what save does when renaming the temporary file to its final destination fails with EXDEV or EBUSY: when this tree node exists, copy the file contents.
The root for actual file contents
The default location for lens definitions
Information about files
The root directory
How we save files.
Augeas reports some information in this subtree
The env var that points to the chroot holding files we may modify.
Enable or disable node indexes
int close_memstream(struct memstream *ms)
Close a memstream.
char *escape(const char *text,
int cnt)
Escape nonprintable characters within TEXT, similar to how it’s done in C string literals.
int init_memstream(struct memstream *ms)
Initialize a memstream.
struct tree *make_tree(char *label,
char *value,
struct tree *parent,
struct tree *children)
Allocate a new tree node with the given LABEL, VALUE, and CHILDREN, which are not copied.
Fairly arbitrary bound on the length of the path we accept from AUGEAS_SPEC_ENV
struct memstream
Wrappers to simulate OPEN_MEMSTREAM where that’s not available.
Character separating paths in a list of paths
int print_chars(FILE *out,
const char *text,
int cnt)
void print_pos(FILE *out,
const char *text,
int pos)
Print a pretty representation of being at position POS within TEXT
struct tree
An entry in the global config tree.
char *unescape(const char *s,
int len)
char* xread_file(const char *path)
Read the contents of file PATH and return them as one long string.
Close