summaryrefslogtreecommitdiffstats
path: root/libutil/login.c
diff options
context:
space:
mode:
Diffstat (limited to 'libutil/login.c')
-rw-r--r--libutil/login.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/libutil/login.c b/libutil/login.c
new file mode 100644
index 000000000..636ce9608
--- /dev/null
+++ b/libutil/login.c
@@ -0,0 +1,14 @@
+#include <errno.h>
+#include <limits.h>
+#include <string.h>
+#include <unistd.h>
+#include <stdlib.h>
+#include <utmp.h>
+
+/* Write the given entry into utmp and wtmp. */
+void login (const struct utmp *entry)
+{
+ return;
+}
+link_warning (login, "the `login' function is stubbed out and will not write utmp or wtmp.")
+