summaryrefslogtreecommitdiff
path: root/lib/libtermcap
Commit message (Collapse)AuthorAgeFilesLines
* The __set_ospeed() function is coded against the speed_t type declaredJohn Birrell1998-05-052-3/+3
| | | | | | | | | | | in termios.h, but it's prototype in termcap.h and the main file use the underlying definition (which is now an int, not a long for compatibility with NetBSD). Really termcap.h should use speed_t too, but I guess that this might break sources that don't include termios.h first. Notes: svn path=/head/; revision=35756
* Fixed bitrot in synopsis.Bruce Evans1998-03-231-1/+1
| | | | Notes: svn path=/head/; revision=34821
* Changed speed_t from long to unsigned long. POSIX.1 requires anBruce Evans1998-03-121-2/+2
| | | | | | | | | | | | unsigned integral type. Changing it doesn't seem to cause any sign extension bugs in /usr/src. In the kernel, this is partly because `struct speedtab' and its lookup function are too bogus to use speed_t's for speeds - they use ints. Reminded by: PR 5786 Notes: svn path=/head/; revision=34522
* Fixed the termcap 3.0 hacks. They were very broken in my configurationBruce Evans1997-12-191-10/+11
| | | | | | | | | | where shared libraries are in /lib and almost everything is linked shared. First, they removed the old shared library before installing the new one. Second, they attemped a cross-device link from /lib to /usr/lib/compat. Notes: svn path=/head/; revision=31873
* "un-bump" the major number for libtermcap.so. This brings -current backPeter Wemm1997-12-021-2/+13
| | | | | | | | | | | | | | | to the same version numbers as 2.2.x. The problem with the way things were was: - if you took a 2.2.x binary, it either wouldn't run on -current or if you had the old -current version of libtermcap.so.2.1 then it could potentially be a security problem. - the alternative is to start a compat22 tree dist for -current with a uuencoded binary. This makefile hack is less cost. libtermcap.so.3.0 is provided via /usr/lib/compat to avoid transition problems. Notes: svn path=/head/; revision=31487
* s/geteid/geteuid/ - it's lucky I have a large supply of left-over pointyPeter Wemm1997-11-291-1/+1
| | | | | | | hats from Tristan's last birthday party. :-] Notes: svn path=/head/; revision=31450
* Work around the problems caused by calling issetugid() in libtermcap inPeter Wemm1997-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. Notes: svn path=/head/; revision=31448
* Restore back issetugid() usage and bump major numberAndrey A. Chernov1997-08-312-4/+4
| | | | Notes: svn path=/head/; revision=28955
* Temp restore of rev 1.9Andrey A. Chernov1997-08-261-3/+3
| | | | Notes: svn path=/head/; revision=28796
* Temporarily comment out issetugid() call until everyone installs libtermcap,Andrey A. Chernov1997-08-251-2/+2
| | | | | | | major number bumping will follows then Notes: svn path=/head/; revision=28725
* Bump minor number due to issetugid()Andrey A. Chernov1997-08-241-1/+1
| | | | Notes: svn path=/head/; revision=28668
* Replace uids comparison by issetugid() callAndrey A. Chernov1997-08-221-2/+2
| | | | Notes: svn path=/head/; revision=28579
* Fixed spelling of __set_ospeed (was _set_ospeed) and improvedBruce Evans1997-04-132-15/+16
| | | | | | | nearby English. Notes: svn path=/head/; revision=24870
* Declare the documented (modulo a spelling error) interfaceBruce Evans1997-04-132-3/+3
| | | | | | | | | | | `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 ...). Notes: svn path=/head/; revision=24869
* Don't overflow buffers, and only open alternative termcap files if we'reWarner Losh1997-03-242-2/+8
| | | | | | | | | | | not running setuid or setgid. Fixes PR 2586 Submitted by: Julian Assange Notes: svn path=/head/; revision=24198
* Fixed wrong return type for tputs() in synopsis.Bruce Evans1997-03-191-1/+1
| | | | Notes: svn path=/head/; revision=24015
* Re-order terms to avoid potential pointer overflow, and remove oneEivind Eklund1997-03-181-2/+7
| | | | | | | | | more potential buffer overflow. Submitted by: bde Notes: svn path=/head/; revision=23982
* Buffer overflow fix - closes PR bin/2983 for -current. Should reallyEivind Eklund1997-03-171-0/+14
| | | | | | | | go into 2.2.0 Release, even at the present time. Problem spotted by Tero Kivinen <kivinen@ssh.fi> - was in BugTraq today :-( Notes: svn path=/head/; revision=23961
* Revert $FreeBSD$ to $Id$Peter Wemm1997-02-221-1/+1
| | | | Notes: svn path=/head/; revision=22993
* Make the long-awaited change from $Id$ to $FreeBSD$Jordan K. Hubbard1997-01-141-1/+1
| | | | | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise. Notes: svn path=/head/; revision=21673
* Change the last -Wall cleanup so that the tputs declaration doesn'tPeter Wemm1996-09-102-6/+7
| | | | | | | | | | | | conflict with the other declarations in other files. tputs() is traditionally declared to return int, not void. curses.h has it as int. ncurses has int and actually sets the return value. This problem has been causing the ircII port to not compile. (I've only minimally tested this, I do not have libtermcap on my systems) Notes: svn path=/head/; revision=18209
* oops, install termcap.h from ${.CURDIR}, not the obj dir.Peter Wemm1996-08-301-2/+2
| | | | | | | Pointed out by: asami Notes: svn path=/head/; revision=17948
* cmp -s || install -c ==> install -CPeter Wemm1996-08-301-2/+1
| | | | Notes: svn path=/head/; revision=17935
* General -Wall warning cleanup, part I.Jordan K. Hubbard1996-07-125-6/+8
| | | | | | | Submitted-By: Kent Vander Velden <graphix@iastate.edu> Notes: svn path=/head/; revision=17141
* Another round of man page cleanups.Mike Pritchard1996-02-121-1/+1
| | | | | | | Down to only about 100 items left to cleanup! :-) Notes: svn path=/head/; revision=14045
* Change `install' to `${INSTALL}' so that default install flags can beBruce Evans1995-08-061-1/+1
| | | | | | | | | | specified in the top level Makefiles. Previously I missed dozens of Makefiles that skip the install after using `cmp -s' to decide that the install isn't necessary. Notes: svn path=/head/; revision=9970
* Do a little trick which covers 99% cases: initialize ospeedAndrey A. Chernov1995-08-057-48/+53
| | | | | | | | | | 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. Notes: svn path=/head/; revision=9938
* Add non-standard function: _set_ospeed(speed)Andrey A. Chernov1995-08-044-6/+89
| | | | | | | | | | | | Basically all termios+termcap pgms needs it. It set ospeed variable using nearest-matched stty speeds, which helps termcap pgms works with non-fixed termios speeds and not duplicate ospeed switch into every pgm. Also it isn't standard function, its source code is too big to include it in whole to every termcap+termios pgm. Notes: svn path=/head/; revision=9887
* Add missing entries for 38400/57600/115200 bauds to tmspc10[]Andrey A. Chernov1995-07-231-1/+2
| | | | Notes: svn path=/head/; revision=9650
* Remove trailing whitespace.Rodney W. Grimes1995-05-303-12/+12
| | | | Notes: svn path=/head/; revision=8870
* Bump minor numberAndrey A. Chernov1995-05-031-0/+2
| | | | Notes: svn path=/head/; revision=8249
* Continue of previous fix: eliminate backslashes too.Andrey A. Chernov1995-03-261-1/+1
| | | | Notes: svn path=/head/; revision=7379
* Compact entry returned to user:Andrey A. Chernov1995-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. Notes: svn path=/head/; revision=7378
* tputs: (char) -> (int)Andrey A. Chernov1994-12-102-3/+3
| | | | Notes: svn path=/head/; revision=5025
* Fix tputs declarationAndrey A. Chernov1994-12-092-3/+3
| | | | Notes: svn path=/head/; revision=5022
* Describe tparmAndrey A. Chernov1994-12-041-0/+17
| | | | Notes: svn path=/head/; revision=4945
* Add $Id$Andrey A. Chernov1994-12-041-1/+1
| | | | Notes: svn path=/head/; revision=4943
* Add termcap.h & tparmAndrey A. Chernov1994-12-044-9/+826
| | | | Notes: svn path=/head/; revision=4940
* Ooops, change back the LIBDIR macro to the SHLIBDIR macro for the sharedAndreas Schulz1994-11-191-2/+2
| | | | | | | libs as told by Bruce. Now it works. Notes: svn path=/head/; revision=4674
* Makefile:Andreas Schulz1994-11-182-2/+3
| | | | | | | | | | | | | 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. Notes: svn path=/head/; revision=4631
* Remove ${DESTDIR} from link-macros. Already applied behind the scenes.Poul-Henning Kamp1994-11-181-4/+4
| | | | Notes: svn path=/head/; revision=4583
* Install shared libraries in ${SHLIBDIR} instead of in ${LIBDIR}.Bruce Evans1994-11-141-4/+4
| | | | | | | Add missing ${DESTDIR}'s. Notes: svn path=/head/; revision=4455
* Forget to change = to += in previous commitAndrey A. Chernov1994-11-081-1/+1
| | | | Notes: svn path=/head/; revision=4289
* Add missing link for shared libtermlibAndrey A. Chernov1994-11-081-0/+4
| | | | Notes: svn path=/head/; revision=4288
* Oops, back out ospeed fix, I forget that flushing can occurse _after_Andrey A. Chernov1994-10-061-5/+27
| | | | | | | usleep, too quick commit :-( Notes: svn path=/head/; revision=3394
* Change padding mechanism to use usleep, old variant not worksAndrey A. Chernov1994-10-061-27/+5
| | | | | | | | | | on terminals with no pad char (cons25) and quote from tputs.c says so too: ! * Too bad there are no user program accessible programmed delays. ! * Transmitting pad characters slows many ! * terminals down and also loads the system. Notes: svn path=/head/; revision=3388
* Correct the man page extent.Jordan K. Hubbard1994-08-081-1/+1
| | | | | | | Submitted by: jkh Notes: svn path=/head/; revision=1965
* Do not create link for *lib_p.a if you are not installing profiled libraries.Rodney W. Grimes1994-05-271-2/+4
| | | | Notes: svn path=/head/; revision=1587
* BSD 4.4 Lite Lib SourcesRodney W. Grimes1994-05-279-0/+1106
Notes: svn path=/cvs2svn/branches/unlabeled-1.1.1/; revision=1573