Commit Graph

59897 Commits

Author SHA1 Message Date
imp
13a28cc232 Migrate from using MAXPATHLEN to MAX_PATH. Use strlcpy to copy the
strings.
2001-05-16 19:10:40 +00:00
imp
5114ce1da7 Add entry for cygwin, the Cygnus Windows emulator.
Submitted by:	"Karsten W. Rohrbach" <karsten@rohrbach.de>
Reviewed by:	ache
2001-05-16 19:01:45 +00:00
nsayer
e3d767bac2 srandomdev() affords us the opportunity to radically improve, and at the
same time simplify, the random number selection code.
2001-05-16 18:32:46 +00:00
nsayer
1be2f5ba52 Catch any attempted buffer overflows. The magic numbers in this code
(512) are a little distressing, but the method really needs to be
extended to allow server-supplied DH parameters anyway.

Submitted by:	kris
2001-05-16 18:27:09 +00:00
nsayer
ce33146412 Catch malloc return failures. This should help avoid dereferencing NULL on
low-memory situations.

Submitted by:	kris
2001-05-16 18:17:55 +00:00
iedowse
14dd931aa7 Change the second argument of vflush() to an integer that specifies
the number of references on the filesystem root vnode to be both
expected and released. Many filesystems hold an extra reference on
the filesystem root vnode, which must be accounted for when
determining if the filesystem is busy and then released if it isn't
busy. The old `skipvp' approach required individual filesystem
xxx_unmount functions to re-implement much of vflush()'s logic to
deal with the root vnode.

All 9 filesystems that hold an extra reference on the root vnode
got the logic wrong in the case of forced unmounts, so `umount -f'
would always fail if there were any extra root vnode references.
Fix this issue centrally in vflush(), now that we can.

This commit also fixes a vnode reference leak in devfs, which could
result in idle devfs filesystems that refuse to unmount.

Reviewed by:	phk, bp
2001-05-16 18:04:37 +00:00
archie
6fbe7413a9 Add BUGS section describing the requirement to manually load the KLD. 2001-05-16 17:30:15 +00:00
joerg
6c1f3a0584 Fix man page markup.
Submitted by:	ru
2001-05-16 17:09:00 +00:00
ru
6113f8a162 Unbreak world; _DIAGASSERT macro is not available in FreeBSD. 2001-05-16 14:34:47 +00:00
ru
ce0c318edf mdoc(7) police: fix markup. 2001-05-16 13:53:19 +00:00
ru
0870b109f8 Install wchar.h and wctype.h.
Forgotten by:	tshiozak
2001-05-16 11:38:18 +00:00
brian
ca2b54b955 Remove forgotten -Wall
Reminded by: ru
2001-05-16 11:15:49 +00:00
phk
4002f7f6d4 Fix an array which was too small.
PR:		27380
Submitted by:	Samuel Greear <sgreear@vsni.com>
2001-05-16 11:13:16 +00:00
markm
ebb42ab29f Fix problem with static linking:
> Script started on Sat May 12 22:18:47 2001
> ttyp1:bde@gamplex:/usr/src/libexec/rshd> rsh localhost ls
> rcmd: localhost: Undefined error: 0

Reported by:	bde
2001-05-16 11:05:03 +00:00
ru
99325e12d3 mdoc(7) police: fix markup and spelling. 2001-05-16 10:39:42 +00:00
ru
984f44a723 mdoc(7) police: fix markup and spelling. 2001-05-16 10:29:51 +00:00
ru
3fc436e57f mdoc(7) police: fix markup (demonstrates new -xwidth modifier). 2001-05-16 10:18:20 +00:00
ru
f6d873cab3 mdoc(7) police: fix markup. 2001-05-16 09:50:12 +00:00
ru
ec1f9f2380 mdoc(7) police: uppercase abbreviations in revision 1.34. 2001-05-16 09:43:48 +00:00
ru
84f552fde9 mdoc(7) police: double spaces in plain text chunks aren't good. 2001-05-16 09:40:12 +00:00
imp
8a95eaff24 Catch up with some recent changes:
1) pcic_isa.c
	2) For pc98, add mecia driver and -DPC98 to command line.
	3) pcic_p.c -> pcic_pci.c
2001-05-16 07:35:54 +00:00
imp
c4b168c6d9 Separate out isa attachment to its own file. The pci attachment will
soon attach directly to pcic rather than the kludge pci-pcic device we
have now.

In some ways, this is similar to the work PAO3 did to try to support
cardbus bridges.  In some ways different.  This and future commits
will be taking from the spirit of many of those changes.  pcicvar.h is
completely different from the pcicvar.h that appeared in PAO3, but
similar in concept.
2001-05-16 07:32:04 +00:00
imp
736d60b787 This file is now obsolete. The #defines in it have never been used
and the pcic_devclass no longer is used by pccard.c.
2001-05-16 06:14:51 +00:00
imp
861f184972 Note recent windows of breakage.
Note new ata subsystem.
Add additional files for the portmap change.
2001-05-16 04:34:40 +00:00
alfred
b82d4612b8 remove include of ipl.h because it no longer exists 2001-05-16 02:52:06 +00:00
archie
f16b65d2c3 Fix typo.
Noticed by:     ade
2001-05-16 01:25:29 +00:00
jhb
1f7bfc40a0 Lock the procfs functions for doing a single step and reading/writing
registers better.  Hold sched_lock not only for checking the flag but
also while performing the actual operation to ensure the process doesn't
get swapped out by another CPU while we the operation is being performed.
2001-05-16 00:47:27 +00:00
imp
80125520c0 pcic98reg.h is now contained in meciareg.h. 2001-05-15 23:53:18 +00:00
imp
f4f513af70 The mecia support has moved to the mecia driver, so remove the copy of
it here.
2001-05-15 23:50:58 +00:00
imp
a17ae4c7c4 Add mecia driver definitions. 2001-05-15 23:47:17 +00:00
imp
dbe8e02691 Rev 1.131 was missing:
Submitted by: KATO Takenori-san <kato@nendai.nagoya-u.ac.jp>
2001-05-15 23:44:03 +00:00
imp
f094e054c9 This code touches MD code inappropriately. So we have to include pc98
specific file for pc98.
2001-05-15 23:43:02 +00:00
dd
0db2bdb4c5 Introduce getprogname(3) and setprogname(3) library calls. These get
and set __progname, respectively.

Discussed on:	-arch (Feb 2001), -audit
Reviewed by:	-audit
Approved by:	kris
Obtained from:	(mostly) NetBSD
2001-05-15 23:41:01 +00:00
imp
c2a2feb4db A new driver for the MECIA. This is the NEC Original PCMCIA
controller found in many of the early NOTE98 machines that were
produced.  This controller is completely unlike the intel 82365, so
I've separated it out from the main pcic driver.
2001-05-15 23:34:42 +00:00
jhb
391d3d143d "Sir, the deorbit burn completed succesfully."
RIP {sys/machine}/ipl.h.
2001-05-15 23:30:37 +00:00
jhb
cb5aff89bf Remove unneeded includes of sys/ipl.h and machine/ipl.h. 2001-05-15 23:22:29 +00:00
jhb
8e6387964b Add a PROC_TRYLOCK() macro to perform a mtx_trylock() on the process lock. 2001-05-15 23:19:52 +00:00
jhb
639134afc3 Remove unneeded includes in the i386 case. 2001-05-15 23:16:18 +00:00
jhb
ce9732eccb - Remove unneeded include of sys/ipl.h.
- Lock the process before calling killproc() to kill it for exceeding the
  maximum CPU limit.
2001-05-15 23:15:06 +00:00
jhb
8ae89751ce - Remove unneeded include of sys/ipl.h.
- Require the proc lock be held for killproc() to allow for the vmdaemon to
  kill a process when memory is exhausted while holding the lock of the
  process to kill.
2001-05-15 23:13:58 +00:00
jhb
a4fd9131df Move the definition of HWI_MASK to the i386/isa/icu.h header right next to
the definition of ICU_LEN.
2001-05-15 23:11:48 +00:00
imp
884812cc96 Save one fork on a buildworld. env FOO=foo bar -> FOO=foo bar. 2001-05-15 22:54:15 +00:00
imp
e96335e5e0 If PASTE isn't defined, define it as a transitional measure. This
allows me to complete make buildworld on my stable machine.

Also change termination case to be clearer what is going on while
searching for map files.
2001-05-15 22:53:05 +00:00
jhb
0f88f52bf4 - Use ICU_LEN rather than NHWI for the size of the array of ithreads.
- Remove unneeded include of sys/ipl.h.
2001-05-15 22:31:08 +00:00
jhb
db1f4b2dc1 - Use PROC_LOCK_ASSERT instead of a direct mtx_assert.
- Don't hold Giant in the swapper daemon while we walk the list of
  processes looking for a process to swap back in.
- Don't bother grabbing the sched_lock while checking a process' sleep
  time in swapout_procs() to ensure that a process has been idle for at
  least swap_idle_threshold2 before swapping it out.  If we lose the race
  we just let a process stay in memory until the next call of
  swapout_procs().
- Remove some unneeded spl's, sched_lock does all the locking needed in
  this case.
2001-05-15 22:20:44 +00:00
wpaul
b25897273b Fix instance of (struct ti_softc *) that should have been
(struct nge_softc *), which the compiler never complained about.
I guess it doesn't matter, a pointer is a pointer, but looked weird
to me.
2001-05-15 22:19:50 +00:00
jhb
52943e84fd Include sys/lock.h and sys/mutex.h so that this compiles. 2001-05-15 22:02:46 +00:00
wpaul
f1e1aefd53 Adjust the descriptor structures a little by making the software parts
be unions with enough padding to make sure they always end up being
a multiple of 8 bytes in size, since the 83820/83821 chips require
descriptors to be aligned on 64-bit boundaries. I happened to get it
right for the 32-bit descriptor/x86 case, but botched everything else.
Things should work properle on 32-bit/64-bit platforms now.

Note that the 64-bit descriptor format isn't being used currently.
2001-05-15 21:42:43 +00:00
tshiozak
dffcea179a adapt to FreeBSD.
- enable locale-insensitive functions of wchar.h:
	wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c
        wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c
	wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c
	XXX: wcswidth.c is not enabled yet.
- enable wmemchr(3) man page.
	XXX: FreeBSD lacks .St -isoC99 and .St -isoC-amd1.
2001-05-15 20:34:20 +00:00
tshiozak
7f404bf2fa adapt to FreeBSD.
- add #define NULL 0 instead of sys/null.h.
- enable locale-insensitive functions:
	wcscat.c wcschr.c wcscmp.c wcscpy.c wcscspn.c wcslcat.c wcslcpy.c
        wcslen.c wcsncat.c wcsncmp.c wcsncpy.c wcspbrk.c wcsrchr.c wcsspn.c
	wcsstr.c wmemchr.c wmemcmp.c wmemcpy.c wmemmove.c wmemset.c
- disable some locale-sensitive functions defined in wchar.h temporarily:
	mbrlen mbrtowc mbsinit mbsrtowcs wcrtomb wcsrtombs wcwidth wcswidth
- disable all functions defined in wctype.h temporarily:
	is* tow*
2001-05-15 20:28:48 +00:00