summaryrefslogtreecommitdiffstats
path: root/src/util/pty/getpty.c
Commit message (Collapse)AuthorAgeFilesLines
* Move pty library from util/pty to appl/libpty; update Makefile.in andKen Raeburn2006-04-111-150/+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
* * getpty.c: Make pty_getpty() into ptyint_getpty_ext(), which hasTom Yu2001-05-161-4/+10
| | | | | | | | | | | | | | | | | | | an extra argument that determines whether to call grantpt() and unlockpt() on systems that support it. The new pty_getpty() will simply call the extended version. This is to support some wackiness needed by pty_paranoia.c tests. * pty-int.h: Add prototype for ptyint_getpty_ext(). * pty_paranoia.c: Add rant about ptys and quirks therein. Needs to be updated somewhat. Add some more paranoia for the case where we actually succeed in opening the slave of a closed master and then succeed in opening the same master. This program will get rewritten at some point to actually see what things result in EOFs and under what conditions data will actually get passed between master and slave. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13243 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
* * libpty.h: If SOCK_DGRAM is not defined, provide a definition forEzra Peisach2000-06-261-0/+3
| | | | | | | | | | | | | | 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
* * getpty.c (pty_getpty): Fix goof in previous, which introducedTom Yu1997-12-071-3/+3
| | | | | | 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-051-32/+26
| | | | | | for terminating nul character. Some whitespace fixups. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10313 dc483132-0cff-0310-8789-dd5450dbe970
* Remove erroneous space from the HPUX open()Theodore Tso1997-06-031-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@10093 dc483132-0cff-0310-8789-dd5450dbe970
* Fix bug pointed out by jhawk; we weren't looking for all ptysSam Hartman1996-06-241-4/+4
| | | | | | 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
* Changes so HPUX doesn't use streams. ThisSam Hartman1996-04-161-2/+5
| | | | | | | | 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
* Implement _getpty handling for the SGISam Hartman1996-03-241-5/+28
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7707 dc483132-0cff-0310-8789-dd5450dbe970
* Fix test for slave buffer lengthSam Hartman1995-08-091-1/+1
| | | | git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6477 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
* * Fix tests for length of slave buffer.Sam Hartman1995-08-021-2/+2
| | | | | | * Add pty_init to initialize error tables. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6379 dc483132-0cff-0310-8789-dd5450dbe970
* Make interface change so getpty doesn't overwriteSam Hartman1995-08-011-10/+34
| | | | | | | 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/+96
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@6370 dc483132-0cff-0310-8789-dd5450dbe970