Commit Graph

71099 Commits

Author SHA1 Message Date
Jake Burkholder
9f5bcb6350 Make this build on sparc64. 2002-03-10 01:25:47 +00:00
Jake Burkholder
a46877abfc Increase VM_KMEM_SIZE to 16 megs from 12. Define VM_KMEM_SIZE_SCALE so that
the number of physical pages per KVA page allocated scales properly with
memory size.  This fixes problems with kmem_map being too small.

Noticed by:	mike, wollman
Submitted by:	tmm
2002-03-09 23:35:50 +00:00
Alfred Perlstein
bbbb04ce62 Remove __P 2002-03-09 22:44:37 +00:00
Thomas Moestl
0c530eb321 Add a driver for the mem and kmem devices, based off the i386 version. 2002-03-09 22:33:16 +00:00
Dag-Erling Smørgrav
8ad749a45d Change back to using vfork() now that execvp() is vfork()-safe. If execvp()
fails, errno is saved to a volatile variable that the parent later inspects.

PR:		bin/34898
Submitted by:	Tim J. Robbins <tim@robbins.dropbear.id.au>
MFC after:	1 week
2002-03-09 22:08:14 +00:00
Alfred Perlstein
be4af4b723 Don't deref NULL mutex pointer when pipeclose()'ing a pipe that is not
fully instaniated.

Revert the logic in pipeclose so that we don't have the entire function
pretty much under a single if() statement, instead invert the test and
just return if it fails.

Submitted (in different form) by: bde

Don't use pool mutexes for pipes.  We can not use pool mutexes
because we will need to grab the select lock while holding a pipe
lock which is not allowed because you may not aquire additional
mutexes when holding a pool mutex.

Instead malloc(9) space for the mutex that is shared between the
pipes.
2002-03-09 22:06:31 +00:00
Thomas Moestl
d4f1dcab55 Set the interrupt map type accordingly if we need to fall back to using
the PCI bus interrupt map.
2002-03-09 22:02:02 +00:00
Thomas Moestl
db20923f96 Fix a warning by adding a missing include. 2002-03-09 22:00:30 +00:00
Thomas Moestl
e64a9d374a Set the busmaster enable bit in the PCI command register, as the firmware
of sparc64 machines will not do this for us if the interface is not used
for booting over the network.
2002-03-09 21:52:31 +00:00
Thomas Moestl
47792f8bb9 Fix some bugs in the handling of the case of not enough tx descriptors
being free to send a packet.
2002-03-09 21:50:25 +00:00
Jake Burkholder
afc258402f Couple minor updates.
Reviewed by:	bmah
2002-03-09 21:06:50 +00:00
Mike Barcroft
d846855da8 o Don't require long long support in bswap64() functions.
o In i386's <machine/endian.h>, macros have some advantages over
  inlines, so change some inlines to macros.
o In i386's <machine/endian.h>, ungarbage collect word_swap_int()
  (previously __uint16_swap_uint32), it has some uses on i386's with
  PDP endianness.

Submitted by:	bde

o Move a comment up in <machine/endian.h> that was accidentially moved
  down a few revisions ago.
o Reenable userland's use of optimized inline-asm versions of
  byteorder(3) functions.
o Fix ordering of prototypes vs. redefinition of byteorder(3)
  functions, so that the non-GCC (libc asm) case has proper
  prototypes.
o Add proper prototypes for byteorder(3) functions in <sys/param.h>.
o Prevent redundant duplicate prototypes by making use of the
  _BYTEORDER_PROTOTYPED define.
o Move the bswap16(), bswap32(), bswap64() C functions into MD space
  for platforms in which asm versions don't exist.  This significantly
  reduces the complexity of some things at the cost of duplicate code.

Reviewed by:	bde
2002-03-09 21:02:16 +00:00
Luigi Rizzo
95651ec70e Forgot to update the date.
The manpage describes the latest batch of changes, and especially the
runtime config was totally different before.
2002-03-09 20:18:31 +00:00
Luigi Rizzo
27530a537c Lots of updates on the install process, detailing how to
install PicoBSD on hard disks and CDROM images, and on the
bootstrap sequence and the places where you can customise
a PicoBSD image.

Now if some of the -doc guys want to put this stuff in a nice
handbook page, that would be extremely useful!
2002-03-09 20:16:06 +00:00
Poul-Henning Kamp
1c1676edca Delete "notyet" code before it becomes "ohh no" code. 2002-03-09 20:11:25 +00:00
Sebastien Gioria
2f719135d8 Adding Network Protocols section translation 2002-03-09 20:04:36 +00:00
Wolfram Schneider
d4d7280f7c apropos(1) manual page doesn't tell that keyword can be regular expression
PR:	gnu/31685
Submitted by: Andrey Simonenko <simon@simon.org.ua>
2002-03-09 20:00:08 +00:00
Poul-Henning Kamp
875b0335f9 Hide the DIOCGPART ioctl from userland where it has no decent use.
It's use in the kernel is also highly suspect due to the total absense
of any kind of lifetime definition of the passed pointers.
2002-03-09 19:15:37 +00:00
Luigi Rizzo
4814d31422 Remove host.conf, and introduce a way to override the content
of selected files (at the moment /etc/host.conf and /etc/resolv.conf)
from /etc/rc.conf , so the number of places to customize is
reduced.
2002-03-09 18:27:02 +00:00
Bruce A. Mah
1145fadb26 More markup fixes, wordsmithing. It's not quite yet ready for
prime time, but we're getting closer.
2002-03-09 18:04:47 +00:00
Tor Egge
ff91d7800f Revert change in revision 1.53 and add a small comment to protect
the revived code.

vm pages newly allocated are marked busy (PG_BUSY), thus calling
vm_page_delete before the pages has been freed or unbusied will
cause a deadlock since vm_page_object_page_remove will wait for the
busy flag to be cleared.  This can be triggered by calling malloc
with size > PAGE_SIZE and the M_NOWAIT flag on systems low on
physical free memory.

A kernel module that reproduces the problem, written by Logan Gabriel
<logan@mail.2cactus.com>, can be found in the freebsd-hackers mail
archive (12 Apr 2001).  The problem was recently noticed again by
Archie Cobbs <archie@dellroad.org>.

Reviewed by:	dillon
2002-03-09 16:24:27 +00:00
Wolfram Schneider
f2c819bf2b Off by one error in checking max file name length. 2002-03-09 15:30:42 +00:00
Hellmuth Michaelis
0d18e004bb after joerg's recent merge of i4b's isppcontrol to the main spppcontrol,
remove now obsolete files.
2002-03-09 13:37:24 +00:00
Hellmuth Michaelis
a6cd6fedf9 after joerg's recent merge of i4b's sppp with the main sppp, remove
now obsolete file.
2002-03-09 13:31:56 +00:00
Hellmuth Michaelis
cd987b48ab remove BSD/OS specific ppp-interface file since the FreeBSD-BSD/OS merger
is IMHO likely not to happen anymore ...
2002-03-09 13:18:24 +00:00
Hellmuth Michaelis
b25b877461 After joergs merge of i4b's sppp with the main sppp, remove obsolete file. 2002-03-09 13:14:49 +00:00
David Malone
94998878b7 If syslog fails to talk to syslogd, then it tries to write a message
to the console in a final attempt to log something. Make this final
attempt non-blocking so that a blocking console doesn't end up
blocking process which attempt to syslog something.

In particular, this means you should be able to su and fix the
problem if the console becomes blocking.

MFC after:	3 weeks
2002-03-09 11:38:01 +00:00
Luigi Rizzo
93581d7445 Nuke abandoned configuration. 2002-03-09 08:28:11 +00:00
Luigi Rizzo
a100324819 Make this fit again into a 1.44 floppy.
We had to give up DDB and grep this time...

Add a hint in "config" on how to increase the image size so
we can stuff more things in the image (mostly for use on a CDROM).
2002-03-09 08:17:40 +00:00
Luigi Rizzo
c445626ad3 Enable DEVICE_POLLING in LINT now that it is safe to compile it there. 2002-03-09 08:04:58 +00:00
Luigi Rizzo
2dbd9d5bc3 Make the DEVICE_POLLING code compile with -Werror and in LINT 2002-03-09 08:02:52 +00:00
Dima Dorfman
6b663fd674 Correct a typo.
Submitted by:	peter.kusenda@accenture.com
2002-03-09 07:05:22 +00:00
Dima Dorfman
ca4b6b3910 This API will appear in FreeBSD 4.6. 2002-03-09 05:19:21 +00:00
Dima Dorfman
2f1791f580 In the words of the submitter:
Kerberized CVS (kserver) listens on the same port as normal CVS
        (pserver).  In /etc/inetd.conf cvs kserver is disabled by default,
        but set to listen to the service port 'cvs' which doesn't exist.  It
        should listen to 'cvspserver'.

PR:		34317
Submitted by:	Sean Chittenden <sean@chittenden.org>
2002-03-09 04:55:35 +00:00
Dima Dorfman
ae444ae634 Assorted mechanical fixes.
PR:		34790
Submitted by:	Mike Makonnen <mike_makonnen@yahoo.com>
2002-03-09 04:38:25 +00:00
Dima Dorfman
caab5f4f7f The -a switch didn't cause send-pr to attach the specified file if the
PR template was obtained from the environment variable $PF_FORM.

PR:		34831
Submitted by:	Mike Makonnen <mike_makonnen@yahoo.com>
2002-03-09 04:29:00 +00:00
Dima Dorfman
235d6772d5 Bring a comment in line with the code, and fix some spelling errors
while I'm here.

PR:		35394
Submitted by:	andrew@ugh.net.au
2002-03-09 04:00:53 +00:00
Dima Dorfman
524a875c78 When reporting that a line is too long, include the line number in the
error message.  While I'm here, add a note that the "line too long"
message isn't always accurate.

PR:		35395
Submitted by:	andrew@ugh.net.au
2002-03-09 03:52:14 +00:00
Brian Feldman
44f7d6af24 Fix build. I commented out getpass() in readpassphrase.c because the
implementation did not match our manpage description (i.e., it could
return NULL).  I mistakenly thought we were still using getpass.c
because, for some reason, CVS never removed it from the tree.

Pointy hat received from:	alfred
Kick in the groin to:	CVS
2002-03-09 03:16:41 +00:00
Bruce A. Mah
00148928a5 Fix SA-02:13 release note item (missing text).
Reviewed by:	nectar
2002-03-09 01:12:03 +00:00
Bruce A. Mah
c3a919a128 New/changed release notes: OpenPAM has replaced Linux-PAM.
We used to have a note about new PAM modules; I moved it from the
contrib section back to the generic userland area.  The list of new
modules was incomplete, so I've punted on trying to list them all
for now.
2002-03-09 00:03:44 +00:00
Bruce A. Mah
91e8728e48 New release notes: wi(4) Prism II/2.5 support + WEP fixes (+ MFC),
IPSec inbound SPD fix for IPv4 (+ MFC), ata(4) RAID1 rebuild,
/etc/rc.firewall{,6} don't add their own implicit rules (+ MFC).

MFCs noted:  puc(4)
2002-03-08 22:57:25 +00:00
Søren Schmidt
fefe430118 Even more Highpoint RAID support.
Fix the 80pin cable detection system.
2002-03-08 21:36:49 +00:00
Brian Feldman
a7a8a766e7 Update readpassphrase(3)to the latest revisions. Changes are mainly due
to return value constraints now changing as well as more intelligent
handling of signals.

Obtained from:	OpenBSD
2002-03-08 21:14:00 +00:00
Robert Watson
147273e8ca Improve punctuation consistency: all errors had a '.' after them
except ENOATTR.
2002-03-08 21:00:27 +00:00
Brian Feldman
aeff2223dc Synch with OpenBSD (style). 2002-03-08 20:52:52 +00:00
Bruce A. Mah
53b94d2cce Fix up (content) of rpc.lockd(8) release note.
Submitted by:	alfred
2002-03-08 20:40:37 +00:00
Hellmuth Michaelis
29c063831d make pcvt compile again without "options XSERVER".
PR: 35577
2002-03-08 19:06:46 +00:00
Robert Watson
7ed3fd6d72 Note that several of the recently documented clock-related kernel options
are for debugging purposes only.

Suggested by:	bde
2002-03-08 18:59:05 +00:00
John Baldwin
60e269643d - Use a MI critical section in witness_sleep() and witness_list() as they
simply need to prevent switching from another CPU and do not need
  interrupts disabled.
- Add a comment to witness_list() about why displaying spin locks for
  threads on other CPU's really is just a bad idea and probably shouldn't
  be done.
2002-03-08 18:57:57 +00:00