summaryrefslogtreecommitdiffstats
path: root/src/util/pty
Commit message (Collapse)AuthorAgeFilesLines
* * update_utmp.c (pty_update_utmp): utx.ut_pid is a pid_t, andTom Yu1999-04-242-1/+8
| | | | | | | | ent.ut_pid is sometimes a short; accordingly, use pid rather than ent.ut_pid, which might have gotten truncated. This fixes an Irix problem found by <rbasch@mit.edu>. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11394 dc483132-0cff-0310-8789-dd5450dbe970
* update_wtmp.c: Don't use updwtmpx() even if it exists for glibc 2.1,Theodore Tso1999-04-142-0/+14
| | | | | | | | since it's the same as updwtmp(), and glibc doesn't define PATH_WTMPX. updwtmpx() is not part of the XPG standard anyway. (Needed for RedHat 6.0.) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11357 dc483132-0cff-0310-8789-dd5450dbe970
* * update_wtmp.c: Define WTMPX_FILE to be _PATH_WTMPX in case we'reTom Yu1999-03-282-0/+8
| | | | | | on a system that cleans up the namespace that way. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11323 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c (pty_make_sane_hostname): Remove unusedTom Yu1999-02-182-1/+5
| | | | | | "char *scratch". git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11178 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c: Re-order so that pty-int.h precedes libpty.h toTom Yu1999-02-172-2/+7
| | | | | | prevent conflicting definitions of struct sockaddr_in git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11174 dc483132-0cff-0310-8789-dd5450dbe970
* * sane_hostname.c: Force maxlen to be 16 if it's less than 16,Tom Yu1999-02-122-1/+5
| | | | | | since otherwise a numeric IP address won't fit. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11169 dc483132-0cff-0310-8789-dd5450dbe970
* bump minor versionTom Yu1999-02-122-2/+2
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11168 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in: Add sane_hostname.{o,c}Tom Yu1999-02-124-2/+112
| | | | | | | | | * libpty.h: Add prototype for make_sane_hostname. * sane_hostname.c: New file; add function to "sanitize" hostname for logging purposes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11165 dc483132-0cff-0310-8789-dd5450dbe970
* configure.in: Remove test CHECK_WAIT_TYPE since nothing is using theTheodore Tso1999-01-273-1/+7
| | | | | | results of that test (WAIT_USES_INT). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11131 dc483132-0cff-0310-8789-dd5450dbe970
* pull up 3des implementation from the marc-3des branchMarc Horowitz1998-10-303-1/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11001 dc483132-0cff-0310-8789-dd5450dbe970
* Preliminary fixes for AIX4.3:Sam Hartman1998-07-122-1/+8
| | | | | | | | | | | * Fix static libs on platforms using .a for shared libs * Fix utmp handling for non-hpux platforms with ut_exit different from utmpx. * Include librarymacros in ss configure.in * Remove declarations of h_errno git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10632 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): Don't record LOGIN_PROCESSTom Yu1998-04-062-1/+10
| | | | | | entries, as they confuse last on some systems. [pty/569] git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10520 dc483132-0cff-0310-8789-dd5450dbe970
* oops... add PR numberTom Yu1998-03-121-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10500 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): Fix bogus entry ofTom Yu1998-03-122-3/+11
| | | | | | PTY_LOGIN_PROCESS types on BSD-ish systems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10499 dc483132-0cff-0310-8789-dd5450dbe970
* Remove trailing slash from thisconfigdir. Change directory syntaxTom Yu1998-02-182-2/+7
| | | | | | used in BUILDTOP. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10464 dc483132-0cff-0310-8789-dd5450dbe970
* Mass makefile/configure.in build system revampTheodore Tso1998-02-123-1/+24
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10424 dc483132-0cff-0310-8789-dd5450dbe970
* * getpty.c (pty_getpty): Fix goof in previous, which introducedTom Yu1997-12-072-3/+8
| | | | | | another fencepost error. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10327 dc483132-0cff-0310-8789-dd5450dbe970
* * getpty.c (pty_getpty): Fix checks on string lengths to accountTom Yu1997-12-052-32/+31
| | | | | | for terminating nul character. Some whitespace fixups. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10313 dc483132-0cff-0310-8789-dd5450dbe970
* * pty_err.et: Add PTY_OPEN_SLAVE_TOOSHORT error codeTom Yu1997-12-033-1/+11
| | | | | | | * 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
* * pty-int.h: Do not prototype initialize_pty_error_table asEzra Peisach1997-10-282-1/+5
| | | | | | pty-err.h does as well. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10257 dc483132-0cff-0310-8789-dd5450dbe970
* * Makefile.in (CFILES): Add $(srcdir)Ezra Peisach1997-10-242-4/+11
| | | | | | Allows make depend to run, git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10249 dc483132-0cff-0310-8789-dd5450dbe970
* Punt HAS_STDLIB_H, NO_STDLIB_H, POSIX_TYPES; see individual ChangeLogsTom Yu1997-10-022-1/+6
| | | | | | for details git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10204 dc483132-0cff-0310-8789-dd5450dbe970
* Remove erroneous space from the HPUX open()Theodore Tso1997-06-032-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10093 dc483132-0cff-0310-8789-dd5450dbe970
* Check for openpty() in -lutil. It's there on FreeBSD and BSDITheodore Tso1997-04-252-0/+6
| | | | | | systems. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10074 dc483132-0cff-0310-8789-dd5450dbe970
* * Make shared libs work on AIXSam Hartman1997-02-222-1/+4
| | | | | | * Do not prototype error table init funciton; doesn't work any more git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9955 dc483132-0cff-0310-8789-dd5450dbe970
* Merge of libhack_branchTom Yu1997-02-093-34/+39
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9831 dc483132-0cff-0310-8789-dd5450dbe970
* Merge V1_0_FREEZE_3 into the mainline. (Note this merge does *not*Theodore Tso1996-12-134-1/+20
| | | | | | include the doc subtree!!) git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9632 dc483132-0cff-0310-8789-dd5450dbe970
* * update_utmp.c (pty_update_utmp): Handle case where utmp usesEzra Peisach1996-11-153-0/+28
| | | | | | | | | | | ut_exit.e_exit and utmpx uses ut_exit.ut_exit. * configure.in (UT_EXIT_STRUCTURE_DIFFER): If utmpx.h exists, and getutmpx does not exist then test if the ut_exit part of the utmp/utmpx structure is a structure and if their types differ. (e_exit vs. ut_exit). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9422 dc483132-0cff-0310-8789-dd5450dbe970
* update_utmp.c (pty_update_utmp): Add code which attempts to compensateTheodore Tso1996-11-083-10/+20
| | | | | | | | | for systems that don't have getutmpx() configure.in: Check for getutmpx(). Replace calls to AC_FUNC_CHECK with AC_HAVE_FUNCS(). git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9349 dc483132-0cff-0310-8789-dd5450dbe970
* Fix Sanitize script to not delete the configure programTheodore Tso1996-07-251-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8817 dc483132-0cff-0310-8789-dd5450dbe970
* Fix bug pointed out by jhawk; we weren't looking for all ptysSam Hartman1996-06-245-9/+21
| | | | | | on SunOS or NetBSD. Also fix Hpux 10 bug with regard to utmpx. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8544 dc483132-0cff-0310-8789-dd5450dbe970
* * configure.in: remove ref to ET_RULESTom Yu1996-06-142-1/+5
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8360 dc483132-0cff-0310-8789-dd5450dbe970
* cvsignore hackeryTom Yu1996-06-101-1/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8288 dc483132-0cff-0310-8789-dd5450dbe970
* Update .Sanitize files to reflect current file statusTheodore Tso1996-06-061-0/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8246 dc483132-0cff-0310-8789-dd5450dbe970
* * dump-utmp.c: New file. Not automatically used by anything, but may be usefulKen Raeburn1996-04-175-49/+179
| | | | | | | | | | | | | | | | for examining utmp/wtmp files when comparing behavior against system software. * update_utmp.c (pty_update_utmp): Always use id "cons" for console. For HP-UX, omit "kl" prefix. Reindent for readability. * update_wtmp.c (ptyint_update_wtmp): For HP-UX, copy ut_id and ut_type from input utmp structure. Reindent for readability. Wed Mar 27 21:14:33 1996 Marc Horowitz <marc@mit.edu> * init_slave.c (pty_initialize_slave): Spurious signal stuff which did nothing deleted. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7819 dc483132-0cff-0310-8789-dd5450dbe970
* Changes so HPUX doesn't use streams. ThisSam Hartman1996-04-163-4/+13
| | | | | | | | may break on HPUX10 depending on how you should get the name of the pts side of /dev/ptym/clone. I don't have an HPUX10 system to test on. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7816 dc483132-0cff-0310-8789-dd5450dbe970
* Have pty_cleanup() fork on systems with vhangup()Sam Hartman1996-04-155-6/+62
| | | | | | | 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
* Removed a bogus dependency (if you try make depend)Richard Basch1996-04-031-3/+0
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7750 dc483132-0cff-0310-8789-dd5450dbe970
* Changes to help streams work correctly on AIX 4.1.4 and HPUX 9.Sam Hartman1996-03-256-29/+93
| | | | | | | 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
* Implement _getpty handling for the SGISam Hartman1996-03-244-24/+42
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7707 dc483132-0cff-0310-8789-dd5450dbe970
* nuke rcs cruftMark Eichin1996-03-141-3/+2
| | | | | | fix typo in copyright git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7632 dc483132-0cff-0310-8789-dd5450dbe970
* Fixed mispelling of Doug Engert's nameTheodore Tso1996-03-111-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7604 dc483132-0cff-0310-8789-dd5450dbe970
* Don't do call vhangup() if system doesn't have itTheodore Tso1996-02-252-0/+6
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7537 dc483132-0cff-0310-8789-dd5450dbe970
* Don't update the utmp file unless update_utmp is trueSam Hartman1996-01-302-3/+10
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7414 dc483132-0cff-0310-8789-dd5450dbe970
* * void_assoc.c (ptyint_void_association): if we don't haveMark Eichin1996-01-272-0/+7
| | | | | | TIOCNOTTY (HP/UX 9 for example) don't try to use it. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7405 dc483132-0cff-0310-8789-dd5450dbe970
* Mainline utmp and login cleanups from hartmans_pty_utmp:Sam Hartman1996-01-197-39/+85
| | | | | | | | * 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
* Deal with CVS not doing what I expected with a branch so the code compiles ↵Sam Hartman1996-01-161-1/+1
| | | | | | | | and works until I merge changes. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7324 dc483132-0cff-0310-8789-dd5450dbe970
* Fix handling so that the username is only written out to wtmpx logout records;Sam Hartman1996-01-163-4/+7
| | | | | | | I know of no systems that write out usernames in DEAD_PROCESS records in wtmp, but can special case them in update_wtmp if they are found. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7323 dc483132-0cff-0310-8789-dd5450dbe970
* Short term, this is notes on what the interfaces to various libpty functions ↵Sam Hartman1996-01-151-0/+105
| | | | | | do. Long term, I may end up writing something more formal to go into doc. If that happens, it is likely that this README will be removed or replaced with a README explaining how to break libpty out of the Kerberos distribution and get configure to be happy git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7317 dc483132-0cff-0310-8789-dd5450dbe970
* Work around apparent Solaris kernel bug. If you open the pty and close it, ↵Sam Hartman1996-01-132-30/+27
| | | | | | you get a sigHUP on the master git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7311 dc483132-0cff-0310-8789-dd5450dbe970