summaryrefslogtreecommitdiffstats
path: root/src/util/pty/pty-int.h
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2001-04-28 02:05:38 +0000
committerTom Yu <tlyu@mit.edu>2001-04-28 02:05:38 +0000
commitb39f8f31d5365235dd1cacc3c8fdca1a1158cd59 (patch)
tree5b3c780c280372b84503362d89712c93df61ea43 /src/util/pty/pty-int.h
parent6f59e3a9b7fb3765c8b5b47b8456c1997f07570e (diff)
downloadkrb5-b39f8f31d5365235dd1cacc3c8fdca1a1158cd59.tar.gz
krb5-b39f8f31d5365235dd1cacc3c8fdca1a1158cd59.tar.xz
krb5-b39f8f31d5365235dd1cacc3c8fdca1a1158cd59.zip
* configure.in: Many changes to support the rewriting of the utmp
pieces of libpty. Do a large amount of checking for consistency of various utmp and utmpx APIs as currently understood. See rant in update_utmp.c. * dump-utmp.c: Rewrite; now has capability to use utmp{,x}name() to extract entries from utmp and utmpx files. Adjusts field widths when printing as appropriate. * libpty.h: Update call signature for update_utmp() and logwtmp(); make prototypes unconditional. * logwtmp.c: Rewrite. Use pututline() or pututxline() API whenever possible. * pty-int.h: Update call signatures for update_wtmp{,x}(); make prototypes unconditional. * sane_hostname.c: Use the autoconf-correct macro names. * update_utmp.c: Rewrite. Basically, use functions from the pututline() or pututxline() API whenever possible, to avoid lossage. Inserted large rant about the conjectured history of BSD utmp, sysV utmp, and utmpx, as well as documentation about some known quirks. * update_wtmp.c: Rewrite. Add new function ptyint_logwtmpx() that takes a utmpx rather than a utmp, so it can fail to lose data converting to and from utmp. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13218 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src/util/pty/pty-int.h')
-rw-r--r--src/util/pty/pty-int.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/util/pty/pty-int.h b/src/util/pty/pty-int.h
index d183cf28f..a955533dc 100644
--- a/src/util/pty/pty-int.h
+++ b/src/util/pty/pty-int.h
@@ -95,18 +95,14 @@ extern void getutmpx (const struct utmp *, struct utmpx *);
#endif
/* Internal functions */
-#ifdef __STDC__
long ptyint_void_association(void);
long ptyint_open_ctty (char *slave, int *fd);
-long ptyint_update_wtmp (struct utmp *ut, char *host, char *user);
-
+#ifdef HAVE_SETUTXENT
+long ptyint_update_wtmpx(struct utmpx *utx);
+#else
+long ptyint_update_wtmp(struct utmp *ut);
+#endif
void ptyint_vhangup(void);
-#else /*__STDC__*/
-
-long ptyint_void_association();
-void ptyint_vhangup();
-long ptyint_update_wtmp();
-#endif /* __STDC__*/
#define __PTY_INT_H__
#endif