Commit Graph

29226 Commits

Author SHA1 Message Date
tegge
9c804ab24b Be more restrictive about when to disregard MP config table values
(previous commit broke support for Dec Personal Workstation).
1998-05-17 17:32:10 +00:00
phk
2bea7e6614 s/nanoruntime/nanouptime/g
s/microruntime/microuptime/g

Reviewed by:	bde
1998-05-17 11:53:46 +00:00
sos
66e58acc84 Cleanup after Garret, include unpch.h to get at various macros.. 1998-05-17 09:37:39 +00:00
fenner
695fa20835 Turn on TCP_NODELAY on the remote socket, to turn off sender silly window
syndrome avoidance.  The combination of SWS avoidance and ack-every-other
 causes low throughput if the block size divided by the MSS is odd (which
 is true with the default block size and MSS).
Turning on TCP_NODELAY disables the Nagle algorithm and sender SWS avoidance.
 The rdump request/response protocol can not invoke Nagle and cannot cause
 SWS, so this has no negative effects.
1998-05-17 06:39:38 +00:00
dyson
7a516764ec An important fix for proper inheritance of backing objects for
object splits.  Another excellent detective job by Tor.
Submitted by:	Tor Egge <Tor.Egge@idi.ntnu.no>
1998-05-16 23:03:20 +00:00
jb
f79fee3571 Now that FreeBSD/Alpha can be installed on a disk and run on its own,
a bootstrap build under NetBSD is an option.

This makefile will require further changes to ignore aout tools.
1998-05-16 22:20:44 +00:00
markm
56ba53881c Include correct header to get definition of struct sockaddr_un. 1998-05-16 21:35:37 +00:00
jb
c905528e7c Moved from directory above. It is i386 specific. 1998-05-16 21:29:17 +00:00
jb
1a11dd8f2d Add an alpha specific ttys 1998-05-16 21:28:45 +00:00
jb
e9df6b1654 Make ttys machine specific. 1998-05-16 21:28:17 +00:00
ache
cbf681e617 Return back initial tzset() must be before first chroot 1998-05-16 21:23:33 +00:00
wollman
bacfe3cce2 Fix rev. 1.7: get offsetof from the correct header file. 1998-05-16 18:04:00 +00:00
bde
df151c227c Don't use "ffs" in an ext2fs sleep message string.
Don't forget to clear the inode hash lock before returning from ext2_vget()
after getnewvnode() fails.  Obtained from: rev.1.24 of ffs_vfsops.c (the
original patch for the getnewvnode() race).  Forgotten in: rev.1.4 here.

Removed a duplicate comment.  Duplicated in: rev.1.4 here.

Fixed the MALLOC() vs getnewvnode() race in ext2_vget().  Obtained from:
rev.1.39 of ffs_vfsops.c.
1998-05-16 17:47:44 +00:00
bde
516e448938 Abbreviate "ext2fs_fsync" as "e2fsyn" instead of as "extfsn" in a sleep
message string.
1998-05-16 16:52:20 +00:00
bde
544ba257e4 Get timespecs directly instead of via timevals. 1998-05-16 16:20:50 +00:00
bde
d87f73393d Don't abuse `+' to combine flags. 1998-05-16 16:03:10 +00:00
bde
886e4ee4a1 Backed out rev.1.76. It just added style bugs. 1998-05-16 15:21:29 +00:00
bde
f72c46e826 Get timespecs directly instead of via timevals. 1998-05-16 15:11:24 +00:00
kato
f6364a47b9 Some of newer PC-98 may cause "Windows Protection Fault" when booting
Windows 95 after rebooting FreeBSD without power off.  In PC-98
system, reboot mode is set via I/O port 0x37 in cpu_reset(), and
accessing of this port is the reason of the problem.  To avnoid the
fault, current status of reboot mode should be checked before
accessing the I/O port.
1998-05-16 14:44:11 +00:00
kato
0210ca3977 Disable local APIC in UP kernel. Intel specification update describes
that local APIC should be disabled in UP system.  However, some of old
BIOS does not disable local APIC, and virtual wire mode through local
APIC may cause int 15.
1998-05-16 14:38:10 +00:00
des
6bfb0ce032 Spotted a misplaced comma in my previous patch. 1998-05-16 14:10:12 +00:00
des
7231a6dd8e Typo nits in SUIDDIR comment (removed some parentheses, moved some
commas, replaced "partition" with "filesystem", reformatted the
paragraph)
1998-05-16 14:08:31 +00:00
ache
e003728957 Fix broken sun_len usage: it is not sun_path length but bigger 1998-05-16 08:31:49 +00:00
ahasty
08cde1f134 1.31 Randall Hopper <rhh@ct.picker.com>
submitted ioctl to clear the video buffer
                           prior to starting video capture
			   Amancio : clean up yuv12 so that it does not
                           affect rgb capture. Basically, fxtv after
                           capturing in yuv12 mode , switching to rgb
                           would cause the video capture to be too bright.
1.32                       disable inverse gamma function for rgb and yuv
                           capture. fixed meteor brightness ioctl it now
                           converts the brightness value from unsigned to
                           signed.
1.33                       added sysctl: hw.bt848.tuner, hw.bt848.reverse_mute,
                           hw.bt848.card
			   card takes a value from 0 to bt848_max_card
                           tuner takes a value from 0 to bt848_max_tuner
                           reverse_mute : 0 no effect, 1 reverse tuner
                           mute function some tuners are wired reversed :(
1998-05-16 07:07:10 +00:00
jb
e6c17f9ef1 When a timeval is stored at the beginning of icmp_data, the fields
are unaligned for access by the alpha, so copy the value to a variable
that is aligned.

When checking the returned data, be careful to avoid confusing the
size of the icmp header with the size of a timeval. On i386 these
are both 8, but on alpha, a timeval is 16 bytes. This means that
a packet sent from an alpha contains 48 bytes of data, not 56 like
on i386.
1998-05-16 00:19:27 +00:00
wpaul
19405518ab Patch RPC library to avoid possible denial of service attacks as described
recently in BUGTRAQ. The set_input_fragment() routine in the XDR record
marking code blindly trusts that the first two bytes it sees will in fact
be an actual record header and that the specified size will be sane. In
fact, if you just telnet to a listening port of an RPC service and send a
few carriage returns, set_input_fragment() will obtain a ridiculously large
record size and sit there for a long time trying to read from the network.

A sanity test is required: if the record size is larger than the receive
buffer, punt.
1998-05-15 22:57:31 +00:00
wpaul
c243b66c64 Patch RPC library to avoid possible denial of service attacks as described
recently in BUGTRAQ. If a stream oriented transport fails to properly decode
an RPC message header structure where there should be one, it should mark
the stream as dead so that the connection will be dropped.
1998-05-15 22:53:47 +00:00
ache
3c5d4e304d Low level use of 'vidattr()' can cause a NULL pointer to be
dereferenced.  This is because 'SP' is only initialized via 'newterm()'
(which is not required if you are going to interact with the 'terminfo'
database without using 'ncurses').

PR: 6648
Submitted by: Max Euston <meuston@jmrodgers.com>
1998-05-15 21:35:53 +00:00
obrien
a5ecfdf0d2 Change an arbitarly hardcoded `10' to MAX_NO_DISKS, which is currently "20".
Otherwise can't see sd10 (obtained using wired down sd unit numbers),
reguardless of the number of actual disks you have.
1998-05-15 21:17:01 +00:00
wollman
6213176660 mbuf, inet, and unix modules no longer read kvm. 1998-05-15 20:19:21 +00:00
wollman
2cb299f9a3 Convert socket structures to be type-stable and add a version number.
Define a parameter which indicates the maximum number of sockets in a
system, and use this to size the zone allocators used for sockets and
for certain PCBs.

Convert PF_LOCAL PCB structures to be type-stable and add a version number.

Define an external format for infomation about socket structures and use
it in several places.

Define a mechanism to get all PF_LOCAL and PF_INET PCB lists through
sysctl(3) without blocking network interrupts for an unreasonable
length of time.  This probably still has some bugs and/or race
conditions, but it seems to work well enough on my machines.

It is now possible for `netstat' to get almost all of its information
via the sysctl(3) interface rather than reading kmem (changes to follow).
1998-05-15 20:11:40 +00:00
wollman
d5bf6d5b82 Fix an obvious parameter-order bogon. (Don't know what happened to
the warning message before.)
1998-05-15 20:02:47 +00:00
pb
214c44ebfb Small typo in T/TCP patch ("speicfy" -> "specify"). 1998-05-15 19:16:35 +00:00
bde
dd28c4b6c6 Don't use `&&' in any shell commands here. Using it to give conditional
execution is usually unnecessary in BSD Makefiles because BSD make
invokes shells with -e.  Using it to give conditional execution is
often wrong in BSD makefiles because BSD make joins shell commands
when invoked in certain ways (in particular, as `make -jN').  Example
makefile:
---
clean:
	cd /
	false && true
	rm -rf *		# a dangerous command
---
This should terminate after the `false && true' command fails, but
it doesn't when the commands are joined (`false && true' is a non-
simple command, so -e doesn't cause termination).  The b-maked version:
---
clean:
	cd /
	false; true
	rm -rf *		# a dangerous command
---
terminates after the `false' command fails (`false' is a simple
command, so -e causes termination).  However, for versions of
make like gnu make that don't invoke shells with -e, this change
completely breaks the makefile.

This is one of the fixes for the bug suite that caused `make world'
to sometimes put raw cpp output in .depend files.  Building of cc
sometimes failed, but the failure did not terminate the build
immediately, and various wrong versions of the cc components were
used until one was wrong enough to cause a fatal error.
1998-05-15 17:12:00 +00:00
ache
4f62e1acde Return back vfork and use execve with TZ="" environment in vfork case 1998-05-15 16:51:06 +00:00
ache
3a9a1a3486 Use fork instead of vfork since setenv clobber parent environment
Fork already used for INTERNAL_LS in anycase
1998-05-15 16:30:09 +00:00
ache
04888d021e Move TZ="" assignment just before exec to not touch other time stuff 1998-05-15 16:08:52 +00:00
ache
4ca333f904 Do TZ= as first thing, since FTP protocol is unable to tell zone offset in
any case.

It makes no difference for anon account (since chroot already makes it GMT),
but if you do mirror with special non-anon login, in old variant
your mirror will be wholy retransmitted twice in the year due to
time zone changes (/etc/localtime plays bad role here)
1998-05-15 15:06:58 +00:00
danny
d8946ce715 PR: 6641
Submitted by:	Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
Make -q work for zeroing a specific rule.
1998-05-15 12:38:07 +00:00
jb
604af89766 More programs are now broken on alpha due to the libbind changes
that prevent the programs from being linked static (duplicated
symbols).

Other programs depend on kernel internals. These will have to wait
for a custom alpha kernel. For now, let's just make the build safe.
1998-05-15 12:33:56 +00:00
jb
67b31111a9 Change variable from long to time_t where they are passed by reference
to time().
1998-05-15 12:28:43 +00:00
jb
f1a3ae93df Remove a big hack after adding a small one to libc/gen/getcwd.c to
handle the lack of __getcwd syscall in NetBSD.
1998-05-15 12:01:06 +00:00
jb
227e7026b9 NetBSD doesn't have a __getcwd syscall, so set have__getcwd to `no'
when building libc with NetBSD syscalls.
1998-05-15 11:59:00 +00:00
jb
3cd6f53765 The FreeBSD lkm design is aout specific. 1998-05-15 11:57:05 +00:00
jb
1612817daf syscons is i386 specific due to machine/console.h 1998-05-15 11:55:47 +00:00
jkoshy
f784cc3d2a Add cross references for find(1), locate(1), whereis(1) and which(1).
Submitted by: Josh Gillam <josh@quick.net>
PR: docs/6642
1998-05-15 11:22:42 +00:00
bde
82c6a7ff5d Oops, forgot references in previous commit.
Submitted by:	Brian Cully <shmit@erols.com>
PR:		6178
1998-05-15 09:34:48 +00:00
bde
7fff95e301 Support Objective C almost as well as C++.
Notes:
- We no longer use -fgnu-runtime in bsd.lib.mk, since it is the default
  and bsd.lib.mk is the wrong place to override it.
- Gnu C doesn't have a special compiler driver for Objective C like it
  does for C++.  The defaults are suitable for Gnu C.  Use `OBJCLIBS='
  in /etc/make.conf for POC.
1998-05-15 09:30:13 +00:00
jb
9a9a15be77 Change the name of a variable from _start to s_start. On alpha there
must be a library function called _start.
1998-05-15 09:26:28 +00:00
jkoshy
7b80bdf4e4 Removed misleading claim that login classes are no longer implemented.
Added Xref to pw(8).
1998-05-15 09:19:03 +00:00