summaryrefslogtreecommitdiffstats
path: root/lib/system/system.h
blob: a7a1a120c3142756bd05b644b509a446890b707e (plain)
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
#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;
	const char *ip;
	const char *udhcpc;
};

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_run_cmd_pipe(const char *const *cmd_argv, int wait, int dry_run,
		void *ctx, char **buf, int *buf_len);
int pb_mkdir_recursive(const char *dir);
int pb_rmdir_recursive(const char *base, const char *dir);

#endif
OpenPOWER on IntegriCloud