Lines Matching refs:list
240 return log_error_errno(r, "Failed to read list of locales: %m");
389 _cleanup_strv_free_ char **list = NULL;
407 return log_error_errno(errno, "Failed to open keyboard mapping list. %m");
409 if (streq(args[0], "list-x11-keymap-models"))
411 else if (streq(args[0], "list-x11-keymap-layouts"))
413 else if (streq(args[0], "list-x11-keymap-variants"))
415 else if (streq(args[0], "list-x11-keymap-options"))
469 r = strv_extend(&list, l);
474 if (strv_isempty(list)) {
479 strv_sort(list);
480 strv_uniq(list);
484 strv_print(list);
501 " list-locales Show known locales\n"
503 " list-keymaps Show known virtual console keyboard mappings\n"
506 " list-x11-keymap-models Show known X11 keyboard mapping models\n"
507 " list-x11-keymap-layouts Show known X11 keyboard mapping layouts\n"
508 " list-x11-keymap-variants [LAYOUT]\n"
510 " list-x11-keymap-options Show known X11 keyboard mapping options\n"
596 { "list-locales", EQUAL, 1, list_locales },
598 { "list-keymaps", EQUAL, 1, list_vconsole_keymaps },
600 { "list-x11-keymap-models", EQUAL, 1, list_x11_keymaps },
601 { "list-x11-keymap-layouts", EQUAL, 1, list_x11_keymaps },
602 { "list-x11-keymap-variants", LESS, 2, list_x11_keymaps },
603 { "list-x11-keymap-options", EQUAL, 1, list_x11_keymaps },