aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_mingw.h
blob: b7c53e0363447d843db294c98d51999b889b4f69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
struct forkshell {
	const char *fp;
	union node *n;
	int flags;
	struct child_process cmd;
	int fd;
};

static int forkshell_init(struct forkshell *fs);
static void forkshell_transfer(struct forkshell *fs);
static void forkshell_transfer_done(struct forkshell *fs);
static void forkshell_cleanup(struct forkshell *fs);
static int forkshell(const char *fp, union node *n, int flags);
static void subshell_run();
struct strlist;
static int set_exitstatus(int retval, const char **argv, int *out);
static int shellspawn(const char **argv, const char *path, int idx, struct strlist *varlist);

static int subash_fd = -1;
static char subash_entry[16];