Systemd/src
Lennart Poettering c52a937b46 basic: add a common syscall wrapper around reboot()
This mimics the raw_clone() call we have in place already and
establishes a new syscall wrapper raw_reboot() that wraps the kernel's
reboot() system call in a bit more low-level fashion that glibc's
reboot() wrapper. The main difference is that the extra "arg" argument
is supported.

Ultimately this just replaces the syscall wrapper implementation we
currently have at three places in our codebase by a single one.

With this change this means that all our syscall() invocations are
neatly separated out in static inline system call wrappers in our header
functions.
2018-02-22 10:42:06 +01:00
..
ac-power Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
activate process-util: add another fork_safe() flag for enabling LOG_ERR/LOG_WARN logging 2018-01-04 13:27:26 +01:00
analyze analyze: fix typo in error message 2018-02-13 10:03:09 +01:00
ask-password Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
backlight Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
basic basic: add a common syscall wrapper around reboot() 2018-02-22 10:42:06 +01:00
binfmt Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
boot tree-wide: make use of fsync_directory_of_file() all over the place 2018-02-20 15:39:31 +01:00
busctl Comment the fact that some tools need to termintate their bus connect first 2018-01-12 16:20:36 +01:00
cgls tree-wide: port all code to use safe_getcwd() 2018-01-17 11:17:38 +01:00
cgroups-agent Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
cgtop tree-wide: use path_hash_ops instead of string_hash_ops whenever we key by a path 2018-02-12 11:07:55 +01:00
core basic: add a common syscall wrapper around reboot() 2018-02-22 10:42:06 +01:00
coredump tree-wide: reopen log when we need to log in FORK_CLOSE_ALL_FDS children 2018-02-22 00:35:00 +01:00
cryptsetup log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
debug-generator log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
delta tree-wide: reopen log when we need to log in FORK_CLOSE_ALL_FDS children 2018-02-22 00:35:00 +01:00
detect-virt Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
dissect nspawn: make sure images containing an ESP are compatible with userns -U mode 2017-12-05 13:49:12 +01:00
environment-d-generator Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
escape Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
firstboot tty-ask-password-agent: don't open terminal multiple times 2018-02-14 00:11:16 +01:00
fsck tree-wide: make use of wait_for_terminate_and_check() at various places 2018-01-04 13:27:27 +01:00
fstab-generator log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
fuzz fuzz: cast to void when return value is ignored 2018-01-22 09:58:29 +09:00
getty-generator log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
gpt-auto-generator log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
hibernate-resume log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
hostname meson: drop unnecessary "transformation" of policy files 2018-02-16 13:01:12 +01:00
hwdb Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
import stat-util: unify code that checks whether something is a regular file 2018-02-20 15:39:31 +01:00
initctl log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
journal journalctl: improve hint about lack of access for --user-unit=... 2018-02-20 22:36:01 +01:00
journal-remote Merge pull request #7881 from keszybz/pcre 2018-01-28 15:29:10 +01:00
kernel-install Add license headers and SPDX identifiers to meson.build files 2017-11-19 19:08:15 +01:00
libsystemd tree-wide: make use of fsync_directory_of_file() all over the place 2018-02-20 15:39:31 +01:00
libsystemd-network dhcp6: fix uninitialized variable in returning from client_parse_message() (#8187) 2018-02-15 10:49:55 +01:00
libudev Merge pull request #8134 from keszybz/unit-load-paths 2018-02-09 17:08:23 +01:00
locale meson: drop unnecessary "transformation" of policy files 2018-02-16 13:01:12 +01:00
login tree-wide: reopen log when we need to log in FORK_CLOSE_ALL_FDS children 2018-02-22 00:35:00 +01:00
machine Merge pull request #8202 from keszybz/avoid-msgmerge 2018-02-18 19:56:50 +01:00
machine-id-setup Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
modules-load Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
mount Comment the fact that some tools need to termintate their bus connect first 2018-01-12 16:20:36 +01:00
network tree-wide: use "cannot" instead of "can not" 2018-02-08 10:34:52 +01:00
notify notify: add new --uid= command 2018-01-11 15:12:16 +01:00
nspawn nspawn: remove unnecessary mount option parsing logic 2018-02-21 09:06:55 +09:00
nss-myhostname Add SPDX license headers to various assorted files 2017-11-19 19:08:15 +01:00
nss-mymachines nss-mymachines: add work-around to silence gcc warning 2018-02-06 17:08:42 +09:00
nss-resolve resolve: Adjust and unify D-Bus call timeout (#7847) 2018-01-23 09:53:31 +09:00
nss-systemd nss-systemd: add work-around to silence gcc warning 2018-02-05 15:21:07 +01:00
partition log: minimize includes in log.h 2018-01-11 14:44:31 +01:00
path Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
quotacheck process-spec: add another flag FORK_WAIT to safe_fork() 2018-01-04 13:27:27 +01:00
random-seed Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
rc-local-generator log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
remount-fs process-util: add another fork_safe() flag for enabling LOG_ERR/LOG_WARN logging 2018-01-04 13:27:26 +01:00
reply-password Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
resolve meson: drop unnecessary "transformation" of policy files 2018-02-16 13:01:12 +01:00
rfkill Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
run tree-wide: install matches asynchronously 2018-01-05 13:58:32 +01:00
shared Merge pull request #7908 from yuwata/rfe-7895 2018-02-21 08:57:11 +00:00
sleep Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
socket-proxy Add set/hashmap helpers for non-trivial freeing and use where straighforward 2017-11-28 21:30:30 +01:00
stdio-bridge stdio-bridge: add missing option 2017-12-04 13:11:25 +09:00
sulogin-shell process-util: rework wait_for_terminate_and_warn() to take a flags parameter 2018-01-04 13:27:27 +01:00
sysctl tree-wide: use path_hash_ops instead of string_hash_ops whenever we key by a path 2018-02-12 11:07:55 +01:00
system-update-generator log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
systemctl basic: add a common syscall wrapper around reboot() 2018-02-22 10:42:06 +01:00
systemd Add fd close support to sd_event_source 2018-01-24 17:57:27 +01:00
sysusers tmpfiles: allow admin/runtime overrides to runtime config 2018-02-05 15:04:52 +01:00
sysv-generator log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
test Merge pull request #8235 from keszybz/skip-nobody-test 2018-02-21 12:19:02 +03:00
timedate meson: drop unnecessary "transformation" of policy files 2018-02-16 13:01:12 +01:00
timesync tree-wide: use "cannot" instead of "can not" 2018-02-08 10:34:52 +01:00
tmpfiles Merge pull request #8144 from poettering/journal-inotify-fixes 2018-02-14 13:52:17 +01:00
tty-ask-password-agent tty-ask-password-agent: reenable color for boot-time password prompt 2018-02-14 14:30:30 +01:00
udev Merge pull request #8199 from keszybz/small-things 2018-02-19 16:55:10 +01:00
update-done Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
update-utmp Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00
user-sessions user-sessions: let's simplify our code paths a bit 2018-02-21 23:44:39 +01:00
vconsole process-util: rework wait_for_terminate_and_warn() to take a flags parameter 2018-01-04 13:27:27 +01:00
veritysetup log: remove LOG_TARGET_SAFE pseudo log target 2018-01-24 18:22:56 +01:00
volatile-root Add SPDX license identifiers to source files under the LGPL 2017-11-19 19:08:15 +01:00