summaryrefslogtreecommitdiff
path: root/libutil/login.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-05-08 19:58:20 +0000
committerEric Andersen <andersen@codepoet.org>2001-05-08 19:58:20 +0000
commita3e03be058a9b9a2caf36c5b18f66c0fc3df3bf0 (patch)
tree2ad333bd1e56590e981eba3c54f6057cbf5758bb /libutil/login.c
parent6c0899094d50e0d35d699594bfcd9cae4164abe2 (diff)
Add in libutil, based on Cory Visi's variant of Michael Shmulevich's libutil
port. I have reworked the code quite a bit so that the stuff that is supposed to be in libc is in libc, and I added a bunch of missing stuff so the libutil interface matches that of glibc's libutil. The only caveat is that libutil/login.c is currently a stub. -Erik
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.")
+