dragonfly.git
15 years agoWhen installing packages into an ISO-image-to-be file tree:
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.

15 years agoPrefer TAILQ_EMPTY() to null-check on the result of TAILQ_FIRST().
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().

15 years agoDefer assigning to the forwarding route variable until the forwarding
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.

15 years agoMinor cosmetic cleanups. Use the canonical name "ro" for a variable
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().

15 years agoUse a larger initial window size when restarting after a long idle period.
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.

15 years agoCVS was seg-faulting on systems with hostnames greater then 34 characters
Matthew Dillon [Mon, 18 Apr 2005 20:22:42 +0000 (20:22 +0000)]
CVS was seg-faulting on systems with hostnames greater then 34 characters
long due to assuming that gethostname() would return ENAMETOOLONG.  In
FreeBSD/DragonFly it returns ENOMEM.  Use our auto-patching mechanism to
patch in the additional error code.

Reported-by: Jeroen Ruigrok/asmodai <asmodai@wxs.nl>
15 years agoWARNS=6 + minor style issues while here.
Joerg Sonnenberger [Mon, 18 Apr 2005 20:17:58 +0000 (20:17 +0000)]
WARNS=6 + minor style issues while here.

Submitted-by: Sepherosa Ziehau <sepherosa@softhome.net>
15 years agoMerge from vendor branch NTPD:
Joerg Sonnenberger [Mon, 18 Apr 2005 18:17:20 +0000 (18:17 +0000)]
Merge from vendor branch NTPD:
Sync with OpenBSD. The ntpd -s is included now.

15 years agoSync with OpenBSD. The ntpd -s is included now.
Joerg Sonnenberger [Mon, 18 Apr 2005 18:17:20 +0000 (18:17 +0000)]
Sync with OpenBSD. The ntpd -s is included now.

15 years agoSync with OpenBSD. The ntpd -s is included now.
Joerg Sonnenberger [Mon, 18 Apr 2005 18:17:20 +0000 (18:17 +0000)]
Sync with OpenBSD. The ntpd -s is included now.

15 years agoUse the local runetype.h here too.
Joerg Sonnenberger [Mon, 18 Apr 2005 17:42:15 +0000 (17:42 +0000)]
Use the local runetype.h here too.

15 years agoSwitch IP divert from mbuf based tagging to mbuf tags.
Joerg Sonnenberger [Mon, 18 Apr 2005 14:26:57 +0000 (14:26 +0000)]
Switch IP divert from mbuf based tagging to mbuf tags.
This patch is meant to keep the old semantic, the divert
handling can be pushed down in most places later.

15 years agoMake kern.ntp.permanent specify the frequency correction per second,
Joerg Sonnenberger [Mon, 18 Apr 2005 13:27:44 +0000 (13:27 +0000)]
Make kern.ntp.permanent specify the frequency correction per second,
not per tick. This makes a bit more sense by isolating implementation
detail of per-tick correction.

15 years agoAdd snprintf and vsnprintf.
Joerg Sonnenberger [Mon, 18 Apr 2005 07:55:09 +0000 (07:55 +0000)]
Add snprintf and vsnprintf.

15 years agoUse the headers from src/include for ctype.h and runetype.h instead
Joerg Sonnenberger [Mon, 18 Apr 2005 07:43:45 +0000 (07:43 +0000)]
Use the headers from src/include for ctype.h and runetype.h instead
of the installed versions. The latter might not exist or define different
conditionals.

15 years agostaticize lwkt_reqtoken_remote().
Matthew Dillon [Mon, 18 Apr 2005 01:03:33 +0000 (01:03 +0000)]
staticize lwkt_reqtoken_remote().

15 years agoFix a bug in the last commit. A FIFO calculation was incorrect (3/2 instead
Matthew Dillon [Mon, 18 Apr 2005 01:02:58 +0000 (01:02 +0000)]
Fix a bug in the last commit.  A FIFO calculation was incorrect (3/2 instead
of 2/3), resulting in overflows during heavy token handling activity.

Reported-by: =?ISO-8859-1?Q?Stefan_Kr=FCger?= <skrueger@meinberlikomm.de>
15 years agopatch-7.189
Max Okumoto [Sat, 16 Apr 2005 10:38:37 +0000 (10:38 +0000)]
patch-7.189
Remove unsed functions Var_GetTail() and Var_GetHead()

15 years agotch-7.188
Max Okumoto [Sat, 16 Apr 2005 10:36:19 +0000 (10:36 +0000)]
tch-7.188
  Var_SubstOnly(), match_var()
o Split out test to check if variable name should not be expanded.

15 years agopatch-7.187
Max Okumoto [Sat, 16 Apr 2005 10:35:54 +0000 (10:35 +0000)]
patch-7.187
  Var_Subst() Var_SubstOnly()
o unify syntax for accessing bytes in the input string.
o Simplify skipping bytes.

15 years agopatch-7.186
Max Okumoto [Sat, 16 Apr 2005 10:35:29 +0000 (10:35 +0000)]
patch-7.186
 Var_SubstOnly()
o remove continue statement.

15 years agopatch-7.185
Max Okumoto [Sat, 16 Apr 2005 10:35:02 +0000 (10:35 +0000)]
patch-7.185
  Var_Subst(), Var_SubstOnly()
o remove dead code.

15 years agopatch-7.184
Max Okumoto [Sat, 16 Apr 2005 10:34:26 +0000 (10:34 +0000)]
patch-7.184
o Copy Var_Subst() into Var_SubstOnly(), the new function
  is never passed NULL in the 'var' input parameter.
o Modified Var_Subst() to always expect var==NULL as input paramter.
o Update calling code by removing unused parameter.

15 years agoAdd a debug knob debug.acpi.avoid.paths, a variant of debug.acpi.avoid
YONETANI Tomokazu [Sat, 16 Apr 2005 08:17:02 +0000 (08:17 +0000)]
Add a debug knob debug.acpi.avoid.paths, a variant of debug.acpi.avoid
but without totally disabling execution of _INI and _STA.  Maybe useful
to narrow down the portion of namespace causing problems without messing
with editing and compiling ASL.  Disablement of _INI and _STA when
debug.acpi.avoid is specified has been added years before to workaround
interpreter crash on some systems, and I'm not sure whether the recent
ACPI-CA code still crashes on those systems, but I'll leave it as is
anyway for compatibility with FreeBSD.

Suggested-by: Sepherosa Ziehau
15 years agoForgot to add these files to previous commit. directive_hash.c
Max Okumoto [Fri, 15 Apr 2005 21:13:05 +0000 (21:13 +0000)]
Forgot to add these files to previous commit.  directive_hash.c
must be regenerated if new directives are added/removed/modified.

15 years agoAdd back .makenv compat until everyone's source tree is updated.
Max Okumoto [Fri, 15 Apr 2005 21:09:15 +0000 (21:09 +0000)]
Add back .makenv compat until everyone's source tree is updated.

15 years agoCreate VAR_ENV context, and fill it with everything in the environment.
Max Okumoto [Fri, 15 Apr 2005 21:06:35 +0000 (21:06 +0000)]
Create VAR_ENV context, and fill it with everything in the environment.

15 years agoadd .EXPORT: special tag and add ST_EXPORT variable.
Max Okumoto [Fri, 15 Apr 2005 21:05:52 +0000 (21:05 +0000)]
add .EXPORT: special tag and add ST_EXPORT variable.

15 years agoFreeBSD-Date: 2005/04/11 08:20:09
Max Okumoto [Fri, 15 Apr 2005 21:01:27 +0000 (21:01 +0000)]
FreeBSD-Date: 2005/04/11 08:20:09
FreeBSD-Date: 2005/04/11 08:26:21
FreeBSD-Date: 2005/04/11 08:40:54

Author: harti

Rework the directive parsing code. Instead of using a lot of strcmp()s
on every line that starts with a dot use a minimal perfect hash
function and a single strcmp() on the first word after the dot
to find out whether it is really a directive call and, if yes, which
one. Then directly dispatch to a handler function for that directive
(or fall through to the dependency handling code). This makes the
directive parse a little bit more strict about the syntax: the directive
word must be followed by a character that is not alphanumerical and not
an underline (making .undefFOO illegal); .endif and .else can only be
followed by comments.

15 years agoInline stripvarname() since it will be removed in the next few patches.
Max Okumoto [Fri, 15 Apr 2005 20:50:43 +0000 (20:50 +0000)]
Inline stripvarname() since it will be removed in the next few patches.

15 years agoSplit VarFind() into a series of functions tailored for the different sets
Max Okumoto [Fri, 15 Apr 2005 20:45:48 +0000 (20:45 +0000)]
Split VarFind() into a series of functions tailored for the different sets
of flags originally passed to VarFind(). This eliminates the code by
removing a bunch of tests.

patch-7.173
patch-7.174
patch-7.176

15 years agoImplement Red-Black trees for the vnode clean/dirty buffer lists.
Matthew Dillon [Fri, 15 Apr 2005 19:08:32 +0000 (19:08 +0000)]
Implement Red-Black trees for the vnode clean/dirty buffer lists.

Implement ranged fsyncs and adjust the syncer to use the new capability.
This capability will also soon be used to replace the write_behind
heuristic.  Rewrite the fsync code for all VFSs to use the new APIs
(generally simplifying them).

Get rid of B_WRITEINPROG, it is no longer useful or needed.
Get rid of B_SCANNED, it is no longer useful or needed.

Rewrite the NFS 2-phase commit protocol to take advantage of the new
Red-Black tree topology.

Add RB_SCAN() for callback-scanning of Red-Black trees.  Give RB_SCAN
the ability to track the 'next' scan node and automatically fix it up
if the callback directly or indirectly or through blocking indirectly
deletes nodes in the tree while the scan is in progress.

Remove most related loop restart conditions, they are no longer necessary.

Disable filesystem background bitmap writes.  This really needs to be
solved a different way and the concept does not work well with red-black
trees.

15 years agoRemove pccard RCNG script, the daemon config, the depency on pccard
Joerg Sonnenberger [Fri, 15 Apr 2005 18:40:52 +0000 (18:40 +0000)]
Remove pccard RCNG script, the daemon config, the depency on pccard
for the other RCNG scripts, the actual daemon and the control program.

pccard_ether is used by usbd, keep it for now.

15 years agoZero the whole structure, not just the name, so we don't trip up on this
Matthew Dillon [Fri, 15 Apr 2005 18:39:13 +0000 (18:39 +0000)]
Zero the whole structure, not just the name, so we don't trip up on this
in the future.

15 years agoGC OLDCARD userland tools.
Joerg Sonnenberger [Fri, 15 Apr 2005 18:26:58 +0000 (18:26 +0000)]
GC OLDCARD userland tools.

15 years agoFix the parameter order of __stack_smash_handler. Also print the
Joerg Sonnenberger [Fri, 15 Apr 2005 18:07:13 +0000 (18:07 +0000)]
Fix the parameter order of __stack_smash_handler. Also print the
return address on IA32 to aid debugging.

15 years agoExtend a local buffer to workarond a buffer overflow for now.
Joerg Sonnenberger [Fri, 15 Apr 2005 17:55:49 +0000 (17:55 +0000)]
Extend a local buffer to workarond a buffer overflow for now.

15 years agoRemove some uses of register keywords.
David Rhodus [Fri, 15 Apr 2005 17:55:29 +0000 (17:55 +0000)]
Remove some uses of register keywords.

15 years agoFix a small stack disclosure in ifconf().
Joerg Sonnenberger [Fri, 15 Apr 2005 07:08:27 +0000 (07:08 +0000)]
Fix a small stack disclosure in ifconf().

See FreeBSD-SA-05:04.ifconf for credits and details.

15 years agogetopt is WARNS 6 clean.
Eirik Nygaard [Thu, 14 Apr 2005 15:49:12 +0000 (15:49 +0000)]
getopt is WARNS 6 clean.

15 years agoA few more instances of leaf that should be leap.
Eirik Nygaard [Thu, 14 Apr 2005 15:05:29 +0000 (15:05 +0000)]
A few more instances of leaf that should be leap.

Noticed by: Bart Thate <dunker@freebsd.nl>

15 years agoIgnore replies with a negative delay. Correct time of next query and
Joerg Sonnenberger [Thu, 14 Apr 2005 11:22:16 +0000 (11:22 +0000)]
Ignore replies with a negative delay. Correct time of next query and
deadline for all peers in priv_settime is called.

This should fix the problems of ntpd -s with very large initial correction.

15 years agoleap second, not leaf second. fix totally stupid, but consistent spelling
Joerg Sonnenberger [Thu, 14 Apr 2005 11:15:52 +0000 (11:15 +0000)]
leap second, not leaf second. fix totally stupid, but consistent spelling
error.

Noticed-by: corecode
15 years agoSync with OpenBSD. This fixes the bug of -s not working and allows
Joerg Sonnenberger [Thu, 14 Apr 2005 10:41:29 +0000 (10:41 +0000)]
Sync with OpenBSD. This fixes the bug of -s not working and allows
defered DNS lookups, which might be necessary in certain network
setups.

15 years agoMerge from vendor branch NTPD:
Joerg Sonnenberger [Thu, 14 Apr 2005 10:41:29 +0000 (10:41 +0000)]
Merge from vendor branch NTPD:
Sync with OpenBSD. This fixes the bug of -s not working and allows
defered DNS lookups, which might be necessary in certain network
setups.

15 years agoUse corrected system time internally, adjust old offsets after
Joerg Sonnenberger [Thu, 14 Apr 2005 10:31:27 +0000 (10:31 +0000)]
Use corrected system time internally, adjust old offsets after
doing a relative adjust of kern.ntp.delta.

Change the default scaling interval to 0.005 and 0.010, which
means that offsets smaller than 5ms double to probe interval,
anything greater than 10ms uses the default. The value of
QSCALE_OFF_MIN can be decreases even more, once frequency correction
is implemented.

15 years agoUse corrected system time internally, adjust old offsets after
Joerg Sonnenberger [Thu, 14 Apr 2005 10:26:51 +0000 (10:26 +0000)]
Use corrected system time internally, adjust old offsets after
doing a relative adjust of kern.ntp.delta.

Change the default scaling interval to 0.005 and 0.010, which
means that offsets smaller than 5ms double to probe interval,
anything greater than 10ms uses the default. The value of
QSCALE_OFF_MIN can be decreases even more, once frequency correction
is implemented.

15 years agoResurrect some of functions shared by rrestore.
YONETANI Tomokazu [Thu, 14 Apr 2005 10:17:23 +0000 (10:17 +0000)]
Resurrect some of functions shared by rrestore.

15 years agowether ==> whether
Joerg Sonnenberger [Thu, 14 Apr 2005 08:14:31 +0000 (08:14 +0000)]
wether ==> whether

Noticed-by: asmodai
15 years agoSimplified NTP kernel interface:
Joerg Sonnenberger [Thu, 14 Apr 2005 07:55:36 +0000 (07:55 +0000)]
Simplified NTP kernel interface:
- kern.ntp.delta gives the delta to apply (ns)
- kern.ntp.tick_delta is the correction applied in each tick (ns)
- kern.ntp.default_tick_delta is the default correction for each tick (ns)
- kern.ntp.big_delta is the threshold for kern.ntp.delta to use
  10x kern.ntp.default_tick_delta, not the normal value
- kern.ntp.adjust can be used to change the current value of kern.ntp.delta
  relatively.
- kern.ntp.next_leaf_second specifies the time_t of the next leaf second change,
  kern.ntp.insert_leaf_second != 0 means a leaf second is inserted, otherwise
  it is removed

All ntp_* variables are manipulated on CPU #0 with the exception of
set_timeofday. It just sets ntp_delta to 0, which is fine for the moment.

15 years agoRemove another argument name in a prototype.
Joerg Sonnenberger [Wed, 13 Apr 2005 16:08:04 +0000 (16:08 +0000)]
Remove another argument name in a prototype.

15 years agoDecommon a lot of variables, makes some static, fix a small bug in rmtcall
Joerg Sonnenberger [Wed, 13 Apr 2005 16:07:15 +0000 (16:07 +0000)]
Decommon a lot of variables, makes some static, fix a small bug in rmtcall
introduced earlier.

15 years agoRemove a cast, correct another.
Joerg Sonnenberger [Wed, 13 Apr 2005 15:45:37 +0000 (15:45 +0000)]
Remove a cast, correct another.

15 years ago- Let receiver know if the sender accepts replies
Liam J. Foy [Wed, 13 Apr 2005 15:44:03 +0000 (15:44 +0000)]
- Let receiver know if the sender accepts replies
- Use correct headers
- Use err(). In some cases an incorrect error message can be shown
- Strlcpy
- warnx() instead of errx() if sender has messages disabled (OpenBSD)
- Remove non-POSIX S_IWRITE (OpenBSD)
- General cleanup

15 years agoDon't write to tape, strdup it first.
Joerg Sonnenberger [Wed, 13 Apr 2005 15:43:36 +0000 (15:43 +0000)]
Don't write to tape, strdup it first.

Submitted-by: Sepherosa Ziehau <sepherosa@softhome.net>
15 years agoRemove argument names from prototypes. Adjust prototypes to deal
Joerg Sonnenberger [Wed, 13 Apr 2005 15:21:36 +0000 (15:21 +0000)]
Remove argument names from prototypes. Adjust prototypes to deal
with void * vs. char * and const vs. non-const behaviour.

15 years agoMove initialisation of wrote into the loop to prevent longjmp/setjmp
Joerg Sonnenberger [Wed, 13 Apr 2005 14:32:01 +0000 (14:32 +0000)]
Move initialisation of wrote into the loop to prevent longjmp/setjmp
from clobbering it.

15 years agoWarning fixes.
Joerg Sonnenberger [Wed, 13 Apr 2005 14:29:20 +0000 (14:29 +0000)]
Warning fixes.

Submitted-by: Sepherosa Ziehau <sepherosa@softhome.net>
15 years agoSplit atomic into two functions, atomic_read and atomic_write.
Joerg Sonnenberger [Wed, 13 Apr 2005 14:21:06 +0000 (14:21 +0000)]
Split atomic into two functions, atomic_read and atomic_write.
This makes the code more readable and helps the const correctness.

Submitted-by: Sepherosa Ziehau <sepherosa@softhome.net>
15 years agoCompute buffer length only once per rmtcall.
Joerg Sonnenberger [Wed, 13 Apr 2005 14:12:35 +0000 (14:12 +0000)]
Compute buffer length only once per rmtcall.

15 years agoRemove unused functions.
Joerg Sonnenberger [Wed, 13 Apr 2005 14:10:18 +0000 (14:10 +0000)]
Remove unused functions.

Submitted-by: Sepherosa Ziehau <sepherosa@softhome.net>
15 years agoFirst bunch of dump(8) cleanups.
Joerg Sonnenberger [Wed, 13 Apr 2005 14:05:35 +0000 (14:05 +0000)]
First bunch of dump(8) cleanups.

Submitted-by: Sepherosa Ziehau <sepherosa@softhome.net>
15 years agoOnly bump the switch_count counter when lwkt_switch() actually switches
Matthew Dillon [Wed, 13 Apr 2005 04:02:08 +0000 (04:02 +0000)]
Only bump the switch_count counter when lwkt_switch() actually switches
to a different thread.  Otherwise the idle loop causes this counter
to go haywire.

15 years agoOptimize lwkt_send_ipiq() - the IPI based inter-cpu messaging routine.
Matthew Dillon [Wed, 13 Apr 2005 04:00:56 +0000 (04:00 +0000)]
Optimize lwkt_send_ipiq() - the IPI based inter-cpu messaging routine.

* Add a passive version which does not initiate any actual hardware IPI.
  The message will be handled the next time the target cpu polls the
  queue (on each tick typically).  Adjust the free() path to use this
  version when freeing memory owned by another cpu.

* Add an interlock to avoid reissuing and unnecessarily stalling on
  the hardware IPI if a prior hardware IPI to the target cpu has not
  yet completed processing.

  This feature theoretically means that two cpus can tightly couple a
  large number of pipelined messages with only a single actual IPI being
  sent.

* Reorganize the hystersis points in the IPIQ FIFOs.

* Change a token livelock warning into a panic if it occurs 10 times in
  a row.

* Add a call to lwkt_process_ipiq() just after the AP startup code enables
  a cpu, to process any messages that might have built up during startup.
  There shouldn't be any, but this may avoid surprises later.

15 years agoInsert a '#' between the .else directive and the following comment.
Max Okumoto [Tue, 12 Apr 2005 23:37:27 +0000 (23:37 +0000)]
Insert a '#' between the .else directive and the following comment.

15 years agoPut a '#' between {.else, .endif} and the comment following it.
Max Okumoto [Tue, 12 Apr 2005 23:35:37 +0000 (23:35 +0000)]
Put a '#' between {.else, .endif} and the comment following it.
This makes it clear that the following text is a comment.  And
more important, the make parser is going to be a little more
strict about it, soon.

15 years agoThe error message issued when a requested package cannot be found has
Chris Pressey [Tue, 12 Apr 2005 18:07:36 +0000 (18:07 +0000)]
The error message issued when a requested package cannot be found has
become garbled over time.  Ungarble it.

15 years agoFix brokeness by using _pthread_xxx functions instead.
David Xu [Tue, 12 Apr 2005 14:01:31 +0000 (14:01 +0000)]
Fix brokeness by using _pthread_xxx functions instead.

15 years agoRemoved un-nessisary comment. We can get a zero length arg to make
Max Okumoto [Tue, 12 Apr 2005 08:26:17 +0000 (08:26 +0000)]
Removed un-nessisary comment.  We can get a zero length arg to make
if someone quotes it.
% make ''

15 years agoUse the correct macro for printing TCP statistical counters when we only
Hiten Pandya [Mon, 11 Apr 2005 14:51:38 +0000 (14:51 +0000)]
Use the correct macro for printing TCP statistical counters when we only
have one format argument.

15 years agoIck! Seems I was under a placebo, correct a last minute typo.
Hiten Pandya [Mon, 11 Apr 2005 11:00:40 +0000 (11:00 +0000)]
Ick!  Seems I was under a placebo, correct a last minute typo.

15 years agoMechanical cleanup of IP per-cpu statistics code, better naming etc.
Hiten Pandya [Mon, 11 Apr 2005 10:24:45 +0000 (10:24 +0000)]
Mechanical cleanup of IP per-cpu statistics code, better naming etc.

Correct a stale comment regarding initialisation of the counters.

15 years agoForced commit to note previous change, of introducing 'mycpuid' was
Hiten Pandya [Mon, 11 Apr 2005 09:58:38 +0000 (09:58 +0000)]
Forced commit to note previous change, of introducing 'mycpuid' was
originally suggested by Jeffrey Hsu.

15 years agoRemove the '_GD' macro hack:
Hiten Pandya [Mon, 11 Apr 2005 09:54:22 +0000 (09:54 +0000)]
Remove the '_GD' macro hack:

I introduced it some revisions ago so that functions with locally
cached 'globaldata' can redefine it in order to minimise time
required for updating the IP/TCP per-cpu statistics counters.

15 years agoMechanical cleanup of TCP per-cpu statistics code, better naming etc.
Hiten Pandya [Mon, 11 Apr 2005 09:43:50 +0000 (09:43 +0000)]
Mechanical cleanup of TCP per-cpu statistics code, better naming etc.

Correct a stale comment regarding initialisation of the counters.

15 years agoAdd 'mycpuid', a #define for accessing mycpu->gd_cpuid.
Hiten Pandya [Mon, 11 Apr 2005 09:33:31 +0000 (09:33 +0000)]
Add 'mycpuid', a #define for accessing mycpu->gd_cpuid.

Adjust nearby whitespace while I am here.

15 years agoClearly state when ACPI is overriding APM's device entries.
Matthew Dillon [Mon, 11 Apr 2005 06:05:54 +0000 (06:05 +0000)]
Clearly state when ACPI is overriding APM's device entries.

15 years agoBack out revision 1.31. The 'release' target alone should be
Chris Pressey [Sun, 10 Apr 2005 21:45:11 +0000 (21:45 +0000)]
Back out revision 1.31.  The 'release' target alone should be
sufficient for creating a LiveCD containing no additional packages.

Discussed-with: drhodus

15 years agoClean up some register keyword usage.
David Rhodus [Sun, 10 Apr 2005 20:55:38 +0000 (20:55 +0000)]
Clean up some register keyword usage.

15 years agoAdd in a 'livecd' taget for those who don't want to include the
David Rhodus [Sun, 10 Apr 2005 20:27:32 +0000 (20:27 +0000)]
Add in a 'livecd' taget for those who don't want to include the
installer program in their ISO image file.

15 years agoRemove previous hack, for now just use strtoull() instead of strtoumax().
Max Okumoto [Sun, 10 Apr 2005 10:28:21 +0000 (10:28 +0000)]
Remove previous hack, for now just use strtoull() instead of strtoumax().

15 years agoAdded #ifdef to aid people upgrading from before March 17.
Max Okumoto [Sun, 10 Apr 2005 10:18:45 +0000 (10:18 +0000)]
Added #ifdef to aid people upgrading from before March 17.

Needed for cross compile on FreeBSD 4.X.  In addition, people
upgrading DFly via source, from before March 17, 2005 might need
to manually define NEED_STRTOUMAX in CFLAGS, because strtoumax()
did not exist before then.

This code should be removed if when cross compiling from FreeBSD
4.X is no longer required, and no one is upgrading from before
* March 17.     Max Okumoto.

15 years agoAdd standard entries for libcaps, libkinfo and libkcore; they can now be
Hiten Pandya [Sun, 10 Apr 2005 00:09:32 +0000 (00:09 +0000)]
Add standard entries for libcaps, libkinfo and libkcore; they can now be
specified in manual pages using the 'Lb' mdoc macro.

15 years agoAdd entry for DragonFly 1.2.
Hiten Pandya [Sun, 10 Apr 2005 00:02:01 +0000 (00:02 +0000)]
Add entry for DragonFly 1.2.

Update entries for FreeBSD, i.e. 4.11, 5.4 and 6.0.

15 years agoAdd manual page for closefrom(2) system call and hook it to the build.
Hiten Pandya [Sat, 9 Apr 2005 23:41:26 +0000 (23:41 +0000)]
Add manual page for closefrom(2) system call and hook it to the build.

Partly obtained from OpenBSD with my modifications.

15 years agoMerge from FreeBSD:
YONETANI Tomokazu [Sat, 9 Apr 2005 11:02:35 +0000 (11:02 +0000)]
Merge from FreeBSD:

revision 1.7
  date: 2004-07-07 09:38:14 +0000;  author: ru;  state: Exp;  lines: +1 -0
  Arguments to options aren't necessarily separated with whitespace.

  Noticed by: harti

revision 1.6
  date: 2004-02-06 11:00:13 +0000;  author: ru;  state: Exp;  lines: +3 -4
  From what I can tell, install.sh supported all of the install(1)
  options since revision 1.2, so removed the XXX comment now.

  Fixed bogus test(1) expression that would be evaluated as a null
  string test if script is run without arguments, compacted option
  lists.

15 years agoMerge revision 1.5 from FreeBSD:
YONETANI Tomokazu [Sat, 9 Apr 2005 10:39:12 +0000 (10:39 +0000)]
Merge revision 1.5 from FreeBSD:
  Fix typo in the BSD copyright: s/withough/without/

15 years agoFreeBSD-Date: 2005/04/08 10:03:40
Max Okumoto [Sat, 9 Apr 2005 06:24:15 +0000 (06:24 +0000)]
FreeBSD-Date: 2005/04/08 10:03:40
Author: harti

Move the code for parsing .for and .if statements to the place where the
other directives are handled.

15 years agoFreeBSD-Date: 2005/04/07 15:39:38
Max Okumoto [Sat, 9 Apr 2005 06:23:20 +0000 (06:23 +0000)]
FreeBSD-Date: 2005/04/07 15:39:38
Author: harti

When Parse_Error is called after the top-level Makefile is closed we
have no CURFILE anymore so we cannot print a file name or line number.

When ParseSkipLine() returns NULL (it does this when it has detected an
EOF in an .if block) try to pop the input stack and process the next line

15 years agoFreeBSD-Date: 2005/04/07 12:29:39
Max Okumoto [Sat, 9 Apr 2005 05:51:42 +0000 (05:51 +0000)]
FreeBSD-Date: 2005/04/07 12:29:39
Author: harti

Handle popping of the input stack in ParseReadLine() instead of
Parse_File(). Remove a comment and a piece of code comming from
ancient times when the if-directive read like #if and not .if.
Correctly analyze the first character of a line.

15 years agoFreeBSD-Date: 2005/04/07 12:26:15
Max Okumoto [Sat, 9 Apr 2005 05:50:51 +0000 (05:50 +0000)]
FreeBSD-Date: 2005/04/07 12:26:15
Author: harti

Mostly stylistic changes: remove the noPLen field from the Shell
structure - it is just the strlen() of noPrint. Inline JobCondPassSig()
in the only function JobPassSig() using it. Fix the argument types
of JobPrintCommand(). Better parsing for the .SHELL target keywords.

15 years agoSimply the loop based on the knowledge that fd <= fdp->fd_lastfile
Joerg Sonnenberger [Fri, 8 Apr 2005 17:39:31 +0000 (17:39 +0000)]
Simply the loop based on the knowledge that fd <= fdp->fd_lastfile
(already checked) and fd >= 0 (also checked).

Discussed-with: Jeffrey Hsu

15 years agoDon't just undefine USE_RC_SUBR, because it does define the list
Joerg Sonnenberger [Fri, 8 Apr 2005 16:38:31 +0000 (16:38 +0000)]
Don't just undefine USE_RC_SUBR, because it does define the list
of rc scripts if it is defined and not YES. We didn't undefine USE_RCORDER,
which pulled the rc_subr port in.

Fix this by:
(a) save the old value or USE_RCORDER and USE_RC_SUBR to _DF_*.
(b) include the install-rc-script target from ports/Mk/bsd.port.mk,
but use _DF_* for the variables in the actual code.
(c) add _DF_* to the SUB_FILES list and add RC_SUBR to SUB_LIST.
(d) undefine USE_RC_SUBR and USE_RCORDER afterwards.

Problem-reported-by: Erik P. Skaalerud <erik@pentadon.com>
15 years agoTell the world that we have closefrom.
Joerg Sonnenberger [Fri, 8 Apr 2005 11:30:07 +0000 (11:30 +0000)]
Tell the world that we have closefrom.

15 years agoUse kernel's closefrom.
Joerg Sonnenberger [Fri, 8 Apr 2005 11:26:52 +0000 (11:26 +0000)]
Use kernel's closefrom.

15 years agoAdd userland prototype for closefrom.
Joerg Sonnenberger [Fri, 8 Apr 2005 08:32:53 +0000 (08:32 +0000)]
Add userland prototype for closefrom.

15 years agoRegen.
Joerg Sonnenberger [Fri, 8 Apr 2005 08:31:45 +0000 (08:31 +0000)]
Regen.

15 years agoAdd closefrom(2) syscall. It closes all file descriptors equal or greater
Joerg Sonnenberger [Fri, 8 Apr 2005 08:31:06 +0000 (08:31 +0000)]
Add closefrom(2) syscall. It closes all file descriptors equal or greater
than the given descriptor.

This function does exit and return EINTR, when necessary. Other errors from
close() are ignored.

15 years agoBump HEAD's official release #define to 130000.
Matthew Dillon [Fri, 8 Apr 2005 06:40:33 +0000 (06:40 +0000)]
Bump HEAD's official release #define to 130000.

15 years agoThe release is 1.2, bump the HEAD of the tree to 1.3 for post-release
Matthew Dillon [Fri, 8 Apr 2005 06:12:11 +0000 (06:12 +0000)]
The release is 1.2, bump the HEAD of the tree to 1.3 for post-release
development.