]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
25 years agoThis commit was generated by cvs2svn to compensate for changes in r40269,
rnordier [Mon, 12 Oct 1998 21:16:26 +0000 (21:16 +0000)]
This commit was generated by cvs2svn to compensate for changes in r40269,
which included commits to RCS files with non-trunk default branches.

25 years agoNew boot blocks: support for /boot/loader; a.out & ELF; cyl > 1023;
rnordier [Mon, 12 Oct 1998 21:16:26 +0000 (21:16 +0000)]
New boot blocks: support for /boot/loader; a.out & ELF; cyl > 1023;
multiple 0xa5 slices; etc.

25 years agoNew boot blocks: support for /boot/loader; a.out & ELF; cyl > 1023;
rnordier [Mon, 12 Oct 1998 21:16:26 +0000 (21:16 +0000)]
New boot blocks: support for /boot/loader; a.out & ELF; cyl > 1023;
multiple 0xa5 slices; etc.

25 years agoAvoid the "Cannot allocate memory" problem that appears on heavily
des [Mon, 12 Oct 1998 20:36:33 +0000 (20:36 +0000)]
Avoid the "Cannot allocate memory" problem that appears on heavily
loaded systems by retrying the sysctl() with a larger buffer if it
fails with ENOMEM. For good measure, allocate 10% more memory than
sysctl() claims is necessary.

PR: 8275
Reviewed by: David Greenman <dg@freebsd.org>

25 years agoUnVMIO vnodes of block devices when they are no longer in use. (Some
dt [Mon, 12 Oct 1998 20:14:09 +0000 (20:14 +0000)]
UnVMIO vnodes of block devices when they are no longer in use. (Some
things, like msdosfs, do not work (panic) on devices with VMIO enabled.
FFS enable VMIO on mounted devices, and nothing previously disabled it, so,
after you mounted FFS floppy, you could not mount msdosfs floppy anymore...)

This is mostly a quick before-release fix.

Reviewed by: bde

25 years agoCorrect a misleading comment.
jkh [Mon, 12 Oct 1998 20:01:48 +0000 (20:01 +0000)]
Correct a misleading comment.

25 years agoFix breakage introduced by last patch. bde has added CC_QUIET flag to
imp [Mon, 12 Oct 1998 18:53:33 +0000 (18:53 +0000)]
Fix breakage introduced by last patch.  bde has added CC_QUIET flag to
hasseen_isadev so this will be less noisy when conflicts do exist.
Also eliminate redundant warnings about conflicts.

Requested by: bde
Reviewed by: gibbs

25 years agoAdd quirk entries to disable the synchronize cache command for Micropolis
ken [Mon, 12 Oct 1998 17:16:47 +0000 (17:16 +0000)]
Add quirk entries to disable the synchronize cache command for Micropolis
2217's (reported by Matthew Jacob in NetBSD PR kern/6027) and Fujitsu
M2954's (reported by Tom Jackson).

Some of the Fujitsus at least hang when they get a cache sync command.
(Others just return illegal request.)

Also, make error printing in dashutdown() a little more selective.  Don't
print any error when the sense key is illegal request.  Drives that don't
support the synchronize cache command usually return illegal request.
Also, make sure the scsi status is check condition before going into
scsi_sense_print().

Reviewed by: gibbs

25 years agoBring over a quirk entry from the old SCSI code for a Chinon CDROM drive
ken [Mon, 12 Oct 1998 17:02:37 +0000 (17:02 +0000)]
Bring over a quirk entry from the old SCSI code for a Chinon CDROM drive
that returns track numbers in BCD.

Reviewed by: gibbs

25 years agoFix a curses bug exposed by the ":numbers" display of systat -iostat.
ken [Mon, 12 Oct 1998 16:32:32 +0000 (16:32 +0000)]
Fix a curses bug exposed by the ":numbers" display of systat -iostat.
This bug showed up when you had more than 3 devices displayed.  (thus
requiring a second line of display)

Here's a quote From the PR:

 When wrefresh() is called with a subwindow as argument, __set_subwin
 might be called with reversed arguments if wrefresh() decides to calls
 quickch().  This may cause use of negative array indexes, with a
 resulting segfault.

 Since quickch() manipulates the line structures belonging to curscr,
 it looks like all subwindows of curscr should be updated.

PR: bin/8086
Submitted by: Tor Egge <Tor.Egge@fast.no>

25 years agoSync with sys/i386/isa/isa.c revision 1.114.
kato [Mon, 12 Oct 1998 15:06:02 +0000 (15:06 +0000)]
Sync with sys/i386/isa/isa.c revision 1.114.

25 years agoDon't print conflict messages in haveseen_isadev() if CC_QUIET is
bde [Mon, 12 Oct 1998 13:12:45 +0000 (13:12 +0000)]
Don't print conflict messages in haveseen_isadev() if CC_QUIET is
specified.  This makes haveseen_isadev() useful for searching for a
free resource.  This increases the bitrot in the pci RESOURCE_CHECK
code.

Fixed the pre-attach conflict message.  The flag for distinguishing
pre-attach conflict checks from pre-probe ones was never set.

25 years agoFixed bitrot in mfs options. MFS_ROOT split into MFS_ROOT and
bde [Mon, 12 Oct 1998 12:27:24 +0000 (12:27 +0000)]
Fixed bitrot in mfs options.  MFS_ROOT split into MFS_ROOT and
MFS_ROOT_SIZE, and MFS_AUTOLOAD went away.

25 years agoAdded flag CC_QUIET for quiet conflict checking.
bde [Mon, 12 Oct 1998 11:32:35 +0000 (11:32 +0000)]
Added flag CC_QUIET for quiet conflict checking.

Fixed corrupted tabs.

25 years agoAdd description on the "quiet" modifier for bell types.
yokota [Mon, 12 Oct 1998 09:53:17 +0000 (09:53 +0000)]
Add description on the "quiet" modifier for bell types.

25 years agoFix PnP mouse detection routine so that:
yokota [Mon, 12 Oct 1998 09:36:27 +0000 (09:36 +0000)]
Fix PnP mouse detection routine so that:
- it has longer timeout as per the PnP COM Device Specificaiton 1.0,
- and it tries to obtain the PnP ID string by strictly following the
  specification and if it fails, by deploying slightly simplified
  steps. (moused has used the simplified method because early PnP mice
  do not exactly follow the specification.  But now, recent mice
  do not supply the ID string unless the strict procedure is used...)

Jointly developed by luigi and yokota.

25 years agoOnly print kernel entry point during load.
peter [Mon, 12 Oct 1998 09:13:50 +0000 (09:13 +0000)]
Only print kernel entry point during load.
Drastically quieten down the verbose load progress messages.  They were
more useful for debugging than anything, but are beyond a joke when loading
a few dozen modules.
Simplify the ELF extended symbol table load format.  Just take the main
symbol table and the string table that corresponds.  This is what we will
be getting local symbols from.  (needed for the alpha stack tracebacks).
Use the (optional) full symbol tables in lookups.  This means we have to
furhter distinguish between symbols that can come from the dynamic linking
table and the complete table.
The alpha boot code now needs to be adapted as ddb/db_elf.c cannot use
the simpler format.
I have not implemented loading the extended symbol tables from the syscall
interface yet, just for preloaded modules.
I am not sure about the symbol resolution.  I *think* it's possible that
a local symbol can be found in preference to a global, depending on the
search sequence and dependency tree.

25 years agoOnly print filename and entry address for the kernel itself. The rest
peter [Mon, 12 Oct 1998 09:05:12 +0000 (09:05 +0000)]
Only print filename and entry address for the kernel itself.  The rest
have a meaningless entry as they are relocatable.

25 years agoRelocate a few extra addresses that are stored as physical addresses via
peter [Mon, 12 Oct 1998 09:03:48 +0000 (09:03 +0000)]
Relocate a few extra addresses that are stored as physical addresses via
the boot loader.

25 years ago"fix" a warning
peter [Mon, 12 Oct 1998 09:02:19 +0000 (09:02 +0000)]
"fix" a warning

25 years agoUpdate the date for standalone tarball.
abial [Mon, 12 Oct 1998 07:53:34 +0000 (07:53 +0000)]
Update the date for standalone tarball.

25 years agoUpdate featu^H^H^H^H^Hbug list.
abial [Mon, 12 Oct 1998 07:52:34 +0000 (07:52 +0000)]
Update featu^H^H^H^H^Hbug list.

25 years agoDamn - dirname(1) is not available this early. Work-around.
markm [Mon, 12 Oct 1998 06:00:30 +0000 (06:00 +0000)]
Damn - dirname(1) is not available this early. Work-around.

25 years agoUpdate the cd(9) man page for the CAM cd driver. This really just an
ken [Mon, 12 Oct 1998 04:09:49 +0000 (04:09 +0000)]
Update the cd(9) man page for the CAM cd driver.  This really just an
update of the quirk entry descriptions to reflect the current state of
things.

Once I find out where such things belong, I'll document things like
the changer scheduling mechanism, actions taken at probe, etc.

25 years agoUpdate the cd(4) man page for the CAM cd driver.
ken [Mon, 12 Oct 1998 03:27:51 +0000 (03:27 +0000)]
Update the cd(4) man page for the CAM cd driver.

This includes a description of the changer timeout kernel options and
sysctl variables.  I didn't check to make sure the ioctl descriptions are
up to date; that will come sometime later.  (The ioctls haven't changed in
the CAM driver, but I'm not sure if the man page was in sync with even the
old driver.)

25 years agoDrop .MAKEFLAGS: hack.
rnordier [Mon, 12 Oct 1998 02:05:44 +0000 (02:05 +0000)]
Drop .MAKEFLAGS: hack.

25 years agoDo without head and tail: they're pretty unnecessary here anyway.
rnordier [Mon, 12 Oct 1998 01:44:15 +0000 (01:44 +0000)]
Do without head and tail: they're pretty unnecessary here anyway.

25 years agoUse rather than for linking. This allows the new rather
rnordier [Mon, 12 Oct 1998 01:03:00 +0000 (01:03 +0000)]
Use  rather than  for linking.  This allows the new rather
than stale version of libstand.a to be found.

After this change, the new boot code is apparently building correctly
in a make world.

25 years agoAdd a man page for the transport layer driver.... my last commit blew up in the
ken [Mon, 12 Oct 1998 00:31:42 +0000 (00:31 +0000)]
Add a man page for the transport layer driver.... my last commit blew up in the
middle of adding this file...

25 years agoAdd man pages for the passthrough driver and the CAM transport layer
ken [Mon, 12 Oct 1998 00:26:03 +0000 (00:26 +0000)]
Add man pages for the passthrough driver and the CAM transport layer
driver.

25 years agoAdd comments about Luigi's audio drivers. Luigi said he had a better
des [Sun, 11 Oct 1998 22:44:32 +0000 (22:44 +0000)]
Add comments about Luigi's audio drivers. Luigi said he had a better
patch he'd commit if he could find it, but he hasn't done so so I'll
assume he didn't find it :)

Approved-by: jkh

25 years agoUnregister the glibc2 brand at module unload time.
alex [Sun, 11 Oct 1998 21:08:02 +0000 (21:08 +0000)]
Unregister the glibc2 brand at module unload time.

Change the ELF registration/unregistration scheme to be less error prone.
Adding a new brand requires a single addition to linux_brandlist instead of
modifying linux_load(), linux_unload(), and linux_elf_init().

Approved by: jkh
Reviewed by: msmith

25 years agoFix the MS-CHAP support. The code was passing a bit count to
jdp [Sun, 11 Oct 1998 19:40:38 +0000 (19:40 +0000)]
Fix the MS-CHAP support.  The code was passing a bit count to
MD4Update(), but our version in libmd expects a byte count.

This code is not currently compiled or linked into pppd, so I'm
reasonably sure I didn't break anything. :-)  I added the necessary
statements to the Makefile, but left them commented out because we
are in feature freeze.  When the code is enabled, we must be careful
to build it only if the DES library is available.

25 years agoIf an ELF executable has a recognized brand, then believe it.
jdp [Sun, 11 Oct 1998 19:22:07 +0000 (19:22 +0000)]
If an ELF executable has a recognized brand, then believe it.
Formerly, the heuristic involving the interpreter path took
precedence.

Also, print a better error message if the brand is missing or not
recognized.  If there is no brand at all, give the user a hint that
"brandelf" needs to be run.

25 years agoRemove sys/boot from the install as well.
rnordier [Sun, 11 Oct 1998 19:02:27 +0000 (19:02 +0000)]
Remove sys/boot from the install as well.

25 years agoIn src/Makefile.inc1:
rnordier [Sun, 11 Oct 1998 18:39:38 +0000 (18:39 +0000)]
In src/Makefile.inc1:
    Remove /sys/boot from legacy-build.
    Add btxld to build-tools.
In src/sys/Makefile:
    Add /sys/boot for i386 ELF.

I'm still not sure why the new boot code was being built along with the
legacy stuff, which meant a completely wrong default environment for it.

This may well still be the wrong way to go about this, but it can't work
all that much worse than it has been.

25 years agoVery substantial debug/improvement of the FreeBSD/Perl5 build.
markm [Sun, 11 Oct 1998 18:13:42 +0000 (18:13 +0000)]
Very substantial debug/improvement of the FreeBSD/Perl5 build.

o make install ; make install now works
o make all ; make all is quiet the second time
o Dependancies are properliy debugged; this means that make -jN has a
  far hihjer likelyhood of working.
o a proper 'link farm' has been constructed for the build. This
  dramatically simplifies the dependancy tangle.
o for perldoc's use, all the .pod files are installed.
o the man3 docs are properly compressed.
o the man pages and libary code are installed by the makefiles, not
  by a perl script.
o at the end, h2ph is run.

25 years agoAdd extra directories required by Perl5. The one in local-land
markm [Sun, 11 Oct 1998 17:31:35 +0000 (17:31 +0000)]
Add extra directories required by Perl5. The one in local-land
is contoversial and may be removed later.

25 years agoFix minor bogon pointed out by perl5's own perldoc.
markm [Sun, 11 Oct 1998 17:27:33 +0000 (17:27 +0000)]
Fix minor bogon pointed out by perl5's own perldoc.

25 years agoCleanup. No need to install manpages here; no other system module
markm [Sun, 11 Oct 1998 17:23:34 +0000 (17:23 +0000)]
Cleanup. No need to install manpages here; no other system module
does it, and it is done /in toto/ elsewhere.

25 years agoEliminate nested comment warning.
jdp [Sun, 11 Oct 1998 17:14:56 +0000 (17:14 +0000)]
Eliminate nested comment warning.

Submitted by: lh@aus.org

25 years agoFixed removing of obsolete shared libraries:
bde [Sun, 11 Oct 1998 16:33:02 +0000 (16:33 +0000)]
Fixed removing of obsolete shared libraries:
- the directory was wrong if ${SHLIBDIR} != ${LIBDIR}.  It's still wrong
  if the installation of the obsolete library was done before /aout was
  appended to LIBDIR.
- the version would have become wrong when the default in ../Makefile.inc
  is changed from 2.0.
- the comment mostly described moving of libraries to /usr/lib/compat, but
  we don't do that.

25 years agoSync with sys/i386/boot/biosboot/table.c revision 1.17.
kato [Sun, 11 Oct 1998 15:09:36 +0000 (15:09 +0000)]
Sync with sys/i386/boot/biosboot/table.c revision 1.17.

25 years agoSync with sys/i386/boot/biosboot/boot.c revision up to 1.74.
kato [Sun, 11 Oct 1998 15:09:14 +0000 (15:09 +0000)]
Sync with sys/i386/boot/biosboot/boot.c revision up to 1.74.

25 years agoSync with sysi/386/boot/biosboot/boot.h revision 1.24.
kato [Sun, 11 Oct 1998 15:08:50 +0000 (15:08 +0000)]
Sync with sysi/386/boot/biosboot/boot.h revision 1.24.

25 years agoSync with sys/i386/i386/machdep.c revision 1.313.
kato [Sun, 11 Oct 1998 15:04:38 +0000 (15:04 +0000)]
Sync with sys/i386/i386/machdep.c revision 1.313.

25 years agoSync with sys/i386/conf/files.i386 revision 1.206.
kato [Sun, 11 Oct 1998 15:02:49 +0000 (15:02 +0000)]
Sync with sys/i386/conf/files.i386 revision 1.206.

25 years agoSync with sys/i386/conf/Makefile.i386 revision 1.126.
kato [Sun, 11 Oct 1998 15:01:40 +0000 (15:01 +0000)]
Sync with sys/i386/conf/Makefile.i386 revision 1.126.

25 years agoSync with sys/i386/conf/GENERIC revision 1.124.
kato [Sun, 11 Oct 1998 15:00:24 +0000 (15:00 +0000)]
Sync with sys/i386/conf/GENERIC revision 1.124.

25 years agoAvoid the need for calling functions that malloc after a vfork().
peter [Sun, 11 Oct 1998 14:11:51 +0000 (14:11 +0000)]
Avoid the need for calling functions that malloc after a vfork().

25 years agoOverride for ELF.
rnordier [Sun, 11 Oct 1998 12:59:40 +0000 (12:59 +0000)]
Override for ELF.

25 years agoOverride for ELF. Override .s.o suffix rule.
rnordier [Sun, 11 Oct 1998 11:27:48 +0000 (11:27 +0000)]
Override for ELF.  Override .s.o suffix rule.

25 years agoFix a warning that's been bugging me for ages.
peter [Sun, 11 Oct 1998 10:29:49 +0000 (10:29 +0000)]
Fix a warning that's been bugging me for ages.

25 years agoFix a warning
peter [Sun, 11 Oct 1998 10:28:51 +0000 (10:28 +0000)]
Fix a warning

25 years agoProbe all consoles, not just the first. It doesn't make a lot of
peter [Sun, 11 Oct 1998 10:19:11 +0000 (10:19 +0000)]
Probe all consoles, not just the first.  It doesn't make a lot of
difference, but might later on when we implement some sort of multi-head
console mode.  Select a console after probing them all.
Don't strdup a potentially NULL return from getenv().
If we don't select an active console, choose the first regardless.
Call the console init function, at startup time and on a manual change.
The env_setenv() function needs EV_VOLATILE because it's pointing to
data that isn't malloc'ed and will cause a fault if it's freed later.

25 years agoCosmetic: After the autoboot timeout, print a \n.
peter [Sun, 11 Oct 1998 10:10:41 +0000 (10:10 +0000)]
Cosmetic:  After the autoboot timeout, print a \n.

25 years agoOnly call vidc_init() once (unless forced).
peter [Sun, 11 Oct 1998 10:07:52 +0000 (10:07 +0000)]
Only call vidc_init() once (unless forced).
Cosmetic change to the init-time character eater (like, make it increment
the index counter - if there's a problem, it would sit there in an infinite
loop instead of only running 10 times).

25 years agoFix comconsole mode. The int 0x14 read and status commands were reversed.
peter [Sun, 11 Oct 1998 10:05:13 +0000 (10:05 +0000)]
Fix comconsole mode.  The int 0x14 read and status commands were reversed.
Also, make sure we set %dx each time around otherwise the commands
suddenly start trying to work on things like com92 instead of com1.
Make sure comc_init() is only run once.
Cosmetic change to init-time character eater.

25 years agoWarn that one of the DEBUG statements has a v86 recursion bug.
peter [Sun, 11 Oct 1998 10:01:55 +0000 (10:01 +0000)]
Warn that one of the DEBUG statements has a v86 recursion bug.

25 years agoFix comment to match code
peter [Sun, 11 Oct 1998 09:53:30 +0000 (09:53 +0000)]
Fix comment to match code

25 years agoComment about libm and libmd being needed for some libraries.
peter [Sun, 11 Oct 1998 07:41:31 +0000 (07:41 +0000)]
Comment about libm and libmd being needed for some libraries.
Prompted by: bde

Also. Don't build & install legacy lkm's when NOLKM has been set.
Otherwise it gets built in the src tree rather than obj, because the
previous 'make obj' at the start of legacy-build does respect NOLKM.

25 years agoClear out transmit descriptor memory in fxp_attach when it's malloced.
dg [Sun, 11 Oct 1998 06:28:54 +0000 (06:28 +0000)]
Clear out transmit descriptor memory in fxp_attach when it's malloced.
fxp_stop is called as the first thing in fxp_init, and if the tx desc
list has junk in it, the system may panic. This bug showed up as a side
effect of the changes in rev 1.56, but has been in the code since the
beginning.

25 years agolibg++ and libstdc++ also have internal calls to libm. Programs using the
peter [Sun, 11 Oct 1998 04:56:03 +0000 (04:56 +0000)]
libg++ and libstdc++ also have internal calls to libm.  Programs using the
shared versions should not need to add -lm unless the program uses libm
itself.  Strictly speaking, libg++ depends on libstdc++, but libstdc++
has dynamic dependencies on some exception tables and binutils doesn't
seem to like it when a secondary library has undefined references.  It
doesn't seem to care when -lstdc++ is added on the command line to ld
though.  Anyway, the c++ driver adds -lstdc++ explicitly, so that should
be OK.  c++ also adds -lm explicitly too, even though it wouldn't need
to now. [except for statically linked binaries as .a files don't have an
equivalent of automatic internal shared object dependencies.]

25 years agoFix a couple of out-of-bounds array references in mapping between
jdp [Sun, 11 Oct 1998 04:54:16 +0000 (04:54 +0000)]
Fix a couple of out-of-bounds array references in mapping between
Linux and FreeBSD signal numbers.  Also, check signal numbers passed
in from application programs for validity.  Without these checks,
it is trivial to panic the system from a Linux program.

25 years agolibopie also depends on libmd. Programs using libopie shouldn't have to
peter [Sun, 11 Oct 1998 04:45:50 +0000 (04:45 +0000)]
libopie also depends on libmd.  Programs using libopie shouldn't have to
know about libopie's internals in order to use it.

25 years agolibf2c.so.* depends on libm.so. I'm not sure that this matters in this
peter [Sun, 11 Oct 1998 04:44:12 +0000 (04:44 +0000)]
libf2c.so.* depends on libm.so.  I'm not sure that this matters in this
case because I expect the f2c front-end should add the -lm automatically.

25 years agolibatm uses libmd; add it to the dependency list so that programs using
peter [Sun, 11 Oct 1998 04:41:43 +0000 (04:41 +0000)]
libatm uses libmd; add it to the dependency list so that programs using
libatm are not forced to know the internals of it's implementation.

25 years agoDeal with /usr/lib/compat/aout, and that we've been installing things
peter [Sun, 11 Oct 1998 04:39:56 +0000 (04:39 +0000)]
Deal with /usr/lib/compat/aout, and that we've been installing things
in the wrong places for a while.
Also, the the libtermlib.so -> libtermcap.so manually for elf, otherwise
the hard link follows the symlink and the result looks rather wierd.  The
*.a files are still hard linked under elf as before.

25 years agoDon't build elf libresolv.so*, no elf freebsd binaries have used it ever.
peter [Sun, 11 Oct 1998 04:21:56 +0000 (04:21 +0000)]
Don't build elf libresolv.so*, no elf freebsd binaries have used it ever.
Also, the a.out compat version is supposed to go into /usr/lib/compat/aout.
Try and clean up the mess left behind in /usr/lib/compat.

25 years agoDon't install an elf libgnumalloc.so* in /usr/lib/compat.. No elf binaries
peter [Sun, 11 Oct 1998 04:18:30 +0000 (04:18 +0000)]
Don't install an elf libgnumalloc.so* in /usr/lib/compat.. No elf binaries
have been linked against it.  Try and clean up the leftovers.  Also, put
the a.out libs in /usr/lib/compat/aout since that's where the default
a.out ldconfig compat path points to.

25 years agoDon't install an elf liby.so[.2] in /usr/lib/compat. We have never had
peter [Sun, 11 Oct 1998 04:10:14 +0000 (04:10 +0000)]
Don't install an elf liby.so[.2] in /usr/lib/compat.  We have never had
any elf binaries linked against it.  Try and clean up the mess left over..

25 years agoadd <sys/linker.h>
dima [Sun, 11 Oct 1998 03:53:35 +0000 (03:53 +0000)]
add <sys/linker.h>

25 years agoIf the bus delay is >= 2 seconds, notify the user that we are waiting
gibbs [Sat, 10 Oct 1998 21:10:36 +0000 (21:10 +0000)]
If the bus delay is >= 2 seconds, notify the user that we are waiting
for devices to settle.  This will hopefully allay any 'first installation'
fears that the machine has hung.

25 years agoMove OBJFORMAT hack to the correct line; what can I say, it was very
jkh [Sat, 10 Oct 1998 19:56:59 +0000 (19:56 +0000)]
Move OBJFORMAT hack to the correct line; what can I say, it was very
late. :)

25 years agovfork -> fork. The child calls execl() which calls malloc(), so
bde [Sat, 10 Oct 1998 19:30:45 +0000 (19:30 +0000)]
vfork -> fork.  The child calls execl() which calls malloc(), so
vfork() can't be used.  We could use alloca() in execl() so that
it can be called between vfork() and execve(), but a "portable"
popen() shouldn't depend on this.  Calling execle() instead of
execl() should be fairly safe, since execle() is supposed to be
callable from signal handlers and signal handlers can't call
malloc().  However, execle() is broken.

25 years agoFixed mbuf leak in fxp_stop().
dg [Sat, 10 Oct 1998 19:26:40 +0000 (19:26 +0000)]
Fixed mbuf leak in fxp_stop().

25 years agovfork -> fork. The child calls abort(), which calls stdio.
bde [Sat, 10 Oct 1998 19:21:39 +0000 (19:21 +0000)]
vfork -> fork.  The child calls abort(), which calls stdio.

25 years agovfork -> fork. This home made popen() had the same bug as the library
bde [Sat, 10 Oct 1998 19:18:30 +0000 (19:18 +0000)]
vfork -> fork.  This home made popen() had the same bug as the library
popen(), but worse.  The child calls execvp(), which calls malloc()
a bit more than execl(), and it calls non-library functions that call
malloc() and who-knows-what else (stdio is called in at least some
error cases).

25 years agoFixed gross breakage in previous commit. The malloc sizes for the
bde [Sat, 10 Oct 1998 19:01:47 +0000 (19:01 +0000)]
Fixed gross breakage in previous commit.  The malloc sizes for the
temporary file names were uninitialized if TMPDIR was set and 1 too
small otherwise.

Fixed style bugs in previous commit.

Fixed missing checks for malloc failure in previous commit.

Report malloc failure consistently, at least in temp.c.

25 years agoRemoved debugging cruft.
bde [Sat, 10 Oct 1998 18:37:02 +0000 (18:37 +0000)]
Removed debugging cruft.

Broken in: previous commit

25 years agoMake kernel build on alpha again. New kld stuff needs rindex.
gpalmer [Sat, 10 Oct 1998 18:32:18 +0000 (18:32 +0000)]
Make kernel build on alpha again. New kld stuff needs rindex.

25 years agoKill an extraneous dot.
rnordier [Sat, 10 Oct 1998 15:47:16 +0000 (15:47 +0000)]
Kill an extraneous dot.
PR: 8103
Submitted by: Kazuo Horikawa <horikawa@jp.freebsd.org>

25 years agoDon't pretend to support ix86's with 16-bit ints by using longs just
bde [Sat, 10 Oct 1998 14:30:05 +0000 (14:30 +0000)]
Don't pretend to support ix86's with 16-bit ints by using longs just
to ensure 32-bit variables.  Doing so broke i386's with 64-bit longs.

This also fixes printf format errors.

25 years agoFix a typo.
rnordier [Sat, 10 Oct 1998 14:03:03 +0000 (14:03 +0000)]
Fix a typo.
Output another newline before invoking bootstrap.

25 years agoFixed warnings for pointer versus int type mismatches. Addresses must
bde [Sat, 10 Oct 1998 14:02:07 +0000 (14:02 +0000)]
Fixed warnings for pointer versus int type mismatches.  Addresses must
be converted to fixed-sized integers when they are passed across the
binary interface to the kernel.

25 years agoFixed warnings for pointer versus int type mismatches. Addresses must
bde [Sat, 10 Oct 1998 13:51:24 +0000 (13:51 +0000)]
Fixed warnings for pointer versus int type mismatches.  Addresses must
be converted to fixed-sized integers when they are passed across the
binary interface to the kernel.

Didn't fix rotted bits (including not passing dosdev to the kernel and
serious out of dateness when initially committed).

25 years agomp_machdep.c: Set a vector to boot code (PC-98).
kato [Sat, 10 Oct 1998 13:37:16 +0000 (13:37 +0000)]
mp_machdep.c: Set a vector to boot code (PC-98).
locore.s: Tell the bios to warmboot next time (PC-98).

25 years agoRemove the description of EBADF (that's an implementation detail if I
eivind [Sat, 10 Oct 1998 13:31:32 +0000 (13:31 +0000)]
Remove the description of EBADF (that's an implementation detail if I
ever saw one), and move the description of NULL behaviour out to a
'NOTES' section, with an extra note that programs should not rely up
on it.

Kinda-approve-by: bde (by not replying to the mail with the diff)

25 years agoFixed searching for section "1aout" man pages. Section numbers must be
bde [Sat, 10 Oct 1998 13:11:39 +0000 (13:11 +0000)]
Fixed searching for section "1aout" man pages.  Section numbers must be
single digits or in the section list.

25 years agoDon't build or install ${MAN1}. It's just a copy of ${MAN1aout} and
bde [Sat, 10 Oct 1998 12:48:48 +0000 (12:48 +0000)]
Don't build or install ${MAN1}.  It's just a copy of ${MAN1aout} and
installing it clobbers the elf ${MAN1}.  The MAN1 -> MAN1aout changes
actually work now.

Fixed order of MAN* and BINDIR.

25 years agoPC-98 uses different boot code from IBM-PC. So, MACHINE is used
kato [Sat, 10 Oct 1998 11:16:08 +0000 (11:16 +0000)]
PC-98 uses different boot code from IBM-PC.  So, MACHINE is used
instead of MACHINE_ARCH.

Submitted by: Takahashi Yoshihiro <nyan@wyvern.cc.kogakuin.ac.jp>

25 years agoQuick commit to see if I can't fix Robert's i386/boot problem in one line.
jkh [Sat, 10 Oct 1998 10:54:54 +0000 (10:54 +0000)]
Quick commit to see if I can't fix Robert's i386/boot problem in one line.
If this doesn't work, we'll try something else.

25 years agoPC-98 doesn't have CMOS ram.
kato [Sat, 10 Oct 1998 10:36:12 +0000 (10:36 +0000)]
PC-98 doesn't have CMOS ram.

25 years agoPR: bin/8250
thepish [Sat, 10 Oct 1998 09:58:20 +0000 (09:58 +0000)]
PR: bin/8250
protect against buffer overruns in mail temporary files.

25 years agoAdd missing newline to debugging output.
jkh [Sat, 10 Oct 1998 09:43:44 +0000 (09:43 +0000)]
Add missing newline to debugging output.

25 years agoPC-98 doesn't have CMOS ram.
kato [Sat, 10 Oct 1998 09:38:02 +0000 (09:38 +0000)]
PC-98 doesn't have CMOS ram.

25 years agoAdd GENERIC rev 1.124 changes
obrien [Sat, 10 Oct 1998 09:25:12 +0000 (09:25 +0000)]
Add GENERIC rev 1.124 changes

25 years agoDon't chain makes with &&; apparently this is evil for parallelism.
jkh [Sat, 10 Oct 1998 08:21:18 +0000 (08:21 +0000)]
Don't chain makes with &&; apparently this is evil for parallelism.
According to: bde

25 years agoAdjust for new MFS root code.
jkh [Sat, 10 Oct 1998 08:15:38 +0000 (08:15 +0000)]
Adjust for new MFS root code.

25 years agoAdd entries for MFS which are consistent with the others, now that
jkh [Sat, 10 Oct 1998 08:13:58 +0000 (08:13 +0000)]
Add entries for MFS which are consistent with the others, now that
Peter has made this more selectable.