313 Commits

Author SHA1 Message Date
bde
65d125f2c2 Fix the bug reported by Torbjorn Granlund <tege@cygnus.com>:
The documentation for mrand48 and lrand48 is mixed up.
mrand48 returns a full 32 bit number, while lrand48 only returns
31 bits.
1994-12-25 15:33:39 +00:00
guido
a02b6b3152 Add missing getdomainname manual page.
Reviewed by:
Submitted by:
Obtained from: 1.1.5.1 with a few modifictaions.
1994-12-18 14:06:39 +00:00
bde
0184c7ba03 Obtained from: 1.1.5
getcwd() has two off-by-one bugs in FreeBSD-2.0:

1. getcwd(buf, size) fails when the size is just large enough.
2. getcwd(buf + 1, 1) incorrectly succeeds when the current directory
   is "/".  buf[0] and buf[2] are clobbered.

(I modified Bruce's original patch to return the proper error code
[ERANGE] in the case of #2, but otherwise... -DG)

This program demonstrates the bug:

---
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>

int main(void)
{
    char buf[5];
    int errors;

    errors = 0;
    if (chdir("/tmp") != 0) {
        perror("chdir");
        abort();
    }
    if (getcwd(buf, 5) == NULL) {
        perror("oops, getcwd failed for buffer size = size required");
        ++errors;
    }
    if (chdir("/") != 0) {
        perror("chdir");
        abort();
    }
    buf[0] = 0;
    buf[2] = 1;
    if (getcwd(buf + 1, 1) != NULL) {
        fprintf(stderr,
                "oops, getcwd succeeded for buffer size = one too small\n");
        ++errors;
    }
    if (buf[0] != 0) {
        fprintf(stderr,
                "oops, getcwd scribbled on memory before start of buffer\n");
        ++errors;
    }
    if (buf[2] != 1) {
        fprintf(stderr,
                "oops, getcwd scribbled on memory after end of buffer\n");
        ++errors;
    }
    exit(errors == 0 ? 0 : 1);
}
1994-12-12 01:29:13 +00:00
bde
f9bd31e543 Obtained from: 386BSD-0.1 patchkit; also fixed in 1.1.5
Compare unsigned chars.
Return the place after where the character was found and not the start
of the string.
1994-12-12 01:23:33 +00:00
bde
85651f85da Fix execl[e]. Multiple execle's failed because of bogus caching of the
pointer returned by realloc().  All callers free the pointer if the
execve fails.  Nuke the caching.  This essentially restores buildargv()
to the 1.1.5 version.  Also fix a memory leak if realloc() fails.  Also
nuke similar but non-broken caching in execvp().  malloc() should be
efficient enough.
1994-12-12 01:15:01 +00:00
ats
d257edec12 Comment out the man page of rstat.1 from Makefile.inc. There is no rstat
command available yet.
Changed an entry in getprcent.3 from rpcinfo(8C) to rpcinfo(8).
Changed an entry in getrpcport.3 from 3R to 3.
Changed two entries in rpc.3 from 3N to 3.
1994-12-11 22:08:10 +00:00
ats
45fe4d648a Added the mpool.3 manpage to the installed manpages. It is referred from the
other manpages and there is no conflict.
1994-12-11 22:03:05 +00:00
ache
9844a286a1 tputs prototypes... 1994-12-10 23:10:41 +00:00
ache
3b7b6171d8 tputs: (char) -> (int) 1994-12-10 23:02:33 +00:00
ache
d571d9fa43 Prototypes... 1994-12-10 22:56:53 +00:00
ache
3bf22911e8 tputs: (char) -> (int) 1994-12-10 22:01:25 +00:00
ache
14e428a71e Fix tputs/tparm declarations 1994-12-09 22:02:19 +00:00
ache
43a20f003f Fix tputs declaration 1994-12-09 21:59:06 +00:00
ache
a14aba2fc2 Fix tputs/tparm declarations 1994-12-09 21:52:47 +00:00
ache
c43ff73eee Describe tparm 1994-12-04 03:15:30 +00:00
ache
4665766ad1 Add $Id$ 1994-12-04 02:49:24 +00:00
ache
2c1b951d31 termcap.h now belongs to system 1994-12-04 02:43:41 +00:00
ache
7749e26c04 Add termcap.h & tparm 1994-12-04 02:41:41 +00:00
ache
207c361309 Move gdc/bs to games 1994-12-03 04:42:49 +00:00
ache
394e4390df exit_standout don't turn most attributes off, fixed 1994-12-03 04:27:08 +00:00
ache
4b914f4b4c #ifdef out check for pending input, cause problems with
output-only pgms
1994-12-03 03:35:30 +00:00
ache
7ac6d5a8b5 bkgd() family fixes 1994-12-02 19:43:34 +00:00
ache
8091ade428 Implement chage_scroll_region properly 1994-12-02 07:35:48 +00:00
ache
da3bc85e13 Upgrade to version 1.8.6 1994-12-02 06:40:24 +00:00
wollman
1504867da7 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
ache
a41d3aa119 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
ache
32a635775a Fix many duplicated attribute sets 1994-11-27 05:23:52 +00:00
ache
0195ab27b4 Add wrefresh before doing putp when idlok 1994-11-27 03:08:12 +00:00
ache
127177257e Make idlok works properly with back color erase. 1994-11-27 02:22:09 +00:00
dg
5eb3d67a1e 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
dg
fa43022815 Fixed bugs related to returning NULL if length is zero. 1994-11-25 04:11:19 +00:00
ache
8554dc18ca Forget to exit alt charset mode, critical for non-cons25r
terminals wits as/ae
1994-11-24 15:09:30 +00:00
ache
b13d509f6f Make this file more BSD-like 1994-11-21 23:03:23 +00:00
ache
1d76dd7613 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
ats
535da6b259 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
ats
b600470787 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
phk
17db408558 Remove ${DESTDIR} from link-macros. Already applied behind the scenes. 1994-11-18 00:59:33 +00:00
ache
825a04e6f6 Make newscr publicly available 1994-11-17 23:53:25 +00:00
dfr
78425e620e 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
ache
9ff5ea124c Change rules to not generate term.h on second make depend 1994-11-16 11:54:09 +00:00
bde
9da42b5b70 Install shared libraries in ${SHLIBDIR} instead of in ${LIBDIR}.
Add missing ${DESTDIR}'s.
1994-11-14 06:45:23 +00:00
bde
c2f445d041 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
phk
48bf3d3d0e 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
5fde216ffb 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
ec3127d29c 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
ljo
f4c6c612e6 Remove z_abs. It is already in libm.a 1994-11-11 12:58:12 +00:00
ljo
287e9adfce Add missing z_abs. In BSD tradition this is in libm.a. 1994-11-11 12:56:27 +00:00
jkh
0095d86e44 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
ache
f7fa8274c4 Add 57600, 115200 ro baudrate() 1994-11-10 13:10:21 +00:00
ache
5e58f70104 Forget to change = to += in previous commit 1994-11-08 17:33:22 +00:00