]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoNow that we have it, replace `afterinstall' target with SCRIPTS.
Ruslan Ermilov [Thu, 13 Sep 2001 14:26:31 +0000 (14:26 +0000)]
Now that we have it, replace `afterinstall' target with SCRIPTS.

23 years agoUpdate code which creates bootinfo.
Doug Rabson [Thu, 13 Sep 2001 12:49:02 +0000 (12:49 +0000)]
Update code which creates bootinfo.

23 years ago* Enable dynamically linked kernel. This involves adding a self-relocator
Doug Rabson [Thu, 13 Sep 2001 12:39:15 +0000 (12:39 +0000)]
* Enable dynamically linked kernel. This involves adding a self-relocator
  to locore to process the @fptr relocations in the dynamic executable.
* Don't initialise the timer until *after* we install the timecounter to
  avoid a race between timecounter initialisation and hardclock.
* Tidy up bootinfo somewhat including adding sanity checks for when the
  kernel is loaded without a recognisable bootinfo.

23 years agosigpause() -> sigsuspend()
Brian Somers [Thu, 13 Sep 2001 10:03:30 +0000 (10:03 +0000)]
sigpause() -> sigsuspend()
sigblock() -> sigprocmask()

23 years agoCorrect alignment issues
Brian Somers [Thu, 13 Sep 2001 10:03:20 +0000 (10:03 +0000)]
Correct alignment issues

Obtained from: OpenBSD

23 years agoAdd a strcasecmp() call I forgot in my hurry to commit the previous fix.
Dag-Erling Smørgrav [Thu, 13 Sep 2001 09:40:35 +0000 (09:40 +0000)]
Add a strcasecmp() call I forgot in my hurry to commit the previous fix.
Without this call, the hostname check would in some cases yield false
positives.

Pointed out by: ru

23 years agoSpell syslog.conf correctly
Brian Somers [Thu, 13 Sep 2001 09:06:51 +0000 (09:06 +0000)]
Spell syslog.conf correctly

Submitted by: Tony Finch <dot@dotat.at>
PR: 30545

23 years agoAdd ext2fs module
Michael Reifenberger [Thu, 13 Sep 2001 08:27:23 +0000 (08:27 +0000)]
Add ext2fs module

23 years ago<jkh> "Hey Rocky, watch me eject this pccard outta my laptop!" "What,
Warner Losh [Thu, 13 Sep 2001 08:26:55 +0000 (08:26 +0000)]
<jkh> "Hey Rocky, watch me eject this pccard outta my laptop!"  "What,
again?  That NEVER works!"  "This time for sure!"

Minor overhaul of how we do interrupts for the pci interrupt routing
case to cope with card ejection better (read: make it not hand on so
many cards):
o Reintroduce func_intr and func_arg and use the to store the
  interrupt handler to call.
o Create a pcic_pci_func_intr to call the real interrupt handler
  iff the card hasn't been ejected.
o Remove some checks in pcic_setup_intr now that it is used
  exclusively for isa routed interrupts.
o Defer the eject event until later too, but make sure we can't
  do any client driver ISR calling in the interrum.
o Add some simple code to make sure that we don't attach more
  than one child.  This should fix pccardd starting twice
  problem (ala single user -> multi-user when you started pccardd
  by hand in SU).

MFC: after jkh thinks I've put the crack pipe away.

23 years agoFixed the BINGRP handling mess.
Ruslan Ermilov [Thu, 13 Sep 2001 07:20:51 +0000 (07:20 +0000)]
Fixed the BINGRP handling mess.

EXEGRP and EXEMODE are used to install DOS (EXE format) binaries.
doscmd(1) can optionally be installed as ``setgid kmem''.
Hence the assignment operator for EXEGRP.

PR: bin/30538

23 years agoDon't override BINGRP -- this binary is not ``setgid bin''.
Ruslan Ermilov [Thu, 13 Sep 2001 06:52:42 +0000 (06:52 +0000)]
Don't override BINGRP -- this binary is not ``setgid bin''.

PR: bin/30538
Submitted by: Tony Finch <dot@dotat.at>

23 years agoThe previous commit appeared to just shove the bug under the carpet rather
Dag-Erling Smørgrav [Thu, 13 Sep 2001 06:48:41 +0000 (06:48 +0000)]
The previous commit appeared to just shove the bug under the carpet rather
than really solve it.  This approach (inspired by Ruslan's patch) solves
the real problem by stripping the local domain off the host name in the
config line structure.

Also mark a bunch of code sections that either do not check the return value
of a strdup(), malloc() or calloc() call, or do not properly handle a NULL
return.

23 years agoSet BINOWN=root explicitly for setuid root binaries.
Ruslan Ermilov [Thu, 13 Sep 2001 06:48:18 +0000 (06:48 +0000)]
Set BINOWN=root explicitly for setuid root binaries.

This is not "useless", as one may have non-default
setting for BINOWN in make.conf, and we still want
these to be installed setuid root in this case.

23 years ago'make release' should install docproj ports with BATCH=yes so that your
Murray Stokely [Thu, 13 Sep 2001 06:44:36 +0000 (06:44 +0000)]
'make release' should install docproj ports with BATCH=yes so that your
release builds don't stop in the middle of the night asking for user
input about which Ghostscript drivers to install.

23 years agoDue to a bug in the ed driver, which leads to hangs when using it with
Warner Losh [Thu, 13 Sep 2001 06:18:07 +0000 (06:18 +0000)]
Due to a bug in the ed driver, which leads to hangs when using it with
dhclient and pccard_ether, introduce the concept of a "settle time" to
pccard_ether with the new pccard_ether_delay variable.  Defaults to 5
seconds, which is enough time for the ed driver to finish its
autoconfiguration for newer Linksys based cards.  This also can
eliminate the ed0: timeout messages that happen at startup as well.

MFC: after RE says OK.

23 years agoFix logging from remote hosts, which has been broken since (at least) revision
Dag-Erling Smørgrav [Thu, 13 Sep 2001 05:09:14 +0000 (05:09 +0000)]
Fix logging from remote hosts, which has been broken since (at least) revision
1.64, i.e. July of last year.  Also fix a minor style bug in the same code.

PR: bin/28634
Pointy hat to: dwmalone
Pointed out by: my buggy DSL router's remote logging facility

23 years agoEven better compatibility with 4.x. #define thread proc, since for
Warner Losh [Thu, 13 Sep 2001 03:08:19 +0000 (03:08 +0000)]
Even better compatibility with 4.x.  #define thread proc, since for
this file, that's a reasonable workaround.  Also, include sys/proc.h
for 4.x.

23 years agoBetter way to do compatibility between the two versions.
Warner Losh [Thu, 13 Sep 2001 02:12:14 +0000 (02:12 +0000)]
Better way to do compatibility between the two versions.

23 years agoFix KSE breakage to this file:
Warner Losh [Thu, 13 Sep 2001 01:55:23 +0000 (01:55 +0000)]
Fix KSE breakage to this file:
Make it compile again on 4.x.

23 years agoRestore these files to being portable:
John Baldwin [Wed, 12 Sep 2001 23:39:36 +0000 (23:39 +0000)]
Restore these files to being portable:
- Use some simple #define's at the top of the files for proc -> thread
  changes instead of having lots of needless #ifdef's in the code.
- Don't try to use struct thread in !FreeBSD code.
- Don't use a few struct lwp's in some of the NetBSD code since it isn't
  in their HEAD.
The new diff relative to before KSE is now signficantly smaller and easier
to maintain.

23 years ago- Whitespace fixes.
John Baldwin [Wed, 12 Sep 2001 22:32:03 +0000 (22:32 +0000)]
- Whitespace fixes.
- Fix an old bug: p_comm is an array not a pointer, so it can't be NULL.`

23 years agoWhitespace fix.
John Baldwin [Wed, 12 Sep 2001 22:16:18 +0000 (22:16 +0000)]
Whitespace fix.

23 years agoIPFilter munges multicast address packets on the loopback interface.
Darren Reed [Wed, 12 Sep 2001 22:06:36 +0000 (22:06 +0000)]
IPFilter munges multicast address packets on the loopback interface.

Submitted by: Frank Zolf
Approved by: jkh
MFC after: 0

23 years agoWhitespace fixes.
John Baldwin [Wed, 12 Sep 2001 22:00:06 +0000 (22:00 +0000)]
Whitespace fixes.

23 years agoAdd IPFLITER.LICENCE to the kernel (requested by rwatson)
Darren Reed [Wed, 12 Sep 2001 22:00:03 +0000 (22:00 +0000)]
Add IPFLITER.LICENCE to the kernel (requested by rwatson)

23 years agoStyle(9) fixes.
John Baldwin [Wed, 12 Sep 2001 21:57:30 +0000 (21:57 +0000)]
Style(9) fixes.

23 years agoRestore style(9) fixes from commit prior to previous commit.
John Baldwin [Wed, 12 Sep 2001 21:56:28 +0000 (21:56 +0000)]
Restore style(9) fixes from commit prior to previous commit.

23 years agoIf an incoming struct proc could have been NULL before, tehn don't
Julian Elischer [Wed, 12 Sep 2001 20:26:57 +0000 (20:26 +0000)]
If an incoming struct proc could have been NULL before, tehn don't
automatically change the code to add

struct proc *p = td->td_proc;

because now 'td' is probably capable of being NULL too.
I expect to see more of this kind of error during the 'weeding'
process. It's too easy to make. (junior hacker project.. look for these :-)

Submitted by: mark Peek <mp@freebsd.org>

23 years agoReinstate complete (and now correctly functioning) WARNS=2.
Mark Murray [Wed, 12 Sep 2001 19:15:02 +0000 (19:15 +0000)]
Reinstate complete (and now correctly functioning) WARNS=2.

23 years agoTypo: s/conatains/contains/
Guido van Rooij [Wed, 12 Sep 2001 17:57:31 +0000 (17:57 +0000)]
Typo: s/conatains/contains/

MFC after: 1 week

23 years agoA command file for SKI which runs the loader up to the first instruction
Doug Rabson [Wed, 12 Sep 2001 15:08:49 +0000 (15:08 +0000)]
A command file for SKI which runs the loader up to the first instruction
of the loaded kernel.

23 years agoUse ${MACHINE}, it works with cross-builds.
Ruslan Ermilov [Wed, 12 Sep 2001 12:21:08 +0000 (12:21 +0000)]
Use ${MACHINE}, it works with cross-builds.

23 years agoCreate backup copies using install(1).
Ruslan Ermilov [Wed, 12 Sep 2001 10:25:50 +0000 (10:25 +0000)]
Create backup copies using install(1).

23 years agoFixed some of style bugs.
Ruslan Ermilov [Wed, 12 Sep 2001 10:04:42 +0000 (10:04 +0000)]
Fixed some of style bugs.

23 years agoKSE Milestone 2
Julian Elischer [Wed, 12 Sep 2001 08:38:13 +0000 (08:38 +0000)]
KSE Milestone 2
Note ALL MODULES MUST BE RECOMPILED
make the kernel aware that there are smaller units of scheduling than the
process. (but only allow one thread per process at this time).
This is functionally equivalent to teh previousl -current except
that there is a thread associated with each process.

Sorry john! (your next MFC will be a doosie!)

Reviewed by: peter@freebsd.org, dillon@freebsd.org

X-MFC after:    ha ha ha ha

23 years agoBuild ficl on all architectures.
Doug Rabson [Wed, 12 Sep 2001 08:35:05 +0000 (08:35 +0000)]
Build ficl on all architectures.

23 years agoAdd a version of the loader which runs under SKI, the HP ia64 simulator.
Doug Rabson [Wed, 12 Sep 2001 08:34:27 +0000 (08:34 +0000)]
Add a version of the loader which runs under SKI, the HP ia64 simulator.
This loader is quite functional and can load and run kernels. The kernels
don't quite work right after loading but that should be easily fixable.

23 years agoIncrease AUTHNAME to 42 bytes for users of T-Online, which requires 41
Gary Jennejohn [Wed, 12 Sep 2001 08:27:54 +0000 (08:27 +0000)]
Increase AUTHNAME to 42 bytes for users of T-Online, which requires 41
bytes.

MFC after: 2 weeks

23 years agoMerged from sys/i386/i386/machdep.c revision 1.479.
KATO Takenori [Wed, 12 Sep 2001 08:15:24 +0000 (08:15 +0000)]
Merged from sys/i386/i386/machdep.c revision 1.479.

23 years agoCorrect the entry for Sudetenland. It also has nothing to do with the south.
Greg Lehey [Wed, 12 Sep 2001 07:22:38 +0000 (07:22 +0000)]
Correct the entry for Sudetenland.  It also has nothing to do with the south.

Corrected by: joerg
Pointy hat to: grog

23 years agoCall pcic_teardown_intr to make sure that we disestablish the
Warner Losh [Wed, 12 Sep 2001 05:57:31 +0000 (05:57 +0000)]
Call pcic_teardown_intr to make sure that we disestablish the
interrupt for the card.

This seems to fix hangs on my machine.

MFC: pending re approval.

23 years agoo Fix struct ssc_time and enable the SSC call to get the RTC.
Marcel Moolenaar [Wed, 12 Sep 2001 03:31:26 +0000 (03:31 +0000)]
o  Fix struct ssc_time and enable the SSC call to get the RTC.
o  Print a message that the TODR is not set in sscclock_set.

23 years agoFix the kern.module_path issue that required the trailing '/' character
Peter Wemm [Wed, 12 Sep 2001 00:50:23 +0000 (00:50 +0000)]
Fix the kern.module_path issue that required the trailing '/' character
on each module path component.  Fix a one-byte buffer overflow at the
same time that got highlighted in the process.

23 years agoCorrect the invasion of Südetenland. Any involvement of ducks was insignificant.
Greg Lehey [Wed, 12 Sep 2001 00:13:02 +0000 (00:13 +0000)]
Correct the invasion of Südetenland.  Any involvement of ducks was insignificant.

23 years agoReplace print/ghostscript6-nox11 with print/ghostscript-gnu-nox11.
Akinori MUSHA [Tue, 11 Sep 2001 21:34:27 +0000 (21:34 +0000)]
Replace print/ghostscript6-nox11 with print/ghostscript-gnu-nox11.

23 years agoNew release note: semop(2) buffer overflow fixed.
Bruce A. Mah [Tue, 11 Sep 2001 21:05:01 +0000 (21:05 +0000)]
New release note:  semop(2) buffer overflow fixed.

23 years agoReturn the *right* error codes for yes/no questions when non-interactive.
Jordan K. Hubbard [Tue, 11 Sep 2001 20:42:07 +0000 (20:42 +0000)]
Return the *right* error codes for yes/no questions when non-interactive.

Submitted by: Alan Judge <Alan.Judge@eircom.net>

23 years agoImplement the ``-f address_family'' filter for -i.
Ruslan Ermilov [Tue, 11 Sep 2001 17:14:33 +0000 (17:14 +0000)]
Implement the ``-f address_family'' filter for -i.

Prodded by: Igor Podlesny <poige@morning.ru>

23 years agoUpdate usage() to match reality.
Ruslan Ermilov [Tue, 11 Sep 2001 15:21:36 +0000 (15:21 +0000)]
Update usage() to match reality.

23 years agoDon't create missing directories; that's the duty of mtree(8).
Ruslan Ermilov [Tue, 11 Sep 2001 14:27:11 +0000 (14:27 +0000)]
Don't create missing directories; that's the duty of mtree(8).

Don't depend on chown(8) in ${INSTALLTMP}; -u/-g have been
supported since at least RELENG_4_BP.

23 years agoAdded forgotten share/zoneinfo/America/Kentucky.
Ruslan Ermilov [Tue, 11 Sep 2001 14:25:48 +0000 (14:25 +0000)]
Added forgotten share/zoneinfo/America/Kentucky.

23 years agoNew release note about linker.hints and kldxref(8). Even though this
Dima Dorfman [Tue, 11 Sep 2001 13:11:43 +0000 (13:11 +0000)]
New release note about linker.hints and kldxref(8).  Even though this
solves a pretty annoying problem, this release notes entry doesn't
describe what this fixes because I can't seem to figure out how to do
this without giving a lot of background.

23 years agoIf a sentence starts inside parenthesis, it should end inside
Dima Dorfman [Tue, 11 Sep 2001 13:07:03 +0000 (13:07 +0000)]
If a sentence starts inside parenthesis, it should end inside
parenthesis.

23 years agomdoc(7) police: Fixed the .Ex calls in manpages that describe more
Ruslan Ermilov [Tue, 11 Sep 2001 12:27:15 +0000 (12:27 +0000)]
mdoc(7) police: Fixed the .Ex calls in manpages that describe more
than one utility.

PR: docs/30437
Submitted by: SUZUKI Koichi <koich@cac.co.jp>

23 years agoCorrect a debugging message.
Dima Dorfman [Tue, 11 Sep 2001 12:20:24 +0000 (12:20 +0000)]
Correct a debugging message.

23 years agoUse getprogname(3) instead of hardcoding the name..
Søren Schmidt [Tue, 11 Sep 2001 12:14:20 +0000 (12:14 +0000)]
Use getprogname(3) instead of hardcoding the name..

23 years agoFixes from Ruslan Ermilov:
Søren Schmidt [Tue, 11 Sep 2001 11:52:49 +0000 (11:52 +0000)]
Fixes from Ruslan Ermilov:

1.  FreeBSD should be spelled with "F" and "BSD" in capitals,
    even in comments.

2.  Please don't use hard sentence breaks.  Always start a
    new sentence from the new line.

3.  Don't use `#' or `$' in EXAMPLES; this has been fixed
    recently in share/examples/mdoc/ templates.

4.  Nuke the prog_name variable burncd.c, use getprogname(3).

23 years agomdoc(7) police: use standard list width.
Ruslan Ermilov [Tue, 11 Sep 2001 11:15:48 +0000 (11:15 +0000)]
mdoc(7) police: use standard list width.

23 years agomdoc(7) police: fix markup.
Ruslan Ermilov [Tue, 11 Sep 2001 11:12:53 +0000 (11:12 +0000)]
mdoc(7) police: fix markup.

23 years agoUse a colon to separate the user and group when executing chown(1).
Dima Dorfman [Tue, 11 Sep 2001 11:11:38 +0000 (11:11 +0000)]
Use a colon to separate the user and group when executing chown(1).
Periods aren't supported anymore.

PR: 30507
Submitted by: Georg-W. Koltermann <gwk@sgi.com>

23 years agomdoc(7) police: removed hard sentence breaks.
Ruslan Ermilov [Tue, 11 Sep 2001 10:08:29 +0000 (10:08 +0000)]
mdoc(7) police: removed hard sentence breaks.

23 years agomdoc(7) police: restore fix in rev. 1.52; .Dt should be in CAPITALS.
Ruslan Ermilov [Tue, 11 Sep 2001 10:00:48 +0000 (10:00 +0000)]
mdoc(7) police: restore fix in rev. 1.52; .Dt should be in CAPITALS.

23 years agomdoc(7) police: restore the correct sorting of SEE ALSO.
Ruslan Ermilov [Tue, 11 Sep 2001 09:58:34 +0000 (09:58 +0000)]
mdoc(7) police: restore the correct sorting of SEE ALSO.

23 years agomdoc(7) police: markup nits, improve -W option text,
Ruslan Ermilov [Tue, 11 Sep 2001 09:57:31 +0000 (09:57 +0000)]
mdoc(7) police: markup nits, improve -W option text,
mount_msdos(8) is called mount_msdosfs(8) nowadays.

23 years agoRemoved -M and -N from getopt(3) call as well.
Ruslan Ermilov [Tue, 11 Sep 2001 09:49:36 +0000 (09:49 +0000)]
Removed -M and -N from getopt(3) call as well.

23 years agomdoc(7) police: changed pure POSIX text; added missing markup bits.
Ruslan Ermilov [Tue, 11 Sep 2001 09:39:23 +0000 (09:39 +0000)]
mdoc(7) police: changed pure POSIX text; added missing markup bits.

23 years agomdoc(7) police: removed commas from the standard (split) AUTHORS block.
Ruslan Ermilov [Tue, 11 Sep 2001 09:26:38 +0000 (09:26 +0000)]
mdoc(7) police: removed commas from the standard (split) AUTHORS block.

23 years agoFixed the free(3) panic overlooked due to the -Wno-uninitialized.
Ruslan Ermilov [Tue, 11 Sep 2001 08:18:04 +0000 (08:18 +0000)]
Fixed the free(3) panic overlooked due to the -Wno-uninitialized.

23 years agos/password_format/passwd_format/
Ruslan Ermilov [Tue, 11 Sep 2001 07:01:47 +0000 (07:01 +0000)]
s/password_format/passwd_format/

PR: misc/30494
Submitted by: "brian j. peterson" <rbw@myplace.org>

23 years agoOn second thoughts, make kldxref failures non-fatal.
Peter Wemm [Tue, 11 Sep 2001 01:13:49 +0000 (01:13 +0000)]
On second thoughts, make kldxref failures non-fatal.

23 years agoAdd kldxref(8), for maintaining the linker.hints file for translating
Peter Wemm [Tue, 11 Sep 2001 01:13:15 +0000 (01:13 +0000)]
Add kldxref(8), for maintaining the linker.hints file for translating
module->pathname.ko.  It supports only ELF for now.

Submitted by:   bp  (with some minor tweaks)

23 years agoImplement the long-awaited module->file cache database. A userland
Peter Wemm [Tue, 11 Sep 2001 01:09:24 +0000 (01:09 +0000)]
Implement the long-awaited module->file cache database.  A userland
tool (kldxref(8)) keeps a cache of what modules and versions are inside
what .ko files.  I have tested this on both Alpha and i386.

Submitted by: bp

23 years agoMention that uustat now gets run as uucp, not root, and note MFC.
Bruce A. Mah [Mon, 10 Sep 2001 23:19:48 +0000 (23:19 +0000)]
Mention that uustat now gets run as uucp, not root, and note MFC.

23 years ago- Axe holding_giant as it is not used now anyways and was ok'd by
John Baldwin [Mon, 10 Sep 2001 21:04:49 +0000 (21:04 +0000)]
- Axe holding_giant as it is not used now anyways and was ok'd by
  dillon in an earlier e-mail.
- We don't need to test the console right before we vfprintf() the panicstr
  message.  The printing of the panic message is a fine console test by
  itself and doesn't make useful messages scroll off the screen or tick
  developers off in quite the same.

Requested by: jlemon, imp, bmilekic, chris, gsutter, jake (2)

23 years agoAccording to message-id <yfk7kv6rj15.fsf@vader.clickarray.com> on
Bruce A. Mah [Mon, 10 Sep 2001 20:41:39 +0000 (20:41 +0000)]
According to message-id <yfk7kv6rj15.fsf@vader.clickarray.com> on
freebsd-ports, ports/packages will be re-frozen and re-rolled before
4.4-RELEASE, so we can (imprecisely) mark the CVSup bugfix as being MFC-ed.

23 years agoNew release note: Non-root-owned binaries in standard system paths
Bruce A. Mah [Mon, 10 Sep 2001 18:51:13 +0000 (18:51 +0000)]
New release note:  Non-root-owned binaries in standard system paths
now have the schg flag set.

23 years agoRemove a field width specifier that's not doing anything more than
Mike Heffner [Mon, 10 Sep 2001 18:46:07 +0000 (18:46 +0000)]
Remove a field width specifier that's not doing anything more than
what using snprintf() achieves. It was also being used incorrectly.

23 years agoAdd a cast to silence a warning (error because of WARNS=2) on Alpha.
Mike Barcroft [Mon, 10 Sep 2001 17:23:57 +0000 (17:23 +0000)]
Add a cast to silence a warning (error because of WARNS=2) on Alpha.

Discussed with: des

23 years agoNew release notes: Use net/cvsup, rather than net/cvsup-bin and
Bruce A. Mah [Mon, 10 Sep 2001 16:54:50 +0000 (16:54 +0000)]
New release notes:  Use net/cvsup, rather than net/cvsup-bin and
net/cvsupd-bin.  Also note CVSup update to fix S1G bug.

I'm breaking a self-imposed rule of not mentioning ports-collection
updates in release notes.  I'm only doing this because CVSup is a
fairly essential part of the FreeBSD Project infrastructure.  Save
for exceptions such as this, the release notes will continue to
document changes to the base system only.

Suggested by: mike

23 years agoI am no longer the FreeBSD GCC maintainer.
David E. O'Brien [Mon, 10 Sep 2001 16:05:39 +0000 (16:05 +0000)]
I am no longer the FreeBSD GCC maintainer.

23 years agoRename kernel entry point from locorestart to __start.
Doug Rabson [Mon, 10 Sep 2001 15:34:00 +0000 (15:34 +0000)]
Rename kernel entry point from locorestart to __start.

23 years agoDo not overrun entry array when printing output tables.
Ruslan Ermilov [Mon, 10 Sep 2001 15:09:12 +0000 (15:09 +0000)]
Do not overrun entry array when printing output tables.
Cleanup storage allocation for entries.

Obtained from: NetBSD

23 years agoBack out the last change - it was made to the wrong Makefile.
Doug Rabson [Mon, 10 Sep 2001 14:47:34 +0000 (14:47 +0000)]
Back out the last change - it was made to the wrong Makefile.

23 years ago* Make a start on a realistic definition for bootinfo.
Doug Rabson [Mon, 10 Sep 2001 13:40:00 +0000 (13:40 +0000)]
* Make a start on a realistic definition for bootinfo.
* Switch to proc0's stack and backing store before calling ia64_init
  so that we don't rely on the loader's stack at all.
* Change kernel entry point name from locorestart to __start.

23 years agoFix a warning on alpha (real problem) and make pstat -t work as a bonus.
Peter Wemm [Mon, 10 Sep 2001 12:05:47 +0000 (12:05 +0000)]
Fix a warning on alpha (real problem) and make pstat -t work as a bonus.
'struct tty' was out of sync in user and kernel due to dev_t/udev_t
mixups.  This takes advantage of the fact that dev_t changes type in
userland, so it isn't too pretty.

23 years agoDon't call log() without a format string.
Kris Kennaway [Mon, 10 Sep 2001 12:00:47 +0000 (12:00 +0000)]
Don't call log() without a format string.

MFC after: 2 weeks

23 years agoFixed SIGFPE (divide by zero) if column's width exceeds display width (-w).
Ruslan Ermilov [Mon, 10 Sep 2001 11:56:07 +0000 (11:56 +0000)]
Fixed SIGFPE (divide by zero) if column's width exceeds display width (-w).

Obtained from: OpenBSD

23 years agoAdd DAO mode (Disk At Once).
Søren Schmidt [Mon, 10 Sep 2001 11:44:32 +0000 (11:44 +0000)]
Add DAO mode (Disk At Once).
See burncd.8 for how to use it.

23 years agoFixed the -z option handling:
Ruslan Ermilov [Mon, 10 Sep 2001 11:43:40 +0000 (11:43 +0000)]
Fixed the -z option handling:

-Wuninitialized if used without -t.

PR: bin/30467

Null pointer dereference if used with -t.

Maximum column width computation was wrong.

23 years agoAdd kernel side support for DAO burning.
Søren Schmidt [Mon, 10 Sep 2001 11:43:20 +0000 (11:43 +0000)]
Add kernel side support for DAO burning.

23 years agoAdd new ioctl's and rearrange a bit for DAO mode support.
Søren Schmidt [Mon, 10 Sep 2001 11:42:27 +0000 (11:42 +0000)]
Add new ioctl's and rearrange a bit for DAO mode support.

23 years agoMake the `nsops' variable in `semop' unsigned. This prevents an
Dima Dorfman [Mon, 10 Sep 2001 11:36:08 +0000 (11:36 +0000)]
Make the `nsops' variable in `semop' unsigned.  This prevents an
overflow if uap->nsops (which is already unsigned) is over INT_MAX;
consequently, the bounds check below becomes valid.  Previously, if a
value over INT_MAX was passed in uap->nsops, the bounds check wouldn't
catch it, and the value would be used to compute copyin()'s third
argument.

Obtained from: NetBSD

23 years agoFix some signed/unsigned integer confusion, and add bounds checking of
Kris Kennaway [Mon, 10 Sep 2001 11:28:07 +0000 (11:28 +0000)]
Fix some signed/unsigned integer confusion, and add bounds checking of
arguments to some functions.

Obtained from: NetBSD
Reviewed by: peter
MFC after: 2 weeks

23 years agoFix a warning. Dont convert away from const to just re-add it in the
Peter Wemm [Mon, 10 Sep 2001 10:48:19 +0000 (10:48 +0000)]
Fix a warning.  Dont convert away from const to just re-add it in the
wrapped function.

23 years agoFix a warning in bsearch(). Like index() etc, it de-qualifies its
Peter Wemm [Mon, 10 Sep 2001 10:33:46 +0000 (10:33 +0000)]
Fix a warning in bsearch().  Like index() etc, it de-qualifies its
arguments.  Caveat Emptor.  However, the only two consumer of it (cam)
deals with it correctly and preserves the constness.

23 years agomdoc(7) police: markup nits.
Ruslan Ermilov [Mon, 10 Sep 2001 09:08:47 +0000 (09:08 +0000)]
mdoc(7) police: markup nits.

PR: docs/30473
Submitted by: Jonathan Hanna <jhanna@home.com>

23 years agoTypo s/AirLAncer/AirLancer/g
Warner Losh [Mon, 10 Sep 2001 08:14:00 +0000 (08:14 +0000)]
Typo s/AirLAncer/AirLancer/g

23 years agoclarify PCMLM56 status
Warner Losh [Mon, 10 Sep 2001 08:07:46 +0000 (08:07 +0000)]
clarify PCMLM56 status

23 years agoThe EXCard-10-PCMCIA entry was slightly bogus.
Warner Losh [Mon, 10 Sep 2001 08:05:29 +0000 (08:05 +0000)]
The EXCard-10-PCMCIA entry was slightly bogus.

23 years agoFix a warning. l_name is managed by us and is malloc/free'ed.
Peter Wemm [Mon, 10 Sep 2001 07:53:04 +0000 (07:53 +0000)]
Fix a warning.  l_name is managed by us and is malloc/free'ed.
It is the userland declaration of l_name that is inconvenient for us.