Commit Graph

301 Commits

Author SHA1 Message Date
Andreas Schulz
02cb5cc4bf Add the sys/types.h include to the necessary documented includes for the
getrusage call.
1994-12-31 18:50:57 +00:00
Andrey A. Chernov
19f1105992 Fix compiler warnings about tputs argument 1994-12-28 14:30:19 +00:00
Bruce Evans
75b6d64b84 fixunsdfsi.S:
Embalm.  Rewrite to do things much the same as gcc-2: use fistpq for speed
and elegance, and mishandle overflow consistently.  __fixunsdfsi() is no
longer called by gcc.
1994-12-27 13:37:38 +00:00
Bruce Evans
08747772a2 sigsetjmp.S:
Remove unnecessary .text statement.
1994-12-27 13:34:04 +00:00
Bruce Evans
1fe9751525 Remove unnecessary .align statement. 1994-12-27 13:33:03 +00:00
Bruce Evans
be0264b945 Fix a spelling error and add a comment about possible improvements. 1994-12-27 13:12:34 +00:00
Bruce Evans
6424ff77c2 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 van Rooij
4e32be0fb7 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
Bruce Evans
b01f0b7d76 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
Bruce Evans
a0d0470f49 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
Bruce Evans
a2c0622293 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
Andreas Schulz
3cefada244 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
Andreas Schulz
75f0ecb284 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
Andrey A. Chernov
1223285da7 tputs prototypes... 1994-12-10 23:10:41 +00:00
Andrey A. Chernov
d76f7c0fec tputs: (char) -> (int) 1994-12-10 23:02:33 +00:00
Andrey A. Chernov
9945b53297 Prototypes... 1994-12-10 22:56:53 +00:00
Andrey A. Chernov
6d1385d8be tputs: (char) -> (int) 1994-12-10 22:01:25 +00:00
Andrey A. Chernov
b3c5d3e955 Fix tputs/tparm declarations 1994-12-09 22:02:19 +00:00
Andrey A. Chernov
f13e0e1455 Fix tputs declaration 1994-12-09 21:59:06 +00:00
Andrey A. Chernov
aa31b7471d Fix tputs/tparm declarations 1994-12-09 21:52:47 +00:00
Andrey A. Chernov
f38f7e1a33 Describe tparm 1994-12-04 03:15:30 +00:00
Andrey A. Chernov
d6761eb4f8 Add $Id$ 1994-12-04 02:49:24 +00:00
Andrey A. Chernov
43f9c02773 termcap.h now belongs to system 1994-12-04 02:43:41 +00:00
Andrey A. Chernov
fc98213f95 Add termcap.h & tparm 1994-12-04 02:41:41 +00:00
Andrey A. Chernov
6a24938756 Move gdc/bs to games 1994-12-03 04:42:49 +00:00
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