chiark / gitweb /
Prep v237.3: Make all supportable API functions visible
authorSven Eden <yamakuzure@gmx.net>
Tue, 12 Dec 2017 17:18:28 +0000 (18:18 +0100)
committerSven Eden <yamakuzure@gmx.net>
Tue, 12 Dec 2017 17:18:28 +0000 (18:18 +0100)
(v233 addition).

src/basic/missing.h
src/basic/socket-util.h
src/libelogind/sd-daemon/sd-daemon.c

index 7768b07e8a74a7620e0b68180cc430c3da1aa7a8..63eacbb1714020fbd2b59cfe0f83adbc48f6f1be 100644 (file)
@@ -55,7 +55,6 @@
 #include <linux/btrfs.h>
 #endif
 
-#if 0 /// UNNEEDED by elogind
 #if HAVE_LINUX_VM_SOCKETS_H
 #include <linux/vm_sockets.h>
 #else
@@ -72,7 +71,6 @@ struct sockaddr_vm {
                                sizeof(unsigned int)];
 };
 #endif /* !HAVE_LINUX_VM_SOCKETS_H */
-#endif // 0
 
 #ifndef RLIMIT_RTTIME
 #define RLIMIT_RTTIME 15
index 91aa2f5297818f9a6e9c27e9bf0954d049c49227..d4f573efb68616446cb1dfc59960fe63a78123e9 100644 (file)
@@ -39,7 +39,7 @@ union sockaddr_union {
         struct sockaddr_in in;
         struct sockaddr_in6 in6;
         struct sockaddr_un un;
-#if 0 /// UNNEEDED by elogind.
+#if 0 /// UNNEEDED by elogind, only 'sa', 'in', 'in6' and 'un' are used in all of elogind.
         struct sockaddr_nl nl;
         struct sockaddr_storage storage;
         struct sockaddr_ll ll;
index 755ba7501184a13b77b2fd84691e94dc7c128311..719deb760689bb6dac993752f017ab6ca3cae3c9 100644 (file)
@@ -633,8 +633,11 @@ _public_ int sd_booted(void) {
         /* We test whether the runtime unit file directory has been
          * created. This takes place in mount-setup.c, so is
          * guaranteed to happen very early during boot. */
-
+#if 0 /// elogind is always used without systemd running the show. (Well, it should...)
         return laccess("/run/systemd/system/", F_OK) >= 0;
+#else
+        return 0;
+#endif // 0
 }
 
 _public_ int sd_watchdog_enabled(int unset_environment, uint64_t *usec) {