Lines Matching defs:command
137 * exists and invoke the appropriate mount command for
398 command_t *command;
403 command = (command_t *)argp;
404 if (sizeof (*command) != arg_size) {
419 fd = open(command->console ? "/dev/console" : "/dev/null",
427 for (i = 0; *command->argv[i]; i++) {
428 newargv[i] = strdup(command->argv[i]);
431 " of %s: %m", command->argv[i],
432 command->file);
438 (void) execv(command->file, newargv);
440 syslog(LOG_ERR, "exec %s: %m", command->file);
473 command->file, strerror(errno));
562 * filesystem specific unmount command not found
662 command_t command;
671 bzero(&command, sizeof (command));
672 /* build the full path name of the fstype dependent command */
680 strlcpy(command.file, path, MAXPATHLEN);
681 strlcpy(command.argv[0], path, MAXOPTSLEN);
683 strlcpy(command.argv[i-1], newargv[i], MAXOPTSLEN);
686 trace_prt(1, " call_fork_exec: %s ", command.file);
687 for (i = 0; *command.argv[i]; i++)
688 trace_prt(0, "%s ", command.argv[i]);
692 command.console = console;
694 darg.data_ptr = (char *)&command;
695 darg.data_size = sizeof (command);