-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathparameter.h
More file actions
62 lines (50 loc) · 1.72 KB
/
parameter.h
File metadata and controls
62 lines (50 loc) · 1.72 KB
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
* DSH / dancer's shell or the distributed shell
* Copyright (C) 2001, 2002 Junichi Uekawa
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
void* malloc_with_error(int size);
int load_configfile(const char* dsh_conf);
int parse_options(int ac, char** av);
/** the command-line for remote shell */
extern char* remoteshell_command;
/** verbosity flag */
extern int verbose_flag;
/** waiting for shell to execute (concurrence) */
extern int wait_shell;
/**
bit-mask of pipe options.
pipe_option & 1 = show machine names.
pipe_option & 2 = duplicate input.
*/
extern int pipe_option;
/** number of topology to use as a block to execute rsh.
1 = for-loop
2 = binary-tree
4 = quad-tree.
*/
extern int num_topology;
/** reverse-ordered list of rsh options. */
extern linkedlist* remoteshell_command_opt_r;
/** buffer size for running the input process. */
extern int buffer_size;
/**
The limit to fork.
*/
extern int forklimit;
void open_devnull(void);
/* function defined in dsh.c */
int do_shell(linkedlist* machinelist, linkedlist*);