Lines Matching defs:mode
248 start_mode_t mode)
313 if (!first || mode == NEVER)
338 switch (mode) {
361 server->onetime |= (mode == RUN_ONCE);
366 if (mode == FLUSH_LOG)
395 pkgparsemode(const char *mode)
397 if (strcasecmp(mode, MODE_PERMANENT) == 0) {
399 } else if (strncasecmp(mode, MODE_TIMEOUT,
401 const char *pidstr = mode + sizeof (MODE_TIMEOUT) - 1;
409 } else if (strcasecmp(mode, MODE_RUN_ONCE) == 0) {
412 progerr(gettext("invalid pkgserver mode: %s"), mode);
419 pkgmodeargument(start_mode_t mode)
423 switch (mode) {
435 progerr(gettext("Bad pkgserv mode: %d"), (int)mode);
441 pkgserversetmode(start_mode_t mode)
443 if (mode == DEFAULTMODE || mode == INVALID) {
451 defmode = mode;