summaryrefslogtreecommitdiffstats
path: root/src/util/pty/cleanup.c
Commit message (Collapse)AuthorAgeFilesLines
* Move pty library from util/pty to appl/libpty; update Makefile.in andKen Raeburn2006-04-111-112/+0
| | | | | | configure.in files accordingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17887 dc483132-0cff-0310-8789-dd5450dbe970
* protoizeKen Raeburn2004-02-191-4/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@16100 dc483132-0cff-0310-8789-dd5450dbe970
* Include "com_err.h" instead of <com_err.h>Ken Raeburn2002-06-131-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14503 dc483132-0cff-0310-8789-dd5450dbe970
* * cleanup.c: Call update_utmp() with the correct pid to assist inTom Yu2001-05-081-1/+1
| | | | | | | | | | | | | | | | | | | finding the old utmp entry. * open_ctty.c: Reformat somewhat and revise comment. * open_slave.c: Rework significantly. Primarily, keep a fd open to the slave if we need to reopen the slave device following vhangup() or revoke(), to accommodate various OS quirks. * update_utmp.c: Revise history section somewhat to document more HP-UX brokenness. Search via ut_pid before searching via ut_line. Copy stuff around because entuxent() will clobber some things. * void_assoc.c: Revise comment and reformat somewhat. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13234 dc483132-0cff-0310-8789-dd5450dbe970
* * cleanup.c (pty_cleanup): Delcare local variable only ifEzra Peisach2001-05-031-0/+2
| | | | | | | | | | | | | | | VHANG_LAST defined. * logwtmp.c (pty_logwtmp): Only declare local variables if logwtmp() not available on system. * sane_hostname.c (sockaddrlen): Only define static function if HAVE_GETNAMEINFO defined. (pty_make_sane_hostname) Declare goto target only if code compiled in. gcc warning cleanups git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13227 dc483132-0cff-0310-8789-dd5450dbe970
* * getpty.c (pty_getpty): More conditionalizing variable defintionEzra Peisach2000-06-291-1/+1
| | | | | | | | | | | | | | based on OS features. * cleanup.c (pty_cleanup): Add parenthesis about assignment in conditional (gcc suggestion). * pty-int.h: Include pty.h if it exists (for openpty prototype under Linux). * configure.in: Check for pty.h git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12451 dc483132-0cff-0310-8789-dd5450dbe970
* copyright notice updates from 1.1 branchKen Raeburn1999-09-241-1/+4
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11853 dc483132-0cff-0310-8789-dd5450dbe970
* Have pty_cleanup() fork on systems with vhangup()Sam Hartman1996-04-151-3/+43
| | | | | | | so that the right controlling terminal can be used; needed on HP and others possibly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7813 dc483132-0cff-0310-8789-dd5450dbe970
* Don't update the utmp file unless update_utmp is trueSam Hartman1996-01-301-2/+3
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7414 dc483132-0cff-0310-8789-dd5450dbe970
* Mainline utmp and login cleanups from hartmans_pty_utmp:Sam Hartman1996-01-191-1/+1
| | | | | | | | * Fix utmp handling on Solaris for wtmpx records * Replace krlogin's SIGURG handler with a call to select squashing Solaris ctrl-c bug * Fix utmp on systems without pututline so ttyslot is only used when it works git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7338 dc483132-0cff-0310-8789-dd5450dbe970
* Changes to get telnet working on AlphaSam Hartman1995-08-091-7/+7
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6471 dc483132-0cff-0310-8789-dd5450dbe970
* * Modify pty_update_utmp so it takes additional parameters instead ofSam Hartman1995-08-071-7/+2
| | | | | | | | | | | | | | struct utmp. * Move pty_update_wtmp to an internal function; pty_update_utmp and pty_logwtmp call it. * Don't include utmp.h or utmpx.h in libpty.h; they don't need it any more. * Don't use pid_t in libpty.h or any interfaces it defines\. We'll have to settle for int. * Add logic so that UTMP_FILE and WTMP_FILE get defined on NetBSD (Actually fairly clean). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6453 dc483132-0cff-0310-8789-dd5450dbe970
* Fix up Copyright notice to have correct year (1995 instead of 1990)Theodore Tso1995-08-041-13/+11
| | | | | | | Remove #include of mit-copyright.h, since we don't include it and its legal value is pretty dubious anyway. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6409 dc483132-0cff-0310-8789-dd5450dbe970
* missed a #endifTom Yu1995-08-041-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6407 dc483132-0cff-0310-8789-dd5450dbe970
* * cleanup.c (pty_cleanup): Add missing declarations for retval andTom Yu1995-08-041-3/+5
| | | | | | fd. Also, align preprocessor directives with left margin. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6406 dc483132-0cff-0310-8789-dd5450dbe970
* Attempt to HUP processes associated with the pty when it is revoked ifSam Hartman1995-08-031-0/+16
| | | | | | vhangup is not available. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6402 dc483132-0cff-0310-8789-dd5450dbe970
* Make interface change so getpty doesn't overwriteSam Hartman1995-08-011-1/+1
| | | | | | | user-supplied buffer. Allow for telnetd not knowing PID of slave process. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6374 dc483132-0cff-0310-8789-dd5450dbe970
* Check in first version of libptySam Hartman1995-07-311-0/+55
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6370 dc483132-0cff-0310-8789-dd5450dbe970