Robert Garrett [Tue, 24 May 2005 02:51:49 +0000 (02:51 +0000)]
Add support for dntpd to /etc/rc.d
submitted by rumko
Max Okumoto [Mon, 23 May 2005 20:05:05 +0000 (20:05 +0000)]
Move parseIncPath and sysIncPath out of global scope
Max Okumoto [Mon, 23 May 2005 20:04:43 +0000 (20:04 +0000)]
Move the create list variable out of global scope and put it into
the newly created Parser object. And Pass the parser object around
as a function paramter.
Max Okumoto [Mon, 23 May 2005 20:04:04 +0000 (20:04 +0000)]
o Remove out of date comment about Compat_Init()
o Move init code into Make_Run()
o Have Compat_Run() always return a boolean value (FALSE) so it has
same prototype as Make_Run().
Joerg Sonnenberger [Mon, 23 May 2005 19:45:19 +0000 (19:45 +0000)]
Remove spurious semicolon.
Joerg Sonnenberger [Mon, 23 May 2005 19:41:59 +0000 (19:41 +0000)]
Fake DES was removed a while ago, remove the prototypes as well.
Max Okumoto [Mon, 23 May 2005 18:26:25 +0000 (18:26 +0000)]
Pass queryFlag as a function paramter instead of a program
global variable.
Max Okumoto [Mon, 23 May 2005 18:25:58 +0000 (18:25 +0000)]
Pass ENDNode as a function parameter instead of using a file global variable.
Max Okumoto [Mon, 23 May 2005 18:25:34 +0000 (18:25 +0000)]
Move signal handler setup code into its own function, and share
that with the compat code.
Max Okumoto [Mon, 23 May 2005 18:24:59 +0000 (18:24 +0000)]
Move ProcExec() into proc.c
Matthew Dillon [Mon, 23 May 2005 18:23:29 +0000 (18:23 +0000)]
Do better range checking on the LDT. FreeBSD-SA-05:07.ldt
Joerg Sonnenberger [Mon, 23 May 2005 18:22:41 +0000 (18:22 +0000)]
duplicate is
Matthew Dillon [Mon, 23 May 2005 18:20:47 +0000 (18:20 +0000)]
Have the EM device call the new interrupt enablement and disablement
functions to avoid handler races.
Matthew Dillon [Mon, 23 May 2005 18:19:55 +0000 (18:19 +0000)]
Add NEWBUS infrastructure for interrupt enablement and disablement. This
allows a device to indicate to the interrupt dispatch architecture that it
has enabled or disabled the device interrupt at the source. The dispatch
will then decline to call the handler. This is necessary because it is
possible for the interrupt handler to be called from the interrupt thread
AFTER the device has disabled the hard interrupt. There are two cases:
FIRST CASE:
* hard interrupt occurs
* interrupt thread is scheduled but cannot preempt
* device disables interrupt
* interrupt thread then runs handler while device believes interrupt to
be disabled.
SECOND CASE:
* multiple devices share the same interrupt (#1 and #2)
* device #1 interrupts and schedules the thread
* the handler for ALL devices is run, even if device #2 disabled
its hard interrupt.
Clean up and simplify the interrupt vector code. Always install a MUX
function. The MUX function will check the handler enablement/disablement
state.
Max Okumoto [Mon, 23 May 2005 18:19:05 +0000 (18:19 +0000)]
Some comment header and whitespace cleanups.
Joerg Sonnenberger [Mon, 23 May 2005 18:05:58 +0000 (18:05 +0000)]
device_printf / if_printf cleanup.
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
Joerg Sonnenberger [Mon, 23 May 2005 17:54:11 +0000 (17:54 +0000)]
Cleanup bfe_probe.
Joerg Sonnenberger [Mon, 23 May 2005 16:00:44 +0000 (16:00 +0000)]
style(9) and nic style changes.
Joerg Sonnenberger [Mon, 23 May 2005 07:00:36 +0000 (07:00 +0000)]
Spurious semicolon broke gcc2 build.
Liam J. Foy [Sun, 22 May 2005 17:48:57 +0000 (17:48 +0000)]
- util.h -> libutil.h
Requested by: Joerg@
Liam J. Foy [Sun, 22 May 2005 17:09:53 +0000 (17:09 +0000)]
- More fixes for the debug code
Joerg Sonnenberger [Sun, 22 May 2005 16:14:04 +0000 (16:14 +0000)]
Convert bge(4) to the new M_EXT API. This allows merging the dynamic
state back into the softc and saves a small malloc per jumbo buffer
in the rx ring.
Liam J. Foy [Sun, 22 May 2005 11:53:05 +0000 (11:53 +0000)]
- WITHOUT_ERRNO should be 0, silly mistake.
Noticed by: swildner@
YONETANI Tomokazu [Sun, 22 May 2005 03:37:05 +0000 (03:37 +0000)]
More -Wwrite-strings cleanup and make sure you can actually play it.
YONETANI Tomokazu [Sun, 22 May 2005 01:28:15 +0000 (01:28 +0000)]
Minimum bandaid to the breakage due to the last gcc40-cleanup.
Simon Schubert [Sat, 21 May 2005 10:47:43 +0000 (10:47 +0000)]
Add -t/--tag option to automatically add $DragonFly$ tags to the patch files
Simon Schubert [Sat, 21 May 2005 10:31:08 +0000 (10:31 +0000)]
Fix compilation with gcc40: Don't postincrement and cast lvalues.
Joerg Sonnenberger [Sat, 21 May 2005 09:07:52 +0000 (09:07 +0000)]
Use ether_crc32_le instead of local hack.
Joerg Sonnenberger [Sat, 21 May 2005 09:05:05 +0000 (09:05 +0000)]
style(9)
Joerg Sonnenberger [Sat, 21 May 2005 08:57:29 +0000 (08:57 +0000)]
Exploit bus_alloc_resource_any.
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
Joerg Sonnenberger [Sat, 21 May 2005 07:38:41 +0000 (07:38 +0000)]
Use bus_alloc_resource_any. Use pci helper functions, don't roll them
by hand.
Joerg Sonnenberger [Sat, 21 May 2005 07:28:04 +0000 (07:28 +0000)]
if_printf/device_printf cleanup. Remove minor junk.
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
Joerg Sonnenberger [Fri, 20 May 2005 14:30:33 +0000 (14:30 +0000)]
Rework TX EOF handling. We have to always check for TX underruns,
even in the TX_OK case. In the error case, reset the tx configuration
register.
Inspired-by: NetBSD'S rtl81x9 driver
Max Okumoto [Fri, 20 May 2005 11:48:55 +0000 (11:48 +0000)]
Cleanup str_concat() there is no need for special flags. Just
pass the character you want to use as a seperator. If the seperator
character is '\0', then don't put in a seperator.
Max Okumoto [Fri, 20 May 2005 11:48:18 +0000 (11:48 +0000)]
Get rid of shellPath global by adding another field to the
shell structure.
Max Okumoto [Fri, 20 May 2005 11:47:43 +0000 (11:47 +0000)]
Rename functions since they are no longer part of job.c
Max Okumoto [Fri, 20 May 2005 11:47:22 +0000 (11:47 +0000)]
Remove shells array and just use the const strings directly. This
allows us to get rid of the DEF_SHELL_STRUCT() macro, and just use
a normal struct.
Max Okumoto [Fri, 20 May 2005 11:46:27 +0000 (11:46 +0000)]
Remove string array called 'copy' and just use the const strings directly.
Max Okumoto [Thu, 19 May 2005 17:11:08 +0000 (17:11 +0000)]
Add comments to shells array definition.
Max Okumoto [Thu, 19 May 2005 17:10:37 +0000 (17:10 +0000)]
FreeBSD-Date: 2005/05/18 07:50:38
Author: harti
Get rid of the ReturnStatus obscuration that was anyway used only
in two places. While here don't bother returning anything from
Lst_Replace - nobody ever checks the return code.
Suggested by: jmallet
Max Okumoto [Thu, 19 May 2005 17:09:20 +0000 (17:09 +0000)]
Add the missing files. <sigh>
Max Okumoto [Thu, 19 May 2005 17:07:17 +0000 (17:07 +0000)]
2nd Try. The correct version.
Move shell code out of job.c into shell.[ch]
Max Okumoto [Thu, 19 May 2005 17:04:45 +0000 (17:04 +0000)]
Revert patch on 2005/05/19 17:53:58 it was the wrong one :-(
Max Okumoto [Thu, 19 May 2005 16:56:37 +0000 (16:56 +0000)]
Backout last commit. It should be done after the next patch. <sigh>
Max Okumoto [Thu, 19 May 2005 16:54:15 +0000 (16:54 +0000)]
Add comments to shells array definition.
Max Okumoto [Thu, 19 May 2005 16:53:58 +0000 (16:53 +0000)]
Move shell code out of job.c into shell.[ch]
Max Okumoto [Thu, 19 May 2005 16:51:45 +0000 (16:51 +0000)]
Move RLIMIT_NOFILE code into Proc_Init()
Move check_make_level() into job.c
Max Okumoto [Thu, 19 May 2005 16:51:19 +0000 (16:51 +0000)]
Small cleanups
Max Okumoto [Thu, 19 May 2005 16:51:06 +0000 (16:51 +0000)]
Move make global variables setup into a sepearate function.
Max Okumoto [Thu, 19 May 2005 16:50:35 +0000 (16:50 +0000)]
Group code that sets global variables (make MACROs)
Max Okumoto [Thu, 19 May 2005 16:49:56 +0000 (16:49 +0000)]
Move code that reads in the input files into sepearte function.
Max Okumoto [Thu, 19 May 2005 16:49:32 +0000 (16:49 +0000)]
Move a few global variables into a struct and pass it as a parameter.
Max Okumoto [Thu, 19 May 2005 16:47:57 +0000 (16:47 +0000)]
Cleanup search for default Makefile, by adding comments and
retructuring code.
Max Okumoto [Wed, 18 May 2005 21:35:17 +0000 (21:35 +0000)]
Spelling error caught by harti.
Max Okumoto [Wed, 18 May 2005 07:11:01 +0000 (07:11 +0000)]
Reduce diff from FreeBSD.
Liam J. Foy [Tue, 17 May 2005 18:09:44 +0000 (18:09 +0000)]
- Actually make the debug code work
- WARNS 6 -DEBUG
Ok boy: Joerg@
Robert Garrett [Mon, 16 May 2005 20:59:28 +0000 (20:59 +0000)]
Add newbtconf to the build
Robert Garrett [Mon, 16 May 2005 20:57:31 +0000 (20:57 +0000)]
Add support for multiple boot profiles
initial import
obtained from: netbsd
written by: Darren Reed
Max Okumoto [Mon, 16 May 2005 17:36:08 +0000 (17:36 +0000)]
o Move code to determine objdir into determine_objdir().
o Move curdir, and objdir out of global scope.
o Clean up ReadMakefile()
+ put enough code into the #ifdef #endif section to
be a complete statement.
+ renamed var 'p' to file and elimiate as many uses of
strdup() copy as possible. The strup() is a hack.
+ Eliminate goto by inlining the destination code. Trust
the compiler to do its job.
+ inline setMAKEFILE.
+ Moved common code out of #ifdef sections.
Max Okumoto [Mon, 16 May 2005 17:35:39 +0000 (17:35 +0000)]
Clean up objdir determination code. Create a local scope to prep
to move this code into it's own function.
Max Okumoto [Mon, 16 May 2005 17:32:15 +0000 (17:32 +0000)]
Clean up chdir_verify_path() and add comments.
Max Okumoto [Mon, 16 May 2005 17:30:24 +0000 (17:30 +0000)]
Constify the result of Var_Value().
Max Okumoto [Mon, 16 May 2005 17:29:42 +0000 (17:29 +0000)]
patch-7.278
o Cleanup Var_Value(). It doesn't need the third parameter since
we only return references to values in a context. This should
have been done a while ago when I cleaned up VAR_ENV.
Sascha Wildner [Mon, 16 May 2005 11:26:03 +0000 (11:26 +0000)]
Remove MGA/CGA/EGA rendering code.
YONETANI Tomokazu [Mon, 16 May 2005 09:20:56 +0000 (09:20 +0000)]
("" < 3.4) always evaluates to true, which unconditionally
undef'es USE_GCC.
YONETANI Tomokazu [Mon, 16 May 2005 07:34:46 +0000 (07:34 +0000)]
Deal with "or later" notation of USE_GCC knob.
Inspired-by: FreeBSD ports/Mk/bsd.gcc.mk,1.1
Liam J. Foy [Sun, 15 May 2005 20:10:28 +0000 (20:10 +0000)]
- The AC Line state can be returned as 2 meaning 'backup power'. The previous
code would see this as an invalid value.
Discussed with: Nate @ FreeBSD
Max Okumoto [Sun, 15 May 2005 17:50:09 +0000 (17:50 +0000)]
FreeBSD-Date: 2005/05/13 14:47:40
Author: harti
Use the print_flags function to print the OP_ flags of a target.
Give the function one more argument to decide whether it should
print the flags like a C-expression or just space-delimited.
Max Okumoto [Sun, 15 May 2005 17:49:29 +0000 (17:49 +0000)]
Move print_flags() back into utils. Since harti decided to start working
on it after I moved it.
Max Okumoto [Sun, 15 May 2005 17:48:03 +0000 (17:48 +0000)]
FreeBSD-Date: 2005/05/13 07:31:45
Author: harti
Make Shell_Init() static - it's only used here.
Make sure we don't end up with shellPath beeing non-zero, but shellName
beeing zero in the error case - back out cleanly from the error.
When executing a command for macro assignment in Cmd_Exec() stuff the
path of the shell into argv[0], not the name. This makes no difference
from the functionality point of view, but allows the regression tests to
determine whether make executes the correct shell.
Max Okumoto [Sat, 14 May 2005 22:53:17 +0000 (22:53 +0000)]
FreeBSD-Date: 2005/05/12 17:40:16
Author: jmallett
Include <err.h>. On my system CVS Make(1) has an implicit declaration of
warnc(3) without it.
Max Okumoto [Sat, 14 May 2005 22:52:18 +0000 (22:52 +0000)]
FreeBSD-Date: 2005/05/12 15:16:44
Author: harti
Fix the fix for bin/72510 applied in job.c:1.70. Actually there have
been two maxJobs variables: one static in job.c and one global used in
main.c and parse.c. Makeing one global out of these was the wrong way
to fix the problem. Instead rename the global one to jobLimit and keep
maxJobs static in job.c.
Suggested by: rwatson
PR: bin/72510
Max Okumoto [Sat, 14 May 2005 22:49:16 +0000 (22:49 +0000)]
Use strpbrk() instead of array to match characters for meta characters.
This patch was mixed in with the one I submited
FreeBSD-Date: 2005/05/12 11:40:57
Change in FreeBSD: harti (idea taken, but done differently)
Joerg Sonnenberger [Sat, 14 May 2005 09:29:22 +0000 (09:29 +0000)]
Remove an incorrect free. The code path should normally not be hit, but
better safe than sorry.
Joerg Sonnenberger [Sat, 14 May 2005 08:21:54 +0000 (08:21 +0000)]
Reorder initialisation by calling if_initname before vr_reset.
Nuke long unused variable.
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
Max Okumoto [Sat, 14 May 2005 06:26:22 +0000 (06:26 +0000)]
Remove extranious blankline.
Caught by harti.
Max Okumoto [Sat, 14 May 2005 05:52:28 +0000 (05:52 +0000)]
Fix spelling error.
Caught by harti
Max Okumoto [Sat, 14 May 2005 04:51:22 +0000 (04:51 +0000)]
Constify ProcExec()
Noticed by Harti.
Joerg Sonnenberger [Sat, 14 May 2005 01:33:35 +0000 (01:33 +0000)]
Move if_initname call before xl_reset to ensure correct initialisation.
Submitted-by: Sepherosa Ziehau <sepherosa@gmail.com>
Joerg Sonnenberger [Fri, 13 May 2005 22:30:11 +0000 (22:30 +0000)]
Add an explicit abort in printaddr to avoid unused variable warnings.
This is in line with the surrounding code.
Joerg Sonnenberger [Fri, 13 May 2005 22:28:24 +0000 (22:28 +0000)]
Fix pointer arithemetic.
Joerg Sonnenberger [Fri, 13 May 2005 21:31:49 +0000 (21:31 +0000)]
WARNS=6 clean already.
Joerg Sonnenberger [Fri, 13 May 2005 17:40:44 +0000 (17:40 +0000)]
Don't activate -funit-at-a-time with -O2 and higher by default, when
propolice is active. There are some bad interactions which can lead
to false negatives under rare circumstances.
Sascha Wildner [Fri, 13 May 2005 15:51:10 +0000 (15:51 +0000)]
Perl is gone from base. You can use your own style again.
David Rhodus [Thu, 12 May 2005 01:41:07 +0000 (01:41 +0000)]
Fix kernel build issue. Missing function argument.
Joerg Sonnenberger [Wed, 11 May 2005 20:58:35 +0000 (20:58 +0000)]
Use device_printf / if_printf and stop abusing the ifnet fields for
internal purposes.
Joerg Sonnenberger [Wed, 11 May 2005 20:36:06 +0000 (20:36 +0000)]
Remove unused second argument to tulip_intr_handler.
Joerg Sonnenberger [Wed, 11 May 2005 20:05:56 +0000 (20:05 +0000)]
Replace local tulip_mbuf_compress with m_defrag call.
Matthew Dillon [Wed, 11 May 2005 19:58:19 +0000 (19:58 +0000)]
Document additional work in last commit. Bumped library to ld-elf.so.2
Matthew Dillon [Wed, 11 May 2005 19:47:09 +0000 (19:47 +0000)]
Major TLS cleanups.
* The RTLD no longer attempts to set up an initial TLS. The job has been
moved to libc. The RTLD does not use TLS itself. The
allocate_initial_tls() function has been removed.
* The _init_tls() call made by CRT1 is no mandatory.
* The RTLD no longer calls the library _init() functions early. Instead it
sets up a callback that allows CRT1 to call the library _init() functions
after it has called _init_tls().
* LIBC now has a _libc_init_tls() function which is weakly bound as
_init_tls(). This function initializes the TLS for the program (generally
by calling the _rtld_allocate_tls() and then doing any required
post-allocation initialization). In the absence of a threading library
this function is basically it.
Threading libraries may replace _init_tls() with their own version. This
does not yet occur as of this commit. The threading library would then
almost certainly call _libc_init_tls() and then make further modifications
to the TCB as necessary (e.g. populate the tcb_pthread field).
* RTLD's allocate_tls() no longer does anything fancy. The 'old_tcb' argument
and concept has been removed.
* We have a new tcb_errno_p field in the TCB, but as of this commit it
is not yet being used.
Reviewed-by: Joerg Sonnenberger <joerg@britannica.bec.de>,
David Xu <davidxu@crater.dragonflybsd.org>
Joerg Sonnenberger [Wed, 11 May 2005 19:40:00 +0000 (19:40 +0000)]
Simplify code by using IF_DRAIN.
Joerg Sonnenberger [Wed, 11 May 2005 15:50:14 +0000 (15:50 +0000)]
typo
Joerg Sonnenberger [Wed, 11 May 2005 15:45:45 +0000 (15:45 +0000)]
Merge from vendor branch GCC:
Remove two unnecessary entries.
Joerg Sonnenberger [Wed, 11 May 2005 15:45:45 +0000 (15:45 +0000)]
Remove two unnecessary entries.
David Xu [Wed, 11 May 2005 12:59:58 +0000 (12:59 +0000)]
I am lost. if thread is blocked on mutex, _thread_kern_sched_state()
will rewrite fname and lineno. :(
David Xu [Wed, 11 May 2005 12:50:09 +0000 (12:50 +0000)]
Override _flockfile_debug.
David Xu [Wed, 11 May 2005 12:45:57 +0000 (12:45 +0000)]
o Fix obsolete comment.
o Fix stub function names.
Joerg Sonnenberger [Wed, 11 May 2005 12:10:43 +0000 (12:10 +0000)]
Remove obsolete comment.
Pointed-out-by: Sepherosa Ziehau <sepherosa@gmail.com>
Joerg Sonnenberger [Wed, 11 May 2005 12:07:21 +0000 (12:07 +0000)]
Remove sc_unit and use if_printf / device_printf instead.
Max Okumoto [Tue, 10 May 2005 23:26:17 +0000 (23:26 +0000)]
Remove some extra white space