summaryrefslogtreecommitdiffstats
path: root/src/util/pty/open_slave.c
Commit message (Collapse)AuthorAgeFilesLines
* Move pty library from util/pty to appl/libpty; update Makefile.in andKen Raeburn2006-04-111-101/+0
| | | | | | configure.in files accordingly. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@17887 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
* * pty_paranoia.c: New file; do many paranoid checks about cttyTom Yu2001-05-111-2/+6
| | | | | | | | | | | | | | | | handling by the pty drivers. * Makefile.in: Add rules for pty_paranoia and check-paranoia, which runs pty_paranoia. * configure.in: Define REVOKE_NEEDS_OPEN for Tru64. Add support for program building and run flags for the sake of pty_paranoia. * open_slave.c: Fix somewhat; AIX doesn't like opening the ctty twice, so only do initial open if we special-case it in configure.in, e.g. for Tru64. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13239 dc483132-0cff-0310-8789-dd5450dbe970
* * cleanup.c: Call update_utmp() with the correct pid to assist inTom Yu2001-05-081-70/+51
| | | | | | | | | | | | | | | | | | | 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
* * open_slave.c (pty_open_slave): If revoke() present on system butEzra Peisach2001-05-041-1/+1
| | | | | | VHANG_FIRST is not defined, declare local variable. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13231 dc483132-0cff-0310-8789-dd5450dbe970
* * pty-int.h: Fix typo; VHANG_first -> VHANG_FIRSTTom Yu2001-05-041-0/+13
| | | | | | | * open_slave.c (pty_open_slave): Add workaround for Tru64 v5.0, since its revoke() will fail if the slave isn't open already. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13229 dc483132-0cff-0310-8789-dd5450dbe970
* * libpty.h: If SOCK_DGRAM is not defined, provide a definition forEzra Peisach2000-06-261-1/+5
| | | | | | | | | | | | | | struct sockaddr_in to satisfy prototype. (based on similar code in k5-int.h). * update_wtmp.c (ptyint_update_wtmp), update_utmp.c (pty_update_utmp), open_slave.c (pty_open_slave), getpty.c (pty_getpty): conditionalize definition of variables based on code paths that are included. Essentially, clean up many compiler warnings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@12438 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
* * pty_err.et: Add PTY_OPEN_SLAVE_TOOSHORT error codeTom Yu1997-12-031-0/+2
| | | | | | | * open_slave.c (pty_open_slave): Check to ensure that the slave name is not NULL or zero-length. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10310 dc483132-0cff-0310-8789-dd5450dbe970
* Changes to help streams work correctly on AIX 4.1.4 and HPUX 9.Sam Hartman1996-03-251-5/+15
| | | | | | | Adapted loosly from 1837 in krb5-bugs, although I ended up not using any of Doug's code. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7708 dc483132-0cff-0310-8789-dd5450dbe970
* Work around apparent Solaris kernel bug. If you open the pty and close it, ↵Sam Hartman1996-01-131-23/+10
| | | | | | you get a sigHUP on the master git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7311 dc483132-0cff-0310-8789-dd5450dbe970
* Added hack by Doug Engbert to get util/pty to work under Solaris. WeTheodore Tso1996-01-111-0/+4
| | | | | | should double check to make sure this is a correct fix. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7296 dc483132-0cff-0310-8789-dd5450dbe970
* Changes for Solaris and UltrixSam Hartman1995-08-111-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6508 dc483132-0cff-0310-8789-dd5450dbe970
* Changes to get telnet working on AlphaSam Hartman1995-08-091-3/+20
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6471 dc483132-0cff-0310-8789-dd5450dbe970
* Return value from pty_open_ctty is non-zero on error, not negativeEzra Peisach1995-08-051-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6426 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: use libupdate so to not get multiple copies ofTom Yu1995-08-041-3/+3
| | | | | | | | | | | | | | | | | | object files upon rebuild. * vhangup.c (ptyint_vhangup): Make sure preprocessor directives are at left margin. * open_slave.c (pty_open_slave): Make sure preprocessor directives are at left margin. * open_ctty.c (pty_open_ctty): Make sure preprocessor directives are at left margin. * cleanup.c (pty_cleanup): Add missing declarations for retval and fd. Also, align preprocessor directives with left margin. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6421 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
* Check in first version of libptySam Hartman1995-07-311-0/+77
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6370 dc483132-0cff-0310-8789-dd5450dbe970