summaryrefslogtreecommitdiffstats
path: root/lib/system/system.h
blob: f8f18a3cdbe0e8cbee8e5b12b7819b988e9617e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#if !defined(_PB_LIB_SYSTEM_H)
#define _PB_LIB_SYSTEM_H

struct pb_system_apps {
	const char *prefix;
	const char *cp;
	const char *kexec;
	const char *mount;
	const char *shutdown;
	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 wait, int dry_run);
int pb_mkdir_recursive(const char *dir);
int pb_rmdir_recursive(const char *base, const char *dir);

#endif
OpenPOWER on IntegriCloud