summaryrefslogtreecommitdiffstats
path: root/lib/libtermcap/termcap.c
Commit message (Collapse)AuthorAgeFilesLines
* Define PBUFSIZ in terms of MAXPATHLEN rather than hard coding it toimp1998-09-111-4/+5
| | | | | | 512. Obtained, I think, from: OpenBSD
* s/geteid/geteuid/ - it's lucky I have a large supply of left-over pointypeter1997-11-291-1/+1
| | | | hats from Tristan's last birthday party. :-]
* Work around the problems caused by calling issetugid() in libtermcap inpeter1997-11-291-2/+41
| | | | | | | | a similar way to libc. Sigh. This is not pretty but seems to work. Somthing like this was needed in preference to bogusly bumping the major library number here. The syscall(SYS_issetugid) idea is originally Bruce's.
* Restore back issetugid() usage and bump major numberache1997-08-311-2/+2
|
* Temp restore of rev 1.9ache1997-08-261-3/+3
|
* Temporarily comment out issetugid() call until everyone installs libtermcap,ache1997-08-251-2/+2
| | | | major number bumping will follows then
* Replace uids comparison by issetugid() callache1997-08-221-2/+2
|
* Declare the documented (modulo a spelling error) interfacebde1997-04-131-2/+0
| | | | | | | | `void __set_ospeed(long);' in the appropriate header. The implementation still uses speed_t instead of long. This will break properly when speed_t is fixed (speed_t shall be unsigned ...).
* Don't overflow buffers, and only open alternative termcap files if we'reimp1997-03-241-2/+7
| | | | | | | | not running setuid or setgid. Fixes PR 2586 Submitted by: Julian Assange
* General -Wall warning cleanup, part I.jkh1996-07-121-2/+2
| | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu>
* Do a little trick which covers 99% cases: initialize ospeedache1995-08-051-11/+19
| | | | | | | variable directly in tgetent by stderr or stdout output speed. It helps hide in non-standard __set_ospeed function and remove it from other sources (coming soon). Do prototype cleanup too.
* Remove trailing whitespace.rgrimes1995-05-301-4/+4
|
* Continue of previous fix: eliminate backslashes too.ache1995-03-261-1/+1
|
* Compact entry returned to user:ache1995-03-261-3/+49
| | | | | | | | | 1) Eliminate spaces and double ':'. 2) Remove duplicated capabilities from tc= expansion. It is needed to not overflow historycal 1024 limit. Add range check and return -1 if entry is too big instead of corrupting user memory.
* Makefile:ats1994-11-181-0/+1
| | | | | | | | | | Change the reference for the libtermcap libtermlib link from SHLIBDIR to LIBDIR. SHLIBDIR is undefined in the standard case. termcap.c: Initialize a local variable to zero. Otherwise an erroneous free call can happen and clobber the calling program. Seen with vi and gdb. If you have TERMCAP set with a terminal entry and set TERM with something like huhu, vi and gdb core dumps.
* BSD 4.4 Lite Lib Sourcesrgrimes1994-05-271-0/+208
OpenPOWER on IntegriCloud