Commit Graph

326 Commits

Author SHA1 Message Date
Andrey A. Chernov 268e74f211 exit_standout don't turn most attributes off, fixed 1994-12-03 04:27:08 +00:00
Andrey A. Chernov 5e7d2146bb #ifdef out check for pending input, cause problems with
output-only pgms
1994-12-03 03:35:30 +00:00
Andrey A. Chernov 303f46f591 bkgd() family fixes 1994-12-02 19:43:34 +00:00
Andrey A. Chernov aea7c17415 Implement chage_scroll_region properly 1994-12-02 07:35:48 +00:00
Andrey A. Chernov 795172f7a5 Upgrade to version 1.8.6 1994-12-02 06:40:24 +00:00
Garrett Wollman 40569757cc In _gethostbydnsaddr(), force RES_RECURSE into _res.options. This is
incredibly obnoxious, but also makes inverse mappings work when the local
resolver is in a cache-only configuration.  (Maybe this is actually
a bug in BIND?)
1994-12-01 22:25:38 +00:00
Andrey A. Chernov 1f36118a96 wscrl: implement partial scrolling via al/dl
winsdel: implemented via wscrl
winsertln/deleteln: implemented as macros via winsdel
1994-11-29 02:48:20 +00:00
Andrey A. Chernov 79f2f48ea8 Fix many duplicated attribute sets 1994-11-27 05:23:52 +00:00
Andrey A. Chernov 3d3c746818 Add wrefresh before doing putp when idlok 1994-11-27 03:08:12 +00:00
Andrey A. Chernov 06fc741b2a Make idlok works properly with back color erase. 1994-11-27 02:22:09 +00:00
David Greenman 7e20f2848c Go back to Bruce's fix with a minor change that will allow a NULL string
pointer if len is 0. I should have looked at the revision history - I would
have found that Bruce already fixed the bug with len=0 over a month ago.
Whoever said that the bug was in 2.0 was wrong.
1994-11-25 08:58:53 +00:00
David Greenman 40598ff428 Fixed bugs related to returning NULL if length is zero. 1994-11-25 04:11:19 +00:00
Andrey A. Chernov 733e641beb Forget to exit alt charset mode, critical for non-cons25r
terminals wits as/ae
1994-11-24 15:09:30 +00:00
Andrey A. Chernov 47d3b798a6 Make this file more BSD-like 1994-11-21 23:03:23 +00:00
Andrey A. Chernov fafeaee340 Fix scroll bug bringed by 'vi <several_small_files>'
and :n command then. :prev bug still exists because it syscons
bug itself, I work on it.
1994-11-21 14:16:31 +00:00
Andreas Schulz d85050deb1 Ooops, change back the LIBDIR macro to the SHLIBDIR macro for the shared
libs as told by Bruce. Now it works.
1994-11-19 14:01:58 +00:00
Andreas Schulz 1e0b142e29 Makefile:
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.
1994-11-18 12:38:43 +00:00
Poul-Henning Kamp cb19812e97 Remove ${DESTDIR} from link-macros. Already applied behind the scenes. 1994-11-18 00:59:33 +00:00
Andrey A. Chernov 1f6f0b64cc Make newscr publicly available 1994-11-17 23:53:25 +00:00
Doug Rabson 72012b54d0 Added sysarch system call which is used my i386_get/set_ltd.c and is needed
for Wine support.  The current snapshot of wine works fine with this.

This should go into the beta as the code which it calls in the kernel is
already there, and works fine.
1994-11-17 10:50:55 +00:00
Andrey A. Chernov 915554d454 Change rules to not generate term.h on second make depend 1994-11-16 11:54:09 +00:00
Bruce Evans ff8189b3f8 Install shared libraries in ${SHLIBDIR} instead of in ${LIBDIR}.
Add missing ${DESTDIR}'s.
1994-11-14 06:45:23 +00:00
Bruce Evans 643c00317e Install shared libraries in ${DESTDIR}${SHLIBDIR} instead of in
$(DESTDIR)/$(LIBDIR) (I need SHLIBDIR.  The / was a bug and the
$(...) style was inconsistent.)

Install ordinary libraries in ${DESTDIR}${LIBDIR} instead of in
$(DESTDIR)/$(LIBDIR).

Change remaining $(...) to ${...}.
1994-11-14 06:44:45 +00:00
Poul-Henning Kamp 2a7b3781fc Added routines to read the canonical UNIX configuration file. This will
later be applied to a number of programs (inetd for instance) to clean
out the bogus code doing the same thing, modulus all the bugs.

If you need to read a '#'-is-a-comment-file, please use these routines.

I realize that the shlib# should be bumped (for the non-US world:
increased by something), but will defer this until something significant
happens.
1994-11-13 20:47:44 +00:00
Paul Richards 1ab772898b Fix some bugs with forms that have only text fields.
Add an extern form to forms.h for apps to pick up.
1994-11-13 07:43:43 +00:00
Paul Richards 0d18307afc The start of a forms editor library. Currently implements text and
input fields. It reads a template file passed to init_forms(char *)
and creates a curses based form editor. See the examples directory
for a basic demo.
1994-11-13 06:45:44 +00:00
L Jonas Olsson 0a599256ea Remove z_abs. It is already in libm.a 1994-11-11 12:58:12 +00:00
L Jonas Olsson dc400d8541 Add missing z_abs. In BSD tradition this is in libm.a. 1994-11-11 12:56:27 +00:00
Jordan K. Hubbard 71694402b9 From: Michael Reifenberger <root@rz-wb.fh-sw.de>
z_abs is missing in libf2c.
Could someone please commit the following patch?

Submitted by:	mr
1994-11-11 07:27:04 +00:00
Andrey A. Chernov 6e96c3814b Add 57600, 115200 ro baudrate() 1994-11-10 13:10:21 +00:00
Andrey A. Chernov f2628bf835 Forget to change = to += in previous commit 1994-11-08 17:33:22 +00:00
Andrey A. Chernov 5327f96c2e Add missing link for shared libtermlib 1994-11-08 17:31:52 +00:00
Poul-Henning Kamp 3b2b7f71de *** ATTENTION *** YOU MIGHT BE ABOUT TO BE HOSED *** ATTENTION ***
This effectively changes the non-DES password algoritm.

If you have the "securedist" installed you will have no problems with this.
(Though you might want to consider using this password-encryption instead
of the DES-based if your system is likely to be hacked)

If you are running a -current system without the "securedist" installed:
YOU WILL NEED TO CHANGE ALL PASSWORDS !!    There is no backwards mode.

Suggested procedure is:
	Update your sources
	cd /usr/src/lib/libcrypt
	make clean
	make all
	make install
	passwd root
		<set roots new password>
	change password for any other users on the system.

This algorithm is expected to be much better than the traditional DES-
based algorithm.  It uses the MD5 algorithm at what it is best at, as
opposed to the DES algorithm at something it isn't good at at all.  The
algorithm is designed such that it should very hard to shortcut the
calculations needed to build a dictionary, and to make partial knowledge
(Hmm, his password starts with a 'P'...) useless.  Of course if somebody
breaks the MD5 algorithm this looses too.

The salt is 48 bits (8 char @ base64).
The encrypted password is 128 bits.

And I am positively delighted to say that it takes 34 msec to crypt() a
password on a Pentium/60Mhz, so building a dictionary is not really an
option for hackers at the moment.
1994-11-07 21:07:09 +00:00
Poul-Henning Kamp 4385de1699 Added "const" to the arguments here and there. 1994-11-07 20:48:35 +00:00
Poul-Henning Kamp 3f318480d8 A semicolon was lost. 1994-11-07 19:54:55 +00:00
Jordan K. Hubbard e4bd62878a From: "gj%pcs.dec.com@inet-gw-1.pa.dec.com" <garyj@rks32.pcs.dec.com>
Given the right circumstances, a call to kvm_open can result in a core
dump.

The diff belows fixes this (note that this change is already in the
NetBSD code). Could somebody apply this?

Gary J.
Submitted by:	gj
1994-11-07 09:42:24 +00:00
Andrey A. Chernov 5970372325 This curses fix allows to print something in lower right corner
if insert_character is available or don't print, if not
1994-11-06 15:30:37 +00:00
Andrey A. Chernov 02ebab5bf9 Several fixes for 'back_color_erase' curses problem 1994-11-06 09:30:36 +00:00
Andrey A. Chernov 65eaa00bfb Fix curses bug with delete character and standout 1994-11-06 08:33:34 +00:00
Nate Williams 692a99c012 Date: Wed, 26 Oct 1994 15:44:49 -0600
From: Chris Torek <torek@bsdi.com>
Here is a semi-official patch (apply to /usr/src/lib/libc/stdio/fseek.c,
rebuild libc, install).  The current code fails when the seek:

  - is optimized, and
  - is to just past the end of the block currently in the buffer, and
  - is followed by another seek with no intervening read operation, and
  - the destination of subsequent seek is within the block left in the
    buffer (seeking to the beginning of a block does not force a read,
    so the buffer still contains the previous block)

so it is indeed rather obscure.

I may have a different `final' fix, as this one `loses' the buffer
contents on a seek that goes just past the end of the current block.

[Footnote: seeks are optimized only on read-only opens of regular
files that are buffered by the file's optimal I/O size.  This is
what you get with fopen(path, "r") and no call to setvbuf().]

Obtained from: [ BSDI mailing list ]
1994-11-05 18:49:34 +00:00
Andrey A. Chernov fce9eaf109 Add const to termcap prototypes to help libg++ 2.6.1 compiling,
this change must not affect other curses pgms
1994-11-04 15:14:03 +00:00
Jordan K. Hubbard fb59d6ab65 __386BSD__ -> __FreeBSD__
I know that many of these entries are bogus and need to be revisited,
but let's get the tree working again for now and then do a pass through
looking at all the __FreeBSD__ entries, shall we?
1994-11-04 02:14:13 +00:00
David Greenman 567127fa54 Fix from Gary Jennejohn - use 'cp' not 'buf' in read call. Oops. 1994-11-02 16:38:51 +00:00
Paul Traina a78d3e072d Clean up beforeinstall 1994-11-01 09:14:39 +00:00
Andrey A. Chernov bb5e714cf2 Add SIGTERM reaction -- cleanup 1994-10-31 03:07:39 +00:00
Andrey A. Chernov 466783eaf8 More verbose diagnostic, if fails 1994-10-31 03:03:18 +00:00
Andrey A. Chernov 6acf7a7072 Now COLS/LINES uses window cols/lines, not cols/lines from termcap entry 1994-10-31 01:48:48 +00:00
Andrey A. Chernov c0d678dc83 Finally move DB declaration under _CURSES_PRIVATE 1994-10-28 23:38:18 +00:00
Andrey A. Chernov 986f04fb6b Continue previous fix still 1994-10-28 23:27:57 +00:00
Andrey A. Chernov 88c2b17a8f After some thinking better place to fix appearse curses again, not
vi(1). Remove DB from curses.h and still implement it provide
this variable for programs that expect it in any case.
1994-10-28 23:27:00 +00:00
Andrey A. Chernov 4b05df4e20 Rename cDB to DB back like old good BSD curses always does,
check ultrix for example. Real place for fix will be vi(1),
wait for next commit.
1994-10-28 23:18:26 +00:00
Poul-Henning Kamp a1ebd387e5 Missed one reference to the DB variable. 1994-10-28 21:53:17 +00:00
Poul-Henning Kamp 1eb01a4975 Renamed a variable from 'DB' to 'cDB', so the vi(1) will compile again.
Nice to see that people test their fixes before they commit :-(
1994-10-28 21:39:58 +00:00
Andrey A. Chernov 3a1ed32457 Add -I${.CURDIR} 1994-10-28 06:58:04 +00:00
Andrey A. Chernov 80299b0177 Previous commit was incompleted, yet one step required 1994-10-27 23:13:53 +00:00
Andrey A. Chernov d8f07fabd5 Fix scroll bug bringed by vi(1), from phk's flame
(I still wait for apologies)
1994-10-27 22:36:56 +00:00
Paul Traina ab1a62c2a2 Remove extra newline. 1994-10-27 18:15:42 +00:00
Rodney W. Grimes 3573df98f1 >Description:
While trying to figure out why rlogind wasn't working right for root,
	I noticed that man wouldn't come back with a man page for iruserok, but
	it would for ruserok.  Checking the lib/net directory's Makefile.inc
	file shows that the link to the rcmd man page just isn't getting
	created.
>How-To-Repeat:
	Do a 'man iruserok' and notihing will come back, where a 'man ruserok'
	will.

Submitted by:	Brian Moore <ziff@houdini.eecs.umich.edu>
Obtained from:	NetBSD-bugs mailing list
1994-10-27 16:33:49 +00:00
Bruce Evans b5281b4b2a Fix memchr(p, 0, 0) to return NULL instead of p. 1994-10-27 11:36:11 +00:00
L Jonas Olsson f2b209421e Added libf2c, the library for f2c. 1994-10-27 11:07:34 +00:00
L Jonas Olsson 5bf37e2e63 Use -DNON_UNIX_STDIO as our FILE doesn't have the usual fields.
Submitted by: pete@pelican.pelican.com
1994-10-26 18:53:13 +00:00
L Jonas Olsson 424c0b67ee Merged f2c library. 1994-10-26 18:20:35 +00:00
L Jonas Olsson 09c656ca68 Library for f2c (part 2 of 2)
Obtained from: netlib.att.com
1994-10-26 18:17:41 +00:00
L Jonas Olsson 876f9d8347 Library for f2c. (part 1 of 2)
Obtained from: netlib.att.com
1994-10-26 18:15:35 +00:00
Andrey A. Chernov d8cfe10818 Optimize delwin a bit 1994-10-26 07:13:51 +00:00
Bruce Evans 1a4206dd85 Reenable sigsetjmp.S. Preserve the FP state. Rearrange offsets
to match setjmp.S.
1994-10-25 14:08:13 +00:00
Bruce Evans 2ff9d55483 Nuke sigsetjmp.c. sigsetjmp() can't be implemented as a C function
that calls setjmp(), since returning from the function usually
clobbers the saved environment.
1994-10-25 14:04:32 +00:00
Andrey A. Chernov 780bd8bd41 cfmakeraw(): set IGNBRK, clear IXOFF, INPCK per Bruce suggestion
Set IGNPAR, clear NOFLSH, PENDIN, TOSTOP, ECHOE, ECHOK
1994-10-22 18:12:17 +00:00
Andrey A. Chernov 4ceeaa06a8 makeraw(): forget to clear IMAXBEL, set VMIN/VTIME 1994-10-22 01:49:27 +00:00
Paul Traina 6d7d1e5932 new file does skey_getpass() support 1994-10-19 00:14:32 +00:00
Paul Traina 2ddadf840c Include most of the logdaemon v4.4 S/key changes 1994-10-19 00:03:45 +00:00
Andrey A. Chernov 37b28ca421 Remove CPU_COLORDISP, GIO_COLOR now exists 1994-10-18 03:42:18 +00:00
Andrey A. Chernov fb46136e56 Add new machdep variables 1994-10-17 20:50:41 +00:00
Garrett Wollman b938dc2407 sysctl(3) can return an error (setting errno to ENOMEM) when the
fields in the utsname structure are too small to hold their
corresponding MIB variables.  Don't return an error in this case.
1994-10-13 20:31:19 +00:00
Andrey A. Chernov e46d877d8d Add LDADD+= -ltermcap 1994-10-12 02:06:02 +00:00
Andrey A. Chernov 9c9986c2c8 LDADD: = -> += 1994-10-12 01:59:06 +00:00
Andrey A. Chernov 2041b760c8 SHARED_LDADD --> LDADD
cmp redirection removed
1994-10-12 01:57:56 +00:00
Andrey A. Chernov f8e42f876d Fix two problems pointed by Bruce:
keys.tries generated in ${.CURDIR} which may be readonly
lib_options.{po,so} not properly rebuilded if keys.tries deleted
and no .depend
1994-10-12 01:51:27 +00:00
Andrey A. Chernov 8ea50e34cb Implement meta bit in more cosher way after contacting with zmbenhal
Shut up compiler warning
1994-10-11 16:36:53 +00:00
Andrey A. Chernov 372c5ad47c Change link to symbolic link (term.h) 1994-10-10 01:03:26 +00:00
Andrey A. Chernov 6ede20071a Merge term.h & nterm.h 1994-10-10 00:34:44 +00:00
Andrey A. Chernov af1f5928f1 Merge term.h and nterm.h 1994-10-10 00:32:19 +00:00
Andrey A. Chernov 55ac4c2d5d Move copyright link from initscr to newterm (initscr may be not called).
Small cleanup.
1994-10-09 23:31:13 +00:00
Søren Schmidt 5dfe901236 Added spare space on the usr stack. Used in ibcs2 emulation. 1994-10-09 22:03:58 +00:00
Andrey A. Chernov 5dc8d4254a Generate term.h only once, not each beforeinstall.
Add 'update_term_h' target for manual update
1994-10-09 18:39:01 +00:00
Andrey A. Chernov f404a9f3aa Split all binaries from makefile now 1994-10-09 17:50:50 +00:00
Andrey A. Chernov 9e6f124826 Preparation to split binary away, move caps to TESTS
Add some testing bits to TESTS directory
1994-10-09 16:37:35 +00:00
Andrey A. Chernov bac719f599 Sync with ctype.h (remove EOF handling) 1994-10-09 11:20:55 +00:00
Andrey A. Chernov 7afcaa86db Add copyright.c to be always linked in 1994-10-09 09:27:55 +00:00
Andrey A. Chernov 6dabd3aad2 Restore leading tabs 1994-10-09 02:09:14 +00:00
Andrey A. Chernov 4c02aebe2f Sync with ctype.h (EOF, sign extention fixes) 1994-10-08 17:42:45 +00:00
Andrey A. Chernov b25aa8a037 libncurses added 1994-10-07 09:28:33 +00:00
Andrey A. Chernov c0e33523c8 Moved from ports with several enhancements 1994-10-07 08:58:58 +00:00
Andrey A. Chernov 626cdf0fd1 libmytinfo added.
PS: don't forget 'make beforeinstall' if you want to play with it
1994-10-06 23:41:24 +00:00
Andrey A. Chernov abc4e99233 Moved from ports + several enhacmenets 1994-10-06 23:38:41 +00:00
Andrey A. Chernov f5729156af Back out ospeed change (why all bugs discovered immediately _after_ commits
and no one before?)
1994-10-06 21:05:23 +00:00
Andrey A. Chernov 81ea763d01 Oops, back out ospeed fix, I forget that flushing can occurse _after_
usleep, too quick commit :-(
1994-10-06 21:02:21 +00:00
Andrey A. Chernov 3a163b361a Enable PC back, because it is ouside visible 1994-10-06 20:44:51 +00:00
Andrey A. Chernov 4ba0245103 ospeed/PC code ifdefed out, our libtermcap use usleep now 1994-10-06 20:36:34 +00:00
Andrey A. Chernov 82360d78e6 Change padding mechanism to use usleep, old variant not works
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.
1994-10-06 20:32:08 +00:00