Advertisement
teknoraver

systemd emoji

Mar 4th, 2024
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.46 KB | None | 0 0
  1. teknoraver@fedorarm:~/src/systemd$ git --no-pager grep --no-color $(echo -ne '\xf0\x9f') -- '*.[ch]'
  2. src/basic/fs-util.c: * Deallocation is preferably done by FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE (๐Ÿ‘Š) if supported, which means
  3. src/basic/fs-util.c: * truncation (๐Ÿ”ช), as our goal of deallocating the data space trumps our goal of being nice to readers (๐Ÿ’).
  4. src/basic/fs-util.c: return 0; /* Successfully punched a hole! ๐Ÿ˜Š */
  5. src/basic/glyph-util.c: [SPECIAL_GLYPH_EXTERNAL_LINK] = u8"[๐Ÿก•]", /* actually called: NORTH EAST SANS-SERIF ARROW, enclosed in [] */
  6. src/basic/glyph-util.c: [SPECIAL_GLYPH_ECSTATIC_SMILEY] = u8"๐Ÿ˜‡", /* actually called: SMILING FACE WITH HALO */
  7. src/basic/glyph-util.c: [SPECIAL_GLYPH_HAPPY_SMILEY] = u8"๐Ÿ˜€", /* actually called: GRINNING FACE */
  8. src/basic/glyph-util.c: [SPECIAL_GLYPH_SLIGHTLY_HAPPY_SMILEY] = u8"๐Ÿ™‚", /* actually called: SLIGHTLY SMILING FACE */
  9. src/basic/glyph-util.c: [SPECIAL_GLYPH_NEUTRAL_SMILEY] = u8"๐Ÿ˜", /* actually called: NEUTRAL FACE */
  10. src/basic/glyph-util.c: [SPECIAL_GLYPH_SLIGHTLY_UNHAPPY_SMILEY] = u8"๐Ÿ™", /* actually called: SLIGHTLY FROWNING FACE */
  11. src/basic/glyph-util.c: [SPECIAL_GLYPH_UNHAPPY_SMILEY] = u8"๐Ÿ˜จ", /* actually called: FEARFUL FACE */
  12. src/basic/glyph-util.c: [SPECIAL_GLYPH_DEPRESSED_SMILEY] = u8"๐Ÿคข", /* actually called: NAUSEATED FACE */
  13. src/basic/glyph-util.c: [SPECIAL_GLYPH_LOCK_AND_KEY] = u8"๐Ÿ”", /* actually called: CLOSED LOCK WITH KEY */
  14. src/basic/glyph-util.c: [SPECIAL_GLYPH_TOUCH] = u8"๐Ÿ‘†", /* actually called: BACKHAND INDEX POINTING UP */
  15. src/basic/glyph-util.c: [SPECIAL_GLYPH_LOW_BATTERY] = u8"๐Ÿชซ",
  16. src/basic/glyph-util.c: [SPECIAL_GLYPH_COMPUTER_DISK] = u8"๐Ÿ’ฝ",
  17. src/basic/glyph-util.c: [SPECIAL_GLYPH_WORLD] = u8"๐ŸŒ",
  18. src/basic/glyph-util.c: [SPECIAL_GLYPH_RED_CIRCLE] = u8"๐Ÿ”ด",
  19. src/basic/glyph-util.c: [SPECIAL_GLYPH_YELLOW_CIRCLE] = u8"๐ŸŸก",
  20. src/basic/glyph-util.c: [SPECIAL_GLYPH_BLUE_CIRCLE] = u8"๐Ÿ”ต",
  21. src/basic/glyph-util.c: [SPECIAL_GLYPH_GREEN_CIRCLE] = u8"๐ŸŸข",
  22. src/basic/log.c: "%s at %s:%u, function %s(). Aborting. ๐Ÿ’ฅ");
  23. src/basic/mountpoint-util.c: r = name_to_handle_at_loop(fd, "..", &h_parent, &mount_id_parent, 0); /* can't work for non-directories ๐Ÿ˜ข */
  24. src/basic/mountpoint-util.c: r = fd_fdinfo_mnt_id(fd, "..", 0, &mount_id_parent); /* can't work for non-directories ๐Ÿ˜ข */
  25. src/basic/mountpoint-util.c: * maintain the curated list below. ๐Ÿ˜ข */
  26. src/basic/process-util.h:/* ๐Ÿ’ฃ Note that FORK_NEW_USERNS, FORK_NEW_MOUNTNS, or FORK_NEW_NETNS should not be called in threaded
  27. src/basic/process-util.h: * or the child uses malloc(). ๐Ÿ’ฃ */
  28. src/basic/process-util.h: FORK_NEW_MOUNTNS = 1 << 9, /* Run child in its own mount namespace ๐Ÿ’ฃ DO NOT USE IN THREADED PROGRAMS! ๐Ÿ’ฃ */
  29. src/basic/process-util.h: FORK_NEW_USERNS = 1 << 15, /* Run child in its own user namespace ๐Ÿ’ฃ DO NOT USE IN THREADED PROGRAMS! ๐Ÿ’ฃ */
  30. src/basic/process-util.h: FORK_NEW_NETNS = 1 << 19, /* Run child in its own network namespace ๐Ÿ’ฃ DO NOT USE IN THREADED PROGRAMS! ๐Ÿ’ฃ */
  31. src/basic/raw-clone.h: * WARNING: ๐Ÿ’ฃ this call (just like glibc's own clone() wrapper) will not synchronize on glibc's malloc
  32. src/basic/raw-clone.h: * allocation itself. This is a major pitfall, hence be careful! ๐Ÿ’ฃ
  33. src/basic/socket-util.c: return (int) (offsetof(struct sockaddr_un, sun_path) + l); /* ๐Ÿ”ฅ *don't* ๐Ÿ”ฅ include trailing NUL in size */
  34. src/boot/efi/test-efi-string.c: assert_se(s = xstr8_to_16("รฟโฑฟ๐‡‰ ๐Ÿ˜บ"));
  35. src/cgtop/cgtop.c: * There's one extra complication in all of this, though ๐Ÿ˜ฃ: if the path to the cgroup indicates we are in the
  36. src/core/crash-handler.c: /* NB: ๐Ÿ’ฃ ๐Ÿ’ฃ ๐Ÿ’ฃ This is a signal handler, most likely executed in a situation where we have corrupted
  37. src/core/dbus-service.c: SD_BUS_PROPERTY("PermissionsStartOnly", "b", bus_property_get_bool, offsetof(Service, permissions_start_only), SD_BUS_VTABLE_PROPERTY_CONST|SD_BUS_VTABLE_HIDDEN), /* ๐Ÿ˜ท deprecated */
  38. src/core/exec-invoke.c: * is absolutely ๐Ÿ’ฃ crucial ๐Ÿ’ฃ we applied all mount namespacing rearrangements before this, so that
  39. src/core/main.c: * works. Ugly? Yes, absolutely, but kernel APIs are kernel APIs, so what do can we do... ๐Ÿคฏ */
  40. src/core/manager.c: /* ๐Ÿ’€ This is the point of no return, from here on there is no way back. ๐Ÿ’€ */
  41. src/core/unit.c: [UNIT_JOINS_NAMESPACE_OF] = UNIT_JOINS_NAMESPACE_OF, /* symmetric! ๐Ÿ‘“ */
  42. src/hostname/hostnamectl.c: return u8"๐Ÿ’ป"; /* Personal Computer */
  43. src/hostname/hostnamectl.c: return u8"๐Ÿ–ฅ๏ธ"; /* Desktop Computer */
  44. src/hostname/hostnamectl.c: return u8"๐Ÿ–ณ"; /* Old Personal Computer */
  45. src/hostname/hostnamectl.c: return u8"๐Ÿ•ป"; /* Left Hand Telephone Receiver */
  46. src/hostname/hostnamectl.c: return u8"๐Ÿ–ด"; /* Hard disk */
  47. src/libsystemd/sd-bus/bus-message.c: unsigned n /* should be size_t, but is API nowโ€ฆ ๐Ÿ˜ž */) {
  48. src/libsystemd/sd-bus/bus-message.c: unsigned n /* should be size_t, but is API nowโ€ฆ ๐Ÿ˜ž */) {
  49. src/nspawn/nspawn.c: /* Note, this should be done this late (๐Ÿ’ฃ and not moved earlier! ๐Ÿ’ฃ), so that all namespacing
  50. src/partition/repart.c: return false; /* ๐Ÿ˜ข Oh no! We can't fit this partition into any free area! */
  51. src/pcrlock/pcrlock.c: * protects (i.e. we dogfood ๐ŸŒญ ๐Ÿถ hard here). This means in order to update such a policy we need
  52. src/shared/async.c: /* Note: ๐Ÿ’ฃ This function is invoked in a child process created via glibc's clone() wrapper. In such
  53. src/shared/async.c: * clone() ๐Ÿ’ฃ */
  54. src/shared/json.c: if (p->name) { /* Found a matching entry! ๐Ÿ™‚ */
  55. src/shared/pcre2-util.c: * manually anymore. C is weird. ๐Ÿคฏ */
  56. src/sysext/sysext.c: * turbo safety ๐Ÿ˜Ž */
  57. src/sysv-generator/sysv-generator.c:/* ๐Ÿšจ Note: this generator is deprecated! Please do not add new features! Instead, please port remaining SysV
  58. src/sysv-generator/sysv-generator.c: * scripts over to native unit files! Thank you! ๐Ÿšจ */
  59. src/test/test-ellipsize.c: test_ellipsize_one("๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ๐Ÿฎ");
  60. src/test/test-ellipsize.c: g = ellipsize("๐Ÿฑ๐Ÿฑ" ANSI_NORMAL "๐Ÿฑ๐Ÿฑ" ANSI_NORMAL, 5, 0);
  61. src/test/test-ellipsize.c: assert_se(streq(g, "โ€ฆ" ANSI_NORMAL "๐Ÿฑ๐Ÿฑ" ANSI_NORMAL));
  62. src/test/test-ellipsize.c: h = ellipsize("๐Ÿฑ๐Ÿฑ" ANSI_NORMAL "๐Ÿฑ๐Ÿฑ" ANSI_NORMAL, 5, 90);
  63. src/test/test-ellipsize.c: assert_se(streq(h, "๐Ÿฑโ€ฆ" ANSI_NORMAL "๐Ÿฑ" ANSI_NORMAL));
  64. src/test/test-gunicode.c: for (const char *narrow = "abX_โ€ฆฤ…ฤ™ยต!" "๐Ÿ˜ผ๐Ÿ˜ฟ๐Ÿ™€๐Ÿ˜ธ๐Ÿ˜ป"; *narrow; narrow += r) {
  65. src/test/test-gunicode.c: for (const char *wide = "๐Ÿฑ๏ผ๏ฟฅ"; *wide; wide += r) {
  66. src/test/test-memstream-util.c: fputs(u8"๐Ÿ˜€๐Ÿ˜€๐Ÿ˜€", f);
  67. src/test/test-memstream-util.c: assert_se(streq(buf, u8"hogeใŠใฏใ‚ˆใ†๏ผ๐Ÿ˜€๐Ÿ˜€๐Ÿ˜€"));
  68. src/test/test-memstream-util.c: assert_se(sz == strlen(u8"hogeใŠใฏใ‚ˆใ†๏ผ๐Ÿ˜€๐Ÿ˜€๐Ÿ˜€"));
  69. src/test/test-utf8.c: test_utf8_to_ascii_one("โ€ฆ๐Ÿ‘Š๐Ÿ”ช๐Ÿ’โ€ฆ", 0, "*****");
  70. src/test/test-utf8.c: assert_se(utf8_n_codepoints("โ€ฆ๐Ÿ‘Š๐Ÿ”ช๐Ÿ’โ€ฆ") == 5);
  71. src/test/test-utf8.c: assert_se(utf8_console_width("โ€ฆ๐Ÿ‘Š๐Ÿ”ช๐Ÿ’โ€ฆ") == 8);
  72. src/test/test-utf8.c: "โ€ฆ๐Ÿ‘Š๐Ÿ”ช๐Ÿ’โ€ฆ") {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement