Max Okumoto [Fri, 22 Apr 2005 16:01:56 +0000 (16:01 +0000)]
use execl() instead of execv() so we can reduce the number of warnings.
suggested by: joerg.
Max Okumoto [Fri, 22 Apr 2005 16:01:03 +0000 (16:01 +0000)]
Move prototype for Main_ParseArgLine() into make.h so we can delete
nonints.h
Max Okumoto [Fri, 22 Apr 2005 15:59:54 +0000 (15:59 +0000)]
Move some #defines related to parsing into parse.h
Max Okumoto [Fri, 22 Apr 2005 15:59:32 +0000 (15:59 +0000)]
Make shellName and shellPath static to job.c
Max Okumoto [Fri, 22 Apr 2005 15:59:07 +0000 (15:59 +0000)]
Make the three version of the fork code more uniform.
Liam J. Foy [Fri, 22 Apr 2005 15:36:39 +0000 (15:36 +0000)]
- Use errno to report why freopen(3) failed
- Minor cleanups
Joerg Sonnenberger [Fri, 22 Apr 2005 11:00:36 +0000 (11:00 +0000)]
Back out last commit, we are not there yet and I have to study
the interactions between the network RC scripts more.
Max Okumoto [Fri, 22 Apr 2005 10:38:30 +0000 (10:38 +0000)]
Change .EXPORT: to .EXPORTVAR: earlier versions of pmake used
.EXPORT: and .NOEXPORT: as special targets.
Joerg Sonnenberger [Fri, 22 Apr 2005 10:12:26 +0000 (10:12 +0000)]
Move to CPU #0 in settime() to prevent races.
Joerg Sonnenberger [Fri, 22 Apr 2005 10:05:41 +0000 (10:05 +0000)]
Use normal variable names for rtsold, provide default values.
Joerg Sonnenberger [Fri, 22 Apr 2005 09:14:08 +0000 (09:14 +0000)]
Remove obsolete rcNG scripts as part of make upgrade.
Joerg Sonnenberger [Fri, 22 Apr 2005 08:58:42 +0000 (08:58 +0000)]
Don't install wscons.
Joerg Sonnenberger [Fri, 22 Apr 2005 08:35:04 +0000 (08:35 +0000)]
Add frequency correction support. The drift factor is currently
determined via linear regression of the last 8 offset corrections.
It is bound to 128 ppm in one step to avoid extreme drifts when
the drift calculation is incorrect for some reason. With the
default values this can result in a maximum wrong drift of
8 * 60 * 8 * 128e-6 s ~= 0.5s (samples per update, update interval,
samples to trigger drift correction, max. drift error) until the
next iteration is done.
Joerg Sonnenberger [Fri, 22 Apr 2005 08:30:25 +0000 (08:30 +0000)]
Remove RC scripts for stuff we have don't have in our tree.
Add KEYWORD DragonFly for those we have and which didn't have it.
Remove mountall, replace it with mountcritremote when necessary.
Remove lkm dependencies, we don't use it anyway.
Run mixer script before LOGIN.
Joerg Sonnenberger [Fri, 22 Apr 2005 07:39:54 +0000 (07:39 +0000)]
RIP PCVT userland.
Joerg Sonnenberger [Fri, 22 Apr 2005 07:38:58 +0000 (07:38 +0000)]
Unhook gperf, it was only used by gcc2.
Joerg Sonnenberger [Fri, 22 Apr 2005 06:52:42 +0000 (06:52 +0000)]
Use system version of getopt_long and basename for the bootstrapping tools.
Sascha Wildner [Fri, 22 Apr 2005 02:23:23 +0000 (02:23 +0000)]
Remove DEC Alpha support.
Sascha Wildner [Fri, 22 Apr 2005 02:18:46 +0000 (02:18 +0000)]
Remove DEC Alpha support.
Sascha Wildner [Fri, 22 Apr 2005 02:09:15 +0000 (02:09 +0000)]
Remove DEC Alpha support.
Sascha Wildner [Fri, 22 Apr 2005 01:47:03 +0000 (01:47 +0000)]
Remove support for dead architectures.
Sascha Wildner [Fri, 22 Apr 2005 01:07:59 +0000 (01:07 +0000)]
Remove DEC Alpha support.
Sascha Wildner [Fri, 22 Apr 2005 00:55:32 +0000 (00:55 +0000)]
No longer check if PCVT is configured.
Max Okumoto [Fri, 22 Apr 2005 00:38:12 +0000 (00:38 +0000)]
Add Copyright (c) 2002 Juli Mallett, since I merged with var_modify.c
Max Okumoto [Thu, 21 Apr 2005 23:13:47 +0000 (23:13 +0000)]
move defines from job.h into job.c since nothing else needs them.
Max Okumoto [Thu, 21 Apr 2005 23:13:19 +0000 (23:13 +0000)]
Merge compat.[ch] into job.[ch]
Max Okumoto [Thu, 21 Apr 2005 23:11:40 +0000 (23:11 +0000)]
Move Cmd_Exec() from main.c to job.c
Max Okumoto [Thu, 21 Apr 2005 23:09:42 +0000 (23:09 +0000)]
Removed paramter to Var_SubstOnly()
Max Okumoto [Thu, 21 Apr 2005 23:08:42 +0000 (23:08 +0000)]
move VAR_CMD, and VAR_GLOBAL from globals.h to var.h
Max Okumoto [Thu, 21 Apr 2005 23:08:16 +0000 (23:08 +0000)]
Clean up comments.
Max Okumoto [Thu, 21 Apr 2005 23:04:27 +0000 (23:04 +0000)]
Remove types and functions that are not used by other files out of
var.h and move them into var.c
Max Okumoto [Thu, 21 Apr 2005 23:03:13 +0000 (23:03 +0000)]
Moved all the code in var_modify.c into var.c since no other
file uses those functions.
Max Okumoto [Thu, 21 Apr 2005 23:01:53 +0000 (23:01 +0000)]
Move code code to print out variable from
targ.c:Targ_PrintGraph() into var.c.
Max Okumoto [Thu, 21 Apr 2005 22:59:30 +0000 (22:59 +0000)]
Add new function Var_Match(), it returns the number of characters
in the variable specification.
Max Okumoto [Thu, 21 Apr 2005 22:57:29 +0000 (22:57 +0000)]
Handle double dash '--' in command line.
Sascha Wildner [Thu, 21 Apr 2005 18:50:50 +0000 (18:50 +0000)]
Sync with OpenBSD.
bcode.c - obsd rev. 1.29
dc.1 - obsd rev. 1.19
dc.c - obsd rev. 1.6
inout.c - obsd rev. 1.12
stack.c - obsd rev. 1.7
Sascha Wildner [Thu, 21 Apr 2005 18:50:22 +0000 (18:50 +0000)]
Sync with OpenBSD.
bc.1 - obsd rev. 1.18
bc.y - obsd rev. 1.25
extern.h - obsd rev. 1.5
scan.l - obsd rev. 1.18
Jeroen Ruigrok/asmodai [Thu, 21 Apr 2005 18:31:29 +0000 (18:31 +0000)]
Update to 3.0.1.
Submitted by: Andreas Hauser
Jeroen Ruigrok/asmodai [Thu, 21 Apr 2005 18:16:32 +0000 (18:16 +0000)]
Merge from vendor branch GPERF:
Add gperf 3.0.1.
Submitted by: Andreas Hauser
Jeroen Ruigrok/asmodai [Thu, 21 Apr 2005 18:16:32 +0000 (18:16 +0000)]
Add gperf 3.0.1.
Submitted by: Andreas Hauser
Jeroen Ruigrok/asmodai [Thu, 21 Apr 2005 17:09:06 +0000 (17:09 +0000)]
Change EXIT STATUS to DIAGNOSTICS. We have standardised on the latter.
Joerg Sonnenberger [Thu, 21 Apr 2005 16:36:35 +0000 (16:36 +0000)]
Complete Citrus import. Import message catalog implement from
NetBSD. Remove external visible rune interface.
Obtained-from: Project Citrus / NetBSD
Joerg Sonnenberger [Thu, 21 Apr 2005 14:43:58 +0000 (14:43 +0000)]
Build aicasm as host program, not via world's compiler.
Joerg Sonnenberger [Thu, 21 Apr 2005 13:48:56 +0000 (13:48 +0000)]
Don't create directories for gcc2 and binutils212 anymore.
Joerg Sonnenberger [Thu, 21 Apr 2005 13:42:34 +0000 (13:42 +0000)]
Bump major numbers in preparation for libc work.
Joerg Sonnenberger [Thu, 21 Apr 2005 13:34:59 +0000 (13:34 +0000)]
Consider only drifts smaller than 32 ms as negligible.
Joerg Sonnenberger [Thu, 21 Apr 2005 13:32:22 +0000 (13:32 +0000)]
As long as a peer has some trust left, use the aggressive retry interval
when the deadline is not met.
Joerg Sonnenberger [Thu, 21 Apr 2005 13:23:07 +0000 (13:23 +0000)]
Override gcc2 for buildworld. Necessary to handle the former default
value which might still be active via /usr/share/mk.
Joerg Sonnenberger [Thu, 21 Apr 2005 08:43:42 +0000 (08:43 +0000)]
Make osreldate.h building happing by explicitly using /bin/date.
We have to use system's date or we would have to hack the default
string in.
Joerg Sonnenberger [Thu, 21 Apr 2005 08:10:24 +0000 (08:10 +0000)]
date as bootstrap tool doesn't make sense, remove it.
Joerg Sonnenberger [Thu, 21 Apr 2005 08:00:37 +0000 (08:00 +0000)]
Unhook GCC 2.95 and Binutils 2.12 from build.
Joerg Sonnenberger [Thu, 21 Apr 2005 07:55:47 +0000 (07:55 +0000)]
Stop building libkeycap, PCVT is gone.
Joerg Sonnenberger [Thu, 21 Apr 2005 07:48:15 +0000 (07:48 +0000)]
Unhook PCVT from kernel build.
Joerg Sonnenberger [Thu, 21 Apr 2005 07:35:01 +0000 (07:35 +0000)]
Use new _DATE_FMT langinfo instead of '%+'.
Joerg Sonnenberger [Thu, 21 Apr 2005 07:28:59 +0000 (07:28 +0000)]
Add _DATE_FMT to get the locale-specific date(1) string.
Jeroen Ruigrok/asmodai [Thu, 21 Apr 2005 06:33:15 +0000 (06:33 +0000)]
Merge from vendor branch CVS:
Add CVS 1.12.12.
Jeroen Ruigrok/asmodai [Thu, 21 Apr 2005 06:33:15 +0000 (06:33 +0000)]
Add CVS 1.12.12.
Max Okumoto [Wed, 20 Apr 2005 21:58:13 +0000 (21:58 +0000)]
Stop exporting OSVERSION variable to enviornment via .makeenv.
This quiets a the warning that OSVERSION is from the commandline
when ports calls make recursively.
OSVERSION is only used by the make infrastructure, so anything that
references that variable would get it from make's global scope, or
would get it from a recursively called make which would have put
it into the env since it is in MAKEFLAGS.
Variables set in the command line and MAKEFLAGS are readonly, those
variables are also exported into the enviornment of make. Nothing
in the makefiles are able to modified thier values. (POSIX)
This is compatible with .makeenv (soon to be .EXPORT:)
o if variable does not exist create it and
export it to the enviornment, as empty string.
o if variable exists, export it to the enviornment
with its value.
o if variable that is exported is set after being
exported, export its new value.
o if variable is from command line or MAKEFLAGS
do net change is value, or modify the enviornment.
Emit a warning.
Joerg Sonnenberger [Wed, 20 Apr 2005 21:39:00 +0000 (21:39 +0000)]
Make GCC 3.4 the default compiler.
Jeffrey Hsu [Wed, 20 Apr 2005 21:37:06 +0000 (21:37 +0000)]
Clean up some of the sockbuf append code.
Joerg Sonnenberger [Wed, 20 Apr 2005 21:06:06 +0000 (21:06 +0000)]
RIP compat libraries. Use misc/compatXX from ports instead.
Joerg Sonnenberger [Wed, 20 Apr 2005 20:45:57 +0000 (20:45 +0000)]
WARNS=6. The (int) case should be reevaluated when this code is converted
to (s)size_t usage.
Joerg Sonnenberger [Wed, 20 Apr 2005 20:27:04 +0000 (20:27 +0000)]
Un-disable stack protector. I take responsibility for all problems this
adds, which are not actual bugs.
Joerg Sonnenberger [Wed, 20 Apr 2005 20:07:19 +0000 (20:07 +0000)]
Remove old beforeinstall hack. Should be not used for ages.
Joerg Sonnenberger [Wed, 20 Apr 2005 20:01:09 +0000 (20:01 +0000)]
Remove some commented out warnings.
Jeffrey Hsu [Wed, 20 Apr 2005 19:43:53 +0000 (19:43 +0000)]
Cosmetic changes, mostly changing zeros to NULLs.
Jeffrey Hsu [Wed, 20 Apr 2005 19:38:22 +0000 (19:38 +0000)]
Strip away a layer of indirection. Now that we properly declare
so_pcb as a "void *", we don't need the sotounpcb() macro any more.
Directly reference so->so_pcb to get the unp control block.
Sascha Wildner [Wed, 20 Apr 2005 18:21:16 +0000 (18:21 +0000)]
Add NetBSD 3.0.
Joerg Sonnenberger [Wed, 20 Apr 2005 17:57:16 +0000 (17:57 +0000)]
basetime should be static, all access done via PKI.
Sascha Wildner [Wed, 20 Apr 2005 17:26:15 +0000 (17:26 +0000)]
Add entry for libarchive.
Matthew Dillon [Wed, 20 Apr 2005 17:03:35 +0000 (17:03 +0000)]
Document the rwlock routines as being MP safe.
Matthew Dillon [Wed, 20 Apr 2005 17:03:08 +0000 (17:03 +0000)]
Make the kernel malloc() and free() MP safe by pushing the BGL past the
per-cpu frontend and into the VM access layer.
Matthew Dillon [Wed, 20 Apr 2005 17:01:56 +0000 (17:01 +0000)]
Get rid of VPLACEMARKER and retool vmntvnodescan() to use a secondary
structure to track ripouts that occur during the slowfunc() callback,
similar to how we do it for the mountlist and clean/dirty buffer trees.
Chris Pressey [Wed, 20 Apr 2005 16:37:09 +0000 (16:37 +0000)]
Style(9) cleanup: use ANSI format for function definitions.
Sascha Wildner [Wed, 20 Apr 2005 16:24:13 +0000 (16:24 +0000)]
Remove unnecessary .El (fixes groff warning).
Chris Pressey [Wed, 20 Apr 2005 16:05:51 +0000 (16:05 +0000)]
Make comments about bpf_validate()'s behaviour reflect reality. The
code does not check that jumps are forward; jumps are specified by
unsigned values, and as such, are inevitably forward jumps.
Chris Pressey [Wed, 20 Apr 2005 15:44:32 +0000 (15:44 +0000)]
Fix grammar (associate -> associated) and start sentence on new line.
Joerg Sonnenberger [Wed, 20 Apr 2005 14:27:29 +0000 (14:27 +0000)]
Use get_approximate_time_t().
Joerg Sonnenberger [Wed, 20 Apr 2005 10:51:24 +0000 (10:51 +0000)]
Add support for ServerWorks chipsets.
Obtained-from: FreeBSD
Hiten Pandya [Wed, 20 Apr 2005 10:24:48 +0000 (10:24 +0000)]
Fix whitespace in copyright dates.
Hiten Pandya [Wed, 20 Apr 2005 10:22:44 +0000 (10:22 +0000)]
Add bpf_mtap_family(9) which allows the client to specify an address
family. The logic is quite repetetive in various psuedo drivers and
other networking subsystems, like netgraph.
In-discussion-with: Joerg Sonnenberger.
Jeffrey Hsu [Wed, 20 Apr 2005 09:28:29 +0000 (09:28 +0000)]
sbappend() is called by stream-oriented as well as record-oriented
protocols, so we can't use the sb_lastrecord hint, which is only
for record-oriented protocols, as an optimization. (However,
stream-oriented protocols only have one record anyways, so a last
record hint provides zero speedup here anyhow.)
Original bug with X client occasionally not working reported by Simon Schubert.
Joerg Sonnenberger [Wed, 20 Apr 2005 08:04:32 +0000 (08:04 +0000)]
Correct a bug in the positive 32bit overflow handling of ntp_tick_acc.
Simplify the logic by not playing wiered bit masking, just substract
the large part. Depending on whether 64bit math is native, this can be
even faster.
Matthew Dillon [Tue, 19 Apr 2005 20:38:57 +0000 (20:38 +0000)]
NULL-out two stack-declared variables that were incorrectly assumed to
be NULL on entry.
Reported-by: Jimmy Lim <jimmyblim@gmail.com>
Submitted-by: "Skoda Tomas" <tomas.skoda@zoznam.sk>
Sascha Wildner [Tue, 19 Apr 2005 18:55:24 +0000 (18:55 +0000)]
Change NOACU to NULL.
Sascha Wildner [Tue, 19 Apr 2005 18:51:57 +0000 (18:51 +0000)]
Fix a buildkernel warning by properly initializing dom_next in struct domain.
Thanks for telling: joerg
Sascha Wildner [Tue, 19 Apr 2005 18:05:02 +0000 (18:05 +0000)]
Change herz to hertz.
Matthew Dillon [Tue, 19 Apr 2005 17:54:52 +0000 (17:54 +0000)]
Abstract out the routines which manipulate the mountlist.
Introduce an MP-safe mountlist scanning function. This function keeps track
of scans which are in-progress and properly handles ripouts that occur during
the callback by advancing the matching pointers being tracked. The callback
can safely block without confusing the scan.
This algorithm has already been successfully used for the buffer cache and
will soon be used for the vnode lists hanging off the mount point.
Joerg Sonnenberger [Tue, 19 Apr 2005 17:17:03 +0000 (17:17 +0000)]
Provide correct PLIST_SUB value for batch scripts.
Joerg Sonnenberger [Tue, 19 Apr 2005 13:09:30 +0000 (13:09 +0000)]
Merge from vendor branch NTPD:
Print "reply from ..." before "adjust local clock ..." in debug mode.
Joerg Sonnenberger [Tue, 19 Apr 2005 13:09:30 +0000 (13:09 +0000)]
Print "reply from ..." before "adjust local clock ..." in debug mode.
Joerg Sonnenberger [Tue, 19 Apr 2005 07:37:43 +0000 (07:37 +0000)]
Merge from vendor branch NTPD:
Sync in my paranoia check.
Joerg Sonnenberger [Tue, 19 Apr 2005 07:37:43 +0000 (07:37 +0000)]
Sync in my paranoia check.
Chris Pressey [Tue, 19 Apr 2005 05:32:02 +0000 (05:32 +0000)]
Style cleanup: instead of seperate #defines for NULL cast to different
types (NOSTR, NOFILE, NOPWD, NOACU, NOVAL,) just spell NULL as NULL.
Inspired-by: NetBSD
Chris Pressey [Tue, 19 Apr 2005 05:18:19 +0000 (05:18 +0000)]
Reduce warnings that appear under higher WARNS levels:
- Include a missing header;
- Spell out initializers in full;
- De-constify a char * that isn't really constant.
Chris Pressey [Tue, 19 Apr 2005 04:20:27 +0000 (04:20 +0000)]
When installing packages into an ISO-image-to-be file tree:
- Don't try to copy packages that already exist (with identical version
numbers) on the image; and
- Bail out early if an error (e.g. missing dependency) occurs, instead
of blindly carrying on with the next package.
Jeffrey Hsu [Mon, 18 Apr 2005 23:50:30 +0000 (23:50 +0000)]
Prefer TAILQ_EMPTY() to null-check on the result of TAILQ_FIRST().
Jeffrey Hsu [Mon, 18 Apr 2005 23:43:04 +0000 (23:43 +0000)]
Defer assigning to the forwarding route variable until the forwarding
route has been determined.
Jeffrey Hsu [Mon, 18 Apr 2005 22:57:52 +0000 (22:57 +0000)]
Minor cosmetic cleanups. Use the canonical name "ro" for a variable
of type struct route. Clean up ip_forward().
Jeffrey Hsu [Mon, 18 Apr 2005 22:41:23 +0000 (22:41 +0000)]
Use a larger initial window size when restarting after a long idle period.