along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <sys/socket.h>
+
#include "string-util.h"
const char *af_to_name(int id);
#include "fileio.h"
#include "macro.h"
#include "parse-util.h"
+#include "process-util.h"
#include "string-util.h"
#include "time-util.h"
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <string.h>
#include "errno-list.h"
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <net/ethernet.h>
#include <stdio.h>
#include <sys/types.h>
#include "mkdir.h"
#include "parse-util.h"
#include "path-util.h"
+#include "process-util.h"
#include "stat-util.h"
#include "stdio-util.h"
#include "string-util.h"
* Copyright 2000, 2005 Red Hat, Inc.
*/
-#include <stdlib.h>
-
#include "gunicode.h"
#define unichar uint32_t
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <string.h>
+
#include "hash-funcs.h"
void string_hash_func(const void *p, struct siphash *state) {
***/
#include <stdbool.h>
+#include <stdio.h>
#include "macro.h"
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <unistd.h>
#include "alloc-util.h"
log_full(level,
"Received SIG%s.",
signal_to_string(si->ssi_signo));
-
}
int log_syntax_internal(
void log_set_open_when_needed(bool b) {
open_when_needed = b;
}
+
+int log_emergency_level(void) {
+ /* Returns the log level to use for log_emergency() logging. We use LOG_EMERG only when we are PID 1, as only
+ * then the system of the whole system is obviously affected. */
+
+ return getpid_cached() == 1 ? LOG_EMERG : LOG_ERR;
+}
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <errno.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
-#include <sys/signalfd.h>
-#include <sys/socket.h>
#include <syslog.h>
-#include "sd-id128.h"
-
#include "macro.h"
-#include "process-util.h"
+
+/* Some structures we reference but don't want to pull in headers for */
+struct iovec;
+struct signalfd_siginfo;
typedef enum LogRealm {
LOG_REALM_SYSTEMD,
const char *file,
int line,
const char *func,
- const struct iovec input_iovec[],
+ const struct iovec *input_iovec,
size_t n_input_iovec);
/* This modifies the buffer passed! */
#define log_full(level, ...) log_full_errno((level), 0, __VA_ARGS__)
+int log_emergency_level(void);
+
/* Normal logging */
#define log_debug(...) log_full(LOG_DEBUG, __VA_ARGS__)
#define log_info(...) log_full(LOG_INFO, __VA_ARGS__)
#define log_notice(...) log_full(LOG_NOTICE, __VA_ARGS__)
#define log_warning(...) log_full(LOG_WARNING, __VA_ARGS__)
#define log_error(...) log_full(LOG_ERR, __VA_ARGS__)
-#define log_emergency(...) log_full(getpid_cached() == 1 ? LOG_EMERG : LOG_ERR, __VA_ARGS__)
+#define log_emergency(...) log_full(log_emergency_level(), __VA_ARGS__)
/* Logging triggered by an errno-like error */
#define log_debug_errno(error, ...) log_full_errno(LOG_DEBUG, error, __VA_ARGS__)
#define log_notice_errno(error, ...) log_full_errno(LOG_NOTICE, error, __VA_ARGS__)
#define log_warning_errno(error, ...) log_full_errno(LOG_WARNING, error, __VA_ARGS__)
#define log_error_errno(error, ...) log_full_errno(LOG_ERR, error, __VA_ARGS__)
-#define log_emergency_errno(error, ...) log_full_errno(getpid_cached() == 1 ? LOG_EMERG : LOG_ERR, error, __VA_ARGS__)
+#define log_emergency_errno(error, ...) log_full_errno(log_emergency_level(), error, __VA_ARGS__)
#ifdef LOG_TRACE
# define log_trace(...) log_debug(__VA_ARGS__)
***/
#include <alloca.h>
+#include <errno.h>
#include <sched.h>
#include <signal.h>
#include <stdbool.h>
#include <elf.h>
#include <errno.h>
#include <fcntl.h>
+#include <linux/random.h>
#include <stdbool.h>
+#include <stdint.h>
#include <stdlib.h>
+#include <string.h>
#include <sys/time.h>
-#include <linux/random.h>
-#include <stdint.h>
#if HAVE_SYS_AUXV_H
# include <sys/auxv.h>
***/
#include <errno.h>
+#include <stdio.h>
#include "alloc-util.h"
#include "extract-word.h"
#include "missing.h"
#include "parse-util.h"
#include "path-util.h"
+#include "process-util.h"
#include "socket-util.h"
#include "string-table.h"
#include "string-util.h"
#include <dirent.h>
#include <errno.h>
#include <fcntl.h>
-#include <sys/stat.h>
-#include <sys/types.h>
#include <linux/magic.h>
+#include <sched.h>
+#include <sys/stat.h>
#include <sys/statvfs.h>
+#include <sys/types.h>
#include <unistd.h>
#include "dirent-util.h"
#include "macro.h"
#include "parse-util.h"
#include "path-util.h"
+#include "process-util.h"
#include "string-util.h"
#include "strv.h"
#include "time-util.h"
#include <getopt.h>
#include <stdbool.h>
#include <stddef.h>
+#include <string.h>
#include "env-util.h"
#include "log.h"
#include "macro.h"
+#include "process-util.h"
#include "string-util.h"
#include "verbs.h"
#include "virt.h"
#include <sys/statfs.h>
#include <unistd.h>
+#include "sd-id128.h"
+
#include "alloc-util.h"
#include "blkid-util.h"
#include "bootspec.h"
#include "log.h"
#include "missing.h"
#include "mkdir.h"
+#include "process-util.h"
#include "selinux-access.h"
#include "special.h"
#include "string-util.h"
#include <errno.h>
#include <stdlib.h>
+#include <string.h>
#include "env-util.h"
#include "fileio.h"
#include "mount-setup.h"
#include "mount-util.h"
#include "path-util.h"
+#include "process-util.h"
#include "signal-util.h"
#include "string-util.h"
#include "udev-util.h"
#include <shadow.h>
#include <unistd.h>
+#include "sd-id128.h"
+
#include "alloc-util.h"
#include "ask-password-api.h"
#include "copy.h"
#include <getopt.h>
#include "sd-event.h"
+#include "sd-id128.h"
#include "alloc-util.h"
#include "export-raw.h"
#include "capability-util.h"
#include "fd-util.h"
#include "import-common.h"
+#include "process-util.h"
#include "signal-util.h"
#include "util.h"
#include <getopt.h>
#include "sd-event.h"
+#include "sd-id128.h"
#include "alloc-util.h"
#include "fd-util.h"
#include <getopt.h>
#include "sd-event.h"
+#include "sd-id128.h"
#include "alloc-util.h"
#include "hostname-util.h"
#include "log.h"
#include "special.h"
#include "util.h"
+#include "process-util.h"
#define SERVER_FD_MAX 16
#define TIMEOUT_MSEC ((int) (DEFAULT_EXIT_USEC/USEC_PER_MSEC))
#include "journald-native.h"
#include "macro.h"
#include "parse-util.h"
+#include "process-util.h"
#include "signal-util.h"
#include "socket-util.h"
#include "stat-util.h"
#include "log.h"
#include "mkdir.h"
#include "parse-util.h"
+#include "process-util.h"
#include "sigbus.h"
#include "signal-util.h"
#include "string-util.h"
#include "journald-kmsg.h"
#include "journald-server.h"
#include "journald-syslog.h"
+#include "process-util.h"
#include "sigbus.h"
int main(int argc, char *argv[]) {
#include "lookup3.h"
#include "missing.h"
#include "path-util.h"
+#include "process-util.h"
#include "replace-var.h"
#include "stat-util.h"
#include "stdio-util.h"
#include "env-util.h"
#include "macro.h"
#include "parse-util.h"
+#include "process-util.h"
#include "random-util.h"
#include "string-util.h"
#include "util.h"
#include <linux/if.h>
#include <netinet/ether.h>
+#include "sd-id128.h"
#include "sd-ndisc.h"
#include "alloc-util.h"
#include "dhcp-server-internal.h"
#include "fd-util.h"
#include "in-addr-util.h"
+#include "sd-id128.h"
#include "siphash24.h"
#include "string-util.h"
#include "unaligned.h"
#include <stdlib.h>
#include <string.h>
+#include "sd-id128.h"
#include "sd-ipv4acd.h"
#include "sd-ipv4ll.h"
***/
#include <arpa/inet.h>
+#include <errno.h>
#include <net/ethernet.h>
#include <stdio.h>
#include <string.h>
#include "bus-message.h"
#include "bus-util.h"
#include "capability-util.h"
+#include "process-util.h"
#include "stdio-util.h"
#include "string-util.h"
#include "strv.h"
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
+#include <string.h>
+
+#include "sd-bus.h"
+
#include "bus-gvariant.h"
#include "bus-signature.h"
#include "bus-type.h"
#include <util.h>
+#include "sd-bus.h"
+
#include "bus-signature.h"
#include "bus-type.h"
#include "macro.h"
#include "missing.h"
#include "path-util.h"
+#include "process-util.h"
#include "selinux-util.h"
#include "signal-util.h"
#include "stdio-util.h"
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
+
+#include "sd-bus.h"
+
#include "bus-type.h"
bool bus_type_is_valid(char c) {
#include <stdbool.h>
-#include "sd-bus.h"
-
#include "macro.h"
bool bus_type_is_valid(char c) _const_;
#include "macro.h"
#include "missing.h"
#include "parse-util.h"
+#include "process-util.h"
#include "string-util.h"
#include "strv.h"
#include "util.h"
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
+#include <sys/socket.h>
+
#include "sd-bus.h"
#include "macro.h"
#include "fs-util.h"
#include "parse-util.h"
#include "path-util.h"
+#include "process-util.h"
#include "socket-util.h"
#include "strv.h"
#include "util.h"
#include "macro.h"
#include "signal-util.h"
#include "util.h"
+#include "process-util.h"
static int prepare_handler(sd_event_source *s, void *userdata) {
log_info("preparing %c", PTR_TO_INT(userdata));
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <fcntl.h>
#include <unistd.h>
#include "missing.h"
#include "netlink-internal.h"
#include "netlink-util.h"
+#include "process-util.h"
#include "socket-util.h"
#include "util.h"
#include "missing.h"
#include "socket-util.h"
#include "util.h"
+#include "process-util.h"
#define WORKERS_MIN 1U
#define WORKERS_MAX 16U
#include "fd-util.h"
#include "logind.h"
#include "parse-util.h"
+#include "process-util.h"
#include "strv.h"
#include "terminal-util.h"
#include "udev-util.h"
#include "alloc-util.h"
#include "bus-error.h"
#include "bus-util.h"
+#include "cgroup-util.h"
#include "conf-parser.h"
#include "def.h"
#include "dirent-util.h"
#include "fd-util.h"
#include "format-util.h"
#include "logind.h"
+#include "process-util.h"
#include "selinux-util.h"
#include "signal-util.h"
#include "strv.h"
#include "udev-util.h"
-#include "cgroup-util.h"
static void manager_free(Manager *m);
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <fcntl.h>
#include <linux/if_tun.h>
#include <net/if.h>
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
-#include <net/if.h>
+#include <errno.h>
#include <linux/veth.h>
+#include <net/if.h>
#include "sd-netlink.h"
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <linux/if_vlan.h>
#include <net/if.h>
#include <stdio.h>
+#include "sd-id128.h"
+
#include "macro.h"
#include "nspawn-expose-ports.h"
#include "nspawn-mount.h"
#include <unistd.h>
#include "alloc-util.h"
+#include "errno.h"
#include "fd-util.h"
#include "mkdir.h"
#include "nspawn-setuid.h"
#include "alloc-util.h"
#include "dissect-image.h"
+#include "process-util.h"
#include "signal-util.h"
#include "string-util.h"
***/
#include <sys/socket.h>
+#include <errno.h>
#include "dns-type.h"
#include "parse-util.h"
#include <net/if.h>
#include <glob.h>
+#include "sd-id128.h"
+
#include "alloc-util.h"
#include "fileio.h"
#include "glob-util.h"
#include <stdio.h>
#include <linux/magic.h>
+#include "sd-id128.h"
+
#include "alloc-util.h"
#include "blkid-util.h"
#include "bootspec.h"
#include <sys/prctl.h>
#include <sys/wait.h>
+#include "sd-id128.h"
+
#include "architecture.h"
#include "ask-password-api.h"
#include "blkid-util.h"
#include <stdbool.h>
+#include "sd-id128.h"
+
#include "macro.h"
typedef struct DissectedImage DissectedImage;
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <fcntl.h>
#include <linux/loop.h>
#include <sys/ioctl.h>
#include <stdio.h>
#include <stdlib.h>
+#include <string.h>
typedef const char* (*lookup_t)(int);
typedef int (*reverse_t)(const char*);
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
+
#include "alloc-util.h"
#include "macro.h"
#include "parse-util.h"
#include "cgroup-util.h"
#include "path-util.h"
+#include "process-util.h"
#include "string-util.h"
#include "util.h"
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <stdlib.h>
#include <string.h>
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <stdio.h>
#include "alloc-util.h"
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
+
#include "alloc-util.h"
#include "hexdecoct.h"
#include "macro.h"
#include "format-util.h"
#include "log.h"
+#include "process-util.h"
#include "util.h"
assert_cc(LOG_REALM_REMOVE_LEVEL(LOG_REALM_PLUS_LEVEL(LOG_REALM_SYSTEMD, LOG_FTP | LOG_DEBUG))
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <stdlib.h>
#include <unistd.h>
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <locale.h>
#include <math.h>
#include "macro.h"
#include "signal-util.h"
+#include "process-util.h"
static void test_block_signals(void) {
sigset_t ss;
***/
#include <stdio.h>
+#include <string.h>
#include "time-util.h"
#include "in-addr-util.h"
#include "log.h"
#include "macro.h"
+#include "process-util.h"
#include "socket-util.h"
#include "string-util.h"
#include "util.h"
#include "format-util.h"
#include "fs-util.h"
#include "log.h"
+#include "process-util.h"
#include "string-util.h"
#include "util.h"
#include "fileio.h"
#include "fs-util.h"
#include "parse-util.h"
+#include "process-util.h"
#include "raw-clone.h"
#include "rm-rf.h"
#include "string-util.h"
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <string.h>
#include <unistd.h>
#include "env-util.h"
#include <string.h>
#include <unistd.h>
+#include "process-util.h"
#include "time-util.h"
#include "udev-util.h"
#include "udev.h"
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <stdbool.h>
#include <stdlib.h>
#include <sys/stat.h>
along with systemd; If not, see <http://www.gnu.org/licenses/>.
***/
+#include <errno.h>
#include <stdio.h>
#include <sys/stat.h>
+#include "alloc-util.h"
#include "crypt-util.h"
-#include "log.h"
#include "hexdecoct.h"
+#include "log.h"
#include "string-util.h"
-#include "alloc-util.h"
static char *arg_root_hash = NULL;
static char *arg_data_what = NULL;