summaryrefslogtreecommitdiff
path: root/src/cli_val.h
diff options
context:
space:
mode:
authorStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-29 15:15:46 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2008-07-29 15:15:46 -0700
commite0e9b7f85c81c942ee135a5a9aaff7a4992b19f6 (patch)
tree87ef294d7e47784cf8265cfab333eeff3cd54cfc /src/cli_val.h
parent24741e4ea23ac8c498046f5dabf0dd07c84bace4 (diff)
downloadvyatta-cfg-e0e9b7f85c81c942ee135a5a9aaff7a4992b19f6.tar.gz
vyatta-cfg-e0e9b7f85c81c942ee135a5a9aaff7a4992b19f6.zip
Avoid needless calls to system()
Add a version of touch and mkdir -p commands coded directly without going out to shell.
Diffstat (limited to 'src/cli_val.h')
-rw-r--r--src/cli_val.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/cli_val.h b/src/cli_val.h
index e190dd1..917f374 100644
--- a/src/cli_val.h
+++ b/src/cli_val.h
@@ -190,10 +190,12 @@ extern void vtw_sort(valstruct *valp, vtw_sorted *sortp);
extern void free_val(valstruct *val);
extern void my_free(void *ptr);
extern void touch(void);
+extern int mkdir_p(const char *path);
extern const char *type_to_name(vtw_type_e type);
extern boolean execute_list(vtw_node *cur, vtw_def *def);
extern void touch_dir(const char *dp);
+extern void touch_file(const char *name);
extern void copy_path(vtw_path *to, vtw_path *from);
extern void free_path(vtw_path *path);