Zbigniew Jędrzejewski-Szmek
1ae9b0cfa8
basic/glyph-util: rename "special glyph" to just "glyph"
...
Admittedly, some of our glyphs _are_ special, e.g. "O=" for SPECIAL_GLYPH_TOUCH ;)
But we don't need this in the name. The very long names make some invocations
very wordy, e.g. special_glyph(SPECIAL_GLYPH_SLIGHTLY_UNHAPPY_SMILEY).
Also, I want to add GLYPH_SPACE, which is not special at all.
2025-03-15 14:40:39 +01:00
Zbigniew Jędrzejewski-Szmek
809c3a84e1
Introduce RET_GATHER and use it in src/shared/
...
The idea is to make it easier to implement the common pattern of
accumulating errors (negative values) in an accumulator to return
the first error.
2023-07-13 11:12:00 +02:00
Daan De Meyer
a1af83728f
device-util: Declare iterator variables inline
2023-07-12 20:05:18 +02:00
Zbigniew Jędrzejewski-Szmek
3ae6b3bf72
basic: rename util.h to logarithm.h
...
util.h is now about logarithms only, so we can rename it. Many files included
util.h for no apparent reason… Those includes are dropped.
2022-11-08 18:21:10 +01:00
David Tardon
e2341b6bc3
tree-wide: allow ASCII fallback for → in logs
2022-06-28 12:50:43 +02:00
Yu Watanabe
c07eb49aff
devnode-acl: use set_put_strdup_full() and set_ensure_consume()
2022-06-10 10:47:25 +09:00
Yu Watanabe
e992fd18a8
login: shorten code a bit
...
The symlinks under /run/udev/static_node-tags are pointing to the
corresponding device nodes. Let's read the symlinks.
2022-04-06 19:38:27 +09:00
David Tardon
203ea2c8f1
devnode-acl: use _cleanup_ to free acl_t
2022-03-04 11:51:48 +01:00
Zbigniew Jędrzejewski-Szmek
af3b864d76
Define FOREACH_DIRENT through FOREACH_DIRENT_ALL
...
As in the previous commit, 'de' is used as the iterator variable name.
2021-12-15 22:50:00 +01:00
Zbigniew Jędrzejewski-Szmek
e437538f35
tree-wide: make cunescape*() functions return ssize_t
...
Strictly speaking, we are returning the size of a memory chunk of
arbitrary size, so ssize_t is more appropriate than int.
2021-07-09 15:07:40 +02:00
Yu Watanabe
0f46548deb
login: move src/login/logind-acl.[ch] -> src/shared/devnode-acl.[ch]
...
The files are used by logind and udevd. And the functions in the files
are not specific to logind, and quite general enough to move to
libshared.
2021-01-19 07:04:19 +09:00