/* SPDX-License-Identifier: LGPL-2.1+ */
-/***
- This file is part of systemd.
-
- Copyright 2010 Lennart Poettering
-***/
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
-//#include <linux/kd.h>
-//#include <linux/tiocl.h>
-//#include <linux/vt.h>
+#include <linux/kd.h>
+#include <linux/tiocl.h>
+#include <linux/vt.h>
//#include <poll.h>
//#include <signal.h>
#include <stdarg.h>
return 0;
}
+#if 0 /// UNNEEDED by elogind
static bool urlify_enabled(void) {
static int cached_urlify_enabled = -1;
static int cat_file(const char *filename, bool newline) {
_cleanup_fclose_ FILE *f = NULL;
+ _cleanup_free_ char *urlified = NULL;
int r;
f = fopen(filename, "re");
if (!f)
return -errno;
+ r = terminal_urlify_path(filename, NULL, &urlified);
+ if (r < 0)
+ return r;
+
printf("%s%s# %s%s\n",
newline ? "\n" : "",
ansi_highlight_blue(),
- filename,
+ urlified,
ansi_normal());
fflush(stdout);
} else
fputs("\n\n", stdout);
}
+#endif // 0