Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/include - provide forward struct declarations for all functi...
details: https://anonhg.NetBSD.org/src/rev/13dc19d1e600
branches: trunk
changeset: 473652:13dc19d1e600
user: christos <christos%NetBSD.org@localhost>
date: Sat Jun 12 18:06:19 1999 +0000
description:
- provide forward struct declarations for all functions.
- const poison login().
- XXX: we should not include all these files here. We only need stdio.h and
sys/types.h! But I am not rm'ing them now because too many things will break.
diffstat:
include/util.h | 21 +++++++++++++--------
1 files changed, 13 insertions(+), 8 deletions(-)
diffs (49 lines):
diff -r b23691b045fe -r 13dc19d1e600 include/util.h
--- a/include/util.h Sat Jun 12 17:17:16 1999 +0000
+++ b/include/util.h Sat Jun 12 18:06:19 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: util.h,v 1.13 1999/06/06 01:50:00 thorpej Exp $ */
+/* $NetBSD: util.h,v 1.14 1999/06/12 18:06:19 christos Exp $ */
/*-
* Copyright (c) 1995
@@ -54,19 +54,25 @@
#define FPARSELN_UNESCALL 0x0f
__BEGIN_DECLS
-void login __P((struct utmp *));
+struct utmp;
+struct passwd;
+struct termios;
+struct termios;
+struct winsize;
+struct iovec;
+
+void login __P((const struct utmp *));
int login_tty __P((int));
int logout __P((const char *));
void logwtmp __P((const char *, const char *, const char *));
-int pw_lock __P((int retries));
+int pw_lock __P((int));
int pw_mkdb __P((void));
int pw_abort __P((void));
void pw_init __P((void));
-void pw_edit __P((int notsetuid, const char *filename));
+void pw_edit __P((int, const char *));
void pw_prompt __P((void));
-void pw_copy __P((int ffd, int tfd, struct passwd *pw,
- struct passwd *old_pw));
-void pw_error __P((const char *name, int err, int eval));
+void pw_copy __P((int, int, struct passwd *, struct passwd *));
+void pw_error __P((const char *, int, int));
int openpty __P((int *, int *, char *, struct termios *,
struct winsize *));
char *fparseln __P((FILE *, size_t *, size_t *, const char[3], int));
@@ -79,7 +85,6 @@
int ttylock __P((const char *, int, pid_t *));
int ttyunlock __P((const char *));
int ttyaction __P((const char *, const char *, const char *));
-struct iovec;
char *ttymsg __P((struct iovec *, int, const char *, int));
__END_DECLS
Home |
Main Index |
Thread Index |
Old Index