summaryrefslogtreecommitdiff
path: root/libexec/ftpd/extern.h
diff options
context:
space:
mode:
authorchristos <christos@NetBSD.org>2005-06-23 04:20:41 +0000
committerchristos <christos@NetBSD.org>2005-06-23 04:20:41 +0000
commitea7965eb77a8c83ddb672fc3f8ea87fcebf34216 (patch)
tree453db28f5ec366c3ddf2890b5f24960cc1607eaa /libexec/ftpd/extern.h
parent277396bd87bdd2798c8114fec80392e2e18c9c26 (diff)
cleanup utmp and utmpx support.
- make them symmetric - add a function to open the wtmp file explicitly very early in the game
Diffstat (limited to 'libexec/ftpd/extern.h')
-rw-r--r--libexec/ftpd/extern.h14
1 files changed, 9 insertions, 5 deletions
diff --git a/libexec/ftpd/extern.h b/libexec/ftpd/extern.h
index 6625b46bfa0..8d0d2f8cd26 100644
--- a/libexec/ftpd/extern.h
+++ b/libexec/ftpd/extern.h
@@ -1,4 +1,4 @@
-/* $NetBSD: extern.h,v 1.52 2005/03/03 22:19:47 ginsbach Exp $ */
+/* $NetBSD: extern.h,v 1.53 2005/06/23 04:20:41 christos Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -180,17 +180,21 @@ void yyerror(char *);
#ifdef SUPPORT_UTMP
struct utmp;
+void ftpd_initwtmp(void);
void ftpd_logwtmp(const char *, const char *, const char *);
-void ftpd_login(const struct utmp *ut);
-int ftpd_logout(const char *line);
+void ftpd_login(const struct utmp *);
+int ftpd_logout(const char *);
#endif
#ifdef SUPPORT_UTMPX
struct utmpx;
struct sockinet;
-void ftpd_loginx(const struct utmpx *);
+
+void ftpd_initwtmpx(void);
void ftpd_logwtmpx(const char *, const char *, const char *,
- struct sockinet *, int, int);
+ struct sockinet *, int, int);
+void ftpd_loginx(const struct utmpx *);
+int ftpd_logoutx(const char *, int, int);
#endif
#include <netinet/in.h>