Systemd/src/basic
Daniel Mack d5b26d50fc macro.h: provide a switch-case statement generator for IN_SET
Rather than walking a list of valid values one-by-one, generate a
switch-case statement for the IN_SET() macro. This allows the compiler to
further optimize its code output, possibly by generating jump tables.
This effectively decreases the binary size slightly.

The implementation is based on macro overloading depending on the number of
arguments. h/t to the following post:

  https://stackoverflow.com/questions/11761703/overloading-macro-on-number-of-arguments
2016-01-11 12:02:36 +01:00
..
linux build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
.gitignore build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
Makefile build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
MurmurHash2.c build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
MurmurHash2.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
af-list.c basic: include only what we use 2015-11-30 21:51:03 +01:00
af-list.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
alloc-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
alloc-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
arphrd-list.c basic: include only what we use 2015-11-30 21:51:03 +01:00
arphrd-list.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
async.c basic: include only what we use 2015-11-30 21:51:03 +01:00
async.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
audit-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
audit-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
barrier.c basic: include only what we use 2015-11-30 21:51:03 +01:00
barrier.h basic: include only what we use 2015-11-30 21:51:03 +01:00
bitmap.c bitmap: don't do bitwise XOR on booleans 2015-12-26 19:09:10 +01:00
bitmap.h basic: include only what we use 2015-11-30 21:51:03 +01:00
blkid-util.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
btrfs-ctree.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
btrfs-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
btrfs-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
build.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
bus-label.c basic: include only what we use 2015-11-30 21:51:03 +01:00
bus-label.h basic: include only what we use 2015-11-30 21:51:03 +01:00
c-rbtree.c basic: add RB-Tree implementation 2015-12-07 18:34:05 +01:00
c-rbtree.h basic: add RB-Tree implementation 2015-12-07 18:34:05 +01:00
calendarspec.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
calendarspec.h basic: include only what we use 2015-11-30 21:51:03 +01:00
cap-list.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
cap-list.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
capability-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
capability-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
cgroup-util.c tests: turn check if manager cannot be intialized into macro 2015-12-02 09:50:00 -05:00
cgroup-util.h basic: re-sort includes 2015-12-01 23:40:17 +01:00
chattr-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
chattr-util.h util-lib: split out file attribute calls to chattr-util.[ch] 2015-10-27 13:25:56 +01:00
clock-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
clock-util.h util-lib: split out fd-related operations into fd-util.[ch] 2015-10-25 13:19:18 +01:00
conf-files.c basic: modernize conf-files.c a bit 2016-01-02 22:16:16 +01:00
conf-files.h nspawn: add new .nspawn files for container settings 2015-09-06 01:49:06 +02:00
copy.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
copy.h basic: include only what we use 2015-11-30 21:51:03 +01:00
cpu-set-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
cpu-set-util.h basic: split out cpu set specific APIs into cpu-set-util.[ch] 2015-09-30 22:26:16 +02:00
def.h defs: rework CONF_DIRS_NULSTR() macro 2015-11-10 17:31:31 +01:00
device-nodes.c basic: include only what we use 2015-11-30 21:51:03 +01:00
device-nodes.h basic: include only what we use 2015-11-30 21:51:03 +01:00
dirent-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
dirent-util.h basic: re-sort includes 2015-12-01 23:40:17 +01:00
env-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
env-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
errno-list.c basic: include only what we use 2015-11-30 21:51:03 +01:00
errno-list.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
escape.c basic: include only what we use 2015-11-30 21:51:03 +01:00
escape.h basic: include only what we use 2015-11-30 21:51:03 +01:00
ether-addr-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
ether-addr-util.h util-lib: move ether_addr_to_string() into ether-addr-util.c 2015-10-26 01:24:39 +01:00
exit-status.c tree-wide: sort includes 2015-11-16 22:09:36 +01:00
exit-status.h basic: re-sort includes 2015-12-01 23:40:17 +01:00
extract-word.c basic: include only what we use 2015-11-30 21:51:03 +01:00
extract-word.h core: fix dependency parsing 2015-11-11 22:53:05 +01:00
fd-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
fd-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
fdset.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
fdset.h basic: re-sort includes 2015-12-01 23:40:17 +01:00
fileio-label.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
fileio-label.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
fileio.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
fileio.h util-lib: optionally, when writing a string to a file, verify string on failure 2015-11-13 13:02:49 +01:00
formats-util.h util-lib: move formats-util.h from shared/ to basic/ 2015-10-25 13:19:18 +01:00
fs-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
fs-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
glob-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
glob-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
gunicode.c basic: include only what we use 2015-11-30 21:51:03 +01:00
gunicode.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
hashmap.c basic: ENABLE_DEBUG_HASHMAP needs <pthread.h> 2015-12-15 07:10:50 +00:00
hashmap.h basic: include only what we use 2015-11-30 21:51:03 +01:00
hexdecoct.c basic: include only what we use 2015-11-30 21:51:03 +01:00
hexdecoct.h basic: include only what we use 2015-11-30 21:51:03 +01:00
hostname-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
hostname-util.h util: make machine_name_is_valid() a macro and move it to hostname-util.h 2015-08-24 22:46:45 +02:00
in-addr-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
in-addr-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
io-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
io-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
ioprio.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
json.c basic: include only what we use 2015-11-30 21:51:03 +01:00
json.h basic: include only what we use 2015-11-30 21:51:03 +01:00
label.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
label.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
list.h basic: add LIST_INSERT_BEFORE 2015-08-04 03:23:43 -07:00
locale-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
locale-util.h util-lib: move more locale-related calls to locale-util.[ch] 2015-10-27 13:25:56 +01:00
lockfile-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
lockfile-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
log.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
log.h util-lib: split our string related calls from util.[ch] into its own file string-util.[ch] 2015-10-24 23:05:02 +02:00
login-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
login-util.h util: move logind_running() to login-util.[ch] 2015-10-24 23:30:40 +02:00
macro.h macro.h: provide a switch-case statement generator for IN_SET 2016-01-11 12:02:36 +01:00
memfd-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
memfd-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
mempool.c basic: include only what we use 2015-11-30 21:51:03 +01:00
mempool.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
missing.h core: socket options fix SCTP_NODELAY 2015-12-31 12:05:57 +05:30
mkdir-label.c basic: include only what we use 2015-11-30 21:51:03 +01:00
mkdir.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
mkdir.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
mount-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
mount-util.h basic: re-sort includes 2015-12-01 23:40:17 +01:00
nss-util.h util-lib: move nss-util.h from shared/ to basic/ 2015-11-27 19:23:29 +01:00
ordered-set.h util-lib: add ordered_set_ensure_allocated() 2015-11-25 21:58:38 +01:00
parse-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
parse-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
path-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
path-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
prioq.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
prioq.h basic: include only what we use 2015-11-30 21:51:03 +01:00
proc-cmdline.c basic: include only what we use 2015-11-30 21:51:03 +01:00
proc-cmdline.h proc-cmdline: add runlevel to target mapping 2015-11-03 14:09:03 +03:00
process-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
process-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
random-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
random-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
ratelimit.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
ratelimit.h basic: include only what we use 2015-11-30 21:51:03 +01:00
refcnt.h basic: document that people shouldn't use refcnt.h without reason 2015-08-26 21:04:38 +02:00
replace-var.c basic: include only what we use 2015-11-30 21:51:03 +01:00
replace-var.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
rlimit-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
rlimit-util.h util-lib: split out resource limits related calls into rlimit-util.[ch] 2015-10-27 13:25:56 +01:00
rm-rf.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
rm-rf.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
securebits.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
selinux-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
selinux-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
set.h util-lib: add ordered_set_ensure_allocated() 2015-11-25 21:58:38 +01:00
sigbus.c basic: include only what we use 2015-11-30 21:51:03 +01:00
sigbus.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
signal-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
signal-util.h util-lib: split string parsing related calls from util.[ch] into parse-util.[ch] 2015-10-27 13:25:55 +01:00
siphash24.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
siphash24.h basic: include only what we use 2015-11-30 21:51:03 +01:00
smack-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
smack-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
socket-label.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
socket-util.c Use /proc/net/sockstat6 to detect IPv6 support 2015-12-10 13:47:19 +01:00
socket-util.h journal: unbreak sd_journal_sendv 2015-12-03 09:14:01 -05:00
sparse-endian.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
special.h core: unified cgroup hierarchy support 2015-09-01 23:52:27 +02:00
stat-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
stat-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
stdio-util.h util-lib: split out printf() helpers to stdio-util.h 2015-10-27 13:25:57 +01:00
strbuf.c basic: include only what we use 2015-11-30 21:51:03 +01:00
strbuf.h basic: include only what we use 2015-11-30 21:51:03 +01:00
string-table.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
string-table.h basic: add string table macros for "extended boolean" enums 2016-01-05 17:30:43 +01:00
string-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
string-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
strv.c basic: include only what we use 2015-11-30 21:51:03 +01:00
strv.h basic: re-sort includes 2015-12-01 23:40:17 +01:00
strxcpyx.c basic: include only what we use 2015-11-30 21:51:03 +01:00
strxcpyx.h basic: include only what we use 2015-11-30 21:51:03 +01:00
syslog-util.c basic: include only what we use 2015-11-30 21:51:03 +01:00
syslog-util.h util-lib: split out syslog-related calls into syslog-util.[ch] 2015-10-27 13:25:57 +01:00
terminal-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
terminal-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
time-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
time-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
umask-util.h util-lib: split out umask-related code to umask-util.h 2015-10-27 13:25:56 +01:00
unaligned.h basic: add unaligned macros for little endian 2015-11-16 15:13:33 +01:00
unit-name.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
unit-name.h core: remove support for RequiresOverridable= and RequisiteOverridable= 2015-11-12 19:27:24 +01:00
user-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
user-util.h tree-wide: sort includes in *.h 2015-11-18 23:09:02 +01:00
utf8.c basic: include only what we use 2015-11-30 21:51:03 +01:00
utf8.h basic: include only what we use 2015-11-30 21:51:03 +01:00
util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
verbs.c basic: include only what we use 2015-11-30 21:51:03 +01:00
verbs.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00
virt.c basic/virt: add missing includes to compile on ppc64 2015-12-01 22:56:06 -05:00
virt.h detect-virt: add rkt app container runtime 2015-11-09 16:40:35 +01:00
web-util.c util-lib: move web-related calls into web-util.[ch] 2015-10-27 13:25:57 +01:00
web-util.h util-lib: move web-related calls into web-util.[ch] 2015-10-27 13:25:57 +01:00
xattr-util.c basic: re-sort includes 2015-12-01 23:40:17 +01:00
xattr-util.h basic: include only what we use 2015-11-30 21:51:03 +01:00
xml.c basic: include only what we use 2015-11-30 21:51:03 +01:00
xml.h build-sys: split internal basic/ library from shared/ 2015-06-11 10:52:46 +02:00