Lines Matching refs:mode
94 static void cmdhelp(int mode, int which);
101 int mode = -1;
158 else if (mode == -1 && (tmp = getindex(Modes, argv[1])) != -1)
159 mode = tmp;
162 else if ((mode == -1 && which == -1) &&
166 mode = tmp % M_NUM;
168 cmdhelp(mode, which);
169 else if (which != -1 && mode != -1)
180 if (mode == -1 || which == -1)
181 cmdhelp(mode, which);
184 * We know which mode we're in and what we're about to do, so now
189 while ((ch = getopt(argc, argv, opts[which][mode])) != -1) {
200 if (geteuid() != 0 && mode != M_PRINT && mode != M_NEXT && getarg(&arglist, 'N')==NULL)
234 ch = funcs[which] (cnf, mode, &arglist);
258 pw_log(cnf, mode, which, "NIS maps updated");
285 cmdhelp(int mode, int which)
289 else if (mode == -1)
294 * We need to give mode specific help
313 "\t-M mode home directory permissions\n"
331 "\t-M mode home directory permissions\n"
359 "\t-M mode home directory permissions\n"
430 fprintf(stderr, "%s", help[which][mode]);