Commit Graph

93558 Commits

Author SHA1 Message Date
kleink 26c19c6081 Fix the declaration of the function to be registered with kthread_create{,1};
from Peter Seebach in PR kern/15838.
2002-03-08 23:03:23 +00:00
wiz e76f885fb8 Xr makewhatis 8, not 1. 2002-03-08 22:18:04 +00:00
jdolecek 626d582bcc xref makewhatis(8), it now uses man.conf too 2002-03-08 22:12:22 +00:00
wiz d367bf3547 Grammar and mdoc fixes. 2002-03-08 22:10:00 +00:00
jdolecek bae76d5fb5 msdosfs_rename(): also write the higher 16bits of start cluster if FAT32
Confirmed to fix kern/14839 by Thomas Klausner, fix provided by
Stephen Ma <stephenm@employees.org>
2002-03-08 22:07:53 +00:00
jdolecek 534dd161ea If called without arguments, parse /etc/man.conf and regenerate the whatis
databases specified there. By default, the individual databases
are actually generated by forked children in this case, for
performance reasons. This feature can be switched off by new -f flag.
If the configuration file can't be parsed or doesn't contain any
_whatdb entries, the code falls back to /usr/share/man as before.

Added -C, which allows to specify alternate configuration file. This
  is compatible with apropos(1) and whatis(1) flag of same name.

Update manpage accordingly and document behaviour a bit better.
Also add a HISTORY section, hopefully correct (done using CVS logs).

This solves toolchain/5231 by Tim Rightnour and bin/7696 by Allen Briggs.
2002-03-08 21:59:07 +00:00
kristerw 8bcbaa7bc8 Ansify
Remove 'register'
Make local functions static.
Remove most '#ifndef lint'
2002-03-08 21:57:33 +00:00
thorpej ce635a702a Add a missing simple_unlock. 2002-03-08 21:43:54 +00:00
thorpej 8cdc6121b7 Add an optional "drain" client callback, which can be set by the new
pool_set_drain_hook().  This hook is called in three cases:
* When a pool has hit the hard limit, just before either erroring
  out or sleeping.
* When a backend allocator fails to allocate memory.
* Just before trying to reclaim pages in pool_reclaim().

This hook requests the client to try and free some items back to
the pool.

From art@openbsd.org.
2002-03-08 21:41:59 +00:00
martin dfbd0bc7b8 Shuffle around some initialization code a bit.
Configure power supply on VPP1 at 5V when powering up a socket.
Get rid of stray interrupts.
Make the driver quiet for normal operation when not in debugging mode.

This makes ray0 at nell0 actually work when compiled with RAY_USE_AMEM=1.
2002-03-08 21:33:43 +00:00
jdolecek 1b5e3d16f0 improve description of options - particularily, avoid repeating the option
in the description, and use 'print' instead of 'returns' or 'determines'
2002-03-08 20:59:08 +00:00
thorpej 7c94c68f10 Remove PR_FREEHEADER; nothing uses it anymore.
From art@openbsd.org.
2002-03-08 20:51:25 +00:00
thorpej a180cee23b Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map).  Try to deal with this:

* Group all information about the backend allocator for a pool in a
  separate structure.  The pool references this structure, rather than
  the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
  to become available, but will still fail if it cannot callocate KVA
  space for the pages.  If this happens, carefully drain all pools using
  the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
  some pages, and use that information to make draining easier and more
  efficient.
* Get rid of PR_URGENT.  There was only one use of it, and it could be
  dealt with by the caller.

From art@openbsd.org.
2002-03-08 20:48:27 +00:00
jdolecek 16510c2b02 makewhatis(8) doesn't use getNAME(8) nowadays 2002-03-08 20:40:00 +00:00
jdolecek 215ac5cf9b document -C option, add /etc/man.conf to FILES and xref man.conf(5) 2002-03-08 20:27:41 +00:00
jdolecek 0f794d6d71 use -I${CURDIR}/.. and #include <man/config.h>, <man/pathnames.h> so
that it's easier to tell from where do they come, and more easily
  usable in host tool code when cut&pasted
use TAILQ_* macros as apropriate
use EXIT_FAILURE for the glob error case, too
2002-03-08 20:23:10 +00:00
kent ad276dda9e free_all_endpoints(): Fix a problem with disabled device. 2002-03-08 17:24:06 +00:00
christos 971f33821d % set verbose echo
% echo foo >& bar
% cat bar
guess what you get:
echo foo
foo
2002-03-08 17:15:30 +00:00
christos 5d5763b4f5 Fix:
% set N2=`echo 1; echo 2; \
?                       echo 3`
% echo $N2
1 2
so that
% echo $N2
1 2 3
2002-03-08 16:37:45 +00:00
uch dc55dc2c73 remove unneeded code and files. 2002-03-08 13:22:11 +00:00
uch babf2e5892 cpu_swapout() moved to cpu.h 2002-03-08 13:12:10 +00:00
ad dbd8140c1f PR 15552: don't explode if the board fails to respond during initalization. 2002-03-08 11:37:04 +00:00
chs 759dc33636 make this compile without DDB. 2002-03-08 06:03:50 +00:00
itojun 9d597e40f3 printf type mismatch. 2002-03-08 06:03:21 +00:00
thorpej 4c3cc0bfe3 Fix printf format on LP64. 2002-03-08 02:30:54 +00:00
itojun 295a85a1c9 sync better with reality (LoginGraceTime) 2002-03-08 02:18:11 +00:00
wiz 6e6e326518 Usually, one reads from standard input, not standard output (comment). 2002-03-08 02:05:25 +00:00
itojun af34a358ff sync w/ 3.1 as of 2002/3/8. configuration file directory is still /etc
(openbsd usr.bin/ssh is using /etc/ssh)
2002-03-08 02:00:50 +00:00
simonb abf4139889 Include libkern.h for strcmp() prototype. 2002-03-08 01:36:34 +00:00
itojun 797a097779 OpenSSH 3.1 as of 2002/3/8. plugs off-by-one security hole 2002-03-08 01:20:24 +00:00
lukem 62aa4e74be don't need this any more 2002-03-07 23:53:44 +00:00
lukem dee3f84c6f remove now-unnecessary cruft 2002-03-07 23:52:48 +00:00
lukem ccfd870e0f convert to using the New Distrib World Order.
this directory can now be built UNPRIVED.
2002-03-07 23:51:48 +00:00
bjh21 dcdd6be3c3 Correct definitions of various control register bits. 2002-03-07 23:16:44 +00:00
bjh21 08f3639e04 Add a comment explaining why I use -ffixed-r14 (though actually I'm not sure
it's necessary).
Add -mshort-load-words, since that's safe on all arm26 systems.
2002-03-07 23:15:23 +00:00
tv d6c76879a7 fcntl locking works much better when the `struct flock' is actually given
to fcntl....
2002-03-07 23:14:02 +00:00
bjh21 9d5896ee9e When making a release, build the release notes, and copy them and boot26
into the release directory.  Also make checksums for boot26.
2002-03-07 23:12:54 +00:00
tv d29f17612e Don't gratuitously touch the replacement headers in ${.OBJDIR}/include;
instead, touch them only if they're changed.
2002-03-07 22:48:07 +00:00
tv fa8abf3083 Need DEV_BSIZE and roundup() for makefs on non-NetBSD hosts. 2002-03-07 22:46:07 +00:00
christos 833f408cd1 stupid void pointers... tl_init() needs struct ifnet *... 2002-03-07 21:42:20 +00:00
tv 081041f2f7 MAX has special meaning in host tools. #undef it first. 2002-03-07 20:43:29 +00:00
jdolecek c8c145f7da Make the whatis enties prefixed with man subdirectory the manpage
appears in, as commonly used for architecture-specific manpages.
The subdirectory is deliberately printed such that the entry is suitable
for cut&paste for man(1).

Fixes bin/9744 by John Hawkinson and misc/14997 by Hiramatsu Yoshifumi.
2002-03-07 20:37:14 +00:00
tv 6057928f1a Rename `basename' as `lbasename' so as not to confuse with the libgen.h
prototyped function of the same name.
2002-03-07 20:17:37 +00:00
thorpej 26b2d2217b If the bootstrapping process didn't actually use any KVA space, don't
reserve size of 0 in kernel_map.

From OpenBSD.
2002-03-07 20:15:32 +00:00
thorpej 069a559c65 Remove some files that no longer exist. 2002-03-07 19:34:37 +00:00
tv 1d5b3f55ff Revert previous; <inttypes.h> is auto-generated-empty now. 2002-03-07 19:19:14 +00:00
tv 866eb28f53 Move inttypes.h to list of auto-generated-empty headers. 2002-03-07 19:18:25 +00:00
matt 7053887d27 Change LABELOFFSET to 0 to be compatible most other MBR using ports. 2002-03-07 19:15:46 +00:00
jdolecek ee0c88c936 Also supply the FOP_REGNUM value in supply_xmmregs().
This fixes problem with getting return value of functions
in debugged programs, as noted in toolchain/15715.

Fix provided by Love <lha@stacken.kth.se> in
http://mail-index.netbsd.org/tech-toolchain/2002/01/17/0000.html
Reviewed by Jason Thorpe.
2002-03-07 19:14:44 +00:00
tv a45d07b1e5 Rework recursion to use the original logic again, in the structure cleaned
up by pk (and fix comments to match):

* A .WAIT here means that only the *immediately preceding* target needs
  to be added to the list of "install-foo" targets used to ensure that
  dependencies are installed (otherwise much more than is necessary
  gets installed during the build process, increasing build time here)

* If building only an individual target such as "dependall-yacc", the
  prerequisites may need to be built before running their "install-foo"
  targets -- so add a dependency in that case on "dependall-foo".
2002-03-07 19:12:33 +00:00