Commit Graph

122375 Commits

Author SHA1 Message Date
oster c0a4bb0ea1 init_rad() and clean_rad() really do..... very little.. and only serve
to make things look far more complicated than they really are.  It was
also impossible for any of the mutex/cond initializations in
init_rad() to actually fail, making the "error detection code"
unneeded.  Collapse the little work done by init_rad into
rf_AllocRaidAccDesc(), and nuke init_rad() and clean_rad().  Save
another 0.25K in GENERIC.

[To be accurate/complete, init_rad() and clean_rad() *ARE* used in the
simulator version of RAIDframe.  But we're so far removed from that
now that there is no point pretending otherwise.]
2003-12-29 04:00:17 +00:00
oster f3e27c676e General format/comment cleanups. No functional changes. 2003-12-29 03:43:07 +00:00
oster 91c64aa051 Remove rf_freelist.h. Its contents are no longer needed. 2003-12-29 03:37:14 +00:00
oster ee19b085aa - first kick at a major reworking of RAIDframe's memory allocation code:
- all freelists converted to pools
  - initialization of structure members in certain cases where
	code was relying on specific allocation and usage properties
	to keep structures in a "known state" (that doesn't work with
	pools!).
  - make most pool_get() be "PR_WAITOK" until they can be analyzed
	further, and/or have proper error handling added.
  - all RF_Mallocs zero the space returned, so there is no difference
	between RF_Calloc and RF_Malloc.  In fact, all the RF_Calloc()'s
	do is tend to do is get things horribly confused.
	Make RF_Malloc() the "general memory allocator", with
	RF_MallocAndAdd() the "general memory allocator with
	allocation list".
  - some of these RF_Malloc's et al. are destined to disappear.
  - remove rf_rdp_freelist entirely (it's not used anywhere!)
  - remove: #include "rf_freelist.h"
  - to the files that were relying on the above, add: #include "rf_general.h"
  - add: #include "rf_debugMem.h" to rf_shutdown.h to make it happy
	about the loss of: #include "rf_freelist.h".

This shrinks an i386 GENERIC kernel by approx 5K.  RAIDframe now
weighs in at about 162K on i386.
2003-12-29 03:33:47 +00:00
lukem b852db83fb Significant overhaul of how the sets are used:
* Add an optional third field to the sets file which is a list of
  comma separated keywords that control if the line is printed.
  Currently supported keywords
	kerberos4	${MKKERBEROS4} != no
	kerberos	${MKKERBEROS} != no
	lint		${MKLINT} != no
	obsolete	${obsolete} != 0.
			In this case, non obsolete files are not printed.
  (This will allow future support for builds with variables such as
  MKHESIOD and MKYP set to "no".)

* Use sh(1)'s getopts where appropriate, and otherwise cleanup the
  various scripts.

* Move defaults for sets.subr from sets.defaults into sets.subr.
  Move replicated code for determining stuff such as shlibs type
  from various scripts into sets.subr.

* Merge the obsolete.*, krb.*, krb4.* and lint.* into the appropriate
  main lists with the relevant third field keyword(s).
2003-12-29 03:13:25 +00:00
oster 10f077a0fb [Having received a definite lack of strenuous objection, a small amount
of strenuous agreement, and some general agreement, this commit is
going ahead because it's now starting to block some other changes I
wish to make.]

Remove most of the support for the concept of "rows" from RAIDframe.
While the "row" interface has been exported to the world, RAIDframe
internals have really only supported a single row, even though they
have feigned support of multiple rows.

Nothing changes in configuration land -- config files still need to
specify a single row, etc.  All auto-config structures remain fully
forward/backwards compatible.

The only visible difference to the average user should be a
reduction in the size of a GENERIC kernel (i386) by 4.5K.  For those
of us trolling through RAIDframe kernel code, a lot of the driver
configuration code has become a LOT easier to read.
2003-12-29 02:38:17 +00:00
atatat d7035f6c9a Fix spelo 2003-12-29 02:11:03 +00:00
simonb f7ec934531 Note "copy the file" install(1) behaviour change. 2003-12-29 02:03:14 +00:00
simonb 60e35b79cc Make "copy the file" (the -c option) the default behaviour. The -c option
is kept for backwards compatibility but now has no effect.

Patch from Bruce Nourish in PR bin/23874, with some minor changes by me.
2003-12-29 02:01:27 +00:00
manu 5c83b03a81 Added DARWIN_IOFBSETGAMMATABLE
In DARWIN_IOFBSETCLUTWITHENTRIES, split big tables into 128 items chunks
so that they fit in the stackgap (currently 512 bytes)
2003-12-29 01:34:02 +00:00
manu 7ab97b2c76 Added Mach services (no real implementation, just empty shells to make
userland happy)
processor_set_default, host_processor_set_priv, and thread_set_policy
2003-12-29 01:30:27 +00:00
fredb 040043b21a Back out last, in favor of adding a trailing dot to "localhost", as
discussed on current-users.
2003-12-29 00:44:05 +00:00
manu 31b3c2a056 Added the semaphore_wait_signal_trap Mach system call (untested) 2003-12-28 23:00:36 +00:00
atatat b1c111a62a Sysctl functions called for "generic" nodes should forward "query"
requests (where possible), rather than returning errors.
2003-12-28 22:36:37 +00:00
atatat 0f7550bbf8 Adjust error returns in kern.cp_time when a specific processor is
being requested so that (1) the uniprocessor case and the
multiprocessor case are more similar and (2) so that we return ENOENT
when a non-existent processor is requested (which is both more
sensible and follows the general order of things anyway).
2003-12-28 22:24:12 +00:00
atatat c703d9821f Rename sysctl_kern_hostname() to sysctl_setlen() and use it also for
domainname.  Note that there's no need to copy rnode since we're not
changing any of it, nor protecting anything from change.

Thanks to martin for initial work.
2003-12-28 22:19:59 +00:00
atatat 8e0c1f1594 RCSid police 2003-12-28 22:12:00 +00:00
thorpej 9b5d276f0e Const the player type variable. 2003-12-28 17:53:48 +00:00
thorpej 24231ec69d Fix RCS IDs. 2003-12-28 17:49:10 +00:00
wiz e000293cc0 Add RCS Id. 2003-12-28 17:26:48 +00:00
wiz 6ac2a4f4db Add a BSD licensed zgrep written by me.
Much nicer than the old one, if I may say so.

Thanks go to atatat for testing and suggestions.
2003-12-28 17:26:00 +00:00
augustss f3abb712c4 Regen. 2003-12-28 17:12:00 +00:00
augustss 7ddfb31781 Add a couple of devices. 2003-12-28 17:11:14 +00:00
atatat da4f7330e5 Also supress speling erors. 2003-12-28 16:34:03 +00:00
lukem 040073c9a7 Separate out the X sets:
*	sets for xsrc/xc (XF 3.x)
		xbase3 xcomp3 xcontrib3 xfont3 xmisc3 xserver3
    *	sets for xsrc/xfree/xc (XF 4.x)
		xbase4 xcomp4 xcontrib4 xfont4 xmisc4 xserver4
    *	sets for src/x11 (reachover build of xsrc/xfree/xc):
		xbase xcomp xcontrib xfont xmisc xserver
	(note: not populated yet, and not to be shared by x*3 or x*4 anymore)
2003-12-28 15:45:58 +00:00
martin c22fd25c47 After changing hostname, adjust hostnamelen.
This closes PR kern/23907.
2003-12-28 14:39:36 +00:00
mrg 0889156103 GNU gzip compatibility: don't let "gzip -dc" (zcat) operate on non-gzip
files by default.  -f must be used.
2003-12-28 13:42:28 +00:00
mrg f13009df25 fix an error in the previous 2003-12-28 13:40:56 +00:00
mrg 7530d0a53d zdiff is also zcmp (from wiz) 2003-12-28 13:37:23 +00:00
manu 2c772b20d9 When the catcher of an exception dies before releasing the thread that
raised the exception, don't release the lock, this causes a crash (the lock
shall be released by the process that took it). Wakeup the thread instead,
it will release the lock itself.
2003-12-28 13:28:39 +00:00
martin 5b8e6dd82f Since common/miniroot/list now includes -lz, no need to add it here
anymore. Noticed by Izumi Tsutsui.
2003-12-28 13:00:47 +00:00
wiz 98018344b7 No argument necessary after .Nm; add missing comma to enumeration. 2003-12-28 12:49:41 +00:00
wiz 28c2ebe997 Use more macros. 2003-12-28 12:48:03 +00:00
wiz 18a6b94f65 Uppercase CRT. 2003-12-28 12:47:52 +00:00
wiz 3a92ef57da Add RCS Id. 2003-12-28 12:43:43 +00:00
mrg ff7efa72db install gzexe, zdiff, zforce, zmore and znew scripts and manual pages.
XXX: now only missing zgrep.
2003-12-28 12:37:42 +00:00
mrg 5ddb436023 import openbsd z* scripts and manuals. 2003-12-28 12:31:55 +00:00
kent a92ed9fb69 ICH4/ICH5:
When native i/o mapping fails, try compatible i/o mapping.
2003-12-28 12:31:30 +00:00
jmc 0a2cc9c412 Add a .ORDER so the checksums come out in the proper sequence. 2003-12-28 09:27:41 +00:00
jmc 6cf7ed4ade Fix PR#4980 and support common symbols correctly in crunched programs.
Exclude them from renaming and expect the linker to do the right thing in
resolving them all to the library copy (i.e. optarg) or locally as the
case may be. Testing multiple programs crunched which reference optarg shows
correct behavior now.
2003-12-28 09:21:36 +00:00
itohy 148136c88f Add support for RATOC REX-9530.
Not fully tested, though.
2003-12-28 06:50:42 +00:00
itohy a4a5409e3a Regen from pcmciadevs rev 1.191. 2003-12-28 06:47:23 +00:00
itohy 10e7771b7d - RATOC System Inc. uses the same product ID for many different cards,
so do not define product ID for REX-R280.  Use CIS instead.
- Add definition for REX-9530 and REX-CFU1.
- White space police.
2003-12-28 06:46:23 +00:00
dbj 5dacb54521 fix two bugs with argument parsing:
missing break statement caused -F to give usage
  -v argument caused default options to be dropped
2003-12-28 06:06:55 +00:00
dbj 9361c55211 add DPADD+=${LIBUTIL} 2003-12-28 06:04:23 +00:00
christos 9f69d1d028 Add an argument to cp_within_target that indicates if the file is optional
or really should be there. Use that for files that are not necessarily
present.
2003-12-28 05:30:47 +00:00
christos 1b57662119 make the printf statements on chip_io_map complete lines. 2003-12-28 01:21:37 +00:00
christos a438c6286d make the printf statement a complete line. 2003-12-28 01:20:23 +00:00
dbj cd998638bc use symbolic V_SAVE instead of value 1 when invoking vinvalbuf 2003-12-28 00:36:33 +00:00
christos de8661ee74 Don't print an empty "wi0:\n" line. Join a couple of lines. 2003-12-27 23:57:24 +00:00