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];
172 p = commands;
230 Doname res = distribute_process(commands, line);
237 * for part of commands.
239 for (int i = 0; commands[i] != NULL; i++) {
240 if ((commands[i][0] == (int) at_char) ||
241 (commands[i][0] == (int) hyphen_char)) {
242 retmem_mb(commands[i]);
537 * distribute_process(char **commands, Property line)
540 * commands argv vector of commands to execute
550 distribute_process(char **commands, Property line)
620 while (commands[tmp_index] != NULL) {
623 if ((commands[tmp_index][0] != (int) at_char) &&
624 (commands[tmp_index][1] != (int) at_char)) {
625 tmp_index_str_ptr = commands[tmp_index];
659 process_running = run_rule_commands(local_host, commands);
768 * commands_done True if commands executed
1761 run_rule_commands(char *host, char **commands)
1785 for (commands = commands;
1786 (*commands != (char *)NULL);
1787 commands++) {
1791 while ((**commands == (int) at_char) ||
1792 (**commands == (int) hyphen_char) ||
1793 (**commands == (int) plus_char)) {
1794 if (**commands == (int) at_char) {
1797 if (**commands == (int) hyphen_char) {
1800 if (**commands == (int) plus_char) {
1803 (*commands)++;
1805 if ((length = strlen(*commands)) >= MAXPATHLEN) {
1807 (void) mbstowcs(tmp_wcs_buffer, *commands, length + 1);
1811 MBSTOWCS(wcs_buffer, *commands);