dg [Sun, 19 Oct 1997 18:41:23 +0000 (18:41 +0000)]
"Fixed" pstat -T by avoiding the vnode stats. Disabled pstat -v since
we no longer support that sysctl (in my opinion, pstat -v is a security
hole in any case).
joerg [Sun, 19 Oct 1997 16:48:50 +0000 (16:48 +0000)]
Declare the various 2-byte values in TFTP as being `unsigned short'.
RFC 1350 isn't very explicit about this, but the use of signed
integers doesn't seem to make sense.
Should be in 2.2.5, but is probably too late to be verified completely.
PR: bin/4502
Submitted by: Dirk Nehrling <nerle@pdv.de> via Lars Koeller
joerg [Sun, 19 Oct 1997 16:40:01 +0000 (16:40 +0000)]
Introduce a -N option that disables the use of reserved ports, now
that -P is on by default. Remove do-nothing code in the -P case (but
leave the option itself for backward compatibility).
joerg [Sun, 19 Oct 1997 13:12:02 +0000 (13:12 +0000)]
Introduce a device flags value of 0x1 to always pretend a 1.44 MB
floppy drive #0, regardless of what the CMOS says. This is intended
as a bandaid for those plagued with Compaq's idea to not announce the
floppy drive on their `Aero' notebook.
Using the device flags is not very nice (in particular since they
aren't per-drive but per-controller), but still looks a lot better to
me than the disgusting guesswork hack that was recently posted to
-hackers.
peter [Sat, 18 Oct 1997 18:15:03 +0000 (18:15 +0000)]
Merge in changes from Matt. Accton EN12xx support, bugfixes. There is
a change that might have an effect on the problems some have seen
with older chips, it looks like the driver may have mistakenly thought
there was an SIA when there isn't.
bde [Sat, 18 Oct 1997 13:59:48 +0000 (13:59 +0000)]
Removed unused file. It just forces a return value of 0 on success
(no carry), but mount() in the kernel has returned 0 on success since
prehistoric times.
peter [Sat, 18 Oct 1997 13:23:35 +0000 (13:23 +0000)]
Import Matt's current de driver... He appears to be maintaining it in
the NetBSD source tree now. This is slightly newer than the updated
.tar.gz on the 3am-software web site.
peter [Sat, 18 Oct 1997 13:23:35 +0000 (13:23 +0000)]
Import Matt's current de driver... He appears to be maintaining it in
the NetBSD source tree now. This is slightly newer than the updated
.tar.gz on the 3am-software web site.
joerg [Sat, 18 Oct 1997 10:59:47 +0000 (10:59 +0000)]
Make all the documented (in pcvt(4)) options supported options. While
i was at it, do no longer insist on `PCVT_FREEBSD' being declared in
the config file, but default it to a reasonable value.
More cleanup to follow, but this part is safe for RELENG_2_2, too.
joerg [Sat, 18 Oct 1997 10:40:02 +0000 (10:40 +0000)]
Something that should have been done 2.5 years ago: install pcvt's
accompanying doc files into /usr/share/pcvt/. (This goes to the `doc'
distribution, not `bin'.)
jkh [Sat, 18 Oct 1997 05:54:17 +0000 (05:54 +0000)]
- do string-magic on the right variable when trying
to find dependent packages on the local disk (i.e. package given as
filename, not URL)
- document $PKG_PATH
- use -v on pkg_add for dependent packages
peter [Sat, 18 Oct 1997 01:37:52 +0000 (01:37 +0000)]
Update Makefile to know about PPP_FILTER and fix the PPP_BSDCOMP and
PPP_DEFLATE options... The code uses #if defined(PPP_DEFLATE) etc, so the
original method of "#define PPP_DEFLATE 0" did not actually disable
anything. It was not possible to configure out bsdcomp or zlib
compression. Also, join the settings for PPP_FILTER and NBPFILTER together
since they are related here (can't have PPP_FILTER without NBPFILTER).
peter [Sat, 18 Oct 1997 01:29:18 +0000 (01:29 +0000)]
Don't say that the filtering options are only available under NetBSD, and
don't claim that _any_ serial speed is settable, mention that it has to
be supported by the device driver. Some have very flexible baud rate
selection (ie: based on divisors etc, such as the com ports), while others
have explicit baud rate choices.
peter [Sat, 18 Oct 1997 00:56:23 +0000 (00:56 +0000)]
Better fix for the bpf dependency that doesn't have such a large impact
on the code and pppd in userland. PPP_FILTER is meant to be an option (or
negatable option).
roberto [Fri, 17 Oct 1997 21:30:30 +0000 (21:30 +0000)]
Change PPP_FILTER into NBPFILTER to fix kernel compilation.
It should probably be changed in ppp_tty.c for consistency but I'll let
Brian deal with this.
phk [Fri, 17 Oct 1997 12:36:19 +0000 (12:36 +0000)]
Make a set of VOP standard lock, unlock & islocked VOP operators, which
depend on the lock being located at vp->v_data. Saves 3x3 identical
vop procs, more as the other filesystems becomes lock aware.
jdp [Fri, 17 Oct 1997 04:59:56 +0000 (04:59 +0000)]
Fix two bugs which caused various RPC programs (mountd, nfsd, ...)
to fail under certain circumstances.
1. In one spot, the ifr_flags member was being examined in the
wrong structure, thus it contained garbage. On a machine in which
only the loopback interface was up, this caused everything that
wanted to talk to the portmapper to fail -- a particular problem
with laptops, where the pccard ethernet interface is likely to come
up long after the attempt to start mountd, nfsd, amd, etc.
2. Compounding the above problem, get_myaddress() returned a
successful status even though it failed to find an address that it
considered good enough.
And remove identical functionality from filesystems
4. Add vop_stdpathconf, which returns the canonical stuff. Use
it in the filesystems. (XXX: It's probably wrong that specfs
and fifofs sets this vop, shouldn't it come from the "host"
filesystem, for instance ufs or cd9660 ?)
5. Try to make system wide VOP functions have vop_* names.
bde [Thu, 16 Oct 1997 14:58:30 +0000 (14:58 +0000)]
Handle machine-dependent (stdlib) sources more automatically.
This fixes bugs in the manual handling. abs.[cS] was handled too
specially and the wrong (.c) variant for each of div.[cS], labs.[cS]
and ldiv.[cS] was added to SRCS. This caused the .c variant to be
used if `depend' was made and the .S version to be used otherwise.
bde [Thu, 16 Oct 1997 14:26:13 +0000 (14:26 +0000)]
Removed the subdirectory paths from the definitions of MAN[1-9]. They
were a workaround for limitations in bsd.man.mk that were fixed about
2 years ago.
bde [Thu, 16 Oct 1997 13:46:50 +0000 (13:46 +0000)]
Handle machine-dependent (m-d) (string) sources more automatically.
The names of m-d variants are now added (manually) to MDSRCS instead
of to SRCS, and the names of all machine-independent (m-i) variants
that can reasonably be replaced by an m-d variant are now added
(manually) to MISRCS instead of to SRCS, so that a simple substitution
can be used to discard the unused m-i variants. MISRCS is potentially
all m-i sources, but the substitution is too simple to be fast, so
MISRCS should be kept reasonably small.
libc/Makefile.inc:
Do the substitution.
libc/i386/string/Makefile.inc:
Add to MDSRCS instead of to SRCS. Add the names of all sources in this
directory, but no others.
libc/string/Makefile.inc
Add to MISRCS instead of to SRCS. Add the names of all sources in this
directory. Don't use (broken) explicit rules for special cases.
phk [Thu, 16 Oct 1997 10:50:27 +0000 (10:50 +0000)]
VFS mega cleanup commit (x/N)
1. Add new file "sys/kern/vfs_default.c" where default actions for
VOPs go. Implement proper defaults for ABORTOP, BWRITE, LEASE,
POLL, REVOKE and STRATEGY. Various stuff spread over the entire
tree belongs here.
2. Change VOP_BLKATOFF to a normal function in cd9660.
3. Kill VOP_BLKATOFF, VOP_TRUNCATE, VOP_VFREE, VOP_VALLOC. These
are private interface functions between UFS and the underlying
storage manager layer (FFS/LFS/MFS/EXT2FS). The functions now
live in struct ufsmount instead.
4. Remove a kludge of VOP_ functions in all filesystems, that did
nothing but obscure the simplicity and break the expandability.
If a filesystem doesn't implement VOP_FOO, it shouldn't have an
entry for it in its vnops table. The system will try to DTRT
if it is not implemented. There are still some cruft left, but
the bulk of it is done.
5. Fix another VCALL in vfs_cache.c (thanks Bruce!)
julian [Thu, 16 Oct 1997 07:28:50 +0000 (07:28 +0000)]
1/ by default make all versions of the same device get the same vnode.
2/ Show the dummy mount in the mount list. it cannot be reached (that I know of)
but puting it there, means that disks mounted from devfs will have their things such as the superblock and the bitmaps, synced to disk :)
ache [Wed, 15 Oct 1997 22:49:19 +0000 (22:49 +0000)]
srandom(time()) is too weak even for joke, use srandom(time() ^ getpid())
at least. Note that srandomdev can't be used here since gawk preserve old
seed value.
bde [Wed, 15 Oct 1997 16:16:41 +0000 (16:16 +0000)]
Removed the subdirectory paths from the definitions of MAN[1-9]. They
were a workaround for limitations in bsd.man.mk that were fixed about
2 years ago.
bde [Wed, 15 Oct 1997 15:27:19 +0000 (15:27 +0000)]
Added some 2-line source files to get a direct correspondence
between sources and objects. This will be used to avoid messy
special cases in Makefile.inc.