LIBSYSTEMD_LOGIN_AGE=9
LIBSYSTEMD_DAEMON_CURRENT=0
-LIBSYSTEMD_DAEMON_REVISION=10
+LIBSYSTEMD_DAEMON_REVISION=11
LIBSYSTEMD_DAEMON_AGE=0
LIBSYSTEMD_ID128_CURRENT=0
libsystemd-capability.la \
libsystemd-units.la \
libsystemd-label.la \
- libsystemd-daemon-internal.la \
libudev-internal.la \
libsystemd-shared.la \
libsystemd-internal.la \
src/test/test-daemon.c
test_daemon_LDADD = \
- libsystemd-daemon-internal.la \
+ libsystemd-internal.la \
libsystemd-shared.la
test_cgroup_SOURCES = \
test_cgroup_util_LDADD = \
libsystemd-label.la \
- libsystemd-daemon-internal.la \
+ libsystemd-internal.la \
libsystemd-shared.la
test_env_replace_SOURCES = \
systemd_analyze_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
# ------------------------------------------------------------------------------
systemd_initctl_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
# ------------------------------------------------------------------------------
systemd_update_utmp_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la \
$(AUDIT_LIBS)
systemd_shutdownd_LDADD = \
libsystemd-label.la \
- libsystemd-daemon-internal.la \
+ libsystemd-internal.la \
libsystemd-shared.la
dist_doc_DATA += \
systemd_fsck_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libudev-internal.la \
libsystemd-shared.la
bootctl_LDADD = \
libsystemd-shared.la \
- libsystemd-internal.la \
- libsystemd-daemon-internal.la
+ libsystemd-internal.la
bin_PROGRAMS += \
bootctl
systemd_cgroups_agent_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
# ------------------------------------------------------------------------------
libsystemd-internal.la \
libsystemd-logs.la \
libsystemd-journal-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
# ------------------------------------------------------------------------------
src/readahead/sd-readahead.c
systemd_notify_LDADD = \
- libsystemd-daemon-internal.la \
+ libsystemd-internal.la \
libsystemd-shared.la
# ------------------------------------------------------------------------------
libsystemd-label.la \
libsystemd-capability.la \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libudev-internal.la \
libsystemd-shared.la \
libsystemd-seccomp.la \
libsystemd-label.la \
libsystemd-capability.la \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
# ------------------------------------------------------------------------------
systemd_bus_proxyd_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
bus-proxyd-install-hook:
libsystemd-label.la \
libsystemd-shared.la
-# ------------------------------------------------------------------------------
-libsystemd_daemon_la_SOURCES = \
- src/libsystemd-daemon/libsystemd-daemon.sym \
- src/libsystemd-daemon/sd-daemon.c
-
-libsystemd_daemon_internal_la_SOURCES = \
- $(libsystemd_daemon_la_SOURCES)
-
-libsystemd_daemon_internal_la_CPPFLAGS = \
- $(AM_CPPFLAGS) \
- -DSD_DAEMON_DISABLE_MQ
-
-libsystemd_daemon_la_CFLAGS = \
- $(AM_CFLAGS) \
- -fvisibility=hidden \
- -DSD_EXPORT_SYMBOLS
-
-libsystemd_daemon_la_LDFLAGS = \
- $(AM_LDFLAGS) \
- -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
- -Wl,--version-script=$(top_srcdir)/src/libsystemd-daemon/libsystemd-daemon.sym
-
-libsystemd_daemon_la_LIBADD = \
- $(RT_LIBS)
-
-pkginclude_HEADERS += \
- src/systemd/sd-daemon.h
-
-# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
-libsystemd-daemon-install-hook:
- libname=libsystemd-daemon.so && $(move-to-rootlibdir)
-
-libsystemd-daemon-uninstall-hook:
- rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
-
-INSTALL_EXEC_HOOKS += libsystemd-daemon-install-hook
-UNINSTALL_EXEC_HOOKS += libsystemd-daemon-uninstall-hook
-
-lib_LTLIBRARIES += \
- libsystemd-daemon.la
-
-noinst_LTLIBRARIES += \
- libsystemd-daemon-internal.la
-
-pkgconfiglib_DATA += \
- src/libsystemd-daemon/libsystemd-daemon.pc
-
-EXTRA_DIST += \
- src/libsystemd-daemon/libsystemd-daemon.pc.in
-
# ------------------------------------------------------------------------------
libsystemd_la_SOURCES = \
src/libsystemd/libsystemd.sym \
src/systemd/sd-resolve.h \
src/systemd/sd-login.h \
src/systemd/sd-id128.h \
+ src/systemd/sd-daemon.h \
src/libsystemd/sd-bus/sd-bus.c \
src/libsystemd/sd-bus/bus-control.c \
src/libsystemd/sd-bus/bus-control.h \
src/libsystemd/sd-resolve/sd-resolve.c \
src/libsystemd/sd-resolve/resolve-util.h \
src/libsystemd/sd-id128/sd-id128.c \
+ src/libsystemd/sd-daemon/sd-daemon.c \
src/login/sd-login.c \
src/login/login-shared.c \
src/login/login-shared.h
src/libsystemd/sd-bus/bus-error-mapping.c
libsystemd_la_LIBADD = \
- libsystemd-daemon-internal.la \
libsystemd-shared.la \
+ $(RT_LIBS)
-lresolv
libsystemd_la_CFLAGS = \
test_bus_marshal_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la \
libsystemd-dump.la \
libsystemd-capability.la \
test_bus_chat_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
test_bus_cleanup_SOURCES = \
test_bus_cleanup_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
test_bus_server_SOURCES = \
test_bus_server_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
test_bus_objects_SOURCES = \
test_bus_objects_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la \
libsystemd-dump.la \
libsystemd-capability.la \
test_bus_error_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
test_bus_gvariant_SOURCES = \
test_bus_gvariant_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la \
libsystemd-dump.la \
libsystemd-capability.la \
test_bus_creds_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la \
libsystemd-dump.la \
libsystemd-capability.la
test_bus_match_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
test_bus_kernel_SOURCES = \
test_bus_kernel_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la \
libsystemd-dump.la \
libsystemd-capability.la \
test_bus_kernel_bloom_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
test_bus_kernel_benchmark_SOURCES = \
test_bus_kernel_benchmark_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
test_bus_memfd_SOURCES = \
test_bus_zero_copy_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la \
libsystemd-dump.la \
libsystemd-capability.la \
test_event_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
test_rtnl_SOURCES = \
test_rtnl_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
test_resolve_SOURCES = \
busctl_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la \
libsystemd-dump.la \
libsystemd-capability.la \
test_dhcp_client_LDADD = \
libsystemd-dhcp.la \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
tests += \
-Wl,--version-script=$(top_srcdir)/src/libudev/libudev.sym
libudev_la_LIBADD = \
- libsystemd-daemon-internal.la \
+ libsystemd-internal.la \
libsystemd-shared.la
pkgconfiglib_DATA += \
libudev_core_la_LIBADD = \
libudev-internal.la \
libsystemd-label.la \
- libsystemd-daemon-internal.la \
libsystemd-internal.la \
libsystemd-shared.la \
$(BLKID_LIBS) \
test_id128_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
tests += \
systemd_activate_LDADD = \
libsystemd-label.la \
- libsystemd-daemon-internal.la \
+ libsystemd-internal.la \
libsystemd-shared.la
# ------------------------------------------------------------------------------
libsystemd_journal_la_LIBADD = \
libsystemd-label.la \
- libsystemd-daemon-internal.la \
libsystemd-internal.la \
libsystemd-shared.la
libudev-internal.la \
libsystemd-capability.la \
libsystemd-label.la \
- libsystemd-daemon-internal.la \
libsystemd-internal.la \
libsystemd-shared.la
systemd_journal_gatewayd_LDADD = \
libsystemd-logs.la \
libsystemd-journal-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-internal.la \
libsystemd-shared.la \
$(MICROHTTPD_LIBS)
libsystemd-logs.la \
libsystemd-internal.la \
libsystemd-journal-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
# ------------------------------------------------------------------------------
src/readahead/readahead-common.h
systemd_readahead_LDADD = \
- libsystemd-daemon-internal.la \
+ libsystemd-internal.la \
libudev-internal.la \
libsystemd-shared.la
systemd_hostnamed_LDADD = \
libsystemd-label.la \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
rootlibexec_PROGRAMS += \
hostnamectl_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
bin_PROGRAMS += \
systemd_bus_driverd_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
rootlibexec_PROGRAMS += \
systemd_localed_LDADD = \
libsystemd-label.la \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
nodist_systemunit_DATA += \
localectl_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
bin_PROGRAMS += \
systemd_timedated_LDADD = \
libsystemd-label.la \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
rootlibexec_PROGRAMS += \
timedatectl_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
bin_PROGRAMS += \
libsystemd_machine_core_la_LIBADD = \
libsystemd-label.la \
- libsystemd-daemon-internal.la \
libsystemd-internal.la \
libudev-internal.la \
libsystemd-shared.la
machinectl_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
rootbin_PROGRAMS += \
systemd_networkd_LDADD = \
libudev-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-internal.la \
libsystemd-dhcp.la \
libsystemd-label.la \
libudev-internal.la \
libsystemd-internal.la \
libsystemd-dhcp.la \
- libsystemd-daemon-internal.la \
libsystemd-label.la \
libsystemd-shared.la
libsystemd_logind_core_la_LIBADD = \
libsystemd-label.la \
libsystemd-capability.la \
- libsystemd-daemon-internal.la \
libsystemd-internal.la \
libudev-internal.la \
libsystemd-shared.la
loginctl_LDADD = \
libsystemd-internal.la \
libudev-internal.la \
- libsystemd-shared.la \
- libsystemd-daemon-internal.la
+ libsystemd-shared.la
rootbin_PROGRAMS += \
loginctl
systemd_inhibit_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
rootbin_PROGRAMS += \
test_inhibit_LDADD = \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
test_login_tables_SOURCES = \
pam_systemd_la_LIBADD = \
libsystemd-capability.la \
libsystemd-internal.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la \
$(PAM_LIBS)
_daemon_la_LIBADD = \
$(PYTHON_DEVEL_LIBS) \
- libsystemd-daemon.la
+ libsystemd.la
_reader_la_SOURCES = \
src/python-systemd/_reader.c \
_reader_la_LIBADD = \
$(PYTHON_DEVEL_LIBS) \
- libsystemd-journal.la \
libsystemd.la \
- libsystemd-daemon-internal.la \
+ libsystemd-journal.la \
libsystemd-shared.la
login_la_SOURCES = \
login_la_LIBADD = \
$(PYTHON_DEVEL_LIBS) \
- libsystemd-journal.la \
libsystemd.la \
- libsystemd-daemon-internal.la \
libsystemd-shared.la
dist_pkgpyexec_PYTHON = \
libsystemd_id128_la_LIBADD = \
libsystemd.la
+libsystemd_daemon_la_SOURCES = \
+ libsystemd-daemon.c \
+ src/compat-libs/libsystemd-daemon.sym
+
+libsystemd_daemon_la_CFLAGS = \
+ $(libsystemd_login_la_CFLAGS)
+
+libsystemd_daemon_la_LDFLAGS = \
+ $(AM_LDFLAGS) \
+ -version-info $(LIBSYSTEMD_DAEMON_CURRENT):$(LIBSYSTEMD_DAEMON_REVISION):$(LIBSYSTEMD_DAEMON_AGE) \
+ -Wl,--version-script=$(top_srcdir)/src/compat-libs/libsystemd-daemon.sym
+
+libsystemd_daemon_la_LIBADD = \
+ libsystemd.la
+
BUILT_SOURCES += \
libsystemd-login.c \
- libsystemd-id128.c
+ libsystemd-id128.c \
+ libsystemd-daemon.c
libsystemd-%.c: src/compat-libs/libsystemd-%.sym
$(generate-fake-lib)
lib_LTLIBRARIES += \
libsystemd-login.la \
- libsystemd-id128.la
+ libsystemd-id128.la \
+ libsystemd-daemon.la
pkgconfiglib_DATA += \
src/compat-libs/libsystemd-login.pc \
- src/compat-libs/libsystemd-id128.pc
+ src/compat-libs/libsystemd-id128.pc \
+ src/compat-libs/libsystemd-daemon.pc
# move lib from $(libdir) to $(rootlibdir) and update devel link, if needed
compat-lib-install-hook:
libname=libsystemd-login.so && $(move-to-rootlibdir)
libname=libsystemd-id128.so && $(move-to-rootlibdir)
+ libname=libsystemd-daemon.so && $(move-to-rootlibdir)
compat-lib-uninstall-hook:
rm -f $(DESTDIR)$(rootlibdir)/libsystemd-login.so*
rm -f $(DESTDIR)$(rootlibdir)/libsystemd-id128.so*
+ rm -f $(DESTDIR)$(rootlibdir)/libsystemd-daemon.so*
INSTALL_EXEC_HOOKS += compat-lib-install-hook
UNINSTALL_EXEC_HOOKS += compat-lib-uninstall-hook
EXTRA_DIST += \
src/compat-libs/libsystemd-login.pc.in \
- src/compat-libs/libsystemd-id128.pc.in
+ src/compat-libs/libsystemd-id128.pc.in \
+ src/compat-libs/libsystemd-daemon.pc.in
# ------------------------------------------------------------------------------
substitutions = \
src/libsystemd/libsystemd.sym \
src/systemd/sd-bus.h \
src/systemd/sd-utf8.h \
+ src/systemd/sd-daemon.h \
src/systemd/sd-login.h
$(generate-sym-test)
test-libsystemd-daemon-sym.c: \
- src/libsystemd-daemon/libsystemd-daemon.sym \
+ src/compat-libs/libsystemd-daemon.sym \
src/systemd/sd-daemon.h
$(generate-sym-test)
BUILT_SOURCES += \
$(test_libsystemd_sym_SOURCES) \
- $(test_libsystemd_daemon_sym_SOURCES) \
$(test_libsystemd_journal_sym_SOURCES) \
$(test_libudev_sym_SOURCES)
tests += \
test-libsystemd-sym \
- test-libsystemd-daemon-sym \
test-libsystemd-journal-sym \
test-libudev-sym
if ENABLE_COMPAT_LIBS
BUILT_SOURCES += \
$(test_libsystemd_login_sym_SOURCES) \
- $(test_libsystemd_id128_sym_SOURCES)
+ $(test_libsystemd_id128_sym_SOURCES) \
+ $(test_libsystemd_daemon_sym_SOURCES)
tests += \
test-libsystemd-login-sym \
- test-libsystemd-id128-sym
+ test-libsystemd-id128-sym \
+ test-libsystemd-daemon-sym
endif
.PHONY: cppcheck
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
/***
+ This file is part of systemd.
+
Copyright 2010 Lennart Poettering
- Permission is hereby granted, free of charge, to any person
- obtaining a copy of this software and associated documentation files
- (the "Software"), to deal in the Software without restriction,
- including without limitation the rights to use, copy, modify, merge,
- publish, distribute, sublicense, and/or sell copies of the Software,
- and to permit persons to whom the Software is furnished to do so,
- subject to the following conditions:
-
- The above copyright notice and this permission notice shall be
- included in all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
- BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
- ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
- SOFTWARE.
-***/
+ systemd is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as published by
+ the Free Software Foundation; either version 2.1 of the License, or
+ (at your option) any later version.
+
+ systemd is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
-#ifndef _GNU_SOURCE
-# define _GNU_SOURCE
-#endif
+ You should have received a copy of the GNU Lesser General Public License
+ along with systemd; If not, see <http://www.gnu.org/licenses/>.
+***/
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stddef.h>
#include <limits.h>
-
-#if defined(__linux__) && !defined(SD_DAEMON_DISABLE_MQ)
-# include <mqueue.h>
-#endif
+#include <mqueue.h>
#include "util.h"
#include "sd-daemon.h"
-#if (__GNUC__ >= 4)
-# ifdef SD_EXPORT_SYMBOLS
-/* Export symbols */
-# define _sd_export_ __attribute__ ((visibility("default")))
-# else
-/* Don't export the symbols */
-# define _sd_export_ __attribute__ ((visibility("hidden")))
-# endif
-#else
-# define _sd_export_
-#endif
-
-_sd_export_ int sd_listen_fds(int unset_environment) {
-
-#if defined(DISABLE_SYSTEMD) || !defined(__linux__)
- return 0;
-#else
+_public_ int sd_listen_fds(int unset_environment) {
int r, fd;
const char *e;
char *p = NULL;
}
return r;
-#endif
}
-_sd_export_ int sd_is_fifo(int fd, const char *path) {
+_public_ int sd_is_fifo(int fd, const char *path) {
struct stat st_fd;
if (fd < 0)
return 1;
}
-_sd_export_ int sd_is_special(int fd, const char *path) {
+_public_ int sd_is_special(int fd, const char *path) {
struct stat st_fd;
if (fd < 0)
struct sockaddr_storage storage;
};
-_sd_export_ int sd_is_socket(int fd, int family, int type, int listening) {
+_public_ int sd_is_socket(int fd, int family, int type, int listening) {
int r;
if (family < 0)
return 1;
}
-_sd_export_ int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port) {
+_public_ int sd_is_socket_inet(int fd, int family, int type, int listening, uint16_t port) {
union sockaddr_union sockaddr = {};
socklen_t l = sizeof(sockaddr);
int r;
return 1;
}
-_sd_export_ int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t length) {
+_public_ int sd_is_socket_unix(int fd, int type, int listening, const char *path, size_t length) {
union sockaddr_union sockaddr = {};
socklen_t l = sizeof(sockaddr);
int r;
return 1;
}
-_sd_export_ int sd_is_mq(int fd, const char *path) {
-#if !defined(__linux__) || defined(SD_DAEMON_DISABLE_MQ)
- return 0;
-#else
+_public_ int sd_is_mq(int fd, const char *path) {
struct mq_attr attr;
if (fd < 0)
}
return 1;
-#endif
}
-_sd_export_ int sd_notify(int unset_environment, const char *state) {
-#if defined(DISABLE_SYSTEMD) || !defined(__linux__) || !defined(SOCK_CLOEXEC)
- return 0;
-#else
+_public_ int sd_notify(int unset_environment, const char *state) {
int fd = -1, r;
struct msghdr msghdr;
struct iovec iovec;
close(fd);
return r;
-#endif
}
-_sd_export_ int sd_notifyf(int unset_environment, const char *format, ...) {
-#if defined(DISABLE_SYSTEMD) || !defined(__linux__)
- return 0;
-#else
+_public_ int sd_notifyf(int unset_environment, const char *format, ...) {
va_list ap;
char *p = NULL;
int r;
free(p);
return r;
-#endif
}
-_sd_export_ int sd_booted(void) {
-#if defined(DISABLE_SYSTEMD) || !defined(__linux__)
- return 0;
-#else
+_public_ int sd_booted(void) {
struct stat st;
/* We test whether the runtime unit file directory has been
return 0;
return !!S_ISDIR(st.st_mode);
-#endif
}
-_sd_export_ int sd_watchdog_enabled(int unset_environment, uint64_t *usec) {
-
-#if defined(DISABLE_SYSTEMD) || !defined(__linux__)
- return 0;
-#else
+_public_ int sd_watchdog_enabled(int unset_environment, uint64_t *usec) {
unsigned long long ll;
unsigned long l;
const char *e;
}
return r;
-#endif
}