Commit Graph

28930 Commits

Author SHA1 Message Date
charnier
9ae843f2f7 Restore Lite2 sccsids by removing `const'. Improve documentation a little.
Suggested by:	Bruce
1998-05-13 07:16:37 +00:00
jb
628ab0857c The printf type checking in gcc wants %qd to be a long long, so add
a cast in case off_t is not a long long (as on alpha).
1998-05-13 06:52:08 +00:00
jb
d7ba3ba5ef Make -Werror i386 specific because -nostinc on alpha spits warnings
for unused static inline functions in header files.
1998-05-13 06:50:09 +00:00
peter
58a25516e9 Delete the #if 0 (nearly) duplicate definitions of nfsproto.h. Having
these two files that are almost-but-not-quite the same leads to false grep
hits, confusion etc.

Only installing one copy with a symlink would be nice but that doesn't
work with SHARED=symlinks (it changes the source tree).
1998-05-13 06:40:56 +00:00
peter
bc2286faf9 Hold a reference to the vnode during the sillyrename cleanup. If we block
in nfs_vinvalbuf() or the nfs_removeit(), we can have the nfsnode reallocated
from underneath us (eg: replaced by a ufs 'struct inode') which can cause
disk corruption ('freeing free block' when di_db[5] gets trashed).
This is not a cheap fix, but it'll do until the nfsnodes get reference
counting and/or locking.

Apparently NetBSD have a similar fix (apparently from BSDI).

I wish all PR's had this much useful detail. :-)

PR: 6611
Submitted by: Stephen Clawson <sclawson@marker.cs.utah.edu>
1998-05-13 06:10:13 +00:00
jb
7abe32bd17 Fix broken (at least on alpha, but probably on i386 too) code which
is supposed to walk an arry of character pointers, not an array of
characters.
1998-05-13 05:50:42 +00:00
peter
aa1955d6ea Move the *vpp initialization earlier so that it's set in all error cases.
This should stop the 'panic: leaf should not be empty' nfs panic.

PR: 1856
Submitted by: msaitoh@spa.is.uec.ac.jp
1998-05-13 05:47:09 +00:00
jb
eecd6ae4fd Add perl to the list of build tools because it is needed to build the
perl-related directories (like x2p which generates the perl headers).
1998-05-12 23:11:58 +00:00
jb
85c9914761 perl now works on alpha.
This just leaves gdb to be configured for alpha.
1998-05-12 23:09:36 +00:00
jb
8be8bbbc9b This code casts double -> int -> char *. Ugh. Take a punt and change the
int to a long so that no bits are thrown away on alpha and hope for
the best.
1998-05-12 23:07:07 +00:00
jb
e57de7c879 Change a cast of long * to time_t * in a call to time(); 1998-05-12 23:03:50 +00:00
jb
c9c4777060 Allow the makefile to choose the perl executable to run h2ph rather
than relying on the #!/usr/bin/perl in the first line of the script.
1998-05-12 23:02:14 +00:00
jb
08b01ef00b If perl exists in OBJDIR it has just been built; if it exists in
CURDIR it has been built without an obj directory; however if it is in
neither of those places, we expect it to be in DESTDIR.

Yes Bruce, I know this is broken because the host is not supposed to be
the same as the target, but we need to get the hosted build working
properly first before even attempting a cross compiled operating
system build. That will need to concept of TOOLSDIR or something that
can be mapped to DESTDIR in the case of a hosted build and set to the
installed tools in a cross compiled build. Later, later, later!
1998-05-12 22:51:34 +00:00
jb
ff36f28cf2 Change .if to .elif to prevent the current directory path search for a
perl executable from overriding the object directory path search where
perl is most likely to be. Most people haven't seen this because it
defaulted to /usr/bin/perl which might be OK as a fallback, but when
bootstrapping a new version (or the *first* version on alpha), we don't
really want to use /usr/bin/perl.
1998-05-12 22:32:03 +00:00
jb
e3b93e2e7f awk and groff (et al) now work on alpha as the result of library
fixes.
1998-05-12 21:07:45 +00:00
jb
03daa4c6d5 Build awk and groff with build tools now. 1998-05-12 21:04:53 +00:00
dyson
af8a6bbdd8 Some temporary fixes to SMP to make it more scheduling and signal friendly.
This is a result of discussions on the mailing lists.  Kudos to those who
have found the issue and created work-arounds.  I have chosen Tor's fix
for now, before we can all work the issue more completely.
Submitted by:		Tor Egge
1998-05-12 18:37:10 +00:00
dyson
27530bf49d Fix alot of silly LINT that I left in the code. 1998-05-12 18:28:05 +00:00
bde
3536d9018b Backed out previous commit. It is invalid to call d_ioctl() on
possibly non-open devices, and we don't want to restrict dumping
to swap devices anwyay.  It is especially invalid to call d_ioctl()
in non-process context for panics.  d_psize() can be called on
non-open devices, at least on non-SLICED ones that support d_dump(),
and setdumpdev() has depended on this for a long time although it
is probably wrong, but even d_psize() can't be called in non-process
context - that's why dumpsys() depends on previously computed values
although these values may be stale.  The historical restriction to
devices with dkpart(dev) == SWAP_PART should go away.
1998-05-12 17:34:02 +00:00
jkh
59dc6d67b7 Reserve major number 99 for vak's cronyx/tau serial driver. 1998-05-12 17:03:24 +00:00
bde
6f0ed9dd7e Don't attempt to read process context from the kernel when (the
kernel's) curproc is null.  This fixes endless recursion in
xfer_umem() for attempts to read from user addresses, in particular
for attempts to read %fs and %gs from the pcb for `info reg'.
1998-05-12 16:49:13 +00:00
wosch
fb5716df39 Add upcoming NetBSD 1.3.2
Submitted by: Sune Stjerneby <stjerneby@usa.net>
1998-05-12 14:33:37 +00:00
wosch
504b72c81c Some commands are shell builtins. Execute the builtins by the shell
and not directly by make(1).

PR: bin/6550
Submitted by: Theo de Raadt <deraadt@cvs.openbsd.org & wosch
1998-05-12 11:54:12 +00:00
max
9363c58a85 Give a reasonable default value (-p /var/run/xntpd.pid) to xntpd_flags. 1998-05-12 10:50:46 +00:00
kato
3ae9e7cd53 Sync with sys/i386/isa/wd.c revision 1.167. 1998-05-12 09:32:19 +00:00
kato
472cd40cc3 Sync with sys/i386/conf/options.i386 revision 1.78. 1998-05-12 09:31:44 +00:00
kato
a224f35f81 Sync with sys/i386/conf/majors.i386 revision 1.40. 1998-05-12 09:31:12 +00:00
wosch
1409ea4c00 Add upcoming FreeBSD 2.2.7 and FreeBSD 2.2.8
Add NetBSD-1.3.1.
1998-05-12 08:04:27 +00:00
jkh
7dfcff2ae3 Go back to 240640 split size. Interesting experiment but somebody
still needs to figure out the 1.2MB floppy problem before we touch
(or possibly eliminate) this value.
1998-05-12 08:02:48 +00:00
jb
ad39ca05c6 Add C++ support.
Submitted by: Russell L. Carter <rcarter@pinyon.org>
              fixes omniORB25 built with g++-2.8.1 on -current
1998-05-12 05:11:51 +00:00
gibbs
b43743e0b3 Fix the termination test in CIRCLEQ_FOREACH.
Prompted by: Julian Assange <proff@iq.org>
1998-05-12 03:55:25 +00:00
julian
b27e38e1d8 Add missing splx()
Submitted by: Luoqi Chen <luoqi@chen.ml.org>
1998-05-11 21:41:13 +00:00
julian
dfabb949fd Submitted by: abial@nask.pl
Minor fix to support SLICE in MFS...
1998-05-11 19:27:18 +00:00
bde
bd78228c8a Oops, the lex and yacc sources must be added to SRCS before ${SRCS}
is used in the dependency list for ${DEPENDFILE}.  `make depend' was
broken for a few days.  `make world' only uses `make depend' when
NOCLEAN is defined, so only a few people noticed the bug.

Submitted by:	mostly by jmg
1998-05-11 15:37:13 +00:00
sos
104c453d8a Oops, only apply the CHS size from lbasize thing when disk reports
"too big for CHS" ie 16383 cyls..
1998-05-11 15:30:43 +00:00
bde
9c3f7a58b7 Fixed gross errors in previous commit. `sapipe' was used uninitialized
to attempt to unblock SIGCHLD, but we actually want to unignore SIGPIPE.

Obtained from:	OpenBSD

Finished conversion from sigvec to sigaction (don't assume that sa_mask
is a scalar...).  Didn't convert from sigblock to sigprocmask.  Didn't
fix missing error checking for sigaction...
1998-05-11 12:11:59 +00:00
peter
a655f5ca99 Delete some large chunks of trailing whitespace since it was making some
lines longer than 80 columns.
1998-05-11 11:26:28 +00:00
jb
d2a06d115d The yacc makefile changes don't seem to know when to generate the
header file and when not to, so for the time being make sure the
sucker gets generated up front.
1998-05-11 09:33:55 +00:00
jb
7d3ddb8180 Add CROSS_TARGETS to the list of GASES to build. We end up with a separate
gas for each target format. So for m68k targets that means several
gases. I wanted a m68k gas for VxWorks which uses aout in sun3 big
endian format, cross compiled on i386 under FreeBSD using libraries
supplied by DEC and intended by them for cross compilation on Alpha
under OSF/1. And it actually works!
1998-05-11 09:31:17 +00:00
jb
6fd3417e4c Make a path absolute. 1998-05-11 09:26:39 +00:00
jb
98a94bbde8 Change the return types for strtoq and strtouq to int64_t and u_int64_t
instead of long long and unsigned long long. Really they should be
quad_t and u_quad_t, but that would require sys/types.h and this
header only includes machine/types.h. The difference here is that
int64_t and u_int64_t on alpha are long and unsigned long, not
long long etc. This is required to pass gcc's type checking where
long != long long even though they are the same size of alpha.
1998-05-11 09:22:21 +00:00
jb
4db10719a2 Make -Werror i386 specific because gcc with -nostdinc on alpha belches
warnings about static inline functions that cause the build to fail.

And for some reason, alpha needs MD5. Find that out later!
1998-05-11 09:15:03 +00:00
jb
81f1277422 Cast a pointer to a long, not an int and make the arg passed to the function
a long too (it does have a proper prototype).
1998-05-11 09:10:38 +00:00
dyson
2e8880cf6c Change some tests from CPU_CLASS686 to CPU_686 as appropriate, and
also correct a serious ommision that would cause process faulures
due to forgetting an invltlb type operatino.  This was just a
transcription problem.
1998-05-11 08:11:57 +00:00
peter
57672ffc10 Fix PR 1607, hopefully without breaking the PR 5208 fixes.
umount() was trying to stat() the mountpoint, this would fail if the
mountpoint was a NFS mountpoint, and the fallback code would try and pass
a hostname:/dir path as the mountpoint to unmount(2), which would fail.

This whole stat() of the name supplied on the command line business is
trouble as it'll wedge on a hung NFS mount.

I'm not entirely sure why we are not simply looking up both arguments
in the mount table and doing the right thing without accessing the
filesystem.  It seems that we're going to a lot of trouble to allow
mountpoints on symlinks and other wierd things.

PR: 1607
1998-05-11 07:38:42 +00:00
dyson
94818c02a9 Fix the futimes/undelete/utrace conflict with other BSD's. Note that
the only common  usage of utrace (the possible problem with this
commit) is with malloc, so this should be a real problem.  Add
the various NetBSD syscalls that allow full emulation of their
development environment.
1998-05-11 03:55:28 +00:00
steve
38222e982b Fix spelling error.
PR:		6572
Submitted by:	Kazuo Horikawa <horikawa@jp.freebsd.org>
1998-05-11 03:44:55 +00:00
steve
616fb5fd8c Change NBPG to PAGE_SIZE to match one of phk's recent commits.
PR:		6573
Submitted by:	Kazuo Horikawa <horikawa@jp.freebsd.org>
1998-05-11 03:41:51 +00:00
dyson
a9a6ff9245 Support better performance with P6 architectures and in SMP
mode.  Unnecessary TLB flushes removed.  More efficient
page zeroing on P6 (modify page only if non-zero.)
1998-05-11 02:13:47 +00:00
dyson
300024a5ab Attempt to set write combining mode for graphics devices. 1998-05-11 01:06:08 +00:00