Lines Matching refs:commands
87 static Doname distribute_process(char **commands, Property line);
94 static pid_t run_rule_commands(char *host, char **commands);
116 char *commands[MAXRULES + 5]; in execute_parallel() local
172 p = commands; in execute_parallel()
230 Doname res = distribute_process(commands, line); in execute_parallel()
239 for (int i = 0; commands[i] != NULL; i++) { in execute_parallel()
240 if ((commands[i][0] == (int) at_char) || in execute_parallel()
241 (commands[i][0] == (int) hyphen_char)) { in execute_parallel()
242 retmem_mb(commands[i]); in execute_parallel()
550 distribute_process(char **commands, Property line) in distribute_process() argument
620 while (commands[tmp_index] != NULL) { in distribute_process()
623 if ((commands[tmp_index][0] != (int) at_char) && in distribute_process()
624 (commands[tmp_index][1] != (int) at_char)) { in distribute_process()
625 tmp_index_str_ptr = commands[tmp_index]; in distribute_process()
659 process_running = run_rule_commands(local_host, commands); in distribute_process()
1761 run_rule_commands(char *host, char **commands) in run_rule_commands() argument
1785 for (commands = commands; in run_rule_commands()
1786 (*commands != (char *)NULL); in run_rule_commands()
1787 commands++) { in run_rule_commands()
1791 while ((**commands == (int) at_char) || in run_rule_commands()
1792 (**commands == (int) hyphen_char) || in run_rule_commands()
1793 (**commands == (int) plus_char)) { in run_rule_commands()
1794 if (**commands == (int) at_char) { in run_rule_commands()
1797 if (**commands == (int) hyphen_char) { in run_rule_commands()
1800 if (**commands == (int) plus_char) { in run_rule_commands()
1803 (*commands)++; in run_rule_commands()
1805 if ((length = strlen(*commands)) >= MAXPATHLEN) { in run_rule_commands()
1807 (void) mbstowcs(tmp_wcs_buffer, *commands, length + 1); in run_rule_commands()
1811 MBSTOWCS(wcs_buffer, *commands); in run_rule_commands()