]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
25 years agos/boot2/loader/ on the alpha
gpalmer [Thu, 22 Oct 1998 04:58:38 +0000 (04:58 +0000)]
s/boot2/loader/ on the alpha

25 years agoAdded Microsoft's PE formatted executables for mips, i386 and Alpha.
imp [Thu, 22 Oct 1998 04:41:34 +0000 (04:41 +0000)]
Added Microsoft's PE formatted executables for mips, i386 and Alpha.
Also added entry for the debugger files as well.  The PE format is
used for all Win32 platforms (Win95, Win98, WinNT and WinCE), so it is
nice to be able to tell what kind of thing the foo.dll....  Don't have
any data for powerpc formats, however...

25 years agoWhen the "-s" option is given, try to ensure that we restart the
jdp [Thu, 22 Oct 1998 04:02:37 +0000 (04:02 +0000)]
When the "-s" option is given, try to ensure that we restart the
target process even if we are killed or die due to an error.

25 years agoSolve the ``first connection'' problem that occurs on
brian [Thu, 22 Oct 1998 02:32:50 +0000 (02:32 +0000)]
Solve the ``first connection'' problem that occurs on
demand-dial links with dynamic IP numbers where the program
that causes the dial bind()s to an interface address that is
subsequently changed after ppp negotiation.

The problem is defeated by adding negotiated addresses to the
tun interface as additional alias addresses and providing a set
of ``iface'' commands for managing the interface.  Libalias is
also required (and what a name clash!) - it happily IP-aliases
the address so that the source is that of the primary (negotiated)
interface and un-IP-aliases it on the way back.

An ``enable iface-alias'' is done implicitly by the -alias command
line switch.  If -alias isn't given, iface-aliasing is disabled by
default and can't be enabled 'till an ``alias enable yes'' is done.
``alias enable no'' silently disables iface-alias.

So, for dynamic-IP-type-connections, running ``ppp -alias -auto blah''
will work for the first connection, although existing bindings will
not survive a disconnect/connect as the TCP peer will be trying to
send to the old IP address - the packets won't route.

It's now a lot easier to add IPXCP to ppp with minor updates to
the new iface.[ch] (if anyone ever gets 'round to it).

It's also now possible to manually add interface aliases with
something like ``iface add 1.2.3.4/24 5.6.7.8''.  This allows
multi-homed ppp links :-)

25 years agoMake the VM system handle the case where a terminating object contains
dg [Thu, 22 Oct 1998 02:16:53 +0000 (02:16 +0000)]
Make the VM system handle the case where a terminating object contains
legitimately wired pages. Currently we print a diagnostic when this
happens, but this will be removed soon when it will be common for this
to occur with zero-copy TCP/IP buffers.

25 years agoDefer rundown (m_freem) of completed transmit buffers for no longer
dg [Thu, 22 Oct 1998 02:00:49 +0000 (02:00 +0000)]
Defer rundown (m_freem) of completed transmit buffers for no longer
than 1 second.

25 years agoConvert fake page allocs to use the zone allocator, thus eliminating the
dg [Thu, 22 Oct 1998 01:45:29 +0000 (01:45 +0000)]
Convert fake page allocs to use the zone allocator, thus eliminating the
private pool management code in here.

25 years agoSet m->object to NULL in dev_pager_getfake().
dg [Wed, 21 Oct 1998 23:06:50 +0000 (23:06 +0000)]
Set m->object to NULL in dev_pager_getfake().

25 years agoBye-bye setdefs.
msmith [Wed, 21 Oct 1998 20:11:03 +0000 (20:11 +0000)]
Bye-bye setdefs.

25 years ago - Enable PnP and ISA PnP code.
msmith [Wed, 21 Oct 1998 20:10:33 +0000 (20:10 +0000)]
 - Enable PnP and ISA PnP code.
 - Use the ISA PnP enumerator.
 - Use the new linker set code, throw out the gensetdefs stuff.
 - Produce an intermediate loader image that has symbols stripped, to aid
 - in debugging.
 - Supply ISA port access functions required for ISA PnP

25 years agoDon't depend on being part of the kernel tree. If we are, use the kernel's
msmith [Wed, 21 Oct 1998 20:07:57 +0000 (20:07 +0000)]
Don't depend on being part of the kernel tree.  If we are, use the kernel's
<machine> includes rather than the system's.

25 years agoMake ISA PnP work. This successfully enumerates as many ISA devices as I
msmith [Wed, 21 Oct 1998 20:07:05 +0000 (20:07 +0000)]
Make ISA PnP work.  This successfully enumerates as many ISA devices as I
can fit into my test machine.

 - Move to using STAILQs rather than ad-hoc singly-linked lists.
 - Use a mostly procedural interface to the PnP information.  This
   improves data-hiding.

Implement a new linker-set technique (currently on i386 only but should work
on Alpha as well).  This is a good candidate for replacing the current
gensetdefs cruft completely.

25 years agoAdded two new utilities, both ported from Minix: mined (editor), and
abial [Wed, 21 Oct 1998 17:36:28 +0000 (17:36 +0000)]
Added two new utilities, both ported from Minix: mined (editor), and
msh (largely compatible Bourne shell).

25 years agoGet things limping along again for the 80386 and friends. The
rnordier [Wed, 21 Oct 1998 17:10:49 +0000 (17:10 +0000)]
Get things limping along again for the 80386 and friends.  The
ELF assembler emits a redundant operand-size prefix for the
fnstsw %ax instruction, and this stops the show for 3.0-RELEASE.

25 years agoEliminate a superfluous comment.
jdp [Wed, 21 Oct 1998 16:31:38 +0000 (16:31 +0000)]
Eliminate a superfluous comment.

25 years agoRemove most of the code and replace it with a call to getobjformat().
jdp [Wed, 21 Oct 1998 15:13:16 +0000 (15:13 +0000)]
Remove most of the code and replace it with a call to getobjformat().

25 years agoNuked PG_TABLED flag. Replaced with m->object != NULL.
dg [Wed, 21 Oct 1998 14:46:42 +0000 (14:46 +0000)]
Nuked PG_TABLED flag. Replaced with m->object != NULL.

25 years agoFixed previous commit to actually work. The wrong variable was initialized
bde [Wed, 21 Oct 1998 11:48:39 +0000 (11:48 +0000)]
Fixed previous commit to actually work.  The wrong variable was initialized
earlier (with style bugs of course), so zcat was an alias for uncompress
instead of `uncompress -c'.

25 years agoAdd a diagnostic printf for freeing a wired page. This will eventually
dg [Wed, 21 Oct 1998 11:43:04 +0000 (11:43 +0000)]
Add a diagnostic printf for freeing a wired page. This will eventually
be turned into a panic, but I want to make sure that all cases of freeing
pages with wire_count==1 (which is/was allowed) have first been fixed.

25 years agoDecrement the now unused page table page's wire_count prior to freeing it.
dg [Wed, 21 Oct 1998 11:38:14 +0000 (11:38 +0000)]
Decrement the now unused page table page's wire_count prior to freeing it.
It will soon be required that pages have a zero wire_count when being
freed.

25 years agoFix types.
dima [Wed, 21 Oct 1998 09:48:35 +0000 (09:48 +0000)]
Fix types.

25 years agolist.c:
grog [Wed, 21 Oct 1998 08:39:57 +0000 (08:39 +0000)]
list.c:
  Add dump of last requests with 'info -V'.  This requires the requests
  to be enabled with 'debug 8'.

25 years agoconfig.c:
grog [Wed, 21 Oct 1998 08:32:32 +0000 (08:32 +0000)]
config.c:
  config_drive:
    Catch an instance of anonymous drives.  Doubtless many remain.

interrupt.c:
  complete_rqe:
    Call logrq to log iodone events if DEBUG_LASTREQS is set.

    Call set_sd_state with setstate_noupdate to avoid buffered I/O out
    of interrupt context.

    Use define DEBUG_RESID instead of constant.

memory.c:
  Remove dead expandrq() function

  Malloc:
    Remove directory component of file names in malloc table.

  Add function vinum_rqinfo (part of the request tracing stuff).

request.c:
  Add function logrq (part of the request tracing stuff).

  vinumstrategy:
    Check whether config needs to be written to disk, do it if so.
    This is a stopgap until the Vinum daemon (bacchusd?  oenologistd?)
    is written.

    If DEBUG_LASTREQS is set, call logrq to log user buffer headers.

  launch_requests:
    Correct format of debug output to console.

    If DEBUG_LASTREQS is set, call logrq to log request elements.

request.h:
  Add definitions for request trace.

state.c:
  set_sd_state:
    Check flags for setstate_noupdate.  If set, don't write the config
    to disk, just set global VF_DIRTYCONFIG flag.  This is part of the
    kludge to avoid writing config from an interrupt context.

vinumext.h:
    Add declaration for vinum_rqinfo, put inside #ifdef DEBUG
    Remove dead macro expandrq

vinumio.h:
  Increase maximum ioctl reply length to 4 kB if DEBUG is set.
  Define VINUM_RQINFO ioctl if DEBUG is set.

vinumioctl.c:
  vinumioctl:
    Change implementation of VINUM_DEBUG ioctl: use a debug flag
    (DEBUG_REMOTEGDB) to decide whether to go into remote debugging or
    not.

    Implement VINUM_RQINFO.

vinumkw.h:
  Define kw_info even when not debugging.

vinumvar.h:
  Define VF_DIRTYCONFIG
  Add pointers to request info to vinum_info if DEBUG is set.
  Define setstate_noupdate
  Define additional debug bits DEBUG_RESID, DEBUG_LASTREQS and
  DEBUG_REMOTEGDB.

25 years agoMake serial port, data format, and bps configurable.
rnordier [Tue, 20 Oct 1998 20:20:48 +0000 (20:20 +0000)]
Make serial port, data format, and bps configurable.

25 years agoRevert last change. mkstemp() wasn't to blame, it's nvi. However,
peter [Tue, 20 Oct 1998 15:33:21 +0000 (15:33 +0000)]
Revert last change.  mkstemp() wasn't to blame, it's nvi.  However,
mkstemp() is not behaving as documented.

25 years agoStop mk*temp() from being pathologically stupid in the face of a umask(0);
peter [Tue, 20 Oct 1998 12:36:36 +0000 (12:36 +0000)]
Stop mk*temp() from being pathologically stupid in the face of a umask(0);
There are other ways to fix this than wrapping _gettemp(), but this was
the most convenient.

Discovered by: bde

25 years agoSince vfork() was changed to fork(), we have to pass errno back from the
des [Tue, 20 Oct 1998 11:34:11 +0000 (11:34 +0000)]
Since vfork() was changed to fork(), we have to pass errno back from the
child to the parent somehow.

PR: 8353
Submitted by: Andrew J. Korty <ajk@purdue.edu>

25 years agoMake this compile, and honour the spirit of the original design while
msmith [Tue, 20 Oct 1998 08:04:15 +0000 (08:04 +0000)]
Make this compile, and honour the spirit of the original design while
incorporating the intended fix.  Attempt to address some of the
putative style bugs introduced.  Others doubtless remain.

Embarrassed by: bde

25 years agomake talk/talkd work on alpha.
dima [Tue, 20 Oct 1998 07:07:07 +0000 (07:07 +0000)]
make talk/talkd work on alpha.

25 years ago - mkdir -m should call chmod because the high-order bits get ignored
msmith [Tue, 20 Oct 1998 06:37:01 +0000 (06:37 +0000)]
 - mkdir -m should call chmod because the high-order bits get ignored
   by the kernel as a security feature of some sort.

Submitted by: Wilfredo Sanchez <wsanchez@apple.com>

25 years agoBehave like zcat if invoked as zcat. We don't install as zcat; this just
msmith [Tue, 20 Oct 1998 06:13:57 +0000 (06:13 +0000)]
Behave like zcat if invoked as zcat.  We don't install as zcat; this just
makes us more useful in a tight environment.

Submitted by: Wilfredo Sanchez <wsanchez@apple.com>

25 years ago- Fix off-by-one problem in tar where filenames of length 100
msmith [Tue, 20 Oct 1998 05:52:33 +0000 (05:52 +0000)]
- Fix off-by-one problem in tar where filenames of length 100
  and dirnames of length 99 don't archive.

Submitted by: Wilfredo Sanchez <wsanchez@apple.com>
Obtained from:  OpenBSD

25 years agoHex constants should only have one '0x' prefix.
msmith [Tue, 20 Oct 1998 02:43:28 +0000 (02:43 +0000)]
Hex constants should only have one '0x' prefix.

25 years agoSpecify BINOWN explicitly - we don't want to depend on bsd.own.mk
brian [Tue, 20 Oct 1998 00:19:38 +0000 (00:19 +0000)]
Specify BINOWN explicitly - we don't want to depend on bsd.own.mk
setting it to ``root''.

25 years agoModify the transmit packet queuing strategy a bit to be a little less
wpaul [Mon, 19 Oct 1998 22:08:56 +0000 (22:08 +0000)]
Modify the transmit packet queuing strategy a bit to be a little less
agressive. With the old code, if a descriptor chain was already on its
way to the chip, xl_start() would try to splice new chains onto the end
of the current chain by stopping the transmitter, modifying the tail
pointer of the current chain to point to the head of the new chain, then
restart the transmitter. The manual says you're allowed to do this and
it works, but I'm not too keen on it anymore.

The new code waits until the eixsting chain has been sent and then
queues the next waiting chain in the 'transmit ok' handler.

Performance still looks good one way or the other.

25 years agoUse sysctl() rather than kvm_read() when getting information
dima [Mon, 19 Oct 1998 20:48:08 +0000 (20:48 +0000)]
Use sysctl() rather than kvm_read() when getting information
about clock stuff from kernel.
This fixes xntpd on alpha.

25 years agoDefault to aout only on i386. Before we defaulted to elf only on
imp [Mon, 19 Oct 1998 20:09:17 +0000 (20:09 +0000)]
Default to aout only on i386.  Before we defaulted to elf only on
Alpha.  This is a minor, but important distinction.  Should be a no-op
to the install base.  If OBJFORMAT is set elsewhere, things work
exactly as they did before.

25 years agoMake gcore work for ELF.
jdp [Mon, 19 Oct 1998 19:42:18 +0000 (19:42 +0000)]
Make gcore work for ELF.

25 years agoMake configurable (a) whether to use int 0x13 extensions; (b) timeout
rnordier [Mon, 19 Oct 1998 19:13:53 +0000 (19:13 +0000)]
Make configurable (a) whether to use int 0x13 extensions; (b) timeout
value.  Ignore failure to update mbr sector.  Disable interrupts while
using extended registers.  Default to F1 not F2.

25 years agoAdd entries for DiskOnChip2000 Flash device.
jkh [Mon, 19 Oct 1998 14:58:38 +0000 (14:58 +0000)]
Add entries for DiskOnChip2000 Flash device.
Submitted by: phk

25 years agoReclaim the 48k used by the first bootstrap stage by adding it to the malloc
dfr [Mon, 19 Oct 1998 09:12:41 +0000 (09:12 +0000)]
Reclaim the 48k used by the first bootstrap stage by adding it to the malloc
pool.

25 years agoImplement a hook to allow us to reclaim the memory used by the first stage
dfr [Mon, 19 Oct 1998 09:08:40 +0000 (09:08 +0000)]
Implement a hook to allow us to reclaim the memory used by the first stage
of the bootstrap (the bit which loads /boot/loader).

25 years agoWe're now in post-release; make the docs indicate as much.
jkh [Mon, 19 Oct 1998 08:49:50 +0000 (08:49 +0000)]
We're now in post-release; make the docs indicate as much.

25 years agoRename boot2 to loader.
dfr [Sun, 18 Oct 1998 19:05:07 +0000 (19:05 +0000)]
Rename boot2 to loader.

25 years agoR_ALPHA_RELATIVE relocations need to add the value to the existing memory
dfr [Sun, 18 Oct 1998 19:04:13 +0000 (19:04 +0000)]
R_ALPHA_RELATIVE relocations need to add the value to the existing memory
contents.

25 years agoAdd driver support for PCI fast ethernet adapters based on the
wpaul [Sun, 18 Oct 1998 16:24:34 +0000 (16:24 +0000)]
Add driver support for PCI fast ethernet adapters based on the
RealTek 8129/8139 chipset like I've been threatening. Update kernel
configs, userconfig.c, relnotes and sysinstall. No man page yet;
comming soon.

I consider this driver stable enough that I want to give it some
exposure in -current.

25 years agoCommented out aic.
kato [Sun, 18 Oct 1998 15:55:20 +0000 (15:55 +0000)]
Commented out aic.

25 years agoSome cleanups and optimizations:
peter [Sun, 18 Oct 1998 15:55:12 +0000 (15:55 +0000)]
Some cleanups and optimizations:
- Use the system headers method for Elf32/Elf64 symbol compatability
- get rid of the UPRINTF debugging.
- check the ELF header for compatability much more completely
- optimize the section mapper.  Use the same direct VM interfaces that
  imgact_aout.c and kern_exec.c use.
- Check the return codes from the vm_* functions better.  Some return
  KERN_* results, not an errno.
- prefault the page tables to reduce startup faults on page tables like
  a.out does.
- reset the segment protection to zero for each loop, otherwise each
  segment could get progressively more privs. (eg: if the first was
  read/write/execute, and the second was meant to be read/execute, the
  bug would make the second r/w/x too.  In practice this was not a
  problem because executables are normally laid out with text first.)
- Don't impose arbitary limits.  Use the limits on headers imposed by
  the need to fit them into one page.
- Remove unused switch() cases now that the verbose debugging is gone.

I've been using an earlier version of this for a month or so.
This sped up ELF exec speed a bit for me but I found it hard to get
consistant benchmarks when I tested it last (a few weeks ago).
I'm still bothered by the page read out of order caused by the
transition from data to bss. This which requires either part filling the
transition page or clearing the remainder.

25 years agoAdd an ELF_MACHINE_OK() macro for compatability with the Alpha version.
peter [Sun, 18 Oct 1998 15:31:23 +0000 (15:31 +0000)]
Add an ELF_MACHINE_OK() macro for compatability with the Alpha version.

25 years agoUpdate SMP-GENERIC98 to something a bit more recent based on GENERIC98.
kato [Sun, 18 Oct 1998 14:02:43 +0000 (14:02 +0000)]
Update SMP-GENERIC98 to something a bit more recent based on GENERIC98.

25 years agoSync with sys/i386/conf/GENERIC revision 1.125.
kato [Sun, 18 Oct 1998 13:58:16 +0000 (13:58 +0000)]
Sync with sys/i386/conf/GENERIC revision 1.125.

25 years agoadjust to match current times.
jkh [Sun, 18 Oct 1998 13:56:49 +0000 (13:56 +0000)]
adjust to match current times.

25 years agoAdd a missing ++.
phk [Sun, 18 Oct 1998 11:58:57 +0000 (11:58 +0000)]
Add a missing ++.

Noticed by: gcc via phk
Submitted by: Mike Spengler <mks@networkcs.com>

25 years agoAllow building games w/o an existing /usr/games.
obrien [Sun, 18 Oct 1998 11:14:58 +0000 (11:14 +0000)]
Allow building games w/o an existing /usr/games.

25 years agoAdded missing dependency for bus_if.o on bus_if.h
phk [Sun, 18 Oct 1998 10:57:55 +0000 (10:57 +0000)]
Added missing dependency for bus_if.o on bus_if.h

25 years agoAllow ``make BINDIR=/foo/games'' to work.
obrien [Sun, 18 Oct 1998 09:49:02 +0000 (09:49 +0000)]
Allow ``make BINDIR=/foo/games'' to work.

25 years agoAllow ``make BINDIR=/foo/games'' to work.
obrien [Sun, 18 Oct 1998 09:35:17 +0000 (09:35 +0000)]
Allow ``make BINDIR=/foo/games'' to work.

25 years agoInitialize earlier (ie: before npx) in case it makes any difference.
peter [Sun, 18 Oct 1998 07:44:33 +0000 (07:44 +0000)]
Initialize earlier (ie: before npx) in case it makes any difference.
Print a message when it attaches to pmath_emulate if bootverbose so that
we can be sure it's online.

25 years agoPrint a message if bootverbose that the emulator is present in the kernel.
peter [Sun, 18 Oct 1998 07:40:29 +0000 (07:40 +0000)]
Print a message if bootverbose that the emulator is present in the kernel.

Move the initialization before isa_configure() and npx, in case npx does
something to initialize the state of the emulator somehow.

I do not have any machines without a FPU so that I can test this with -
except an old 386sx motherboard in a box somewhere that might work...

25 years agoPR: 7583
thepish [Sun, 18 Oct 1998 04:46:24 +0000 (04:46 +0000)]
PR: 7583
Submitted by: Dave Glowacki <dglo@SSEC.WISC.EDU>
Support input via stdin if no input file name specified explicitly

25 years agoOOPS!
peter [Sun, 18 Oct 1998 04:36:58 +0000 (04:36 +0000)]
OOPS!
Supply the moduledata handle rather than the event dispatcher function.
This should explain the panic on boot problem that's been discussed in
-current at the moment.  Both machines had GNU_MATH_EMULATE.

25 years agoOnly process the ``PWD'' environmental var if built with "WANT_ENV_PWD"
obrien [Sun, 18 Oct 1998 00:51:46 +0000 (00:51 +0000)]
Only process the ``PWD'' environmental var if built with "WANT_ENV_PWD"
defined.  Bash v2 sets PWD and it creates major problems for those of us
with /usr/src being a symlink.  See the lists for examples of the problems.

25 years agoTo clarify last commit, msmith says:
obrien [Sat, 17 Oct 1998 22:20:06 +0000 (22:20 +0000)]
To clarify last commit, msmith says:
The reason the Alpha has less room than the i386 is because the bootstrap
is given a 256K mapping by the firmware; to add more requires extra work.

25 years ago"Fixed" a printf format error. Use bogus casts to avoid using %p so that
bde [Sat, 17 Oct 1998 16:14:00 +0000 (16:14 +0000)]
"Fixed" a printf format error.  Use bogus casts to avoid using %p so that
the output doesn't change (unless the old format caused runtime errors).

25 years agoFixed printf format errors.
bde [Sat, 17 Oct 1998 16:04:28 +0000 (16:04 +0000)]
Fixed printf format errors.

25 years agoDon't even think about using a sysctl to build osreldate.h, since this
bde [Sat, 17 Oct 1998 15:52:48 +0000 (15:52 +0000)]
Don't even think about using a sysctl to build osreldate.h, since this
breaks cross-builds.  Just depend on ${.CURDIR}/../sys/conf/newvers.sh
existing.

Don't override the (correct) defaults for the depend, lint or tags target.

In LDIRS: fixed order-rot.  Don't comment out dead networking directories;
remove them.

25 years agoRestored all lost user targets that are supported by bsd.subdir.mk:
bde [Sat, 17 Oct 1998 15:25:26 +0000 (15:25 +0000)]
Restored all lost user targets that are supported by bsd.subdir.mk:
checkdpadd, lint, maninstall, objlink, regress and tags.

Removed bogus user target cleanobj.  It is the non-recursive base of
the cleandir target, so it is not useful (or usable) here.

25 years agoFixed the type of a signal handler.
bde [Sat, 17 Oct 1998 14:47:00 +0000 (14:47 +0000)]
Fixed the type of a signal handler.

25 years agoSet BINMODE to 444.
rnordier [Sat, 17 Oct 1998 14:20:25 +0000 (14:20 +0000)]
Set BINMODE to 444.

25 years agoFixed printf format errors. Assume that uid_t's are representable as
bde [Sat, 17 Oct 1998 14:08:12 +0000 (14:08 +0000)]
Fixed printf format errors.  Assume that uid_t's are representable as
unsigned longs.

25 years agoFixed printf format errors. Assume that time_t's are representable as
bde [Sat, 17 Oct 1998 14:06:20 +0000 (14:06 +0000)]
Fixed printf format errors.  Assume that time_t's are representable as
longs.

25 years agoFixed missing libraries in DPADD.
bde [Sat, 17 Oct 1998 13:55:22 +0000 (13:55 +0000)]
Fixed missing libraries in DPADD.

25 years agoHonour the default CFLAGS. This fixes a spew of warnings for compiling
bde [Sat, 17 Oct 1998 13:48:37 +0000 (13:48 +0000)]
Honour the default CFLAGS.  This fixes a spew of warnings for compiling
unused static inlines in headers without -O.

Fixed missing libraries in DPADD.

Use .PATH instead of a symlink farm.

Removed bogus dependency of util.c on statetext.h (only util.o depends
on it).  Removed rule for building statetext.h.  The dependency was used
to get statetext.h built, but statetext.h is a non-generated source file
so it doesn't need building.  This fixes an annoying message for the null
build and use of `make' instead of ${MAKE} to do the null build.

Fixed some style bugs.

25 years agoDon't assume that time_t is long.
bde [Sat, 17 Oct 1998 13:02:46 +0000 (13:02 +0000)]
Don't assume that time_t is long.

25 years agoDon't assume that time_t is long.
bde [Sat, 17 Oct 1998 12:44:55 +0000 (12:44 +0000)]
Don't assume that time_t is long.

25 years agoWarn about (but process anyway) CBCP messages with an incorrect id.
brian [Sat, 17 Oct 1998 12:28:11 +0000 (12:28 +0000)]
Warn about (but process anyway) CBCP messages with an incorrect id.

25 years agoAdjust our CBCP RESP id so that it's the same as the REQ.
brian [Sat, 17 Oct 1998 12:28:09 +0000 (12:28 +0000)]
Adjust our CBCP RESP id so that it's the same as the REQ.
Submitted by: Tom <root@majestix.cmr.no>

25 years agoIf the client asks for CBCP, then replies with CBCP_NONUM
brian [Sat, 17 Oct 1998 12:28:08 +0000 (12:28 +0000)]
If the client asks for CBCP, then replies with CBCP_NONUM
to our REQ, allow no dialback - but only if we've
``set cbcp *''..
Suggested by: Andrzej Tobola <san@koziolek.lublin.top.pl>

25 years agoExplain what the ``*'' means for a CBCP phone number
brian [Sat, 17 Oct 1998 12:28:06 +0000 (12:28 +0000)]
Explain what the ``*'' means for a CBCP phone number
in ``show link''.

25 years agoMove help displays left one column to avoid problems with
brian [Sat, 17 Oct 1998 12:28:05 +0000 (12:28 +0000)]
Move help displays left one column to avoid problems with
broken terminals that can't handle 80 columns followed by
a linefeed.
Pointed out by: bde@FreeBSD.org

25 years agoWarn if we encounter an unindented line that isn't
brian [Sat, 17 Oct 1998 12:28:03 +0000 (12:28 +0000)]
Warn if we encounter an unindented line that isn't
terminated with a ``:''.

25 years agoWarn that the specific chap protocol isn't supported when
brian [Sat, 17 Oct 1998 12:28:02 +0000 (12:28 +0000)]
Warn that the specific chap protocol isn't supported when
rejecting CHAP because of byte 5.
Suggested by: Daniel O'Callaghan <danny@hilink.com.au>

25 years agoDon't add /usr/games to $PATH. Adding it here can only work for the
bde [Sat, 17 Oct 1998 11:56:20 +0000 (11:56 +0000)]
Don't add /usr/games to $PATH.  Adding it here can only work for the
`make world' case, and only made a difference for the evil NOTOOLS case
of `make world' since games tools are installed in ${TOOLROOT}/usr/bin
if they are built, but the PR was for normal builds.  This is fixed
in rev.1.14 of src/games/fortune/datfiles/Makefile.

PR: 7936

25 years agoFixed building without /usr/games in $PATH. Just add /usr/games
bde [Sat, 17 Oct 1998 11:44:28 +0000 (11:44 +0000)]
Fixed building without /usr/games in $PATH.  Just add /usr/games
to the _end_ of $PATH before using tools that are normally in
/usr/games.  I broke this in rev.1.9 by assuming that these tools
are in $PATH (as they are for `make world' unless NOTOOLS is set).
Revs.1.10-1.13 of this file had various wrong fixes.  Rev.1.18
of src/Makefile.inc1 has an incomplete fix.

PR: 7936

Fixed comments about what to comment out to [not] install the
potentially offensive fortunes.  This should be configured using
an ifdef.

Fixed missing dependencies of fortunes.dat on fortunes, etc.

Removed bogus dependency of `all' on source files.

Fixed some style bugs.

25 years agoFix some glitches in the input routine:
rnordier [Sat, 17 Oct 1998 11:25:05 +0000 (11:25 +0000)]
Fix some glitches in the input routine:
Don't display a \b if not acting on it.
Don't process binary zero chars (which result from pressing function
keys, etc. on the PC).

25 years agoHaving probed the keyboard, turn off the -P flag.
rnordier [Sat, 17 Oct 1998 10:35:15 +0000 (10:35 +0000)]
Having probed the keyboard, turn off the -P flag.

25 years agoUpdated the error message for EXDEV to match recent kernel fixes.
bde [Sat, 17 Oct 1998 09:56:32 +0000 (09:56 +0000)]
Updated the error message for EXDEV to match recent kernel fixes.
Fixed nearby indentation.

Use RAW_PART instead of RAWPARTITION.

25 years agoTreat all options as toggles (ie. -c -c is the same no -c). Since
rnordier [Sat, 17 Oct 1998 09:50:09 +0000 (09:50 +0000)]
Treat all options as toggles (ie. -c -c is the same no -c).  Since
the boot.config settings are persistent, this seems to provide a
useful override capability, and should break only on broken
boot.config's.

Output a cosmetic newline if booting with no input.

25 years agoOverload the correct errno for attempts to set an in-core label with
bde [Sat, 17 Oct 1998 09:46:42 +0000 (09:46 +0000)]
Overload the correct errno for attempts to set an in-core label with
a raw partition at a nonzero offset (EINVAL should have been EXDEV;
DIOCSDINFO was broken, and DIOCWDINFO was broken because it depended
on DIOCSDINFO).

A zero offset for the raw partition should probably be enforced in
setdisklabel(), and DIOCWDINFO should probably always be handled by
first calling setdisklabel() so that writedisklabel() doesn't need to
enforce it, but this has never been done; dsioctl() has a special
check.  Changes in this commit are limited to dsioctl() to preserve
bug for bug compatibility in drivers that don't use the slice code
(notably the ccd driver, which allows setting a bogus label in
DIOCWDINFO and doesn't undo the setting when writedisklabel() fails).

25 years agobiosboot compatibility fix:
rnordier [Sat, 17 Oct 1998 09:16:01 +0000 (09:16 +0000)]
biosboot compatibility fix:
If we have a boot.config command, display it.

25 years agobiosboot compatibility fix:
rnordier [Sat, 17 Oct 1998 09:01:13 +0000 (09:01 +0000)]
biosboot compatibility fix:
Read boot.help before parsing boot.config.  We were parsing
boot.config first, which could result in boot.help being read
from a different location (or not found), which would probably
just cause surprise, without being useful.

25 years agoBacked out previous commit. It broke fsck again. See rev.1.22 and the
bde [Sat, 17 Oct 1998 08:03:52 +0000 (08:03 +0000)]
Backed out previous commit.  It broke fsck again.  See rev.1.22 and the
references there, and rev.1.38 of sys/ufs/ufs/ufs_disksubr.c.

25 years agoUse only the correct raw partition for writing labels. Don't use the
bde [Sat, 17 Oct 1998 07:49:04 +0000 (07:49 +0000)]
Use only the correct raw partition for writing labels.  Don't use the
partition that the label ioctl is being done on just because it has
offset 0, since there is no guarantee that such a partition is large
enough to contain the label.  Don't use the wrong raw partition (0
instead of RAW_PART).

This fixes problems rewriting bizarre labels (with a nonzero offset
for the 'a' partition) in newfs(8).  Such labels shouldn't normally
be used, but creating them was allowed if the ioctl was done on the
raw partition, and sysinstall creates them if the root partition isn't
allocated first.

Note that allowing write access to a partition other than the one that
has been checked for write access doesn't increase security holes
significantly, since write access to any partition already allows
changing the in-core label.

This fix should be in 3.0R.  Rev.1.26 of newfs/newfs.c shouldn't be
in 3.0R.

25 years agoFix paths. This sorts out the remaining p5-* port-creation hassles.
markm [Sat, 17 Oct 1998 07:10:43 +0000 (07:10 +0000)]
Fix paths. This sorts out the remaining p5-* port-creation hassles.

25 years ago3.0-RELEASE and now the post-release 3.0-CURRENT were being declared
peter [Sat, 17 Oct 1998 05:40:46 +0000 (05:40 +0000)]
3.0-RELEASE and now the post-release 3.0-CURRENT were being declared
'too old' to run ELF.  Check the kernel version properly.

25 years agoDon't rewrite the disk label. The type field is already set correctly
jkh [Sat, 17 Oct 1998 04:19:29 +0000 (04:19 +0000)]
Don't rewrite the disk label.  The type field is already set correctly
and we don't use the frags info, so why bother?  More to the point, it
seems to result in an EXDEV error when the label is written out and we
lose because of it (don't know why though).  This is a work-around and
is marked as such.

25 years agoLoad the first page of the file and use the headers in it. This should
peter [Sat, 17 Oct 1998 03:06:38 +0000 (03:06 +0000)]
Load the first page of the file and use the headers in it.  This should
avoid the need to seek back to offset zero which is causing trouble on
the Alpha with a gzipped kernel.

25 years agoSome directories would like to install things into /modules
peter [Sat, 17 Oct 1998 01:21:35 +0000 (01:21 +0000)]
Some directories would like to install things into /modules

25 years agoComplete the description of sio flag 0x40.
alex [Fri, 16 Oct 1998 22:26:19 +0000 (22:26 +0000)]
Complete the description of sio flag 0x40.

Reviewed by: bde

25 years agoAdd the dpt(4) man page.
ken [Fri, 16 Oct 1998 22:00:55 +0000 (22:00 +0000)]
Add the dpt(4) man page.

Reviewed by: ken
Submitted by: gibbs