Commit graph

46126 commits

Author SHA1 Message Date
Jason Evans 8a668b9049 For errors, return -1 and set errno to indicate the error type, rather than
returning the error directly.

For sem_post(), make sure that the correct thread is woken up.  This has
unfortunate performance implications, but is necessary for POSIX compliance.

Approved by:	jkh
2000-02-16 19:34:53 +00:00
Jason Evans b0a1b4f809 Add man pages for the sem_*() functions.
Approved by:	jkh
2000-02-16 19:31:53 +00:00
Justin T. Gibbs 945111e5a7 Remove a diagnostic printf.
Noticed by:	 imp@FreeBSD.org
2000-02-16 18:41:00 +00:00
Peter Dufault e5f1b1b180 These are regression tests for the P1003.1B scheduler.
Approved by:	jkh
2000-02-16 14:28:42 +00:00
David E. O'Brien c24e264a76 Add libhistory.so.3 from 3.4-RELEASE.
Approved by:	JKH
2000-02-16 11:02:16 +00:00
Jeroen Ruigrok van der Werven c415058330 Fix typo's.
Submitted by:	George Cox <gjvc@extremis.demon.co.uk>
2000-02-16 07:40:23 +00:00
John Baldwin 536fcb08bf This patch to BTX fixes several small things:
1) Fix a bug in the int15 function 87 emulation where we only copied half
   of what the BIOS asked for.  This caused the Mylex RAID adapter to go
   haywire and start trashing memory when you tried to boot from it.
2) Don't use interrupt 19 to reboot.  Instead, set the reboot flag to a warm
   boot and jump to the BIOS's reboot handler.  int 19 doesn't clear memory
   or restore the interrupt vector table, and thus really isn't safe.  For
   example, when booting off of PXE, the PXE BIOS eats up a chunk of memory
   for its internal data and structures.  Since we rebooted via int 19,
   using the 'reboot' command in the loader resulted in that memory not
   being reclaimed by the BIOS.  Thus, after a few PXE boots, the system
   was out of lower memory.
3) Catch any int 19 calls made by a BTX client or a user pressing
   Ctrl-Alt-Delete and shutdown BTX and reboot the machine cleanly.  This
   fixes Ctrl-Alt-Delete in the loader and in boot2 instead of presenting
   the user with a BTX fault.

Approved by:	jkh
Found by:	1) by msmith
2000-02-16 07:00:16 +00:00
Bill Fenner 686d0736aa Fix coredump in gethostbyaddr() when the returned answer is too large to
fit in the static buffer.  This fix causes it to look like there is no
 data available, which is also wrong but is better than dumping core.

PR:		bin/10344
Reviewed by:	billf
Approved by:	jkh
2000-02-16 04:39:00 +00:00
Kazutaka YOKOTA 528b8853bb Make it clear that 'options XSERVER' is for pcvt and not for syscons.
Submitted by: Doug Barton <Doug@gorean.org>
Approved by: jkh
2000-02-16 04:27:04 +00:00
Matthew N. Dodd 8d5d0412c0 Track if_i{bytes,packets,errors}.
Approved by: 	jkh
2000-02-16 04:04:36 +00:00
Matt Jacob af077239b6 Include the file that defines PCIM_CMD_BUSMASTEREN. 2000-02-16 02:22:37 +00:00
Mike Smith 7af42aebc4 Ensure that the busmaster enable bit is set; we can't assume that all
BIOS code will get this right (and some certainly doesn't).

Submitted by:	W. Gerald Hicks <jhix@mindspring.com>
Approved by:	jkh
2000-02-16 01:12:09 +00:00
Sean Eric Fagan 05d5ca3587 Fix a leak. (Thanks Bruce, this was a bonehead mistake on my part :).)
Submitted by:	Bruce Evans
2000-02-15 20:25:47 +00:00
Joerg Wunsch 2c6610f343 Hide the boring `not probed (disabled)'' messages behind bootverbose'.
This unspams the boot messages, concentrating on the drivers that have
actually been probed.

This basically resurrects revision 1.106 from old /sys/i386/isa/isa.c.

Reviewed by:	jkh, dfr
2000-02-15 19:23:34 +00:00
Andrew Gallatin ac0bed8e35 The AlphaServer 1000A is now known to work. Remove mentions of it
being untested.

Approved by:	jkh
2000-02-15 18:49:27 +00:00
Andrew Gallatin 128f43c891 o Wilko Bulte has tested our AlphaServer 1000A ("Noritake") support
code & it survives a buildworld.  So remove the dire warnings about
  Noritake support being untested.

o Remove a disconserting printf() left over from NetBSD

Approved by: 	jkh
2000-02-15 18:47:51 +00:00
Jordan K. Hubbard 7db56b4c3e Add userconfig entries for the new atapi devices.
Submitted by:	Dan Papasian <bugg@bugg.strangled.net>
2000-02-15 18:33:25 +00:00
Yoshinobu Inoue 66182096e8 Fix pathname of pim6sd.conf from /usr/local/v6/etc to /etc.
Approved by: jkh
2000-02-15 18:33:22 +00:00
Yoshinobu Inoue c00ba6b645 Fix pathname of pim6dd.conf from /usr/local/v6/etc to /etc.
Approved by: jkh
2000-02-15 18:30:24 +00:00
Yoshinobu Inoue b85d5dc850 -P option was not enabled, so enable it
(The option specify IPsec policy for rtadvd to receive Router Renumbering
messages.)

Approved by: jkh
2000-02-15 18:24:27 +00:00
Yoshinobu Inoue 9bf48e31c5 Correct pathname of rtadvd.conf from /usr/local/v6/etc to /etc.
Approved by: jkh
2000-02-15 18:21:38 +00:00
Jordan K. Hubbard 46fed58ae1 Include /usr/libexec in the list of upgrade targets by chflags'ing it first. 2000-02-15 18:13:56 +00:00
Bruce Evans 34ae9210dd Fixed regressions in rev.1.274:
1) Non-AST4 multiport cards were broken by bypassing the code that changes
   `idev' to the multiport master device.
2) AST4 multiport cards apparently were broken by inverting the test for
   the master device having an irq.
3) Error handling for nonexistent master devices was broken by removing a
   check for a null pointer.
4) `int' error codes returned by bus_get_resource() were assigned directly
   to the boolean variable com->no_irq.  Probably harmless, since the
   boolean is implemented as a u_char.

Submitted by:	part 1) by Chris Radek <cradek@in221.inetnebr.com>
		part 2) by yokota
Approved by:	jkh
2000-02-15 17:29:09 +00:00
Yoshinobu Inoue 1d1ade86f0 Fix bugs in telnet.
Sorry there were still several bugs.
   -error retry at af missmatch was incomplete.
   -af matching for source addr option was wrong
   -socket was not freed at retry.

Approved by: jkh
2000-02-15 15:59:12 +00:00
Yoshinobu Inoue 1132b408c5 Add -4 and -6 options.
Current getaddrinfo() implemetation has a problem of too much resolving
 waiting time on INET6 enabled systems.
 -4 and -6 options can limit name resolving address family and is a possible
 workaround for the problem.

Approved by: jkh
2000-02-15 15:11:40 +00:00
Yoshinobu Inoue f5abb8467c Add IPv6 loopback entry into src/etc/hosts.
Missing IPv6 loopback name record cause name resolving lock
  on INET6 enabled systems in some cases.
  So define it.

Approved by: jkh
2000-02-15 14:59:16 +00:00
Poul-Henning Kamp 6fdb2d8e5c No arguments needed for fore_dnld any longer.
Approved by:	jkh
2000-02-15 13:21:43 +00:00
Poul-Henning Kamp 00494e78d5 With the kind permission of Marconi Communications (Formerly "Fore Communication"
include a copy of the 3.0.1 firmware for the PCA200E card in the fore_dnld
program.

There are various and subtle compatibility issues between the hfa driver and
the microcode, this version is belived to work best.

If a file is specified on the command line it will be used instead of the
embedded image.

Approved by:		jkh
2000-02-15 13:20:58 +00:00
Poul-Henning Kamp 693e27d473 Don't try to account for the partial quantum unless the process is
curproc.  This only makes any difference on SMP, where we used a
(potentially very bogus) switchtime from our own CPU to calculate
resource usage on another CPU.

This should remove some if not all calcru() related warnings on SMP.

Approved by:		jkh
2000-02-15 09:02:07 +00:00
Kazutaka YOKOTA 1e6c9556ad Change the text in the mouse protocol menu to indicate that protocols
for serial mice won't work with the PS/2 and bus mice.  No functional
change.

Approved by: jkh
2000-02-15 08:51:34 +00:00
Martin Cracauer 30de91e8b8 Allow comments in interpreter specification lines as in
#! /bin/sh # -*- perl -*-

This is simply "delete everything after the next '#', not counting the
first char in the line". No effort has been made to allow quoting,
backslash escaping or '#' in interpreter names.

The complies to POSIX 1003.2 in that Posix says the implementation is
free to choose whatever it likes.

PR:		bin/16393
2000-02-15 08:49:57 +00:00
Martin Cracauer c11e75cfcf Fix ${#varname} (getting length of string) when in double-quotes.
Approved-by:	jkh

PR:		bin/12137
Submitted by:	"Danny J. Zerkel" <dzerkel@columbus.rr.com>
2000-02-15 08:00:11 +00:00
Jordan K. Hubbard 01ce53ab1c The people frobbing this file seem constitutionally unable to do so
without breaking it.  Use ${.CURDIR} properly so that beforeinstall
target will actually work in the presence of an obj dir.
2000-02-15 07:15:41 +00:00
Chris Costello 5ed909462a - Properly indent $FreeBSD$
- Remove NOOBJ to repair read-only building.

Submitted by:	bde
Approved by:	jkh
2000-02-15 04:27:46 +00:00
Bill Swingle 1d2ed2f751 PR: 10850
Submitted by:	Scott Hazen Mueller <scott@zorch.sf-bay.org>
2000-02-15 03:00:47 +00:00
Matt Jacob a6dd44dea5 Add comments about 12160 options.
Approved: jkh
2000-02-15 01:08:27 +00:00
Matt Jacob b6f774e39b Fix ITDEBUG macro.
Approved: jkh
2000-02-15 00:54:26 +00:00
Matt Jacob 14a3729325 Correctly identify which bus of dual bus SCSI adapters some target mode
commands (enable/disable/modify lun && immediate notify) we're talking about.

Approved: jkh
2000-02-15 00:53:49 +00:00
Matt Jacob d667c06c77 Clean up some target mode debug messages. Fix (finally, I believe)
Andrew's problems with SCSI on some alphas- do not call isp_update
directly to update parameters- just mark them as being ready to
update for the next command- the system would just hang on a READ
CAPACITY for a drive. Really annoying because it wouldn't even timeout
(and it has a timeout) so either the SET PARAMETERS call was nuking
things or the f/w was really dropping the ball.

approved: jkh

Reviewed by:	gallatin@freebsd.org
2000-02-15 00:52:52 +00:00
Matt Jacob e142669a43 If the CDB length is greater than 12 for parallel SCSI, ispscsicmd has
made the initial queue entry a EXTENDED CMD queue entry, so we have to
go straight to continuation segments for any data segments.

approved: jkh
2000-02-15 00:50:01 +00:00
Matt Jacob fe4d046167 Clean out residual bogosity for fast posting stuff- ISP_NO_FASTPOST_SCSI
is gone as a define. We just don't support fast posting for anything less
than the 1240/1080/1280/12160 or Fibre Channel cards.

Put in support for CDB's larger than 12 bytes for parallel SCSI (up to 44
bytes are allowed).

Approved: jkh
2000-02-15 00:35:00 +00:00
Matt Jacob ccbbdad719 Add isp.4 man page.
approved:jkh
2000-02-14 23:48:12 +00:00
Matt Jacob a90b37e0a4 Add (finally) Qlogic man page.
approved: jkh
2000-02-14 23:47:55 +00:00
Matt Jacob f79abbd357 Update and provide full Qlogic controller support info.
approved: jkh
2000-02-14 23:46:52 +00:00
Cameron Grant 73bd6f4aab fix ess end-of-buffer repeating
Submitted by:	nhibma
Approved by:	jkh
2000-02-14 23:37:02 +00:00
Nick Sayer 228524cb50 Add a blurb about SRA-enhanced telnet.
Not-Approved-by: jkh (he said documentation didn't need it)
2000-02-14 19:38:38 +00:00
Justin T. Gibbs 8425f9e744 Add references to new device support. 2000-02-14 16:41:08 +00:00
Justin T. Gibbs 7ddcd25763 Add references to new device support.
Add information on target mode.

Add more entries to the bugs sections (all having to do with target mode).
2000-02-14 16:40:58 +00:00
Justin T. Gibbs 3aae61260c Add references to new device support in the ahc, adv, and adw drivers. 2000-02-14 16:40:09 +00:00
Peter Wemm b5c060826a s|/dev/log|/var/run/log| 2000-02-14 13:26:57 +00:00