diff options
author | Geoff Levand <geoffrey.levand@am.sony.com> | 2009-04-12 15:11:48 +0000 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2009-06-30 15:29:15 +0800 |
commit | b3e1a66f23b7338d88e0668b8cf10ffe139a9a03 (patch) | |
tree | 66d897b15282e574e9823c45dedf92a257fd1636 /lib/system/system.h | |
parent | dc13479d33efc6cf4b55bfd7b4875c44e4a9bbd0 (diff) | |
download | talos-petitboot-b3e1a66f23b7338d88e0668b8cf10ffe139a9a03.tar.gz talos-petitboot-b3e1a66f23b7338d88e0668b8cf10ffe139a9a03.zip |
Move common system routines to lib
Move some of the common system operations to lib system routines.
Creates these common routines:
pb_mkdir_recursive()
pb_rmdir_recursive()
pb_run_cmd()
Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/system/system.h')
-rw-r--r-- | lib/system/system.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/lib/system/system.h b/lib/system/system.h new file mode 100644 index 0000000..47c7c02 --- /dev/null +++ b/lib/system/system.h @@ -0,0 +1,20 @@ +#if !defined(_PB_LIB_SYSTEM_H) +#define _PB_LIB_SYSTEM_H + +struct pb_system_apps { + const char *cp; + const char *kexec; + const char *mount; + const char *sftp; + const char *tftp; + const char *umount; + const char *wget; +}; + +extern const struct pb_system_apps pb_system_apps; + +int pb_run_cmd(const char *const *cmd_argv); +int pb_mkdir_recursive(const char *dir); +int pb_rmdir_recursive(const char *base, const char *dir); + +#endif |