]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
26 years agosprintf -> snprintf to avoid potential buffer overflow.
Steve Price [Sun, 14 Jun 1998 16:03:40 +0000 (16:03 +0000)]
sprintf -> snprintf to avoid potential buffer overflow.

PR: 6907
Submitted by: Archie Cobbs <archie@whistle.com>

26 years agoAvoid an egcs pessimization for 64-bit signed division on i386's.
Bruce Evans [Sun, 14 Jun 1998 15:52:00 +0000 (15:52 +0000)]
Avoid an egcs pessimization for 64-bit signed division on i386's.
Pre-2.8 versions of gcc generate a call to __divdi3() for all 64-bit
signed divisions, but egcs optimizes them to a shift and fixup when
the divisor is a constant power of 2.  Unfortunately, it generates
a call to __cmpdi2() for the fixup, although all except possibly
ancient versions of gcc and egcs do ordinary 64-bit comparisons
inline.

26 years agoAdded uoff_t.
Bruce Evans [Sun, 14 Jun 1998 15:26:03 +0000 (15:26 +0000)]
Added uoff_t.

26 years agoRemoved LOCORE ifdef. This header isn't used for locore stuff.
Bruce Evans [Sun, 14 Jun 1998 15:21:27 +0000 (15:21 +0000)]
Removed LOCORE ifdef.  This header isn't used for locore stuff.

Use uoff_t instead of `unsigned long long' for unsigned offsets.

Fixed some style bugs.

26 years agoDefine 64-bit types in terms of __int64_t and __uint64_t.
Bruce Evans [Sun, 14 Jun 1998 14:08:21 +0000 (14:08 +0000)]
Define 64-bit types in terms of __int64_t and __uint64_t.

Define an unsigned version of off_t (uoff_t) if KERNEL is defined.
This is useful for micro-optimizing expressions involving off_t's
where you know that the values are non-negative but the compiler
doesn't know it.

Fixed a gratuitous ANSIism.

26 years agoAdded typedefs for __int64_t and __uint64_t. These will be used to avoid
Bruce Evans [Sun, 14 Jun 1998 14:00:47 +0000 (14:00 +0000)]
Added typedefs for __int64_t and __uint64_t.  These will be used to avoid
explicit use of `[unsigned] long long' and `[u]quad_t'.

Fixed disorder of and lack of comments for the types added in the previous
two commits.  Improved some comments.  The comments should be elswhere
(not duplicated in every MD file).

26 years agoDeclare zs_cnattach.
Doug Rabson [Sun, 14 Jun 1998 13:58:57 +0000 (13:58 +0000)]
Declare zs_cnattach.

26 years ago[Add missing files from previous commit]
Doug Rabson [Sun, 14 Jun 1998 13:53:12 +0000 (13:53 +0000)]
[Add missing files from previous commit]

Major changes to the generic device framework for FreeBSD/alpha:

* Eliminate bus_t and make it possible for all devices to have
  attached children.

* Support dynamically extendable interfaces for drivers to replace
  both the function pointers in driver_t and bus_ops_t (which has been
  removed entirely.  Two system defined interfaces have been defined,
  'device' which is mandatory for all devices and 'bus' which is
  recommended for all devices which support attached children.

* In addition, the alpha port defines two simple interfaces 'clock'
  for attaching various real time clocks to the system and 'mcclock'
  for the many different variations of mc146818 clocks which can be
  attached to different alpha platforms.  This eliminates two more
  function pointer tables in favour of the generic method dispatch
  system provided by the device framework.

Future device interfaces may include:

* cdev and bdev interfaces for devfs to use in replacement for specfs
  and the fixed interfaces bdevsw and cdevsw.

* scsi interface to replace struct scsi_adapter (not sure how this
  works in CAM but I imagine there is something similar there).

* various tailored interfaces for different bus types such as pci,
  isa, pccard etc.

26 years agoMajor changes to the generic device framework for FreeBSD/alpha:
Doug Rabson [Sun, 14 Jun 1998 13:46:10 +0000 (13:46 +0000)]
Major changes to the generic device framework for FreeBSD/alpha:

* Eliminate bus_t and make it possible for all devices to have
  attached children.

* Support dynamically extendable interfaces for drivers to replace
  both the function pointers in driver_t and bus_ops_t (which has been
  removed entirely.  Two system defined interfaces have been defined,
  'device' which is mandatory for all devices and 'bus' which is
  recommended for all devices which support attached children.

* In addition, the alpha port defines two simple interfaces 'clock'
  for attaching various real time clocks to the system and 'mcclock'
  for the many different variations of mc146818 clocks which can be
  attached to different alpha platforms.  This eliminates two more
  function pointer tables in favour of the generic method dispatch
  system provided by the device framework.

Future device interfaces may include:

* cdev and bdev interfaces for devfs to use in replacement for specfs
  and the fixed interfaces bdevsw and cdevsw.

* scsi interface to replace struct scsi_adapter (not sure how this
  works in CAM but I imagine there is something similar there).

* various tailored interfaces for different bus types such as pci,
  isa, pccard etc.

26 years agoDon't define away __attribute__() for the non-gcc and old-gcc cases.
Bruce Evans [Sun, 14 Jun 1998 13:40:01 +0000 (13:40 +0000)]
Don't define away __attribute__() for the non-gcc and old-gcc cases.
Using __attribute__() in non-ifdefed code is just wrong if it changes
the semantics, and there is no way to ignore __attribute__() only in
the benign cases.

Don't use __attribute__ in non-ifdefed code here.  It was a benign
case, but we already have a macro (__unused) for this case.

Expanded comment about gotchas for __CONCAT() in the non-ANSI case.

26 years agoElf64_Shdr.sh_size should be Elf64_Size not Elf64_Word.
Doug Rabson [Sun, 14 Jun 1998 13:24:09 +0000 (13:24 +0000)]
Elf64_Shdr.sh_size should be Elf64_Size not Elf64_Word.

26 years agoAvoid a 64-bit division in procfs_readdir(). Fixed related overflows.
Bruce Evans [Sun, 14 Jun 1998 12:53:39 +0000 (12:53 +0000)]
Avoid a 64-bit division in procfs_readdir().  Fixed related overflows.
Check args using the same expression as in fdesc and kernfs.  The check
was actually already correct, modulo overflow.  It could be tightened
up to either allow huge (aligned) offsets, treating them as EOF, or
disallow all offsets beyond EOF.

Didn't fix invalid address calculation &foo[i] where i may be out of
bounds.

Didn't fix shooting of foot using a private unportable dirent struct.

26 years agoAvoid a 64-bit division in kernfs_readdir(). Fixed related overflows
Bruce Evans [Sun, 14 Jun 1998 12:34:42 +0000 (12:34 +0000)]
Avoid a 64-bit division in kernfs_readdir().  Fixed related overflows
and arg checking.

26 years agoDon't compile in the use of poll() when building libc_r. This isn't
Peter Wemm [Sun, 14 Jun 1998 11:25:46 +0000 (11:25 +0000)]
Don't compile in the use of poll() when building libc_r.  This isn't
so much a "fix", rather a bandaid to buy time to fix it properly
within the thread engine.

26 years agoAvoid 64-bit divisions and modulos. Fixed related overflows for weird
Bruce Evans [Sun, 14 Jun 1998 10:52:52 +0000 (10:52 +0000)]
Avoid 64-bit divisions and modulos.  Fixed related overflows for weird
args.

This driver should not be used, since it calls uiomove() with interrupts
disabled.

26 years agoIf a short write, only loop if no error.
John Birrell [Sun, 14 Jun 1998 09:36:14 +0000 (09:36 +0000)]
If a short write, only loop if no error.

26 years agoAvoid a 64-bit division in fdesc_readdir(). Fixed related overflows
Bruce Evans [Sun, 14 Jun 1998 08:46:41 +0000 (08:46 +0000)]
Avoid a 64-bit division in fdesc_readdir().  Fixed related overflows
and missing arg checking.

Panic instead of returning bogus error codes or forgetting to check
all cases if fdesc_readdir() gets called for a non-directory.  This
can't happen.

26 years agoDocument EINVAL return value.
Bruce Evans [Sun, 14 Jun 1998 08:22:05 +0000 (08:22 +0000)]
Document EINVAL return value.

26 years agoDeal with PROTO_IGMP and PROTO_IPIP packets correctly.
Brian Somers [Sun, 14 Jun 1998 01:21:24 +0000 (01:21 +0000)]
Deal with PROTO_IGMP and PROTO_IPIP packets correctly.

Submitted by: Mark Tinguely <tinguely@plains.NoDak.edu>
  This change will allow a PPP host enabled with the "-alias" option to
  run mrouted. This does not intend to forward the IGMP nor tunneled packets
  to another host on the far side if the tun0 interface.

26 years agoo Pass our negotiated number of VJ slots into
Brian Somers [Sun, 14 Jun 1998 00:56:13 +0000 (00:56 +0000)]
o Pass our negotiated number of VJ slots into
  sl_uncompress_tcp() and drop packets with
  slot numbers that are out of range.
o Drop packets that want to use a slot that still
  has an IP header length of 0 (ie, the requested
  slot number is bogus again).

Without this code, if the other side mis-behaves (and
sends us garbage slot numbers), we happily ``adjust''
a memset(..., '\0', ...) TCP/IP header and promptly
cr*p all over the stack before returning.... quickly
followed by a SIGBUS.

Dodgy ISP used by, and help locating the problem from: jmz
Problem also seen by: Mourad de Riche <omnibus@image.dk>

There's still a link lockup after this happens, but my
bets are on the other side (who has already started sending
rubbish) being to blame.

26 years agoAdd a macro tweak.
Steve Price [Sat, 13 Jun 1998 19:36:22 +0000 (19:36 +0000)]
Add a macro tweak.

PR: 6932
Submitted by: Nick Sayer <nsayer@quack.kfu.com>

26 years agoMention all the environment variables that can be used
Steve Price [Sat, 13 Jun 1998 19:28:51 +0000 (19:28 +0000)]
Mention all the environment variables that can be used
to specify the device.

PR: 6927
Submitted by: Stefan Eggers <seggers@semyam.dinoco.de>

26 years agoAdd doc/ja/FAQ and handbook, so that releases can build again.
John Hay [Sat, 13 Jun 1998 19:26:38 +0000 (19:26 +0000)]
Add doc/ja/FAQ and handbook, so that releases can build again.

26 years agoCorrect the description of the last four fields.
Steve Price [Sat, 13 Jun 1998 19:14:14 +0000 (19:14 +0000)]
Correct the description of the last four fields.

PR: 6926
Submitted by: Josh Gilliam <josh@quick.net>

26 years agomiserable -> miserably
Steve Price [Sat, 13 Jun 1998 19:06:49 +0000 (19:06 +0000)]
miserable -> miserably

PR: 6922
Submitted by: Sue Blake <sue@welearn.com.au>

26 years agoMinor tweaks in the AUTHORS section.
Steve Price [Sat, 13 Jun 1998 18:55:55 +0000 (18:55 +0000)]
Minor tweaks in the AUTHORS section.

PR: 6921
Submitted by: Josh Gilliam <josh@quick.net>

26 years agoAdd a symlink from /dev/vga to /dev/ttyv0 when using DEVFS
Steve Price [Sat, 13 Jun 1998 18:53:22 +0000 (18:53 +0000)]
Add a symlink from /dev/vga to /dev/ttyv0 when using DEVFS
for programs like doscmd.

PR: 6920
Submitted by: Luoqi Chen <luoqi@chen.ml.org>

26 years agoAdd a swissfrench keyboard mapping.
Steve Price [Sat, 13 Jun 1998 18:39:22 +0000 (18:39 +0000)]
Add a swissfrench keyboard mapping.

PR: 6916
Submitted by: tamone@eig.unige.ch

26 years agoMerge changes from vendor branch;
Peter Wemm [Sat, 13 Jun 1998 17:20:03 +0000 (17:20 +0000)]
Merge changes from vendor branch;
- connector selection values (should fix aui/bnc),
- non-shifting version of crc calculation using a table,
- interrupt mask adjustments,
- add some brackets where a #ifdef could break an if(),
- don't reset the card unless it's up.

26 years agoMake -V expand it's arguments. This means that instead of 'make -V OBJS'
Peter Wemm [Sat, 13 Jun 1998 11:55:57 +0000 (11:55 +0000)]
Make -V expand it's arguments.  This means that instead of 'make -V OBJS'
printing something useless (to a shell) like: ${SRCS:N*.h:R:S/$/.o/g}
it will instead print the actual ${OBJS} value.

26 years agoIntroduce std_pps_ioctl() to automagically DTRT.
Poul-Henning Kamp [Sat, 13 Jun 1998 09:30:26 +0000 (09:30 +0000)]
Introduce std_pps_ioctl() to automagically DTRT.

Add scaling capability to timex.offset, ntpd-4.0.73 will support this.

26 years agoAllow a protocol to specify that it does NOT want to be looped back
Julian Elischer [Sat, 13 Jun 1998 02:27:10 +0000 (02:27 +0000)]
Allow a protocol to specify that it does NOT want to be looped back
even if it looks like it should (backwards compatibility with
old broken code) should get rid of some annoying messags.

26 years agojoin(1) is used by lorder, add it to build-tools. (otherwise, things get
Peter Wemm [Sat, 13 Jun 1998 02:03:36 +0000 (02:03 +0000)]
join(1) is used by lorder, add it to build-tools.  (otherwise, things get
ugly when an a.out /usr/bin/join sees the elf LD_LIBRARY_PATH from a
'make world' and it's a.out ld.so tries to load the elf libc.so.)

26 years agoUpdate to draft-mogul-pps-api-02.txt as submitted to IETF
Poul-Henning Kamp [Fri, 12 Jun 1998 23:15:53 +0000 (23:15 +0000)]
Update to draft-mogul-pps-api-02.txt as submitted to IETF

26 years agoNote which version of Kirk's sources this corresponds to.
Julian Elischer [Fri, 12 Jun 1998 21:21:26 +0000 (21:21 +0000)]
Note which version of Kirk's sources this corresponds to.

26 years agoFix the case when renaming to a file that you've just created and deleted,
Julian Elischer [Fri, 12 Jun 1998 20:48:30 +0000 (20:48 +0000)]
Fix the case when renaming to a file that you've just created and deleted,
that had an inode that has not yet been written to disk, when the inode of the
new file is also not yet written to disk, and your old directory entry is not
yet on disk but you need to remove it and the new name exists in memory
but has been deleted but the transaction to write the deleted name to disk
exists and has not yet been cancelled by the request to delete the non
existant name.  I don't know how kirk could have missed such a glaring
problem for so long. :-) Especially since the inconsitency survived on
the disk for a whole 4 second on average before being fixed by other code.
This was not a crashing bug but just led to filesystem inconsitencies
if you crashed.

Submitted by: Kirk McKusick (mckusick@mckusick.com)

26 years agoAdd the ``clear'' function.
Brian Somers [Fri, 12 Jun 1998 20:12:26 +0000 (20:12 +0000)]
Add the ``clear'' function.
Mostly submitted by: "Stephane E. Potvin" <sepotvin@videotron.ca>

26 years agoRemove 3 occurances of __FUNCTION__
Julian Elischer [Fri, 12 Jun 1998 20:03:26 +0000 (20:03 +0000)]
Remove 3 occurances of __FUNCTION__

26 years agoFix stupid typo, I had only tested this in elf mode.
Peter Wemm [Fri, 12 Jun 1998 19:45:14 +0000 (19:45 +0000)]
Fix stupid typo, I had only tested this in elf mode.

26 years agoRemove '\n' from `show throughput'. ctime() already does
Brian Somers [Fri, 12 Jun 1998 17:45:41 +0000 (17:45 +0000)]
Remove '\n' from `show throughput'.  ctime() already does
a linefeed.

26 years agoCorrect arg hack
Brian Somers [Fri, 12 Jun 1998 17:45:26 +0000 (17:45 +0000)]
Correct arg hack
Submitted by: David Leonard <leonard@csee.uq.edu.au>

26 years agoo Maintain a link-type mask for open datalinks as well as
Brian Somers [Fri, 12 Jun 1998 17:45:10 +0000 (17:45 +0000)]
o Maintain a link-type mask for open datalinks as well as
  for all datalinks in a bundle.  Ppp now deals correctly
  with link types that are changed while open
o When changing the type of the last AUTO link, only clear
  the interface if we're not in PHASE_NETWORK.  This allows
  us to switch to -ddial mode while we have a connection
  without suddenly unexpectedly throttling ourselves by
  clearing the interface configuration.
  Problem area noted by: Aaron Jeremias Luz <aaron@csh.rit.edu>

26 years agoAlways support an elf kernel when given one.
Peter Wemm [Fri, 12 Jun 1998 16:25:18 +0000 (16:25 +0000)]
Always support an elf kernel when given one.

26 years ago#include <arpa/inet.h>
Peter Wemm [Fri, 12 Jun 1998 16:24:13 +0000 (16:24 +0000)]
#include <arpa/inet.h>

26 years ago"./strip maybe_stripped" doesn't work too well if maybe_stripped is an
Peter Wemm [Fri, 12 Jun 1998 16:22:25 +0000 (16:22 +0000)]
"./strip maybe_stripped" doesn't work too well if maybe_stripped is an
elf executable..

26 years agoThe doscmd build process and doscmd.kernel loader is very a.out specific
Peter Wemm [Fri, 12 Jun 1998 16:18:27 +0000 (16:18 +0000)]
The doscmd build process and doscmd.kernel loader is very a.out specific
and doesn't fly too well on in an elf enviroment yet.

26 years agoOnly build rtld-aout if we're in an a.out build environment.
Peter Wemm [Fri, 12 Jun 1998 16:09:33 +0000 (16:09 +0000)]
Only build rtld-aout if we're in an a.out build environment.

26 years agoUnderstand elf library naming rules for libtermlib alias.
Peter Wemm [Fri, 12 Jun 1998 15:57:59 +0000 (15:57 +0000)]
Understand elf library naming rules for libtermlib alias.
Don't do the libtermcap un-bump hack for anything but a.out

26 years agoAdd -DFREEBSD_AOUT to CFLAGS, to ensure that <link.h> gives us the correct
Peter Wemm [Fri, 12 Jun 1998 15:50:57 +0000 (15:50 +0000)]
Add -DFREEBSD_AOUT to CFLAGS, to ensure that <link.h> gives us the correct
definitions, even when compiling the a.out ld under elf.

26 years agoUse the elf libalias name when compiled under elf.
Peter Wemm [Fri, 12 Jun 1998 15:37:23 +0000 (15:37 +0000)]
Use the elf libalias name when compiled under elf.

26 years agoMake nlist() understand elf unconditionally
Peter Wemm [Fri, 12 Jun 1998 15:02:03 +0000 (15:02 +0000)]
Make nlist() understand elf unconditionally

26 years ago#include <arpa/inet.h> instead of rolling own prototype.
Peter Wemm [Fri, 12 Jun 1998 14:58:03 +0000 (14:58 +0000)]
#include <arpa/inet.h> instead of rolling own prototype.

26 years ago#include <arpa/inet.h> for inet_* definitions.
Peter Wemm [Fri, 12 Jun 1998 14:39:00 +0000 (14:39 +0000)]
#include <arpa/inet.h> for inet_* definitions.

26 years ago#include <arpa/inet.h>
Peter Wemm [Fri, 12 Jun 1998 14:18:33 +0000 (14:18 +0000)]
#include <arpa/inet.h>

26 years agoAdd -DFREEBSD_AOUT to CFLAGS to ensure we get the correct definitions
Peter Wemm [Fri, 12 Jun 1998 14:11:15 +0000 (14:11 +0000)]
Add -DFREEBSD_AOUT to CFLAGS to ensure we get the correct definitions
from <link.h>

26 years ago#include <arpa/inet.h>
Peter Wemm [Fri, 12 Jun 1998 13:04:59 +0000 (13:04 +0000)]
#include <arpa/inet.h>
Also, use real struct in_addr rather than u_long.

26 years ago#include <arpa/inet.h>
Peter Wemm [Fri, 12 Jun 1998 12:55:46 +0000 (12:55 +0000)]
#include <arpa/inet.h>

26 years ago#include <arpa/inet.h>
Peter Wemm [Fri, 12 Jun 1998 12:37:15 +0000 (12:37 +0000)]
#include <arpa/inet.h>

26 years agoMove bsd.own.mk after make.conf, this allows BINFORMAT to be set in
Peter Wemm [Fri, 12 Jun 1998 10:52:52 +0000 (10:52 +0000)]
Move bsd.own.mk after make.conf, this allows BINFORMAT to be set in
/etc/make.conf - it changes LIBDIR in bsd.own.mk.  Note that there are
still problems with this, individual Makefiles cannot override BINFORMAT.

26 years agoForce -DFREEBSD_AOUT incase ldconfig is being compiled under elf.
Peter Wemm [Fri, 12 Jun 1998 10:43:18 +0000 (10:43 +0000)]
Force -DFREEBSD_AOUT incase ldconfig is being compiled under elf.
Without this, <link.h> defines stuff for elf linking which is not
what ldconfig needs.

26 years agoIncreased MAXTSIZ to 128MB...there are binaries that get quite large.
David Greenman [Fri, 12 Jun 1998 09:10:22 +0000 (09:10 +0000)]
Increased MAXTSIZ to 128MB...there are binaries that get quite large.
Increased DFLDSIZ to 128MB, as it is a better default.
Reviewed by: jkh

26 years agoGo through the loopback code with a broom..
Julian Elischer [Fri, 12 Jun 1998 03:48:19 +0000 (03:48 +0000)]
Go through the loopback code with a broom..
Remove lots'o'hacks.
looutput is now static.

Other callers who want to use loopback to allow shortcutting
should call the special entrypoint for this, if_simloop(), which is
specifically designed for this purpose. Using looutput for this purpose
was problematic, particularly with bpf and trying to keep track
of whether one should be using the charateristics of the loopback interface
or the interface (e.g. if_ethersubr.c) that was requesting the loopback.
There was a whole class of errors due to this mis-use each of which had
hacks to cover them up.

Consists largly of hack removal :-)

26 years agoinclude opt_ipdivert.h so we get correct options
Julian Elischer [Fri, 12 Jun 1998 02:48:47 +0000 (02:48 +0000)]
include opt_ipdivert.h so we get correct options

26 years agoAdd poll to the list of hidden syscalls so that it gets renamed. This
John Birrell [Fri, 12 Jun 1998 02:21:27 +0000 (02:21 +0000)]
Add poll to the list of hidden syscalls so that it gets renamed. This
propagates a bug (that there is no poll wrapper in libc_r), but it
prevents GNU configure scripts from trying to use it in preference
to select. libc_r really needs to change it's wait interface to use
poll instead of select because poll is more a superset of select that
the other way around.

This should allow the Roxen web server to work out-of-the-box. It's
configuration intercae is kinda neat. The code isn't. Shiver. 8-)

26 years agoUpdate the caller's descriptor masks even if there are none ready for
John Birrell [Fri, 12 Jun 1998 02:17:18 +0000 (02:17 +0000)]
Update the caller's descriptor masks even if there are none ready for
I/O for those applications that don't believe the return value of zero as
meaning that THERE ARE *NO* DESCRIPTORS READY.

26 years agoAllow diverted packets from the transmit side to remember if they
Julian Elischer [Fri, 12 Jun 1998 01:54:29 +0000 (01:54 +0000)]
Allow diverted packets from the transmit side to remember if they
had a recv interface and allow that state to be available
after re-injection for further tests.

26 years agoInstall motd once.
Guido van Rooij [Thu, 11 Jun 1998 20:25:56 +0000 (20:25 +0000)]
Install motd once.

26 years agoAdd B_NOCACHE to several cases where BSD4.4 only required a B_INVAL.
Julian Elischer [Thu, 11 Jun 1998 17:44:32 +0000 (17:44 +0000)]
Add B_NOCACHE to several cases where BSD4.4 only required a B_INVAL.
Change worked out by john and kirk in consort.

26 years agoZap the T_UID,T_GID and T_UINFO stuff, it doesn't exist in the bind8
Peter Wemm [Thu, 11 Jun 1998 14:40:42 +0000 (14:40 +0000)]
Zap the T_UID,T_GID and T_UINFO stuff, it doesn't exist in the bind8
headers.  As I understand it, it was for some really ancient athena stuff
that has long been replaced.

26 years agoDamn, bind8 includes added <arpa/nameser.h> as a prerequisite for
Peter Wemm [Thu, 11 Jun 1998 12:52:45 +0000 (12:52 +0000)]
Damn, bind8 includes added <arpa/nameser.h> as a prerequisite for
<resolv.h>.  This breaks user ppp at least, and goodness knows how
many ports. :-(

This a bit of a hack, but is probably simpler than duplicating the
typedefs and protecting them from each other.

Also, remove some temporary XXX notes that I forgot to remove before.

26 years agoReimplement spl*() as function calls. Implement software interrupts.
Doug Rabson [Thu, 11 Jun 1998 11:51:27 +0000 (11:51 +0000)]
Reimplement spl*() as function calls.  Implement software interrupts.

26 years agobsd.dep.mk doesn't know about -idirafter, and doesn't parse -I the
Peter Wemm [Thu, 11 Jun 1998 10:42:58 +0000 (10:42 +0000)]
bsd.dep.mk doesn't know about -idirafter, and doesn't parse -I the
same way that gcc does.

26 years agoSigh, mkdep doesn't know about all the CFLAGS to pass during depend
Peter Wemm [Thu, 11 Jun 1998 10:39:32 +0000 (10:39 +0000)]
Sigh, mkdep doesn't know about all the CFLAGS to pass during depend
generation.

26 years agoActivate libbind
Peter Wemm [Thu, 11 Jun 1998 09:17:58 +0000 (09:17 +0000)]
Activate libbind

26 years agolibbind.a and associated makefile goo is only used for named and named-xfer
Peter Wemm [Thu, 11 Jun 1998 09:16:28 +0000 (09:16 +0000)]
libbind.a and associated makefile goo is only used for named and named-xfer
now for the isc library.

26 years agoRemove components that would duplicate those in libc now that the
Peter Wemm [Thu, 11 Jun 1998 09:06:54 +0000 (09:06 +0000)]
Remove components that would duplicate those in libc now that the
includes and interfaces have been merged with the 8.1.2 update.

This essentially leaves the isc/* files that named and named-xfer use.
It might be best to just compile them with .PATH in both cases rather than
bothering with libbind.

26 years agoUpdate the resolver parts to bind-8.1.2 level. I have not touched the
Peter Wemm [Thu, 11 Jun 1998 09:03:02 +0000 (09:03 +0000)]
Update the resolver parts to bind-8.1.2 level.  I have not touched the
getXXXXbyYYYY() interfaces yet.

Obtained from: diff relative to bind-8.1.2 sources

26 years agoInstall arpa/nameser_compat.h
Peter Wemm [Thu, 11 Jun 1998 08:56:40 +0000 (08:56 +0000)]
Install arpa/nameser_compat.h

26 years agoUpdate nameserver interface to bind-8.1.2 levels. We do not use IRS (yet?)
Peter Wemm [Thu, 11 Jun 1998 08:55:17 +0000 (08:55 +0000)]
Update nameserver interface to bind-8.1.2 levels.  We do not use IRS (yet?)
since it has far wider impact than hostname lookups (including passwords).
Note that this has more ugly symbol hiding and binary compatability hacks
that can go away the second we bump majors.

Obtained from:  Mostly from diff against ISC bind-8.1.2 sources

26 years agoOnly build this on i386 for now. I may use it for the alpha later but
Doug Rabson [Thu, 11 Jun 1998 07:23:59 +0000 (07:23 +0000)]
Only build this on i386 for now.  I may use it for the alpha later but
currently it doesn't compile.

26 years agoAdd missing Id keywords.
Doug Rabson [Thu, 11 Jun 1998 07:15:55 +0000 (07:15 +0000)]
Add missing Id keywords.

26 years agoMerge conflicting changes (all 1 line! :-) from 8.1.2.
Peter Wemm [Thu, 11 Jun 1998 05:09:53 +0000 (05:09 +0000)]
Merge conflicting changes (all 1 line! :-) from 8.1.2.

26 years agoThis commit was generated by cvs2svn to compensate for changes in r36882,
Peter Wemm [Thu, 11 Jun 1998 05:01:49 +0000 (05:01 +0000)]
This commit was generated by cvs2svn to compensate for changes in r36882,
which included commits to RCS files with non-trunk default branches.

26 years agoImport final bind-8.1.2 release.
Peter Wemm [Thu, 11 Jun 1998 05:01:49 +0000 (05:01 +0000)]
Import final bind-8.1.2 release.

Obtained from: ftp.isc.org

26 years agoRemove -Werror from CFLAGS on i386 because with -nostdinc gcc spits
John Birrell [Thu, 11 Jun 1998 03:53:23 +0000 (03:53 +0000)]
Remove -Werror from CFLAGS on i386 because with -nostdinc gcc spits
warnings from unused static inline functions in headers if you happen
to set CFLAGS without -O.

26 years agoLocal filesystems are ufs not ffs
Andrey A. Chernov [Thu, 11 Jun 1998 03:47:29 +0000 (03:47 +0000)]
Local filesystems are ufs not ffs
Submitted by: "D. Rock" <rock@cs.uni-sb.de>

26 years agoSubmitted by: Peter Hawkins thepish@freebsd.org
Peter Hawkins [Thu, 11 Jun 1998 02:14:58 +0000 (02:14 +0000)]
Submitted by: Peter Hawkins thepish@freebsd.org
Small man page fix (missing ']' in [:alpha:] example)

26 years agoCheck the access mode in the flags before waiting on a read or a write
John Birrell [Wed, 10 Jun 1998 22:28:45 +0000 (22:28 +0000)]
Check the access mode in the flags before waiting on a read or a write
that might never be possible if the file was not opened in the corrent
mode. This prevents a hang for bad programs. Why do people code like that?

26 years agoRemove SA_RESTART from the signal dispatch in user-space since this
John Birrell [Wed, 10 Jun 1998 22:25:18 +0000 (22:25 +0000)]
Remove SA_RESTART from the signal dispatch in user-space since this
seems to be tripping up a lot of applications.

26 years agoWhen doing a F_SETFL, read the flags back so that the ones stored
John Birrell [Wed, 10 Jun 1998 22:24:12 +0000 (22:24 +0000)]
When doing a F_SETFL, read the flags back so that the ones stored
in the file descriptor table are exactly what the kernel knows subject
to the O_NONBLOCK flag being requested by the user.

26 years agoReplace 'sleep()' with 'tsleep()'
Julian Elischer [Wed, 10 Jun 1998 22:02:14 +0000 (22:02 +0000)]
Replace 'sleep()' with 'tsleep()'
Accidentally imported from Kirk's codebase.

Pointed out by: various.

26 years agoMake these files compile.
Doug Rabson [Wed, 10 Jun 1998 21:21:31 +0000 (21:21 +0000)]
Make these files compile.

26 years agoAdd my own copyright to this file. In this case not even the comments
Doug Rabson [Wed, 10 Jun 1998 20:48:03 +0000 (20:48 +0000)]
Add my own copyright to this file.  In this case not even the comments
resemble the NetBSD source so the NetBSD copyright has been removed.

26 years agoFix for "live inode" panic.
Julian Elischer [Wed, 10 Jun 1998 20:45:46 +0000 (20:45 +0000)]
Fix for "live inode" panic.
Submitted by: Kirk McKusick <mckusick@McKusick.COM>
Reviewed by: yeah right...

26 years agoAdd my own copyright to this file. The only remnants of NetBSD code here
Doug Rabson [Wed, 10 Jun 1998 20:40:59 +0000 (20:40 +0000)]
Add my own copyright to this file.  The only remnants of NetBSD code here
are in the comments.  As such the NetBSD copyright is included to protect
the valuable intellectual copyright included in those comments.

26 years agoAdd yet another copyright. If some CVS wizard feels like nuking the versions
Doug Rabson [Wed, 10 Jun 1998 20:35:10 +0000 (20:35 +0000)]
Add yet another copyright.  If some CVS wizard feels like nuking the versions
that so offend Jason Thorpe then they can.

26 years agoFix mangled Id keyword.
Doug Rabson [Wed, 10 Jun 1998 20:13:32 +0000 (20:13 +0000)]
Fix mangled Id keyword.

26 years agoAdd Id keyword.
Doug Rabson [Wed, 10 Jun 1998 20:11:16 +0000 (20:11 +0000)]
Add Id keyword.

26 years agoRemove buggy debugging code.
Julian Elischer [Wed, 10 Jun 1998 20:03:16 +0000 (20:03 +0000)]
Remove buggy debugging code.

26 years agoAdd missing copyrights. Thanks to Jason Thorpe for politely noting the
Doug Rabson [Wed, 10 Jun 1998 19:59:41 +0000 (19:59 +0000)]
Add missing copyrights.  Thanks to Jason Thorpe for politely noting the
mistake...