Commit Graph

93570 Commits

Author SHA1 Message Date
tacha
767679dbe9 Add new two convert functions slinear16_to_alaw_[lb]e. 2002-03-09 05:39:00 +00:00
thorpej
59a96297ef Fix a couple of typos in simple_{,un}lock()'s. 2002-03-09 05:14:33 +00:00
chs
87185156fd a vm_prot_t is a bit-mask, fix an assertion which was treating one
more like an enumerated type.
2002-03-09 04:29:03 +00:00
thorpej
c4a2ca6a3e Remove pool_prime(). Nothing uses it, and how it should be used it not
really well-defined in the absense of PR_STATIC.
2002-03-09 01:56:27 +00:00
thorpej
e21319b482 Make mbpool and mclpool use the new drain hook facaility. Adjust
m_reclaim() to match the drain hook signature.  This allows us to
delete m_retry() and m_retryhdr(), as the pool allocator will now
perform the reclaimation step for us.

From art@openbsd.org.
2002-03-09 01:46:32 +00:00
thorpej
24cd6c510c Bump version to 1.5ZB -- The pool(9) API/ABI changed. 2002-03-09 01:42:13 +00:00
thorpej
4be86fcc13 If, when a page becomes idle, the backend allocator is waiting for
resources, release the page immediately, rather than letting it sit
around cached.

From art@openbsd.org.
2002-03-09 01:37:19 +00:00
pk
951bda42bf Fix $SRCS; use $DPSRCS; add explicit dependency on generated header file 2002-03-09 01:35:46 +00:00
pk
c171455b6f #include <testbits.h> => #include "testbits.h" 2002-03-09 01:34:18 +00:00
thorpej
d54150e78a Remove PR_MALLOCOK and PR_STATIC. The former wasn't actually used,
and the latter, while there was some code tested the bit, was woefully
incomplete and also unused by anything.  Besides, PR_STATIC functionality
could be better handled by backend allocators anyhow.

From art@openbsd.org
2002-03-09 01:33:33 +00:00
matt
e8db553326 Change LABELOFFSET to 0 to be more compatible with other MBR style ports. 2002-03-09 01:15:22 +00:00
pk
24ed3538ca Propagate a .JOIN node's .ALLSRC contents to the parent's .ALLSRC. 2002-03-08 23:22:38 +00:00
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