Lines Matching defs:def
190 int ask_yn(e2fsck_t ctx, const char * string, int def)
212 if (def == 1)
214 else if (def == 0)
245 def = 1;
250 def = 0;
254 def = 2;
258 } else if ((c == 27 || c == ' ' || c == '\n') && (def != -1)) {
263 if (def == 2)
265 else if (def)
272 return def;
275 int ask (e2fsck_t ctx, const char * string, int def)
286 log_out(ctx, "%s? %s\n\n", string, def ? _("yes") : _("no"));
287 return def;
289 return ask_yn(ctx, string, def);