dragonfly.git
20 years agoDon't use wildcards in csh expansions to avoid early termination of
Matthew Dillon [Sun, 1 Feb 2004 19:51:45 +0000 (19:51 +0000)]
Don't use wildcards in csh expansions to avoid early termination of
the upgrade.

20 years agoAdd much needed scripts to /etc/rc.d
Robert Garrett [Sun, 1 Feb 2004 10:25:48 +0000 (10:25 +0000)]
Add much needed scripts to /etc/rc.d

resident
takes a list of pathnames or filenames from /etc/resident.conf
and makes them resident

varsym
takes a list of variable definitions from /etc/varsym.conf
and makes them system wide varsyms

these are currently off by default

thanks to Eirik Nygaard for his assistance

20 years agobinutils214 stage 1/4. Bring in the build infrastructure (left untied from
Matthew Dillon [Sun, 1 Feb 2004 08:53:05 +0000 (08:53 +0000)]
binutils214 stage 1/4.  Bring in the build infrastructure (left untied from
system).  This infrastructure can handle i386 but the amd64 code is not
yet complete.

20 years agoonly update motd if the first word of the first line is Dragonfly
Robert Garrett [Sun, 1 Feb 2004 03:32:08 +0000 (03:32 +0000)]
only update motd if the first word of the first line is Dragonfly

Submitted by:

Dylan Reinhold

20 years agoReadd ending '\' so it compiles the cross build tools
Eirik Nygaard [Sat, 31 Jan 2004 18:08:03 +0000 (18:08 +0000)]
Readd ending '\' so it compiles the cross build tools

20 years agoBuild lwkt_process_ipiq_frame only for the kernel, since
Joerg Sonnenberger [Sat, 31 Jan 2004 17:14:40 +0000 (17:14 +0000)]
Build lwkt_process_ipiq_frame only for the kernel, since
struct intrframe doesn't exist in userspace and breaks libcaps.

20 years agoAdd getopt_long from NetBSD
Joerg Sonnenberger [Sat, 31 Jan 2004 13:38:48 +0000 (13:38 +0000)]
Add getopt_long from NetBSD

20 years agoRemove genassym and gensetdefs from the cross build as well.
Eirik Nygaard [Sat, 31 Jan 2004 11:56:26 +0000 (11:56 +0000)]
Remove genassym and gensetdefs from the cross build as well.

20 years agoMake gcc3 the default for non-i386 architectures, leave gcc2 the default
Matthew Dillon [Sat, 31 Jan 2004 09:14:24 +0000 (09:14 +0000)]
Make gcc3 the default for non-i386 architectures, leave gcc2 the default
for i386 architectures.

20 years agoremove genassym and gensetdefs in the upgrade_etc target.
Matthew Dillon [Sat, 31 Jan 2004 08:59:01 +0000 (08:59 +0000)]
remove genassym and gensetdefs in the upgrade_etc target.

20 years agoRemove genassym and gensetdefs. These programs are obsolete and no longer
Matthew Dillon [Sat, 31 Jan 2004 08:56:18 +0000 (08:56 +0000)]
Remove genassym and gensetdefs.  These programs are obsolete and no longer
used.

20 years agoCut our umbilical cord from mother FreeBSD.
Jeroen Ruigrok/asmodai [Sat, 31 Jan 2004 08:52:16 +0000 (08:52 +0000)]
Cut our umbilical cord from mother FreeBSD.
Reword some sentences.
Add some new directories.

20 years agoMAINTAINER lines in Makefile's are no longer applicable, remove them.
Matthew Dillon [Sat, 31 Jan 2004 06:56:46 +0000 (06:56 +0000)]
MAINTAINER lines in Makefile's are no longer applicable, remove them.

20 years agoRemove limitations on the 'machine' specification.
Matthew Dillon [Sat, 31 Jan 2004 03:26:56 +0000 (03:26 +0000)]
Remove limitations on the 'machine' specification.

Loosely-based-on: FreeBSD-5.x

20 years ago* Sync pages with FreeBSD 4.x
David Rhodus [Sat, 31 Jan 2004 01:09:19 +0000 (01:09 +0000)]
* Sync pages with FreeBSD 4.x

Sent in by: Christian Brueffer

20 years agoUpdate miscellanious firewire manual pages from FreeBSD-4.x.
Matthew Dillon [Fri, 30 Jan 2004 22:38:47 +0000 (22:38 +0000)]
Update miscellanious firewire manual pages from FreeBSD-4.x.

Submitted-by: Christian Brueffer <chris@unixpages.org>
Taken-from: FreeBSD-4.x

20 years agoClean up the sys_nsig verses NSIG code to handle additional fault
Matthew Dillon [Fri, 30 Jan 2004 18:21:18 +0000 (18:21 +0000)]
Clean up the sys_nsig verses NSIG code to handle additional fault
cases and reformat 'trap -l' output to handle the additional signals.

Report-by: Nate Lawson <nate@root.org>, Bruce Evans <bde@zeta.org.au>
20 years ago* Add kern_systimer.c to the kernel build process.
David Rhodus [Fri, 30 Jan 2004 13:23:55 +0000 (13:23 +0000)]
* Add kern_systimer.c to the kernel build process.

20 years agoUpdate to latest version.
Jeroen Ruigrok/asmodai [Fri, 30 Jan 2004 11:31:17 +0000 (11:31 +0000)]
Update to latest version.

Submitted/requested by: Xin LI <delphij@frontfree.net>

20 years agoThis commit represents a major revamping of the clock interrupt and timebase
Matthew Dillon [Fri, 30 Jan 2004 06:20:08 +0000 (06:20 +0000)]
This commit represents a major revamping of the clock interrupt and timebase
infrastructure in DragonFly.

(fix syntax error in conditionalized section of kern_ntptime.c)

20 years agoThis commit represents a major revamping of the clock interrupt and timebase
Matthew Dillon [Fri, 30 Jan 2004 06:18:28 +0000 (06:18 +0000)]
This commit represents a major revamping of the clock interrupt and timebase
infrastructure in DragonFly.

(missing nfs files)

20 years agoThis commit represents a major revamping of the clock interrupt and timebase
Matthew Dillon [Fri, 30 Jan 2004 05:42:18 +0000 (05:42 +0000)]
This commit represents a major revamping of the clock interrupt and timebase
infrastructure in DragonFly.

* Rip out the existing 8254 timer 0 code, and also disable the use of
  Timer 2 (which means that the PC speaker will no longer go beep).  Timer 0
  used to represent a periodic interrupt and a great deal of code was in
  place to attempt to obtain a timebase off of that periodic interrupt.

  Timer 0 is now used in software retriggerable one-shot mode to produce
  variable-delay interrupts.  A new hardware interrupt clock abstraction
  called SYSTIMERS has been introduced which allows threads to register
  periodic or one-shot interrupt/IPI callbacks at approximately 1uS
  granularity.

  Timer 2 is now set in continuous periodic mode with a period of 65536
  and provides the timebase for the system, abstracted to 32 bits.

  All the old platform-integrated hardclock() and statclock() code has
  been rewritten.  The old IPI forwarding code has been #if 0'd out and
  will soon be entirely removed (the systimer abstraction takes care of
  multi-cpu registrations now).  The architecture-specific clkintr() now
  simply calls an entry point into the systimer and provides a Timer 0
  reload and Timer 2 timebase function API.

* On both UP and SMP systems, cpus register systimer interrupts for the Hz
  interrupt, the stat interrupt, and the scheduler round-robin interrupt.
  The abstraction is carefully designed to allow multiple interrupts occuring
  at the same time to be processed in a single hardware interrupt.  While
  we currently use IPI's to distribute requested interrupts from other cpu's,
  the intent is to use the abstraction to take advantage of per-cpu timers
  when available (e.g. on the LAPIC) in the future.

  systimer interrupts run OUTSIDE THE MP LOCK.  Entry points may be called
  from the hard interrupt or via an IPI message (IPI messages have always
  run outside the MP lock).

* Rip out timecounters and disable alternative timecounter code for other
  time sources.  This is temporary.  Eventually other time sources, such as
  the TSC, will be reintegrated as independant, parallel-running entities.
  There will be no 'time switching' per-say, subsystems will be able to
  select which timebase they wish to use.  It is desireable to reintegrate
  at least the TSC to improve [get]{micro,nano}[up]time() performance.

  WARNING: PPS events may not work properly.  They were not removed, but
  they have not been retested with the new code either.

* Remove spl protection around [get]{micro,nano}[up]time() calls, they are
  now internally protected.

* Use uptime instead of realtime in certain CAM timeout tests

* Remove struct clockframe.  Use struct intrframe everywhere where clockframe
  used to be used.

* Replace most splstatclock() protections with crit_*() protections, because
  such protections must now also protect against IPI messaging interrupts.

* Add fields to the per-cpu globaldata structure to access timebase related
  information using only a critical section rather then a mutex.  However,
  the 8254 Timer 2 access code still uses spin locks.  More work needs to
  be done here, the 'realtime' correction is still done in a single global
  'struct timespec basetime' structure.

* Remove the CLKINTR_PENDING icu and apic interrupt hacks.

* Augment the IPI Messaging code to make an intrframe available to callbacks.

* Document 8254 timing modes in i386/sai/timerreg.h.  Note that at the
  moment we assume an 8254 instead of an 8253 as we are using TIMER_SWSTROBE
  mode.  This may or may not have to be changed to an 8253 mode.

* Integrate the NTP correction code into the new timebase subsystem.

* Separate boottime from basettime.  Once boottime is believed to be stable
  it is no longer effected by NTP or other time corrections.

CAVETS:

* PC speaker no longer works

* Profiling interrupt rate not increased (it needs work to be
  made operational on a per-cpu basis rather then system-wide).

* The native timebase API is function-based, but currently hardwired.

* There might or might not be issues with 486 systems due to the
  timer mode I am using.

20 years agoThis should hopefully fix current issues with bootstrap buildworlds from
Matthew Dillon [Fri, 30 Jan 2004 02:35:02 +0000 (02:35 +0000)]
This should hopefully fix current issues with bootstrap buildworlds from
4.x and older versions of DFly, and with user-specified CCVER and CPUTYPE
environment variables.

Explicitly override CCVER in buildworld in a backwards compatible fashion
when building gcc2's and gcc3's startup libraries.  Also override CCVER
in gnu/lib/gcc{2,3}/Makefile when bootstrapping from older DFly or FBsd
systems which do not implement the '.makeenv' make directive.

In bsd.init.mk detect when CCVER is changed by a Makefile or Makefile.inc and
rerun bsd.cpu.mk to update the _CPUCFLAGS set, which is assigned in bsd.cpu.mk.
We relay on the fact that ${} variables are not resolved until rules accessing
them are actually run.

Clean up objformat (no operational changes).

20 years agoSet a variable indicating that we support .makeenv, so we can conditionalize
Matthew Dillon [Thu, 29 Jan 2004 22:40:36 +0000 (22:40 +0000)]
Set a variable indicating that we support .makeenv, so we can conditionalize
its use.

20 years agooops, undo part of the last commit. cpp, f77 need their gccX frontends in
Matthew Dillon [Thu, 29 Jan 2004 02:26:46 +0000 (02:26 +0000)]
oops, undo part of the last commit. cpp, f77 need their gccX frontends in
/usr/bin/gccX

20 years agoAdd back a directory path that buildworld needs, remove /usr/libexec/gcc2
Matthew Dillon [Thu, 29 Jan 2004 01:56:05 +0000 (01:56 +0000)]
Add back a directory path that buildworld needs, remove /usr/libexec/gcc2
from mtree.

20 years agohave upgrade / upgrade_etc remove /usr/libexec/gcc2 now as well, it has
Matthew Dillon [Thu, 29 Jan 2004 01:43:47 +0000 (01:43 +0000)]
have upgrade / upgrade_etc remove /usr/libexec/gcc2 now as well, it has
been moved to /usr/libexec/binutils212.

20 years agoRemove the remainder of Makefile.sub handling. Make objformat aware of the
Matthew Dillon [Thu, 29 Jan 2004 01:39:48 +0000 (01:39 +0000)]
Remove the remainder of Makefile.sub handling.  Make objformat aware of the
new binutils location for cpp and f77.  Make contrib/gcc aware of the new
binutils locations as specified in /usr/src/gnu/usr.bin/cc/Makefile.inc.
This is hardwired at the moment.

This fixes dependancies on the old /usr/libexec/gcc2 directory.

20 years agoRename .sub files back to .inc.
Matthew Dillon [Wed, 28 Jan 2004 21:26:55 +0000 (21:26 +0000)]
Rename .sub files back to .inc.

20 years agoRename Makefile.sub back to Makefile.inc to fix cross builds.
Matthew Dillon [Wed, 28 Jan 2004 19:27:01 +0000 (19:27 +0000)]
Rename Makefile.sub back to Makefile.inc to fix cross builds.

20 years agoUndo some of the previously made changes to deal with cross build issues
Matthew Dillon [Wed, 28 Jan 2004 19:24:14 +0000 (19:24 +0000)]
Undo some of the previously made changes to deal with cross build issues
from 4.x and older versions of DFly.

sys.mk should *NOT* include bsd.init.mk.  That is way, way too early and
blows up .inc files, e.g. such as those used by sys/boot.

Rename .sub back to .inc in sys/boot (more on the way) so it will cross build
from 4.x.

20 years agoMove binutils from /usr/libexec/gcc2/{aout,elf} to
Joerg Sonnenberger [Wed, 28 Jan 2004 16:41:18 +0000 (16:41 +0000)]
Move binutils from /usr/libexec/gcc2/{aout,elf} to
/usr/libexec/binutils212/{aout,elf}.
Move GCC 2.95.4 C++ headers from /usr/include/g++ to
/usr/include/c++/2.95.

20 years agoFix various warnings and other glitches.
Joerg Sonnenberger [Wed, 28 Jan 2004 16:25:29 +0000 (16:25 +0000)]
Fix various warnings and other glitches.

Patch submitted by Simon "corecode" Schubert.

20 years agoChange functin definitions to conform to style(9)
Joerg Sonnenberger [Wed, 28 Jan 2004 14:36:00 +0000 (14:36 +0000)]
Change functin definitions to conform to style(9)

20 years agoAdd support for the AMD 8111 chipset
Joerg Sonnenberger [Wed, 28 Jan 2004 12:48:49 +0000 (12:48 +0000)]
Add support for the AMD 8111 chipset

20 years agoFix the DDB 'trace' command. When segment address adjustments were added
Matthew Dillon [Wed, 28 Jan 2004 03:52:28 +0000 (03:52 +0000)]
Fix the DDB 'trace' command.  When segment address adjustments were added
in 1.7 so VM86 code could be properly traced, the routine that pulls out
%ebp was accidently changed to return %esp instead, causing DDB
backtraces to produce incorrect results.

20 years agoTry to work-around a DFly-specific crash that can occur in ufs_ihashget()
Matthew Dillon [Tue, 27 Jan 2004 23:56:48 +0000 (23:56 +0000)]
Try to work-around a DFly-specific crash that can occur in ufs_ihashget()
if the underlying vnode is being reclaimed at the same time.  Bump the
vnodes ref count to interlock against vget's VXLOCK test.

20 years agofunc() -> func(void) style.
Matthew Dillon [Tue, 27 Jan 2004 21:03:08 +0000 (21:03 +0000)]
func() -> func(void) style.

20 years agoremove ifwatchd we don't have the binary we don't need the script
Robert Garrett [Tue, 27 Jan 2004 19:01:21 +0000 (19:01 +0000)]
remove ifwatchd we don't have the binary we don't need the script

20 years agoDescribe variant symlinks in the 'ln' manual page.
Matthew Dillon [Tue, 27 Jan 2004 18:36:52 +0000 (18:36 +0000)]
Describe variant symlinks in the 'ln' manual page.

With-some-changes-by: dillon
Submitted-by: Chris Pressey <cpressey@catseye.mine.nu>
20 years agoFix type-o's and add a few files to the cleanup list.
Matthew Dillon [Tue, 27 Jan 2004 18:28:22 +0000 (18:28 +0000)]
Fix type-o's and add a few files to the cleanup list.

Submitted-by: Chris Pressey <cpressey@catseye.mine.nu>
20 years agoUSB storage devices are standard fare these days, add device atapicam to
Matthew Dillon [Tue, 27 Jan 2004 18:26:43 +0000 (18:26 +0000)]
USB storage devices are standard fare these days, add device atapicam to
GENERIC.

20 years agoRename Makefile.inc to Makefile.sub
Joerg Sonnenberger [Tue, 27 Jan 2004 16:26:34 +0000 (16:26 +0000)]
Rename Makefile.inc to Makefile.sub

20 years agofix bug where i accidently left ;; at the end of two case switches
Robert Garrett [Tue, 27 Jan 2004 01:26:25 +0000 (01:26 +0000)]
fix bug where i accidently left ;; at the end of two case switches

20 years agofinish updating rcng to remove FreeBSD and NetBSD code
Robert Garrett [Tue, 27 Jan 2004 00:59:21 +0000 (00:59 +0000)]
finish updating rcng to remove FreeBSD and NetBSD code

20 years agoupdate rcng to remove FreeBSD and NetBSD
Robert Garrett [Tue, 27 Jan 2004 00:55:43 +0000 (00:55 +0000)]
update rcng to remove FreeBSD and NetBSD

20 years agoupdate rcng to remove FreeBSD and NetBSD
Robert Garrett [Tue, 27 Jan 2004 00:42:46 +0000 (00:42 +0000)]
update rcng to remove FreeBSD and NetBSD

20 years agoFix a serious bug in the NTPD loopfilter. Basically what happens is that
Matthew Dillon [Mon, 26 Jan 2004 20:58:11 +0000 (20:58 +0000)]
Fix a serious bug in the NTPD loopfilter.  Basically what happens is that
when the frequency error is low (e.g. like 15ppm), but an offset correction
must be made (e.g. like 3 seconds), the rstclock() call loopfilter makes
in the S_NSET state, after adjusting the system time, will reload a
clock_offset value PRIOR to the system time adjustment actually having taken
place, because rstclock() uses offset information prior to the time step, not
after, and because the kernel may slew the time step over several seconds.

The result is that clock_offset will wind up being very high (e.g. like 3
seconds) as the loopfilter enters into the S_FREQ state.  This will cause
the loopfilter to make a wildly incorrect clock_frequency calculation and
in my tests it can take ntpd and the kernel upwards of one to two DAYS to
correct for the bad calculation.

The fix is to introduce an offset settling state, S_PFREQ, which resets
the offset calculations CLOCK_MINSEC seconds after the correction was made
in order to give the next state, S_FREQ, a good basis for calculating the
frequency drift.  clock_offset will be far more reasonable when the S_FREQ
state is entered, a good clock_frequency calculation will be made, and
ntpd will lock onto the frequency is less then half an hour (instead of
24+ hours).

20 years agoRemove Makefile.inc
Joerg Sonnenberger [Mon, 26 Jan 2004 19:57:36 +0000 (19:57 +0000)]
Remove Makefile.inc

20 years agoRename Makefile.in to Makefile.sub
Joerg Sonnenberger [Mon, 26 Jan 2004 19:49:32 +0000 (19:49 +0000)]
Rename Makefile.in to Makefile.sub

20 years agoRename Makefile.inc to Makefile.sub
Joerg Sonnenberger [Mon, 26 Jan 2004 19:22:47 +0000 (19:22 +0000)]
Rename Makefile.inc to Makefile.sub

20 years agoTo let the crazy Perl Makefiles work, add the support for ../Makefile.sub
Joerg Sonnenberger [Mon, 26 Jan 2004 19:09:49 +0000 (19:09 +0000)]
To let the crazy Perl Makefiles work, add the support for ../Makefile.sub
which is included at the time ../Makefile.inc originally was.

20 years ago* DragonFly<-FreeBSD Name clean ups
David Rhodus [Mon, 26 Jan 2004 18:16:18 +0000 (18:16 +0000)]
* DragonFly<-FreeBSD Name clean ups

20 years ago* Change FreeBSD ifdef over to DragonFly
David Rhodus [Mon, 26 Jan 2004 18:14:43 +0000 (18:14 +0000)]
* Change FreeBSD ifdef over to DragonFly

* Clean up compiler warning in phantasia

20 years ago* Change FreeBSD ifdefs to DragonFly
David Rhodus [Mon, 26 Jan 2004 18:12:54 +0000 (18:12 +0000)]
* Change FreeBSD ifdefs to DragonFly

20 years agoReally remove C++ from libc_r
Joerg Sonnenberger [Mon, 26 Jan 2004 18:04:03 +0000 (18:04 +0000)]
Really remove C++ from libc_r

20 years agoRemove C++ from libc_r. Use __attribute__((constructor)) instead.
Joerg Sonnenberger [Mon, 26 Jan 2004 17:50:34 +0000 (17:50 +0000)]
Remove C++ from libc_r. Use __attribute__((constructor)) instead.

20 years agoremove NetBSD and FreeBSD from rcng scripts
Robert Garrett [Mon, 26 Jan 2004 17:21:15 +0000 (17:21 +0000)]
remove NetBSD and FreeBSD from rcng scripts

20 years agoAlways include bsd.init.mk to fix CPUTYPE evaluation
Joerg Sonnenberger [Mon, 26 Jan 2004 16:13:49 +0000 (16:13 +0000)]
Always include bsd.init.mk to fix CPUTYPE evaluation

20 years agoFix make complaining about CCVER being not defined
Joerg Sonnenberger [Mon, 26 Jan 2004 15:42:36 +0000 (15:42 +0000)]
Fix make complaining about CCVER being not defined

20 years agoAlways re-export CCVER
Joerg Sonnenberger [Mon, 26 Jan 2004 15:24:38 +0000 (15:24 +0000)]
Always re-export CCVER

20 years agoRename bsd.cpu.mk into bsd.cpu.gcc2.mk and add the proper Makefile magic
Joerg Sonnenberger [Mon, 26 Jan 2004 15:22:08 +0000 (15:22 +0000)]
Rename bsd.cpu.mk into bsd.cpu.gcc2.mk and add the proper Makefile magic
to choose the compiler-specific Makefile to bsd.cpu.mk.
Add FreeBSD current's bsd.cpu.mk as bsd.cpu.gcc3.mk.

20 years agoReplace K&R style function declarations with ANSI style one.
Joerg Sonnenberger [Mon, 26 Jan 2004 11:09:44 +0000 (11:09 +0000)]
Replace K&R style function declarations with ANSI style one.

Patch submitted by Chis Pressey <cpressey@catseye.mine.nu>

Additonally fix some style(9) issues and remove a bogus and probably
out-dated volatile cast in scanc.c.

20 years ago* DragonFly<-FreeBSD name change in boot loader code.
David Rhodus [Sun, 25 Jan 2004 22:50:20 +0000 (22:50 +0000)]
* DragonFly<-FreeBSD name change in boot loader code.

20 years ago* Remove extra compile flag to clean up redefine warnings.
David Rhodus [Sun, 25 Jan 2004 22:16:45 +0000 (22:16 +0000)]
*       Remove extra compile flag to clean up redefine warnings.
        NOADDITIONAL is now defined by default in the bind source tree.

20 years ago* Fix man page names.
David Rhodus [Sun, 25 Jan 2004 22:14:27 +0000 (22:14 +0000)]
* Fix man page names.

20 years agoCleanup the fix for dependency handling. This explicitly checks wether
Joerg Sonnenberger [Sun, 25 Jan 2004 19:09:39 +0000 (19:09 +0000)]
Cleanup the fix for dependency handling. This explicitly checks wether
all-depends-list or package-depends-list is a target and drops the
warning message for DragonFly override ports.

20 years agoDon't use non-existing DragonFly override ports for ports using
Joerg Sonnenberger [Sun, 25 Jan 2004 16:52:34 +0000 (16:52 +0000)]
Don't use non-existing DragonFly override ports for ports using
bsd.port.pre.mk.
Don't print the DragonFly override warning while doing
"make package-depends-list", since that breaks the dependency
generation.

20 years agoSplit multiline string literal
Joerg Sonnenberger [Sun, 25 Jan 2004 15:43:24 +0000 (15:43 +0000)]
Split multiline string literal

20 years agoFix typo in a comment.
Hiten Pandya [Sun, 25 Jan 2004 12:30:08 +0000 (12:30 +0000)]
Fix typo in a comment.

Submitted by: Christian Brueffer <chris@unixpages.org>

20 years agoAdd -ffreestanding to CFLAGS for gcc3
Joerg Sonnenberger [Sun, 25 Jan 2004 01:08:41 +0000 (01:08 +0000)]
Add -ffreestanding to CFLAGS for gcc3

20 years agoAdd GCC3 to buildworld.
Joerg Sonnenberger [Sat, 24 Jan 2004 22:43:09 +0000 (22:43 +0000)]
Add GCC3 to buildworld.

20 years agoUse new style variadic functions
Joerg Sonnenberger [Sat, 24 Jan 2004 22:40:58 +0000 (22:40 +0000)]
Use new style variadic functions

20 years agoRemove bogus -fstrict-prototypes which isn't support for gcc3.
Joerg Sonnenberger [Sat, 24 Jan 2004 22:29:20 +0000 (22:29 +0000)]
Remove bogus -fstrict-prototypes which isn't support for gcc3.

Spoted by: Andreas Hauser (buggs@splashground.de)

20 years agoThe __cxa_atext/__cxa_finalize patch is based on FreeBSD OR bin/59552
Joerg Sonnenberger [Sat, 24 Jan 2004 22:18:12 +0000 (22:18 +0000)]
The  __cxa_atext/__cxa_finalize patch is based on FreeBSD OR bin/59552

20 years agoFix prehistoric C
Joerg Sonnenberger [Sat, 24 Jan 2004 21:00:14 +0000 (21:00 +0000)]
Fix prehistoric C

20 years agoAdd -I${BIND_DIR}/bin/nslookup
Joerg Sonnenberger [Sat, 24 Jan 2004 20:23:41 +0000 (20:23 +0000)]
Add -I${BIND_DIR}/bin/nslookup

20 years agoGCC3 doesn't inspect #line to allow inclusion relative to the source
Joerg Sonnenberger [Sat, 24 Jan 2004 20:16:24 +0000 (20:16 +0000)]
GCC3 doesn't inspect #line to allow inclusion relative to the source
file e.g. ns_parser.y.

20 years agoBoth cc and cc3 were built using CCVER=$(CCVER) for certain compiler path.
Joerg Sonnenberger [Sat, 24 Jan 2004 20:03:28 +0000 (20:03 +0000)]
Both cc and cc3 were built using CCVER=$(CCVER) for certain compiler path.
Since this value is set to choose the build compiler, one of the two was
compiled with wrong pathes for its backend. To fix this a new variable
MY_CCVER is added to Makefile.inc which specifies the version of the
compiler being built.

20 years agoForce make to export CCVER for buildworld
Joerg Sonnenberger [Sat, 24 Jan 2004 19:52:22 +0000 (19:52 +0000)]
Force make to export CCVER for buildworld

20 years agoRemove generated file from repo
Joerg Sonnenberger [Sat, 24 Jan 2004 19:45:23 +0000 (19:45 +0000)]
Remove generated file from repo

20 years agoAdjust program names by removing the additional 3
Joerg Sonnenberger [Sat, 24 Jan 2004 14:43:42 +0000 (14:43 +0000)]
Adjust program names by removing the additional 3

20 years agoPrevent killall from killing itself.
Matthew Dillon [Sat, 24 Jan 2004 09:02:28 +0000 (09:02 +0000)]
Prevent killall from killing itself.

Submitted-by: Chris Pressey <cpressey@catseye.mine.nu>
Imported-from: http://www.freebsd.org/cgi/query-pr.cgi?pr=46107

20 years agoCleanup the duel-macro specifications in sioreg.h and ns16550.h by having
Matthew Dillon [Sat, 24 Jan 2004 08:00:45 +0000 (08:00 +0000)]
Cleanup the duel-macro specifications in sioreg.h and ns16550.h by having
sioreg.h include ns16550.h.

Submitted-by: Robert Garrett <rg70@sbcglobal.net>
20 years agoWhen creating a new uidinfo structure, check for an allocation race whether
Matthew Dillon [Sat, 24 Jan 2004 07:55:50 +0000 (07:55 +0000)]
When creating a new uidinfo structure, check for an allocation race whether
we were to malloc M_NOWAIT or M_WAITOK, which means we can just use M_WAITOK
unconditionally.

20 years agoTurn off hardware assisted transmit checksums by default. In buildworld
Matthew Dillon [Sat, 24 Jan 2004 06:40:34 +0000 (06:40 +0000)]
Turn off hardware assisted transmit checksums by default.  In buildworld
loop tests this has been conclusively shown to corrupt transmit packets
about one out of every million packets.  The receive will not know the the
packet is bad because hardware assist also apples the correct checksum
to the corrupted packet.  The result are random failures or corruption
of network data in certain situations.  On DragonFly, for some reason, doing
a 'resident /usr/bin/*' seems to bring the problem out every few buildworlds
with (primarily) mkdep's cpp complaining about odd errors trying to open
non-existant header files (during a header file search), such as
EPROTONOSUPPORT.  A tcpdump on both NFS client and server showed the
client transmitting an access RPC and the server seeing a corrupted access
RPC on its end, and then responding with EPROTONOSUPPORT.  Other uncaught
errors are also almost certainly occuring.  mkdep is more likely to catch
them because it actually checks the errno of a failed open() and does a
huge number of open()'s (and as an NFS client this generates a huge amount
of packet traffic).

20 years agoSynch the XL driver with FreeBSD-4.x.
Matthew Dillon [Sat, 24 Jan 2004 06:34:02 +0000 (06:34 +0000)]
Synch the XL driver with FreeBSD-4.x.

20 years agoRemove unused local variable.
Jeffrey Hsu [Sat, 24 Jan 2004 05:24:15 +0000 (05:24 +0000)]
Remove unused local variable.

20 years agoRemove dead code.
Jeffrey Hsu [Sat, 24 Jan 2004 05:19:55 +0000 (05:19 +0000)]
Remove dead code.

20 years agoAssume read access for execute requests so we can fill in the read credential
Matthew Dillon [Fri, 23 Jan 2004 23:00:52 +0000 (23:00 +0000)]
Assume read access for execute requests so we can fill in the read credential
for executed programs.  This should fix some of the execution I/O errors
that have been reported over NFS volumes whos servers map the root cred2
to -2:-2.

Report-by: Andrew Atrens <atrens@nortelnetworks.com>
20 years agoAdd support for ${BINUTILSVER} to objformat. This defaults to gcc2
Joerg Sonnenberger [Fri, 23 Jan 2004 22:30:25 +0000 (22:30 +0000)]
Add support for ${BINUTILSVER} to objformat. This defaults to gcc2
and generates the current locations (e.g. /usr/libexec/gcc2/elf/as).
c++filt was moved into the normal compiler bindir.

20 years agoRemove some prehistoric C crap
Joerg Sonnenberger [Fri, 23 Jan 2004 20:53:09 +0000 (20:53 +0000)]
Remove some prehistoric C crap

20 years agoFix prehistoric C
Joerg Sonnenberger [Fri, 23 Jan 2004 20:28:01 +0000 (20:28 +0000)]
Fix prehistoric C

20 years agoFix prehistoric C
Joerg Sonnenberger [Fri, 23 Jan 2004 19:57:41 +0000 (19:57 +0000)]
Fix prehistoric C

20 years agoRemove bogus sys_nerr defines
Joerg Sonnenberger [Fri, 23 Jan 2004 19:49:35 +0000 (19:49 +0000)]
Remove bogus sys_nerr defines

20 years agoGet rid of embedded newline continuation entirely and switch to an ANSI
Matthew Dillon [Fri, 23 Jan 2004 19:30:21 +0000 (19:30 +0000)]
Get rid of embedded newline continuation entirely and switch to an ANSI
multi-line string.

20 years agoAdd -I${.CURDIR} to Makefile
Joerg Sonnenberger [Fri, 23 Jan 2004 19:13:45 +0000 (19:13 +0000)]
Add -I${.CURDIR} to Makefile

20 years agoAdd detection code for the SiS 746 ATA133 controller.
Jeroen Ruigrok/asmodai [Fri, 23 Jan 2004 15:35:13 +0000 (15:35 +0000)]
Add detection code for the SiS 746 ATA133 controller.
This does not, for all I can quickly see, enable ATA133 on the controller.

20 years agoAdd missing \ to string
Joerg Sonnenberger [Fri, 23 Jan 2004 15:33:28 +0000 (15:33 +0000)]
Add missing \ to string

20 years agoAdd -I{.CURDIR} to CFLAGS
Joerg Sonnenberger [Fri, 23 Jan 2004 15:15:11 +0000 (15:15 +0000)]
Add -I{.CURDIR} to CFLAGS