Compare commits

...
2647 Commits
Author SHA1 Message Date
Devin Teske 0b14be7ca1 MFH r144419 (scottl): Add a manual page for the arcmsr driver. 2014-04-30 06:27:23 +00:00
Devin Teske 509fdeb47c Merge r144423 with r144497 in-mind. Glue the arcmsr driver into the
stable/4 branch -- but don't build arcmsr on pc98. This is a direct
commit to stable/4 as arcmsr is already hooked into stable/5 and up.
2014-04-30 06:03:01 +00:00
Devin Teske 59052e0215 Add tested known good version of Areca SATA RAID driver (arcmsr) working
in stable/4. An MFC of slightly later code than that of r144411 (scottl).
This is a direct commit to stable/4.

Obtained from:  Erich Chen <erich at areca com tw>
2014-04-30 05:59:31 +00:00
Devin Teske f46caf19b7 As-per r161293 (jhb), only recognize mfi(4) on i386.
This is a direct commit to stable/4 as all future branches contain
r105818 which made this code obsolete.
2014-04-30 05:26:31 +00:00
Devin Teske bb437b814f Fix lnc0 detection in VMware when PXE booting.
This is a direct commit to stable/4 since lnc(4) was deprecated
and does not exist beyond this branch.

Submitted by:	Paul Meng <[email protected]>
PR:		kern/77982
2014-04-30 05:00:52 +00:00
Devin Teske 1b671f52a1 MF6 r157468: Teach sysinstall about MFI (scottl)
NB: Merged from stable/6/usr.sbin/sysinstall to
stable/4/release/sysinstall (location changed in
between releases 4 and 6).
2014-04-30 04:44:51 +00:00
Devin Teske b571f5ab2f Teach libdisk about mfid devices. This is a direct commit to stable/4
since stable/5 and newer have r105681 which made this code obsolete.
2014-04-30 04:24:21 +00:00
Peter Wemm b870694b60 Revert MFC of r258821 2014-01-08 03:22:42 +00:00
Peter Wemm efa596224a MFC r258821 - fix tcp simultaneous close
PR:             kern/99188
2014-01-07 23:04:06 +00:00
John Baldwin 74886bb640 MF7: If the running kernel has support for shm_open() and shm_unlink() as
system calls (i.e. 8.0+), then invoke the system calls instead of using
open/fcntl/unlink.
2009-06-23 17:44:55 +00:00
John Baldwin f5e048d1f5 MFC: Add a feature_present(3) function which checks to see if a named kernel
feature is present by checking the kern.features sysctl MIB.
2009-06-11 13:07:42 +00:00
John Baldwin 9dcbeb11c2 MFC: Use a clean slate of register state when executing hardware interrupt
handlers to avoid leaking values into the upper 16-bits of general purpose
registers when executing these routines.
2009-03-03 17:16:26 +00:00
John Baldwin ffbe475239 MFC: tzdata2008i 2008-10-29 15:52:22 +00:00
John Baldwin 4d317604cb MFC: tzdata2008h. 2008-10-14 15:22:36 +00:00
John Baldwin dc48addf78 MFC: tzdata2008f. 2008-09-16 15:45:10 +00:00
John Baldwin 46e58ef6d1 MFC: Fix some of the hangs reported with the real mode BTX by disabling
interrupts for software interrupts.
2008-08-15 19:59:18 +00:00
John Baldwin 226a681031 MFC: Initialize the vm86 structure to a known-good state, specifically
eflags.
2008-08-15 19:34:02 +00:00
John Baldwin 2ca6835125 MFC: tzdata2008[cde]. 2008-08-15 16:21:32 +00:00
Paul Saab 0a4886a6a8 MFC: r179705
Add support for the P212, P410, P410i, P411, and P812 HP Smart Array
controllers.
2008-06-10 18:51:05 +00:00
Paul Saab 74be0aa080 Add the missing support for the P800 2008-06-10 18:50:14 +00:00
John Baldwin 78bcf0b937 MFC: rev 1.88
Remove a check that didn't allow > 12 byte CDB's to be issued to
ciss.  This should allow volumes > 2TB to work.
2008-05-19 19:21:14 +00:00
Bruce A. Mah 7908e0a091 MFC: BTX real mode, tzdata2008b. 2008-04-05 18:19:06 +00:00
John Baldwin 59f9eeeaa4 MFC of tzdata2008b 2008-03-25 18:09:20 +00:00
John Baldwin 1e7cd763ac MFC: Use real moder to invoke BIOS routines rather than virtual 86 mode. 2008-03-18 18:28:09 +00:00
John Baldwin 84cc038799 MFC: Fail attempts to use file descriptors larger than SHRT_MAX. 2008-03-17 17:42:26 +00:00
John Baldwin 8a5255bd87 MFC: tzdata2008a 2008-03-10 16:49:43 +00:00
John Baldwin 49a124a1f8 Bah, extra hunk slipped in. 2008-03-05 20:19:00 +00:00
John Baldwin 187acbcf67 MFC: Fix a problem with XID re-use when a server returns NFSERR_JUKEBOX. 2008-03-05 20:17:12 +00:00
Gregory Neil Shapiro 30ec02ece6 MFC: Fix quoting for the dnsbl example -- m4 misparses quoted strings with
commas due to our deconstruction of the line in cf/feature/dnsbl.m4.

     PR:             120038
     Submitted by:   mattijs vreeling

     Revision  Changes    Path
     1.36      +1 -1      src/etc/sendmail/freebsd.mc
2008-02-24 01:03:33 +00:00
Gregory Neil Shapiro be3124b49d MFC: Use better examples (and comment them out for safety).
PR:             118837
     Submitted by:   Matthew Seaman

     Revision  Changes    Path
     1.4       +13 -6     src/etc/mail/access.sample
2008-02-24 01:00:07 +00:00
John Baldwin e7f0a0d747 MFC 1.6: Allow MAXDEP dependants, not MAXDEP-1.
PR:		kern/46368
2008-01-30 16:24:24 +00:00
John Baldwin b4071ca476 MFC of tzdata2007k. 2008-01-07 15:49:35 +00:00
Peter Wemm 35a4f42e05 MFC: rev 1.4: forward compatability with cvs-1.12 repository 2008-01-07 09:11:23 +00:00
John Baldwin 8f915a7e4e MFC: Relax the probe for type #1 PCI config transactions on i386. 2007-12-06 08:28:17 +00:00
John Baldwin d8112c1194 MFC: Change pci_cfgdisable() into a nop for type #1 similar to what other
OSs do.
2007-12-06 08:21:23 +00:00
Bruce A. Mah 8d50548a06 MFC: Fix for tar directory traversal in FreeBSD-SA-07:10.tar. 2007-11-30 05:45:36 +00:00
John Baldwin 7d396c5f9c MFC: Correct a gtar directory traversal vulnerability. 2007-11-29 18:36:09 +00:00
David E. O'Brien 62fec1f9ee Add style.Makefile (refereed to from style.9). 2007-11-26 19:08:42 +00:00
David E. O'Brien ccdbd7e0d3 Sync with HEAD. 2007-11-26 19:05:49 +00:00
Gregory Neil Shapiro 8a5adbca8d Forced commit to .mc files to force creation of new .cf files for mergemaster.
Approved by:    re (kensmith)
2007-11-22 16:20:31 +00:00
Gregory Neil Shapiro 7aa157d6c2 MFC: sendmail 8.14.2 2007-11-11 17:09:13 +00:00
Maxim Konovalov 87801b0733 MFC revs. 1.12, 1.13: kill EOL w/spaces; update to the 1 November 2007
version of this file.
2007-11-05 07:53:06 +00:00
Bruce A. Mah 04a174a048 MFC: tzdata2007h. 2007-10-28 17:04:50 +00:00
John Baldwin 2f788d0a83 MFC of src/share/zoneinfo
MFV: tzdata2007h
2007-10-18 16:47:24 +00:00
John Baldwin 32872008e8 MFC: Use sysctlbyname(3) and some other minor cleanups. 2007-10-18 15:36:41 +00:00
John Baldwin ec89fced40 MFC: Sync whitespace. 2007-10-10 15:05:04 +00:00
John Baldwin 527e04fc0f MFC: Describe the process of importing new zoneinfo data and updating it
in CVS.

PR:		conf/116901
2007-10-09 15:05:26 +00:00
John Baldwin 30e3f23a51 MFC of src/share/zoneinfo
MFV: tzdata2007g
2007-09-18 20:35:40 +00:00
Gregory Neil Shapiro 269dc9dc0a Sort the SENDMAIL_* entries so I can...
MFC: You can never have enough documentation.

     Document the SENDMAIL_ALIASES, SENDMAIL_MAP_SRC, SENDMAIL_MAP_TYPE, and
     SENDMAIL_START_SCRIPT
     .Xr make.conf 5
     variables.
     These are used in
     .Pa /etc/mail/Makefile .

     PR:       conf/40548

     Revision  Changes    Path
     1.140     +40 -0     src/share/man/man5/make.conf.5
2007-06-18 04:36:31 +00:00
David Malone a3ff700424 MFC 1.209: Don't verify UDP IPv4 checksum in-place. 2007-06-10 07:34:28 +00:00
Matt Jacob b37842b29d Fix pointy-hat problem with BUS_DMA_ROOTARG macro that caused problems for sparc64. 2007-05-11 06:29:23 +00:00
Scott Long 0184436feb MFC rev 1.5: Add PCI Ids 2007-05-09 17:33:00 +00:00
Matt Jacob 24c2342e6b MFC to synchronize with -current. The bugs fixed are relatively few and
hopefully the bugs introduved are even fewer.
2007-05-08 17:47:08 +00:00
Peter Pentchev fcc1ae4eef MFC rev. 1.35 - remove MSG_PEEK from the description of the send(2)
syscall; it is only relevant for incoming data.
2007-05-04 09:06:59 +00:00
John Baldwin 8934eeaeb8 MFC: Only treat logical CPUs as hyperthreads if they share the L1 cache. 2007-04-30 16:34:10 +00:00
David Malone 34f02dc702 MFC: Man page improvements and don't put unix domain sockets into the
per-ip limits code.
2007-04-29 19:31:14 +00:00
Gregory Neil Shapiro 5b018e5026 MFC: Bring in sendmail.org code from the future 8.14.2 release which restores
ABI compatibility to users of the libmilter.so shared library.
2007-04-27 03:33:51 +00:00
Gregory Neil Shapiro 4b90ac0954 Forced commit to .mc files to force creation of new .cf files for mergemaster. 2007-04-23 22:30:23 +00:00
Gregory Neil Shapiro 7c1b834640 Include a note in the sendmail 8.14.1 release note regarding the libmilter
update.  Unfortunately, this problem (the need to recompile filters) was
found after the MFC.  The release engineering team has asked for this
instead of doing a full backout of sendmail 8.14 in the RELENG_[456]
branches.

Requested by:	re (bmah)
2007-04-20 05:12:48 +00:00
Gregory Neil Shapiro 3838fb6c0e MFC: Include a note about recompiling ports which use the base libmilter.
Submitted by:	Matthew Seaman
2007-04-14 16:27:16 +00:00
Gregory Neil Shapiro f85da9bc39 MFC: sendmail 8.14.1 2007-04-12 03:13:04 +00:00
cvs2svn d9005664af This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2007-04-09 01:38:53 +00:00
Matt Jacob 25b1ce325a EOL of RELENG_4 support.
MFC of constification, cleanups of pre-7.X compiles, additions of
SYNC_REG memory barriers and so on.
2007-04-01 17:22:03 +00:00
Matt Jacob cbc11e8e84 MFC xpt_print function. 2007-03-11 20:49:21 +00:00
cvs2svn 62656db132 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2007-03-10 02:39:55 +00:00
Bruce A. Mah 54405ba92b Add mention of the EOL status of RELENG_4. 2007-03-07 20:00:32 +00:00
Bruce Evans 4ccc7617da MFC (if_bge.c 1.108, etc., less some style bugs: eliminate one PCI
read per call to bge_start()).

In packet blasting tests using ttcp with tiny udp packets on an A64-3200
with a 64-bit 5701 on a 32-bit 33MHz PCI bus, this gives a speedup
from 347 kpps to 623 kpps.  sendto() has a lot of software overheads,
but even with these the single PCI write per call to bge_start() almost
doubled the per-packet time.  This is partly because the software
overheads are so large that the CPU can't keep up with a Gbps NIC that
can actually get anywhere near Gbps speed for tiny packets (347 kppps
for tiny packets is only about 21% of wire speed).  When the CPU can't
keep up, it gets further behind because it ends up calling bge_start()
at least once for every packet, so any overheads in bge_start() are
not amortized across multiple packets.  Thus the PCI read had an
especially high overhead.

For larger packets, the speedup is closer to the 1.8% claimed in rev.
1.108.

Rev.1.108 claims to eliminate a PCI write but actually eliminates a
PCI read.  The write of the tx product index is not so costly as its
read, and cannot be eliminated completely.  It could be coalesced in
some cases.
2007-02-15 10:33:49 +00:00
John Baldwin 7f041c7963 MF6: Sync with RELENG_6:
- Fix probe for 5708S adapters.
- Use LIST_FOREACH() in bce_ifmedia_upd().
- Compile fixes for BCE_DEBUG.
- Don't reset the chip in bce_watchdog() if we are in the routine because
  of pause frames.
- Fix multicast hash.
2007-02-08 17:22:03 +00:00
John Baldwin 25b9a27111 MFC: Don't read more than the given 'len' bytes from the 'big' string. 2007-02-01 19:11:25 +00:00
John Baldwin 85d7ae7691 MFC: Use malloc() rather than alloca() to allocate storage for old values
to avoid a segfault on boxes with lots of active TCP connections where
net.inet.tcp.pcblist can return a size bigger than alloca() can satisfy.
2007-01-22 20:37:37 +00:00
Markus Brueffer a2f5e3465f MFC rev. 1.83:
Fix a buffer overflow iff USB_DEBUG is set, hw.usb.ums.debug is > 5 and the
  total size of all input reports is < 6.

Approved by:	emax (mentor)
2007-01-21 02:27:40 +00:00
John Baldwin b17efbe326 MFC: Warn that the swap zone is exhausted before the machine deadlocks.
Reviewed by:	alc
2007-01-17 20:17:06 +00:00
Xin LI 4f12a58a49 The pc98 porting team's copyright year should be 2003, when
5.0-RELEASE, the first release including pc98 is released.

Noticed by:	hrs
Confirmed by:	nyan
2007-01-10 01:29:46 +00:00
David E. O'Brien c87c98f745 MFC: Welcome to 2007! 2007-01-01 03:03:50 +00:00
Matt Jacob 9d96a57785 RELENG_6 (5, 4) change to recognize 6 port NetMos
PR:             58953
Submitted by:   Milan Obuch
Reviewed by:    marcel
2006-12-16 02:41:00 +00:00
Alexander Leidinger 1b17934139 Don't display the status of the SMART bits when talking about the security
feature (should safe a heart attack or two when seeing the security feature
enabled when it isn't / shouldn't be).

This bug is not present in any more recent RELENG_X (the code is
different by an order of magnitude), so no MFC.
2006-12-10 13:35:41 +00:00
John Baldwin e11caf6c62 Sync with RELENG_6 including updating to version 6.2.9 of the driver. 2006-12-08 16:33:32 +00:00
John Baldwin 4f088aea53 Sync with RELENG_6 including:
- Use bus_dmamap_load_mbuf_sg() for tx packets and associated stability
  fixes.
- Kick the firmware sooner so IPMI works.
2006-12-07 16:30:35 +00:00
John Baldwin 1b4e415f7b Sync with RELENG_6 including:
- Add support for the 5752 and 5780 phys.
- Handle 10/100 only "bge" phys correctly.
- MFC some parts of 1.6 that among other things fix use of non-autoneg
  media with bce(4).
2006-12-07 16:28:44 +00:00
John Baldwin b8d95ea3aa Regen. 2006-12-07 16:25:53 +00:00
John Baldwin 5ed46b36d1 Add BCM5752 and BCM5780. 2006-12-07 16:25:31 +00:00
John Baldwin a49bd5303f Reduce diffs to RELENG_6:
- Use bus_dmamap_load_mbuf_sg() rather than a private simple callback in
  conjuction with bus_dmamap_load_mbuf().
- Use bus_alloc_resource_any().
- Remove bogus BUS_DMA_ALLOCNOW flag.
2006-12-06 22:03:13 +00:00
John Baldwin ec859b3569 Reduce diffs with RELENG_6:
- Use bus_dmamap_load_mbuf_sg() for setting up rx descriptors.
- Fix a few whitespace nits.
2006-12-06 22:01:46 +00:00
John Baldwin 386fb8a2b0 Add an MI bus_dmamap_load_mbuf_sg() that wraps around
bus_dmamap_load_mbuf() using a simple callback to make it easier to
keep drivers in sync between 4.x and 6.x.

Not objected to by:	scottl
2006-12-06 22:00:46 +00:00
Bruce A. Mah 48055e9d11 MFC: SA-06:25.kmem, SA-06:26.gtar. 2006-12-06 20:59:07 +00:00
Bruce A. Mah 9a6cf22d4b MFC: SA-06:25.kmem, SA-06:26.gtar. 2006-12-06 20:14:16 +00:00
Colin Percival ed4564dbef Correct a signedness bug which allowed members of the operator
group to read kernel memory. [1]

Disable handling of GNUTYPE_NAMES tar file entries by default,
since they can be used to extract files outside of the cwd. [2]

Security:	FreeBSD-SA-06:25.kmem [1]
Security:	FreeBSD-SA-06:26.gtar [2]
2006-12-06 09:17:09 +00:00
John Baldwin 9ed9ca9773 Add support for making mfi and mfid devices. 2006-11-28 21:59:47 +00:00
John Baldwin 540565e54d Assign major numbers 177 and 178 to mfi(4) rather than using two majors
reserved for local devices (200 and 201).
2006-11-28 19:05:06 +00:00
John Baldwin 180ddf14f2 Document major numbers used for amr(4). 2006-11-28 19:03:53 +00:00
Yoshihiro Takahashi fb4a042122 MFi386: revision 1.385.2.35. 2006-11-09 04:04:41 +00:00
John Baldwin 1445e5a326 Ignore I/O APICs that aren't really there (return 0xffffffff when you try
to talk to them) if they aren't listed as the destination of any interrupts
in the MP Table instead of panic'ing when we fail to set the APIC ID.  The
new APIC code in 5.x+ has a similar check.
2006-10-25 14:44:29 +00:00
John Baldwin b0e60e6f78 MFC: uthread fixes for select timeout and signal handling. 2006-10-23 20:11:31 +00:00
Bruce Evans 5973402762 MFC: parts of the following, so that atomic.h in RELENG_4 can be
compiled by RELENG_6's compiler:
1.26: pass constraints as a parameter since chars and shorts need
      different ones.
1.27: fix pedantic syntax errors.
1.40: don't use the '+' constraint so much, since gcc-3.3.mumble broke
      it for non-register operands.

1.40 essentially backs outs 1.22, and also avoids using the "0"
constraint, and also remumbers asm parameters.  1.22 had already been
merged to RELENG_4 in 1.9.2.2 in order to fix compiling with -O0 with
RELENG_4's compiler.  This turned out to be not future-proof.  I think
the "0" constaint would work with gcc-3, but not using it is a better
way to fix compiling with -O0 in RELENG_4.  Problems in this area go
back to gcc-2.early or gcc-1 when the "0" and "+" constraints didn't
exist and there were no correct alternatives for them.  1.9.2.1
unnecessarily used an incorrect alternative that happened to work
except for -O0.

This change is essentially null when compiled by RELENG_4's compiler.
For GENERIC, LINT and one other configuration, it changes no object
files except atomic.o compiled with -O0; for the latter it gives
different register allocation and some unused instructions.
2006-10-22 07:00:07 +00:00
Bruce Evans dca0728463 Remove special support for gcc <= 2.8 so that the next change is more
readable.  gcc-2.8 was last sighted in FreeBSD-3 and wasn't the system
compiler in any version of FreeBSD-4.  The next change will improve
portability and might even work without ifdefs for gcc-2.8.
2006-10-21 11:09:50 +00:00
Ruslan Ermilov d97ff0c8ea - Finish the incomplete MFC of 1.11 in 1.6.2.3 (newsletter V-6).
- MFC: 1.14 (newsletter V-11), 1.15 (newsletter V-12).
2006-10-18 09:13:47 +00:00
Bruce A. Mah 992cb9f884 MFC: tzdata2006n. 2006-10-14 15:22:24 +00:00
Doug Barton 63b6904a7f MFC tzdata2006n 2006-10-13 17:51:42 +00:00
Xin LI 9009688c8d MFC rev. 1.16 (iedowse):
Add missing parentheses to fix a segmentation fault that is easily
reproducable with `jot -s " " 400 1 | column -t'. The bug was present
in the the original CSRG 'column -t' added in 1989.
2006-10-08 02:26:53 +00:00
Bruce A. Mah 1a68479300 MFC: SA-06:22.openssh. 2006-10-08 00:28:24 +00:00
Bruce A. Mah 3df66645f8 New errata: SA-06:23.openssl. 2006-10-07 15:35:17 +00:00
Bruce Evans 1b34ff224d Fail the probe instead of panicing if the memory address is 0. The
memory address can be 0 only with certain misconfigurations.  We don't
try to detect misconfigurations of the kernel config file, but IIRC the
panic was caused by a hardware misconfiguration like the following:
- a cy PCI card physically present but with a hardware conflict
- then the cy PCI probe is called first but fails due to the conflict
- no cy ISA card present
- the cy ISA probe is called.  Normally this uses the nonzero memory
  address in the config file and just fails when there is no cy ISA
  card present, but when there is a cy PCI card present, the ISA memory
  resource is apparently lost.  The (non-)presence of the cy ISA card
  probably makes no difference here.
2006-10-06 14:16:20 +00:00
Bruce Evans 2bce92ca8d Fixed overflow at 2G for writing clock frequencies using sysctls.
Reads worked correctly using the IU format.  Writes only supported
signed integers using the CTLTYPE_INT flag.  sysctl(1) parses args for
CTLTYPE_INT using (int)strtol() and has no range checking of course,
so read-write of frequencies larger than INT_MAX always blindly corrupts
the frequency to INT_MAX (2G-1).

This keeps writing of TSC frequencies working up to 4GHz.
2006-10-06 13:24:16 +00:00
Matt Jacob 11972af438 Add REPORT_LUNS definition. 2006-10-05 17:15:30 +00:00
Matt Jacob 2e61752fe6 MFC the current state of mpt. 2006-10-05 16:00:08 +00:00
Bruce Evans 7ac6b8a89a MFC (1.519: fix a syntax error (no statement after a label)) so that this
file in RELENG_4 can be compiled by gcc in -current again.
2006-10-03 18:19:17 +00:00
Bruce Evans 60c653da58 MFC (1.34: fix a syntax error (no statement after a label)) so that this
file in RELENG_4 can be compiled by gcc in -current again.
2006-10-03 18:13:49 +00:00
Bruce Evans 2bc31b0b50 MFC (1.13: fix a syntax error (no statement after a label)) so that this
file in RELENG_4 can be compiled by gcc in -current again.
2006-10-03 18:04:55 +00:00
Bruce Evans 22c75a1a6c Fixed a syntax error (no statement after a label) so that nfs in RELENG_4
can be compiled by the -current gcc again.
2006-10-03 17:53:03 +00:00
Simon L. B. Nielsen c704d5aba4 Correct multiple vulnerabilities in OpenSSH.
Security:	FreeBSD-SA-06:22.openssh
2006-09-30 19:57:15 +00:00
Colin Percival 0cf1d7c6b1 Correct problem in the 2006-09-28 patch concerning the handling of
excessively large DH moduli.

Reported by:	Steve Kiernan (Juniper SIRT)
Security:	FreeBSD-SA-06:23.openssl
2006-09-29 13:46:23 +00:00
Bruce A. Mah f2804129c0 MFC: SA-06:21.gzip, SA-06:23.openssl. 2006-09-28 15:49:13 +00:00
Bruce A. Mah 5747982878 New errata: SA-06:21.gzip, SA-06:23.openssl. 2006-09-28 15:17:08 +00:00
Colin Percival 1a6bbf9e63 Correct multiple vulnerabilities in crypto(3).
Limit the size of public keys used in order to protect applications
from a denial of service via insane key sizes.

Security:	FreeBSD-SA-06:23.openssl
2006-09-28 13:05:59 +00:00
Bruce M Simpson 851dbecea7 Add a sysctl net.link.ether.bridge.hwassmask which lets administrators
mask hardware checksums on bridge interface members.

PR:		kern/57100
2006-09-23 19:27:39 +00:00
Bruce M Simpson 9999550269 Add a sysctl net.link.ether.bridge.hwassmask which lets administrators
mask hardware checksums on bridge interface members.

PR:		kern/57100
2006-09-23 09:40:02 +00:00
Simon L. B. Nielsen 682a090cae Correct multiple vulnerabilities in gzip(1).
Security:	FreeBSD-SA-06:21.gzip
2006-09-19 14:11:35 +00:00
Matt Jacob 769ba89464 MFC 1.163- give VMware disks min/max tags in their quirk. 2006-09-15 20:48:18 +00:00
Peter Wemm 16faf54439 MFC: rev 1.21: fix return of uninitialized data from malloc(). Could
cause readdir() to fail or give duplicate results or other strange things.
2006-09-12 22:27:11 +00:00
Bruce A. Mah 475800b7cf MFC: SA-06:19.openssl. 2006-09-12 16:47:44 +00:00
Remko Lodder d045e0d4ae Add FreeBSD-SA-06:19.openssl to the Errata. 2006-09-06 22:57:02 +00:00
Simon L. B. Nielsen bbc07a0c27 Correct incorrect PKCS#1 v1.5 padding validation in crypto(3).
Security:	FreeBSD-SA-06:19.openssl
2006-09-06 21:24:04 +00:00
John Baldwin 3289b92eea Sync up with most of the changes to RELENG_6 including using bus_dma,
new PCI IDs, lots of style changes, suspend/resume methods.  Things not
included include the INTR_FAST + taskqueue changes, link flapping
workarounds in em_ioctl(), and jumbo frame fixups for architectures that
require strict alignment.
2006-09-05 19:48:10 +00:00
Bruce A. Mah 610cad552e Close off a tag properly. This problem has existed since I first
created this file way back in April 2001 (on all other active branches
the section containing this tag has been obsoleted so it was only a
RELENG_4 problem).

I have no idea how this file ever compiled before, but my doc
toolchain suddenly started complaining about it.
2006-08-31 00:51:21 +00:00
Bruce A. Mah 75406f5d17 New errata: SA-06:18.ppp. 2006-08-31 00:39:10 +00:00
Bruce A. Mah 2a8f4eae06 MFC: SA-06:18.ppp. 2006-08-29 22:41:28 +00:00
Colin Percival e88e01fad7 Correct buffer overflow in the handling of LCP options in ppp(4)
Security:	FreeBSD-SA-06:18.ppp
2006-08-23 22:06:08 +00:00
Gregory Neil Shapiro 98d58fbac8 sendmail has been upgraded from 8.13.6 to 8.13.8 2006-08-23 03:48:05 +00:00
Gregory Neil Shapiro 87b155eb66 Forced commit to .mc files to force creation of new .cf files for mergemaster. 2006-08-23 03:40:18 +00:00
Gregory Neil Shapiro e7886e684f MFC: sendmail 8.13.8 2006-08-23 03:39:12 +00:00
David Malone 04e78af938 MFC: 1.300 When we receive an out-of-window SYN for an "ESTABLISHED"
connection, ACK the SYN as required by RFC793.
2006-08-21 12:43:24 +00:00
David Malone 03e5be2d12 MFC: 1.27 Avoid unwanted sign extension of indexed byte load in bpf code. 2006-08-21 12:42:52 +00:00
David Malone 5065ebddc7 MFC: 1.170 Give the same timestamp for each packet to all BPF listeners. 2006-08-21 12:42:25 +00:00
Matt Jacob 2cafc28e85 MFC 1.120: Fix RELENG_4 code version- isp_roles wasn't getting
initialized so it ended up defaulting to ISP_ROLE_NONE. My testing
hadn't caught it because I was deliberatly setting role via ioctl.
2006-08-21 00:48:37 +00:00
Maxim Konovalov e2a91f9c6f MFC rev. 1.14: simple strcpy/strcat replacement. 2006-08-20 20:31:10 +00:00
John Baldwin 29edcdadb0 Make the 'mfi' module i386 only on 4.x since it doesn't compile cleanly
on 4.x currently and there is very little chance that any alphas will ever
have an mfi(4) card.
2006-08-14 21:08:20 +00:00
Yaroslav Tykhiy f8f52c191c MFC rev. 1.57:
Do not forget to increment the input line counter
  when reading a word spanning multiple lines.
2006-08-06 10:47:45 +00:00
John Baldwin 290b4174ac Bah, fix the 1.5 MFC to actually work on 4.x.
Pointy hat to:	jhb
2006-07-20 20:16:16 +00:00
John Baldwin f2e74f72ea MFC: Chain the bus_dmamap_load() calls when mapping a command with a data
CCB instead of using BUS_DMA_NOWAIT().  Since bus_dmamap_load() doesn't
support BUS_DMA_NOWAIT in 4.x, this could result in data corruption if
sufficient bounce pages weren't available.

Submitted by:	scottl
2006-07-20 20:07:37 +00:00
John Baldwin 75812123d4 MFC revs 1.4 and 1.5:
- Removed updates to if_ibytes, if_obytes, if_imcasts, and if_omcasts.
- Match code in 6.x and HEAD for handling excessively fragmented mbufs for
  TX.
- Handle ifconfig up when HW is down.
2006-07-20 18:54:15 +00:00
John Baldwin 29911091d0 MFC: Probe volumes synchronously during boot. 2006-07-18 20:01:06 +00:00
Matt Jacob c795d37c9c MFC 1.117: don't claim to support the 2422 yet. 2006-07-14 05:19:17 +00:00
Matt Jacob 19b60149ee MFC: Fixes related for VMWare 2006-06-27 18:13:23 +00:00
Matt Jacob e14dcec7c2 MFC 1.162: Grumble. VMWare ESX and VMWare WorkStation have *slightly*
different inquiry data (pointlessly different I might add). Pick
the common parts.
2006-06-26 05:42:54 +00:00
Matt Jacob b5b1e543a8 MFC 1.161: VMware disk volumes are only on LUN 0, and
some VMware HBAs have known bugs with commands sent to
other than LUN 0.
2006-06-25 02:03:18 +00:00
John Baldwin fd58dfe91a Bah, include Makefile for bce(4) module.
Reported by:	Scott Allendorf <scott-allendorf AT uiowa dot edu>
2006-06-23 21:10:40 +00:00
Bruce A. Mah a57f28ddf7 MFC: SA-06:17, mfi(4), mpt(4) update, bce(4). 2006-06-23 18:38:03 +00:00
John Baldwin 1b93261e83 Regen. 2006-06-23 16:48:18 +00:00
John Baldwin 99a948a16f MF6: Add the bce(4) driver. Unlike the driver in 6.x and later this driver
does not support jumbo frames or hardware vlan tagging.
2006-06-23 16:47:46 +00:00
Paul Saab 4ec0843a7b Add mfi without the Linux ioctl layer. 2006-06-22 15:22:05 +00:00
cvs2svn 81f87079dd This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2006-06-20 23:08:36 +00:00
Matt Jacob 1f3727d650 MFC 1.34: support for FC919X 2006-06-17 12:48:27 +00:00
John Baldwin e78df6e86c MFC 1.27: Fix a typo when setting wirespeed. 2006-06-15 20:57:05 +00:00
Matt Jacob 4b50c2e075 MFC 1.24- add ability to reset individual targets and negotiate specific
rates.
2006-06-14 19:47:22 +00:00
Hiroki Sato 01780d930d Document FreeBSD-SA-06:17.sendmail. 2006-06-14 16:36:08 +00:00
Colin Percival 918ccd0822 Correct a bug in the handling of multipart messages by sendmail(8)
which can allow a malformed message to crash a sendmail queue
processing process.

Security:	FreeBSD-SA-06:17.sendmail
2006-06-14 16:01:06 +00:00
Matt Jacob ff5211e6c8 MFC -current mpt driver to support FC target mode and SAS HBAs plus
probably correct U320 negotiations. MFC sequential probe scan code
top support htis.
2006-06-08 17:55:15 +00:00
cvs2svn c44f3af96c This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2006-06-05 22:25:50 +00:00
Matt Jacob fd10f4d70b MFC: allow this to compile cleanly under RELENG_4 2006-06-03 07:21:09 +00:00
Matt Jacob 4a64f8794a MFC: current state in RELENG_6 && -current as of 5/31/06. Lots of formatting
changes and type rototilling. Some genuine bug fixes tho.
2006-06-01 07:31:44 +00:00
Matt Jacob 9f145c53b7 MFC 2300 firmware 2006-06-01 07:18:26 +00:00
Bruce A. Mah 5c50da438d New errata: SA-06:16.
While here, retarget advisory URLs (and one or two others) to use
security.FreeBSD.org.
2006-06-01 04:56:53 +00:00
Bruce A. Mah 7ce45f14d7 Swing URLs to security advisories over to security.FreeBSD.org. 2006-05-31 23:49:51 +00:00
Bruce A. Mah b6ce60be7c MFC: SA-06:16.
Note:  We should swing the URLs for all the older security advisories
mentioned here over to the new location on security.FreeBSD.org.
2006-05-31 23:44:25 +00:00
Colin Percival 3b192f61b0 Correct a bug in the handling of backslash characters in smbfs which can
allow an attacker to escape from a chroot(2).

Security:	FreeBSD-SA-06:16.smbfs
2006-05-31 22:34:32 +00:00
cvs2svn 1823be123d This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2006-05-29 20:34:29 +00:00
John Baldwin 42d2722235 When routing a PCI interrupt across a PCI-PCI bridge that is not listed
in the MP Table, use the slot (aka device) of the _child_ PCI device
on the child bus of the PCI-PCI bridge instead of the slot of the
PCI-PCI bridge on the parent bus of the bridge.
2006-05-23 17:59:06 +00:00
Paul Saab 0f6b7809d4 Protect amr_wait_command under splbio to avoid a missed wakeup. 2006-05-16 07:03:32 +00:00
Tai-hwa Liang 4f301220e8 MFC: (1.4, 1.5) Allow the gif module to be built without IPv6 support when
NOINET6 is defined.
2006-05-15 23:27:00 +00:00
Maxim Konovalov 78f1625b44 MFC revs. 1.29, 1.30, a part of 1.36: the .Nm utility,
filesystem -> file system, move rcs id tag.

PR:		docs/66264
Submitted by:	Michel Lavondes
2006-05-15 10:03:09 +00:00
Tor Egge d1f353e99d MFC part of revision 1.436 missed in MFC to revision 1.250.2.24. If page
table allocation failed then the allocation should be retried.

Submitted by:	ps
2006-05-03 00:51:02 +00:00
David Malone 41808ed937 MFC: 1.37
Stop dump reading off the end of its inode bitmaps when it finds an
invalid inode number in a directory entry.
2006-05-02 19:09:22 +00:00
David Malone ea1fe38e6a MFC: v1.45, v1.44
Make port 37 time work on machines with 64 bit longs. Also merge a couple
of updates to comments.
2006-05-02 18:32:43 +00:00
Julian Elischer eb96ff8d0a MFC: Add capacity to forward messages to an arbitrary UDP port,
not just to 514.
2006-05-01 23:46:12 +00:00
Joe Marcus Clarke e43c8019c3 MFC:
Fix a file descriptor leak in cam_lookup_pass() when the ioctl to find
the passthru device fails.

Approved by:	re (scottl)
2006-05-01 00:21:47 +00:00
Colin Percival 5826d4c070 MFC: Correct a local information leakage bug affecting AMD FPUs.
Security:	FreeBSD-SA-06:14.fpu
2006-04-19 07:02:43 +00:00
Florent Thoumie 767f330119 - Add missing libdata/ldconfig{,32} directories to BSD.local.dist.
- Bump __FreeBSD_version so that misc/ldconfig_compat can make good use
of it.

Approved by:	cperciva (mentor)
2006-04-18 15:33:32 +00:00
Maxim Konovalov 0764d34a8f MFC rev. 1.112 by mdodd: bfp could be NULL.
PR:		kern/76410
2006-04-14 10:38:49 +00:00
Gregory Neil Shapiro 0ce2809f6a Forced commit to bump the $FreeBSD$ version so mergemaster merges
/etc/mail/freebsd.cf and /etc/mail/freebsd.submit.cf.

PR:		conf/95634
Submitted by:	Rostislav Krasny
Approved by:	re (scottl)
Obtained from:	keramida
2006-04-13 04:08:22 +00:00
Gregory Neil Shapiro 1af9ce6a59 MFC: Update sendmail 8.13.4 -> 8.13.6 in release note entry. 2006-03-29 07:58:06 +00:00
Gregory Neil Shapiro 0b5898868b MFC: Add new libsm file from sendmail 8.13.6 2006-03-29 07:43:23 +00:00
Gregory Neil Shapiro 77e0466b7d MFC: sendmail 8.13.6 2006-03-29 07:43:06 +00:00
Hajimu UMEMOTO c491b54569 MFC 1.55: fill ai_canonname field for numeric hostname, by the given
hostname.  follow new recommendation in RFC3493.

PR:		standards/94995
2006-03-27 16:47:17 +00:00
cvs2svn f37f9dbb4d This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2006-03-22 16:40:05 +00:00
Colin Percival 6159e829e8 Add missing code needed for the detection of IPSec packet replays. [1]
Correctly identify the user running opiepasswd(1) when the login name
differs from the account name. [2]

Modify timeout handling logic in sendmail(8) to correct a reported
signal handling race condition. [3]

Security:	FreeBSD-SA-06:11.ipsec [1]
Security:	FreeBSD-SA-06:12.opie [2]
Security:	FreeBSD-SA-06:13.sendmail [3]
2006-03-22 16:02:49 +00:00
Joe Marcus Clarke f5883a9bfe MFC:
Add missing libdata/ldconfig[32] entries.

Approved by:	re (scottl)
2006-03-14 22:13:13 +00:00
Roman Kurakin a008bf8d24 MFC:
Add support for Cronyx Tau32-PCI adapters.
2006-03-12 22:56:56 +00:00
John Baldwin 42cc9a8f91 Revert the previous change. Even though Intel insists that the behavior
this change restores is wrong, it turns out the "proper" method is worse
in practice for existing machines.  This is probably due to the fact that
using fixed priority with a physical broadcast destination effectively
broadcasts interrupts to all CPUs.  Fixing that would require a lot more
work than just restoring the previous "incorrect" behavior and would
probably be riskier as well.

PR:		kern/94160
Reported by:	Richard Wiwatowski rjwiwat at internode dot on dot net
2006-03-09 16:23:15 +00:00
Roman Kurakin 31f0c58c8e MFC:
Add support for Cronyx Tau32-PCI adapters.
	Connect to the system.
2006-03-04 23:01:39 +00:00
Roman Kurakin 7ad0795efc MFC:
Add support for Cronyx Tau32-PCI adapters.
2006-03-04 22:55:48 +00:00
Roman Kurakin b7615bd254 MFC:
Add support for Cronyx Tau32-PCI adapters.
2006-03-04 22:45:14 +00:00
cvs2svn c1dc19accd This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2006-03-03 18:42:10 +00:00
John Baldwin ae07094931 Use the fixed delivery mode rather than low priority for I/O APIC
interrupts since low priority delivery mode can only be used logical
destinations and 4.x and earlier always use only physical destinations.
2006-03-01 16:26:51 +00:00
Simon L. B. Nielsen a17473bb18 Correct a remote kernel panic when processing zero-length RPC records
via TCP.

Security:	FreeBSD-SA-06:10.nfs
Approved by:	cperciva
2006-03-01 14:21:56 +00:00
Ian Dowse 6f2020ba66 Fix an old mis-merge in 1.26.2.11 that invoked usb_cold_explore()
too late in the boot process - "cold" is guaranteed to be false at
SI_SUB_INT_CONFIG_HOOKS, but it was being KASSERTed as true. With
usb_cold_explore() now running at the correct time, it does need
to use polling mode and splusb(), so back out 1.26.2.14.

PR:		usb/81524
Tested by:	Eugene Grosbein
2006-02-28 09:32:08 +00:00
Hajimu UMEMOTO ef2dc9b352 MFC 1.63: avoided the use of purged address structure when an
address became invalid in nd6_timer().
2006-02-14 16:35:13 +00:00
Hajimu UMEMOTO 0a75c3bd03 MFC 1.168: Never select the PCB that has INP_IPV6 flag and is bound
to :: if we have another PCB which is bound to 0.0.0.0.  If a PCB has
the INP_IPV6 flag, then we set its cost higher than IPv4 only PCBs.
2006-02-11 09:10:53 +00:00
Hajimu UMEMOTO 62be4a437d MFC 1.56: make IPV6_V6ONLY socket option work for UDP as well. 2006-02-09 03:41:51 +00:00
Ruslan Ermilov d6f03ebe01 MFC: Make multicast routing rolling on bge's. 2006-02-01 10:15:12 +00:00
Diomidis Spinellis 0d94a803aa MFC: Return EINVAL if the tv_usec part of the utimes(2) arguments
contains incorrect fractional second values (outside the range
0-999999).
Prior to this change users could create files with values outside
that range.  Moreover, on 32-bit machines tv_usec offsets larger than
4.3s would result in an unnormalized AND wrong timestamp value,
due to overflow.
2006-01-22 13:41:15 +00:00
Diomidis Spinellis 8bb467bd3e MFC change 2005-09-19 10:11:47 UTC
Setting .nofinger will not hide you from root.
2006-01-22 11:56:15 +00:00
Diomidis Spinellis ea664c2004 MFC 1.47: Document the TMPDIR environment variable. 2006-01-22 11:41:18 +00:00
Ruslan Ermilov 5ed24e50dd MFC: polling(4) support for bge(4). 2006-01-17 10:41:06 +00:00
Pav Lucistnik ca951584be MFC 1.34: mention the size of the additional header 2006-01-14 12:13:04 +00:00
Ed Maste 6d08372564 Merge device_pager.c:1.69 from HEAD to RELENG_4:
The addition of a locking assertion to vm_page_zero_invalid() has
  revealed a long-time bug: vm_pager_get_pages() assumes that m[reqpage]
  contains a valid page upon return from pgo_getpages().  In the case of
  the device pager this page has been freed and replaced by a fake page.
  The fake page is properly inserted into the vm object but m[reqpage] is
  left pointing to a freed page.  For now, update m[reqpage] to point to
  the fake page.

  Submitted by:   tegge

Approved by:	alc, rwatson (mentor)
2006-01-12 19:56:58 +00:00
Colin Percival 613d8db2b9 Correct insecure temporary file usage in texindex. [06:01]
Correct insecure temporary file usage in ee. [06:02]
Correct a race condition when setting file permissions, sanitize file
names by default, and fix a buffer overflow when handling files
larger than 4GB in cpio. [06:03]

Security:	FreeBSD-SA-06:01.texindex
Security:	FreeBSD-SA-06:02.ee
Security:	FreeBSD-SA-06:03.cpio
2006-01-11 08:06:47 +00:00
Shunsuke Akiyama c7d8542358 Regenerate after updating usbdevs. 2006-01-06 15:16:41 +00:00
Florent Thoumie 6105148405 Fix latest commit, some vendor ids and product ids were missing.
Approved by:	pjd (implicit)
Pointyhat to:	self
2006-01-05 16:54:18 +00:00
Florent Thoumie 1c9096f353 MFC:
Add a hid blacklist quirk.

      src/sys/dev/usb/usbdevs: rev 1.240
      src/sys/dev/usb/usb_quirks.c: rev 1.45
      src/sys/dev/usb/uhid.c: rev 1.78
      src/sys/dev/usb/usb_quirks.h: rev 1.20

Approved by:	pjd
2006-01-05 16:46:10 +00:00
Paul Saab 7e7b44fd4a MFC:
revision 1.67
It seems ciss should ignore overrun and underrun on a SCSI INQUIRY
command.  This fixes some weird booting issues on newer versions
of the firmware on the MSA20.

revision 1.66
Update PCI ids to add the E200, E200i, P400, and P400i storage
controllers.  Remove the E400 since it is not a real product.

revision 1.65
There's no reason to check the valence.  This allows ciss to work
on the P600.
2005-12-31 06:28:57 +00:00
Diomidis Spinellis df0e9fe5a4 MFC 1.28
Bug fix: a numeric flag specification in the substitute command would
cause the next substitute flag to be ignored.
While working at it, detect and report overflows.
2005-12-25 16:40:03 +00:00
Diomidis Spinellis 4a5574a12e MFC 1.19
Use the appropriate error function for displaying the error,
instead of printing it to stdout.
2005-12-25 16:26:40 +00:00
Maxime Henrion f97aadf12e MFC r1.252:
date: 2005/12/12 14:30:13;  author: mux;  state: Exp;  lines: +1 -0
  Add the device ID of fxp(4) NICs found in Sony Vaio VGN-TX1XP laptops.
2005-12-16 03:26:37 +00:00
Gleb Smirnoff a6c634a44e Fix a typo that caused a panic in a quite rare case: when a packet was
policy routed by ipfw(4) to local IP address, and the previous destination
of the packet was reachable via an interface with checksum offloading
capabilities.

Not applicable to RELENG_5, RELENG_6 and HEAD.

Submitted by:	Mihail Balikov <misho interbgc.com>
2005-12-10 14:32:55 +00:00
Ruslan Ermilov c1026b37db MFC: Fix memory leak. 2005-12-09 07:13:06 +00:00
John Baldwin 075cf5a152 MF5: Always read RTC_IN to clear any pending interrupt when writing to
RTC_STATUSB.

Tested by:	Uwe Doering gemini at geminix dot org
2005-11-28 19:03:16 +00:00
Robert Watson e66f54b279 Add several missing calls to splx() in error cases associated with
calling ether_ipfw_chk() from the ethernet output code.

PR:		57985
Reported by:	Scot Loach <sloach at sandvine dot com>
2005-11-27 18:37:15 +00:00
Kirill Ponomarev e9ec5207c8 MFC: pkg_info.1:1.55
date: 2005/11/23 10:31:59;  author: krion;  state: Exp;  lines: +4 -1
  Document PKG_PATH enviroment variable.

  Prodded by:     Mark Andrews <Mark_Andrews AT isc DOT org>
2005-11-26 20:58:43 +00:00
Hajimu UMEMOTO b911500d1f MFC 1.55: The KAME's getipnodebyaddr() code honor the
MULTI_PTRS_ARE_ALIASES define also, but res_config.h was not
included into libc/net/name6.c.  So getipnodebyaddr() ignored
the multiple PTRs.
2005-11-18 02:38:45 +00:00
Pav Lucistnik 8aa540a47c Add new ports-net-im collection. 2005-11-09 10:16:26 +00:00
John Polstra 906987067d MFC 1.24: Fix an erroneous description of the file descriptor
assignments for the "~C" command.
2005-11-04 17:33:21 +00:00
Wilko Bulte 6008dfd2bc Small changes in the AlphaStation 200 and PC164 area. PC164 SRM does
not work with 53C896 SCSI chips.

Submitted by: Owen Mann <[email protected]>
2005-11-02 22:23:27 +00:00
Colin Percival 14b1ff25f5 Correct a man-in-the-middle SSL version rollback vulnerability.
Security:       FreeBSD-SA-05:21.openssl
2005-10-11 11:52:01 +00:00
Hajimu UMEMOTO d5e2470049 MFC 1.16: stop RFC 4193 address on the outside interface. 2005-10-10 09:52:01 +00:00
Doug Barton 9906dbfbac MFC through rm.c 1.53, rm.1 1.38, and Makefile 1.18.
This includes the recent change to improve handling of the -P flag
on read-only files, addition of the -I option for better handling
of recursive deletes, a test for removal of / in the argument list,
removal of clause 3 from the BSD license, some small code cleanups,
and related mdoc and comment changes and improvements.

The Makefile change removes a spurious SRCS=, and WARNS?=
2005-10-08 17:46:12 +00:00
John Baldwin 208191f1b1 Enable BWX for the Alcor2 chipset treating it like the Pyxis. This is not
an MFC as the code in 5.x and beyond is rather different.

Submitted by:	Paul V. Bolotoff walter at alasir dot com
2005-09-30 13:25:30 +00:00
Xin LI 5a66f48bd9 MFC 1.64: Restore a historical ufs_inactive behavior that respect
the RDONLY option, so subsequent call of UFS_TRUNCATE (ffs_truncate)
would not panic the system.  This fixes a panic that can happen
when mounting a corrputed filesystem read-only, and reading data
from it.

Reviewed by:	mckusick
2005-09-27 17:05:46 +00:00
Kirill Ponomarev e9bc9afe9c MFC: 1.20
date: 2005/09/24 21:41:47;  author: krion;  state: Exp;  lines: +1 -1
  Do not bitch about bsdpan modules not having origin.

  Based on PR:    bin/82269
  Submitted by:   Steven Hartland <killing at multiplay dot co dot uk>
  MFC after:      3 days
2005-09-27 07:56:03 +00:00
Kirill Ponomarev 78e71c01b7 MFC: 1.39
date: 2005/09/24 19:41:56;  author: krion;  state: Exp;  lines: +1 -1
  Remove '\n' since it's redundant in case if file doesn't exist while
  running 'pkg_info -g'

  Based on PR:    bin/42609
  Submitted by:   Jeff King <peff-freebsd at peff dot net>
  MFC after:      3 days
2005-09-27 07:54:08 +00:00
Robert Watson c7d769bfbd Merge rc.conf:1.260, rc.conf.5:1.265, and notionally kerbero:1.5 from
HEAD to RELENG_4:

  Add a new rc.conf entry, kerberos5_server_flags, which allows the
  administrator to specify additional start-up flags to the Kerberos
  5 Authentication Server.
2005-09-25 19:11:08 +00:00
Tor Egge bd1c32850b MFC: Retain generation count when writing zeroes instead of an inode to disk.
Don't free a struct inodedep if another process is allocating saved
     inode memory for the same struct inodedep in
     initiate_write_inodeblock().

     Handle disappearing dependencies in softdep_disk_io_initiation().
2005-09-20 22:37:54 +00:00
Gleb Smirnoff 8ee23ab4f5 MFC typo fix from 1.75:
Dej'a vu of revision 1.35

  PR:		kern/86258
  Submitted by:	Hiroshi Oota <ghelp excite.co.jp>
2005-09-20 13:47:59 +00:00
Stephan Uphoff bcd0b35a45 Multiple interrupt handlers may try to queue an event for a
nested kqueue. (4.X only race condition)

Found by:	Yahoo!
2005-09-20 01:12:06 +00:00
Doug Barton 8a37bb3346 MFC 1.32, always read to and write from a terminal.
PR:		bin/65892
Requested on:	freebsd-security
Requested by:	Yar Tikhiy <[email protected]>
2005-09-10 22:10:34 +00:00
Doug Barton 9595d86138 MFC through 1.22 the parts that make sense in this branch, which has
BIND 8 in the base. This includes the removal of the IP6.INT example
per RFC 4159.
2005-09-10 08:33:27 +00:00
Colin Percival 0b52e87f83 MFC: Correct insecure temporary file usage.
Security:	FreeBSD-SA-05:20.cvsbug
2005-09-07 13:44:06 +00:00
Stephan Uphoff e46db0c9d9 MFC ffs_softdep.c 1.182, softdep.h 1.18
Delay freeing disk space for file system blocks until all
dirty buffers are safely released. This fixes softdep
problems on truncation (deletion) of files with dirty
buffers.
2005-08-31 17:53:53 +00:00
Gregory Neil Shapiro d424f42cd9 MFC: sendmail 8.13.4 and hoststat(8)/purgestat(8) man page linking
Reminder by:    Terry Kennedy
2005-08-28 05:11:56 +00:00
Tor Egge ae2fa59957 MFC: Don't set the COMPLETE flag in an inodedep structure before the
related inode has been written.
2005-08-26 20:40:31 +00:00
Pawel Jakub Dawidek 42cdd86bbd MFC: sys/opencrypto/cryptodev.c 1.26
Fix bogus check. It was possible to panic the kernel by giving 0 length.
This is actually a local DoS, as every user can use /dev/crypto if there
is crypto hardware in the system and cryptodev.ko is loaded (or compiled
into the kernel).

Reported by:	Mike Tancsa <[email protected]>
Tested by:	Mike Tancsa <[email protected]>
Security:	Local DoS on systems with crypto HW and with /dev/crypto available
2005-08-19 20:45:42 +00:00
Murray Stokely a997916162 MFC: Sync with HEAD: fix typos, correct dates, add new freebsd
committer birthdays, add a few new history dates.
2005-08-19 03:38:59 +00:00
Diomidis Spinellis 67754cc9cd Fix make world breakage when MAKE_KERBEROS4 is defined.
Reviewed by:	Scott Allendorf
2005-08-16 23:04:52 +00:00
Tor Egge a3e033d97f MFC: Check for marker pages when scanning inactive page queue. 2005-08-15 17:56:08 +00:00
Diomidis Spinellis 7451acc525 MFC version 1.18
Interpret correctly the glob(3) return value.
Previously, interactive commands specifying a non-existent file or
directory used to display an "out of memory error".
2005-08-05 11:14:25 +00:00
Hajimu UMEMOTO 1ace8fadbb MFC 1.12: don't accept invalid form of an address like 1:2:3:4:5:6:7::8. 2005-07-29 16:27:31 +00:00
Xin LI 8675755e32 MFC 1.123:
Allow PLAY_MSF, PLAY_TRACK, PLAY_TRACK_REL, PAUSE, PLAY_12 commands to pass
through umass(4), in order to make cdcontrol(1) to issue commands to a USB
CD driver.

The command IDs were obtained from the CAM subsystem.  This was tested
on half dozen of USB CD drivers from different vendors.

Suggested by:   "intron" <intron at intron dot ac>
PR:             usb/83439
Reviewed by:    sanpei
2005-07-29 15:42:32 +00:00
Matthew N. Dodd 3816fca08a MFC 1.13
Move initialization above point of first possible reference to
avoid overwriting ty_status values set from the 'type' field.
2005-07-25 20:20:53 +00:00
Jonathan Chen eff178f849 MFC of 1.33: remember to reset nextgrp in getnetgrent(), so that subsequent calls to getnetgrent() doesn't return bogus information.
MFC of 1.34: fix innetgr() returning false positives and negatives when reverse netgroup matching is used.

PR:		35506
2005-07-25 20:05:40 +00:00
Sheldon Hearn a712bbe19a MFC rev 1.34: regen 2005-07-18 07:46:21 +00:00
Xin LI fc7299979b MFC revision 1.13
date: 2005/07/13 10:40:07;  author: delphij;  state: Exp;  lines: +7 -4
Better memory handling:

 - It is acceptable to call free(3) when the given pointer itself
   is NULL, so we do not need to determine NULL before passing
   a pointer to free(3)
 - Handle failure of malloc(3)

Submitted by:	Dan Lukes <dan at obluda cz>
PR:		bin/83352
Approved by:	re (scottl)
2005-07-17 17:29:22 +00:00
Ken Smith e5fd8baf13 MFC v1.2, Add -D_FREEFALL_CONFIG to CFLAGS via Makefile so that just
defining _FREEFALL_CONFIG in /etc/make.conf is all that is required
for the clusterisms to take effect.
2005-07-11 13:25:54 +00:00
Ken Smith 48e7073c83 MFC v1.16, Add -D_FREEFALL_CONFIG to CFLAGS via Makefile so that just
defining _FREEFALL_CONFIG in /etc/make.conf is all that is required
for the clusterisms to take effect.
2005-07-11 13:22:13 +00:00
Xin LI bb10cb5706 MFC 1.47:
Fix a bug when shell expansion is done against dangling symlinks, by
converting the stat() call to a lstat() call, which will cover the
situation.  One can exercise this bug by referring a dangling link with
something like */the-link.

Submitted by:   Simon 'corecode' Schubert [corecode fs ei tum de]
Obtained from:  NetBSD via DragonFlyBSD (NetBSD rev. 1.51 and DragonFly
                rev. 1.6)
2005-07-10 15:17:53 +00:00
Hiroki Sato 835305c772 Document security advisories applicable to 4.11R.
Submitted by:	Daniel Gerzo
PR:		www/82798
2005-07-03 13:43:10 +00:00
Dag-Erling Smørgrav b44ccced4e MFC: (1.75, 1.76) flush the send side rather than shut it down. 2005-07-03 10:40:23 +00:00
Mike Silbersack 77b7808c34 MFC PCI Ids for 5751M and 5789 chips - this brings device support
in line with what 6.x and 5.x have.

Requested by:	Juraj Lutter
2005-07-03 03:41:19 +00:00
Don Lewis 124b549098 Populate /R/ftp/ports explicitly and copy this to /R/cdrom/disc1/ports
instead of attempting the reverse, because the ftp.1 target is executed
before the cdrom.1 target, which is optional.  This has been broken
ever since the order of the targets was swapped and cdrom.1 was made
optional, which happened a very long time ago.
2005-07-02 07:22:12 +00:00
Bruce A. Mah 87f5f1cf40 MFC: SA-05:11.gzip, SA-05:14.bzip2, SA-05:15.tcp. (General security
advisory resync.)
2005-06-30 18:41:55 +00:00
Simon L. B. Nielsen b8833141ed Correct bzip2 denial of service and permission race vulnerabilities.
Obtained from:	Redhat, Steve Grubb via RedHat
Security:	CAN-2005-0953, CAN-2005-1260
Security:	FreeBSD-SA-05:14.bzip2
Approved by:	obrien

Correct TCP connection stall denial-of-service vulnerabilities.

MFC: rev 1.270 of tcp_input.c, rev 1.25 of tcp_seq.h by ps: When a TCP
packets containing a timestamp is received, inadequate checking of
sequence numbers is performed, allowing an attacker to artificially
increase the internal "recent" timestamp for a connection.

A TCP packets with the SYN flag set is accepted for established
connections, allowing an attacker to overwrite certain TCP options.

Security:	CAN-2005-0356, CAN-2005-2068
Security:	FreeBSD-SA-05:15.tcp

Approved by:	cperciva
2005-06-29 21:43:42 +00:00
Paul Saab 5a46cc72f4 Avoid a panic in the swizzle code by checking to see if the parent
of the pci bus is NULL.

Submitted by:	jhb
2005-06-29 15:57:10 +00:00
Paul Saab 6081e3d91f Merge a whole slew of stability fixes from RELENG_5/CURRENT.
- amr should now work reliably on systems with more than 4GB of ram.
- Assign a static slot number to each command instead of doing a
  linear search for free slots each time a command is needed.
- Fixes for the ioctl path.

A good portition of these changes were submitted by
David Sze <dsze at alumni dot uwaterloo dot ca>
2005-06-27 22:21:08 +00:00
Tai-hwa Liang 5805057cfb MFC: (1.154) Fixing a memory leak in xpt_release_device(). 2005-06-27 03:07:08 +00:00
Maxim Konovalov 4af8b08e76 MFC rev. 1.19 sys/kern/uipc_accf.c to sys/kern/uipc_socket.c, bug fixes for:
setsockopt(2) cannot remove accept filter, getsockopt(SO_ACCEPTFILTER)
always returns success on listen socket.
2005-06-26 07:04:23 +00:00
Roman Kurakin 7eb58dcb21 Prepare to close three old PRs.
MFC:
	revision 1.6
	date: 2004/12/28 00:07:56;  author: rik;  state: Exp;  lines: +1 -1
	Add FR support to sppp (MFCronyx).

	Silence on: net@, current@, hackers@.
	No objections: joerg

	Requested by: by many (mostly Cronyx) users for a long long time.
	MFC after:	10 days

PR:	kern/21771, kern/66348, kern/14848
2005-06-25 20:30:43 +00:00
Roman Kurakin 40737abd69 Prepare to close three old PRs.
MFC:
	revision 1.118
	date: 2005/01/07 01:45:34;  author: imp;  state: Exp;  lines: +2 -1
	/* -> /*- for license, minor formatting changes
	----------------------------
	revision 1.117
	date: 2004/12/28 00:07:56;  author: rik;  state: Exp;  lines: +38 -12
	Add FR support to sppp (MFCronyx).

	Silence on: net@, current@, hackers@.
	No objections: joerg

	Requested by: by many (mostly Cronyx) users for a long long time.
	MFC after:	10 days
	----------------------------
	revision 1.116
	date: 2004/12/14 18:18:54;  author: rik;  state: Exp;  lines: +0 -2
	Kill double inclusion for <netinet/in.h> and <netinet/in_systm.h>.
	----------------------------
	revision 1.111
	date: 2004/06/25 10:25:33;  author: rik;  state: Exp;  lines: +2 -1
	Do not count loobacks as other fuilures.
	As a result magic will not be rejected any more in case of loopback.

	Discussed with:	joerg@
	----------------------------
	revision 1.108
	date: 2004/05/25 21:54:07;  author: rik;  state: Exp;  lines: +2 -2
	Keepalive timer should be added if we does not have any sppp consumers
	before and should be deleted if we do not have any anymore.
	----------------------------
	revision 1.107
	date: 2004/03/14 01:32:44;  author: rwatson;  state: Exp;  lines: +2 -2
	Compare spppq to NULL instead of using spppq as a boolean.

PR:	kern/21771, kern/66348, kern/14848
2005-06-25 12:27:17 +00:00
Roman Kurakin 8786bfafe2 Prepare to close three old PRs.
MFC:
	revision 1.976
	date: 2004/12/28 00:07:56;  author: rik;  state: Exp;  lines: +2 -0
	Add FR support to sppp (MFCronyx).

	Silence on: net@, current@, hackers@.
	No objections: joerg

	Requested by: by many (mostly Cronyx) users for a long long time.
	MFC after:	10 days

PR:	kern/21771, kern/66348, kern/14848
2005-06-25 12:18:34 +00:00
Roman Kurakin 978c5624d6 Prepare to close three old PRs.
MFC:
	revision 1.27
	date: 2005/01/07 01:45:34;  author: imp;  state: Exp;  lines: +2 -1
	/* -> /*- for license, minor formatting changes
	----------------------------
	revision 1.26
	date: 2004/12/28 00:07:56;  author: rik;  state: Exp;  lines: +13 -2
	Add FR support to sppp (MFCronyx).

	Silence on: net@, current@, hackers@.
	No objections: joerg

	Requested by: by many (mostly Cronyx) users for a long long time.
	MFC after:	10 days

PR:	kern/21771, kern/66348, kern/14848
2005-06-25 11:50:33 +00:00
Roman Kurakin 6975fc498f Prepare to close three old PRs.
MFC:
	revision 1.2
	date: 2005/01/07 01:45:35;  author: imp;  state: Exp;  lines: +1 -1
	branches:  1.2.2;
	/* -> /*- for license, minor formatting changes
	----------------------------
	revision 1.1
	date: 2004/12/28 00:07:57;  author: rik;  state: Exp;
	Add FR support to sppp (MFCronyx).

	Silence on: net@, current@, hackers@.
	No objections: joerg

	Requested by: by many (mostly Cronyx) users for a long long time.
	MFC after:	10 days

PR:	kern/21771, kern/66348, kern/14848
2005-06-25 11:36:18 +00:00
Ceri Davies dde2ceb20a Remove an extra 't' that I inexplicably managed to insert during the
last commit.

Pointy hat awarded by:  ru
2005-06-23 22:46:09 +00:00
Ceri Davies 3e149b2f1e MFC revisions 1.17 and 1.18. 2005-06-23 22:33:33 +00:00
Paul Saab 7a66b9008e If a PCI interrupt cannot be routed in the mptable directly, it
tries to swizzle the interrupt and route across the parent bridge
recursively.

Submitted by:	jhb
2005-06-20 21:42:03 +00:00
John Baldwin d23992b1d7 Use the correct types (size_t rather than int) for a couple of variables
passed to kernel_sysctl() to fix an unaligned exception on Alpha.  This
is not an MFC as the code in 5.x is very different.

Reported by:	Eric Millbrandt emillbrandt at coldhaus dot com
2005-06-20 20:47:48 +00:00
Dejan Lesjak 2f869e6dc5 MFC BSD.x11-4.dist rev. 1.27:
Move couple of directories out of mtree and into their respective
ports. This mtree now specifies basic structure of X11BASE, similarly
to BSD.local.dist.
2005-06-16 08:50:41 +00:00
Warner Losh fd0cbb638f (direct commit, since MAKEDEV is gone in HEAD and RELENG_5):
Create the twa devices that communicate with the twa driver.
2005-06-14 23:34:29 +00:00
Wilko Bulte c402604fcf Empty CMOS batteries can cause agony with your AlphaBIOS versus
SRM selection.

Found out the hard way by: gallatin
2005-06-14 17:46:35 +00:00
cvs2svn d546b9943b This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2005-06-14 02:23:16 +00:00
Simon L. B. Nielsen 7f642d5faf Partial MFC of 1.212:
- Add missing manual page links for sysctl_add_oid(9).

The rman(9) parts of 1.212 are not MFC'ed since 4.X does not have
rman(9).

PR:		docs/60088
Submitted by:	le
2005-06-12 16:34:57 +00:00
Kirill Ponomarev 8212e44e8b MFC: main.c:1.5, perform.c:1.12, pkg_version:1.33, version.h:1.4
date: 2005/05/24 08:26:44;  author: cperciva;  state: Exp;  lines: +1 -0
  Add an -I option to pkg_version:

    -I  Use only the index file for determining if a package is out of
        date.  This is much faster than using the version number from a
        port's Makefile, at the expense of potentially giving an incor-
        rect result if the index file is out of date.

  Without this option, the index file is only consulted if "make -V PKGNAME"
  cannot be used.
2005-06-12 08:29:24 +00:00
Colin Percival d9823ccd59 MFr5 revision 1.342.2.30:
Belatedly document the disabling of Hyper-Threading.  Security issues
  are not normally documented in UPDATING on the stable branches, but
  since this is a user-visible change, it needs to be here.

  This is not an MFC since Hyper-Threading is enabled by default in HEAD.

  Pointed out by: Erik Trulsson, via freebsd-stable

  Revision    Changes    Path
  1.342.2.30  +5 -0      src/UPDATING
2005-06-11 00:17:00 +00:00
Scott Long 5746df1e2d Back out the previous revision to unbreak UDP and NFS.
Submitted by: rwatson
2005-06-09 20:06:44 +00:00
Simon L. B. Nielsen 302a8e0bdd Correct directory traversal and race condition vulnerabilities in gzip.
Security:	FreeBSD-SA-05:11.gzip
Security:	CAN-2005-0988, CAN-2005-1228
Obtained from:	Steve Grubb via RedHat, Debian

Approved by:	nectar
2005-06-08 21:29:53 +00:00
Maxim Konovalov cf21c81b60 MFC revs. 1.89 - 1.94: DragonFly 1.2.0, FreeBSD 5.4, MacOS 10.4,
OpenBSD 3.7, FreeBSD 1.1, 1.1.5, 1.1.5.1, 2.0 release dates.
2005-06-08 04:01:16 +00:00
Maxim Konovalov f7c572fb3b MFC rev. 1.68: terminate an endless loop sh -T goes into in dowait()
around waitproc().
2005-06-08 03:49:41 +00:00
Hajimu UMEMOTO cfbc8cf216 MFC 1.57 (partly): The kernel didn't return correctly after the
check of the existence of IPsec policy in SADB_X_SPDDELETE2 via
PF_KEYv2.

PR:		kern/81804
Submitted by:	KAMADA Ken'ichi <kamada _at_ nanohz.org>
2005-06-07 12:19:10 +00:00
John-Mark Gurney 7f4cb81106 MFC: v1.209
make sure that the socket is either accepting connections or is connected
when attaching a knote to it...  otherwise return EINVAL...

Suggested by:	dclark at applmath.scu.edu
2005-06-07 07:12:58 +00:00
Paul Saab 07bdb4ebfd regenerate 2005-06-03 19:14:40 +00:00
Paul Saab 6bc7dcefa9 MFC support for the 5714 2005-06-03 19:14:02 +00:00
Simon L. B. Nielsen 317bbc4866 Make sure the dest_realm buffer is always NUL terminated.
This code is only used when rlogin is compiled with Kerberos 4
support, and since the Kerberos code in rlogin has been removed from
FreeBSD 5.0 and newer, this is not an MFC.

It is not believed that this bug could be exploited as a security
vulnerability.

PR:		bin/80661
Submitted by:	Przemyslaw Frasunek <[email protected]>
Approved by:	cperciva
2005-05-29 15:33:35 +00:00
Archie Cobbs 95dda7c35e MFC: (rev. 1.10) Correct L2TP header offset handling. 2005-05-26 14:59:38 +00:00
Bruce A. Mah 0149a1959f MFC: sed(1) -l. 2005-05-26 14:44:41 +00:00
Sheldon Hearn d3565be21c MFC rev 1.11: release maintainership 2005-05-25 16:32:14 +00:00
Gleb Smirnoff 6924bcd0e5 MFC:
Add option -l, to make output line buffered.

  PR:             bin/78692
  Submitted by:   Eugene Grosbein
2005-05-23 13:27:49 +00:00
Bruce A. Mah 8e44053b6a MFC: SA-05:09.htt. 2005-05-19 14:53:18 +00:00
Tony Ackerman f0d3d352ec Changed to reflect the latest changes in Intel's em version 2.1.7 2005-05-19 00:24:32 +00:00
Tony Ackerman 83c8c88ba0 Changes to bring the driver closer to Intel's em version 2.1.7
- Changed from using explicit devices id to using descriptive labels.
- Added support for 82573 and 82546 Quad adapters.
- Corrected support for 82547EI and 82541ER (mac_type was not assigned)
- Removed #ifdef DBG_STATS and extraneous code.
- Corrected incorrect Packet Buffer assignment for 82541.
- Cleaned up a few typos and style nits.

PR:	None
2005-05-18 23:54:40 +00:00
Tony Ackerman 4c37199ae2 Changes to bring the driver closer to Intel's em version 2.1.7
- Added support for 82573 and 82546 Quad adapters.
- Brought forward Intel's most current mac and phy changes.
2005-05-18 23:52:54 +00:00
Tony Ackerman 33104e59c7 Changes to bring the driver closer to Intel's em version 2.1.7
- Changed from using explicit devices id to using descriptive labels.
- Added support for 82573 and 82546 Quad adapters.
- Corrected support for 82547EI and 82541ER (mac_type was not assigned)
- Removed #ifdef DBG_STATS and extraneous code.
- Corrected incorrect Packet Buffer assignment for 82541.
- Cleaned up a few typos and style nits.

PR:	None
2005-05-18 23:48:42 +00:00
Julian Elischer 95f192f4de Revert a set of MFCs that worked for me but seem to be causing
problems for others. Rest assured you haven't seen the end of these..
As soon as I get back to a test environment I can use for finding the
problem I'm try again.
2005-05-16 09:39:25 +00:00
Joe Marcus Clarke 1f9b8e8b00 MFC rev 1.115:
Add libdata/pkgconfig.  It is used under ${LOCALBASE} as much (if not more)
than under ${X11BASE}.
2005-05-14 19:47:53 +00:00
Jacques Vidrine 2bef1912ee Add a knob for disabling/enabling HTT, "machdep.hyperthreading_allowed".
Default off due to information disclosure on multi-user systems.

Submitted by:	cperciva
Reviewed by:	jhb
2005-05-13 00:10:56 +00:00
Xin LI 83c2030a02 MFC 1.15+1.16: Remove a check about whether sa->sa_len is equal to salen
from getnameinfo(3).  This improves API compatibility with other POSIX
complaint operating systems.

PR:		standards/80008
Requested by:	Xin Liu <[email protected]>
Reviewed by:	freebsd-standards (das)
2005-05-09 13:12:49 +00:00
Colin Percival 423094370c MFC: Fix two issues which were missed in FreeBSD-SA-05:08.kmem.
Reported by:	Uwe Doering
2005-05-08 10:26:42 +00:00
Bruce A. Mah 716918022d MFC: SA-05:06.iir, SA-05:07.ldt, SA-05:08.kmem. 2005-05-06 23:17:22 +00:00
Colin Percival 1ed2dcbbea If we are going to
1. Copy a NULL-terminated string into a fixed-length buffer, and
2. copyout that buffer to userland,
we really ought to
0. Zero the entire buffer
first.

Security: FreeBSD-SA-05:08.kmem
2005-05-06 02:50:00 +00:00
Colin Percival ceb816462c Correctly validate inputs to the i386_get_ldt syscall.
Security: FreeBSD-SA-05:07.ldt
2005-05-06 02:40:18 +00:00
Colin Percival 572c5e54b5 Correct improper permissions on /dev/iir. The earlier permissions
of 0644 allowed for people to do Evil Things via ioctl(2).

Security: FreeBSD-SA-05:06.iir
2005-05-06 02:33:46 +00:00
Hajimu UMEMOTO ac40fbb19e MFS:
- replace use of a spinlock with a mutex.
- enclose getservby{name,port}(3) call with mutex lock.
- protect _hostconf_init_done and _hostconf_init() call with mutex lock.

	lib/libc/net/getaddrinfo.c:	1.41
	lib/libc/net/name6.c:		1.33
	lib/libc/net/getnameinfo.c:	1.14.6.1, 1.14.6.2
2005-05-05 06:07:05 +00:00
Peter Wemm 2e43ef2e35 Check in the freebsd.org cluster modifications to make k5su actually
usable.  In particular:
* disable unix password authentication (ie: do kerberos only)
* install k5su setuid by default
* allow instances for things like ksu to the www account instead
of only doing this for root.
This stuff is only enabled by make.conf switches.
2005-05-04 16:51:57 +00:00
Julian Elischer 0c6d2ae97b Massage uhub.c so that it's more obvious what the differences to -current are.
Do some diff reduction.
Bring in a few small fixes.
2005-05-03 23:40:59 +00:00
Doug Ambrisko 66db63aa59 Backout the Promise SATA support due to some reported hangs. I have
an idea what the problem is but need more testing.

Leave in the Intel PCI Device ID changes.
2005-05-03 15:53:48 +00:00
Paul Saab eed45186dd MFC a part of rev 1.39.
- Fix a bug handling the return value of alloc_bounce_pages at map creation
  time.  It returns the number of pages allocated, not 0 on success.
2005-05-02 20:37:17 +00:00
Bruce A. Mah acdf5813aa MFC: SA-05:04.ifconf, SA-05:05.cvs. 2005-05-01 17:24:00 +00:00
Julian Elischer d9b7b39b16 A bunch more MFCs. import a lot of the new bus management stuff. 2005-04-30 01:48:02 +00:00
David Xu e1304b0f27 MFC Revision 1.73:
> Dont set prefetch etc on VIA chips, causes problems on newer chips and
 > ATAPI devices.
2005-04-29 13:41:51 +00:00
Julian Elischer b742ad63d6 We probe USB1.1. busses late enough to get and use interrupts
so don't ignore them.. it leads to an interrupt storm which freezes
the system.
2005-04-28 23:49:15 +00:00
Julian Elischer eb9bc03c1a MFC a helper routine that will be used in a USB MFC. 2005-04-28 00:14:09 +00:00
Julian Elischer 2a3d068afc MFC Basic drivers from -current
Also bring in the code that probves the non EHCI controllers
after the EHCI controllers, thus ensuring that high speed
devices are not pingponged all aver theplace during startup.
2005-04-26 21:50:14 +00:00
Paul Saab 7683b5cc67 Add support for the Intel ICH6 2005-04-26 21:31:40 +00:00
Julian Elischer cc04d58255 Add missing include. 2005-04-26 20:52:07 +00:00
Jesus R. Camou f7b36fc1d6 MFC: o mention the required byte order in
the ``ip'' man page.

     o put the word ``raw'' somewhere in
       the title of the ``ip'' man page.

PR:		docs/30873
Submitted by:	Douglas De Couto <[email protected]>
Approved by:	trhodes (mentor)
2005-04-26 00:51:19 +00:00
Julian Elischer 75379a2ffa MFC the latest changes to the ehci driver. 2005-04-23 07:19:30 +00:00
Julian Elischer 76fa1e2452 MFC: 1.14
Don't use Bus-dma to allocate a simple buffer that is not used by DMA.
2005-04-22 21:49:39 +00:00
Julian Elischer 3fd13340cb MFC a most of the changes that have occured inthe uaudio driver. 2005-04-22 21:26:13 +00:00
Simon L. B. Nielsen 265f65da85 MFC:
Correct multiple security related errors: a buffer overflow, NULL
pointer dereferences, possible use of uninitialized variables, and
memory leaks.

Security:	CAN-2005-0753
Security:	FreeBSD-SA-05:05.cvs
Approved by:	peter
2005-04-22 18:13:30 +00:00
Remko Lodder 9101a68d57 MFC:
date: 2005/04/10 19:03:48;  author: remko;  state: Exp;  lines: +1 -0
Add myself to the calendar.

MFC after:      1 week
Approved by:    simon (mentor)
2005-04-22 17:28:17 +00:00
Doug Ambrisko b21126911c Add in Promise and Intel SATA support based on FreeBSD 5.X ATAng.
This gets the HW to work but not to deal with SATA errors.  So if
the drive has a read error it will probably lock up.  This is
a small subset of my patches that do deal with these errors and
other issues in FreeBSD and ata-raid.

Sponsored by:	IronPort Systems
2005-04-20 23:51:32 +00:00
Colin Percival b5a1289e33 Zero the ifr.ifr_name buffer in ifconf() in order to avoid
accidental disclosure of kernel memory to userland.

Security:	FreeBSD-SA-05:04.ifconf
2005-04-15 01:52:40 +00:00
Sheldon Hearn 82077eac3c MFC rev 1.33: regen
Approved by:	re (kensmith)
2005-04-12 13:05:41 +00:00
Diomidis Spinellis e10dada865 MFC: Remove wrong -unfilled .Bd argument implied by -literal. 2005-04-12 06:25:01 +00:00
Tai-hwa Liang aff104612b MFC: It's useful to have this tool for dumping $PIR table on i386 machines.
Reviewed by:	bms, sam (mentor)
2005-04-11 12:40:06 +00:00
Diomidis Spinellis 7d90fc3d4a MFC the new pipe sub-namespace. 2005-04-10 07:58:05 +00:00
Diomidis Spinellis c08e6d57dd MFC 1.241-1.242:
- Return POLLHUP rather than POLLIN/POLLOUT on TS_ZOMBIE ttys
- Remove unneeded POLLWRNORM (old bug)
- TS_ZOMBIE ttys will set POLLIN and POLLRDNORM
- Do not call selrecord in TS_ZOMBIE ttys

PR:		kern/73821
2005-04-08 21:43:25 +00:00
Scott Long b7e573dd1d MFC: Close a very small race with command hand-off. Add an extra diagnostic
to the timeout code.
2005-04-07 05:21:53 +00:00
Bruce A. Mah 04d542f8e4 MFC: SA-05:02.sendfile. 2005-04-06 00:43:16 +00:00
Colin Percival 25fc2b4860 MFC revision 1.103.
Security:	FreeBSD-SA-05:02.sendfile
2005-04-04 23:53:36 +00:00
Nate Lawson efb17144ab Use taskqueue_thread instead of swi as the latter doesn't have a context
that we can tsleep on.  This bug is not present in 5.x since we have a
real thread context there.  Suggested by jhb.

Submitted by:	Dinesh Nair (dinesh alphaque.com)
2005-04-02 06:05:30 +00:00
Bruce A. Mah 640a49bb7f MFC: SA-05:01.telnet, getaddrinfo(3) query order. 2005-04-01 05:01:29 +00:00
Colin Percival 8e18f76d87 MFC revision 1.105: If dangerous environment variables are used, check
that libraries being loaded aren't on a noexec-mounted filesystem.
2005-03-31 00:32:37 +00:00
Jacques Vidrine ac70898dec MFC src/contrib/telnet/telnet.c 1.16: Correct buffer overflows in
telnet(1).
Security: CAN-2005-0468, CAN-2005-0469
2005-03-28 15:46:58 +00:00
Kirill Ponomarev cffa6e483d MFC BSD.local.dist revision 1.114 and BSD.x11-4.dist revision 1.26:
date: 2005/03/22 18:29:41;  author: krion;  state: Exp;  lines: +4 -0
  Add mt locale directory, since more and more ports create and use it.
2005-03-25 06:36:09 +00:00
Joe Marcus Clarke f51bc5ec89 MFC: rev 1.61
Change the PATH for pkg_add to be the same used for pointyhat package builds.
This will give our users and porters a more consistent experience between
installing ports and installing packages.
2005-03-21 17:42:03 +00:00
Ruslan Ermilov 2125297d47 MFC 1.25: Fix a problem with multiple-delivery (i.e. broadcast) in ng_bridge. 2005-03-17 05:35:26 +00:00
Gleb Smirnoff 81a15714fb MFC 1.27-28:
Increase level of kernel messages logged to console from debug to warning.
2005-03-16 13:49:54 +00:00
Maxime Henrion b1fd04908b MFC if_fxp.c revision 1.224:
revision 1.224
  date: 2005/02/27 15:12:50;  author: mux;  state: Exp;  lines: +10 -10
  Fix a stupid bogon from myself, sc->revision wasn't initialized when
  testing it to know whether we should enable the 82503 serial mode...
  Move code to the right location and disallow the use of the 82503
  serial mode if the sc->revision field is 0 again.  This makes fxp(4)
  work correctly with ATMEL 350 93C46 cards (3 port 82559 based with a
  82555 PHY), as well as with the older ATMEL 220 93C46 (same flavour)
  and with the even older 10Mbps-only 82557 cards with the 82503 serial
  interface.

  Tested by:      Andre Albsmeier <[email protected]>, krion
2005-03-13 18:59:23 +00:00
Hajimu UMEMOTO b5b0aba51e MFC 1.1.1.3 (partly): NLS catclose() bug avoidance (KAJIMOTO Masato).
PR:		bin/44504
Tested by:	[email protected] (Yoshihiko Sarumaru)
2005-03-08 16:27:41 +00:00
John-Mark Gurney a75de66918 prevent a crash when the watched proc exits... This bug was inadvertantly
fixed in v1.77 on HEAD...

Prodded to investigate:	ps
2005-03-08 03:24:32 +00:00
Alexey Zelkin c05b4d7fcb MFC: rev 1.9; Respect LC_MESSAGES locale category while handling of
NLS catalogs
2005-03-07 14:03:09 +00:00
Joe Marcus Clarke af2e98c855 MFC: rev 1.8
Fix a problem in the Skinny ALG where a specially crafted packet could cause
a libalias application (e.g.  natd, ppp, etc.) to crash.  Note: Skinny support
is not enabled in natd or ppp by default.

Approved by:	nectar (secteam)
Security:	This fixes a remote DoS exploit
2005-03-06 19:59:41 +00:00
Maxime Henrion d7665cbeb8 Sync device IDs with HEAD. 2005-03-06 19:55:19 +00:00
Hideyuki KURASHINA dac0b162ee Add Japanese 4.11-RELEASE hardware notes:
(new) -> 1.2.2.1	  hardware/Makefile
  (new) -> 1.1.2.2	  hardware/Makefile.inc
  (new) -> 1.3.2.2	  hardware/alpha/Makefile
  (new) -> 1.1.2.4 	  hardware/alpha/article.sgml
  (new) -> 1.13.2.46.2.2  hardware/alpha/proc-alpha.sgml
  (new) -> 1.1.2.6	  hardware/common/artheader.sgml
  (new) -> 1.1.2.2	  hardware/common/config.sgml
  (new) -> 1.13.2.95	  hardware/common/dev.sgml
  (new) -> 1.1.2.2	  hardware/common/hw.ent
  (new) -> 1.1.2.2	  hardware/common/intro.sgml
  (new) -> 1.3.2.2	  hardware/i386/Makefile
  (new) -> 1.1.2.5	  hardware/i386/article.sgml
  (new) -> 1.1.2.4	  hardware/i386/proc-i386.sgml

Noticed by:	hrs
Submitted by:	Ryusuke Suzuki <ryusuke at nucl dot sci dot hokudai dot ac dot jp>
Reference:	[doc-jp-work 1086]
2005-03-06 15:46:04 +00:00
cvs2svn 2d9e5af41f This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2005-03-06 14:50:43 +00:00
Ruslan Ermilov 05475752ce MFC: 1.27: Pull up to ETHER_HDR_LEN before passing an mbuf to ether_input(). 2005-03-01 19:44:28 +00:00
Peter Pentchev cb3513e0b8 MFC rev. 1.13: remove the misleading documentation of the unused
'key' argument to mpool_open(3).
2005-02-27 14:06:12 +00:00
Dag-Erling Smørgrav 4298ff1370 MFC: (1.50) stop leaking connection buffers. 2005-02-23 09:52:54 +00:00
Giorgos Keramidas 6ecbb72e9d MFC rc.conf 1.236, periodic.conf 1.33:
Add a note about their respective manpages to rc.conf and periodic.conf
2005-02-22 14:24:13 +00:00
Giorgos Keramidas eb6de503e8 MFC 1.23-1.26:
- Clarify a bit the BUGS section
- Quote example file names consistently
- Various fixes (contractions, grammar, etc)
2005-02-22 14:21:13 +00:00
Gregory Neil Shapiro a92b8a7a3c MFC: Release note entry for sendmail 8.13.3 2005-02-19 17:23:02 +00:00
Gregory Neil Shapiro 9b2ca3821e MFC: Remove file no longer in 8.13.3 2005-02-19 17:21:57 +00:00
Gregory Neil Shapiro e6252dcc13 MFC: sendmail 8.13.3 2005-02-19 17:21:32 +00:00
Ruslan Ermilov 2373a251cb MFC: 1.52: Time out routes created by redirect. 2005-02-14 13:20:30 +00:00
cvs2svn d889acb5e1 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2005-02-14 02:30:02 +00:00
Diomidis Spinellis f656c2b262 MFC 1.8
PR:		bin/76374
Security: Correct hiding of arguments, such as the password, from ps(1)
2005-02-13 15:00:57 +00:00
Maxim Konovalov 6fe836974f MFC rev. 1.34: print a correct status for unix domain sockets, restore
input mode when return from the command one.
2005-02-13 12:55:36 +00:00
Maxim Konovalov 0d42dead7c MFC a bit of rev. 1.50: do not ever try to work with empty routing table.
MFC revs. 1.55 and 1.56: try to guess a buffer size for a fast growing
routing table.
2005-02-13 12:37:29 +00:00
Kirill Ponomarev 3f7c1e5be4 MFC: rev. 1.50
Introduce three new targets for ports collection:
showconfig-recursive, rmconfig-recursive and config-conditional.
2005-02-10 07:04:13 +00:00
Ruslan Ermilov a343694844 Fix disorder caused by a year being off-by-one. 2005-02-07 09:19:16 +00:00
Hiroki Sato 0c1df52ad8 Catch up with rev.1.22.2.419.2.9 in the English version and
fix some translation nits.

Submitted by:   Hiroo Ono (hiroo at oikumene dot gcd dot org)
Reviewed by:    rushani
2005-02-07 01:54:19 +00:00
Ruslan Ermilov 2edd57c5c7 MFC: A manpage for the "eiface" Netgraph node type. 2005-02-03 13:49:18 +00:00
Ruslan Ermilov e5a21b9dea MFC: New ASCII message, "getifname". 2005-02-03 13:46:06 +00:00
cvs2svn 6f3b0e0392 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2005-02-03 11:52:43 +00:00
Hajimu UMEMOTO 26586f4086 MFC 1.54: query A RR before AAAA RR. 2005-02-03 08:03:41 +00:00
Hiroki Sato ecd3387b79 Catch up with the English version:
1.1.2.126 -> 1.1.2.127	errata/article.sgml
2005-02-03 06:35:29 +00:00
Hiroki Sato 4927928f52 Remove a misleading sentence. 2005-02-03 06:33:21 +00:00
Hiroki Sato 1085cdd003 Update &release.*; entities. 2005-02-03 06:30:49 +00:00
Hiroki Sato 11b5630953 Merge the following from the English version:
1.1.2.117	-> 1.1.2.126	errata/article.sgml
	1.1.2.3		-> 1.1.2.4	relnotes/alpha/article.sgml
	1.22.2.388	-> 1.22.2.420	relnotes/common/new.sgml
	1.1.2.4		-> 1.1.2.5	relnotes/i386/article.sgml
2005-02-03 06:26:21 +00:00
Hiroki Sato 25228bfee0 - Simplify entity declarations in the preamble.
- Update copyright year.
- Trim old entries.
2005-02-03 06:22:57 +00:00
Ruslan Ermilov d16cd24e58 MFC: Bitmap of free units. 2005-02-02 16:43:17 +00:00
Ruslan Ermilov 04f389ba9c Further reduce diffs with HEAD:
- In constructor(), don't initialize if_addrhead; if_attach()
  will do it for us.

- In rcvdata(), don't try to emulate m_adj() and just let
  ether_input() do its job.

- Add support for node removal (a-la hardware detach).
2005-02-02 16:07:30 +00:00
Ruslan Ermilov 59e14f0809 MFC:
o ng_eiface.c#1.3
  Allow a changed MAC address to show up in ifconfig by changing
  it in the ifaddr list as well.

o ng_eiface.c#1.10
  Check the correct set of interface flags and fix a memory leak.

o ng_eiface.c#1.12, ng_eiface.h#1.6
  Use the (now standard) Ethernet address parse type.
2005-02-02 14:35:56 +00:00
Ruslan Ermilov 3e62b2da0e Minimize diffs to HEAD (no code changes). 2005-02-02 13:36:09 +00:00
Shunsuke Akiyama f596f5a29c MFC: rev 1.11
Add support for new chips, PL-2303X and PL-2303HX.
Bump document date.
2005-02-01 13:53:39 +00:00
Shunsuke Akiyama 30a8d4173a MFC: rev 1.26
- Add support for new chips, PL-2303X and PL-2303HX.
- Update comment about datasheet.
- Fix minor typo in sysctl variable description.
2005-02-01 13:52:51 +00:00
Hajimu UMEMOTO 7652f8b26a MFC 1.69: correct to look right interface. 2005-02-01 10:48:29 +00:00
Maxim Konovalov 3e56e1ea11 MFC rev. 1.88: FreeBSD 4.11 2005-01-31 18:50:47 +00:00
Ken Smith 711f18cd4c Add 4.11 release date (slightly off but this is what matches the entry
in RELENG_4_11).

Noticed by:	"Morgan Davis" <mdavis at dtl dot net>
2005-01-27 16:43:26 +00:00
Ruslan Ermilov e930c896e6 MFC: libpam is now standard. 2005-01-25 09:39:17 +00:00
Ruslan Ermilov 7c2795b7d8 MFC: Latest mdoc(7) fixes. 2005-01-25 09:36:25 +00:00
Robert Watson fb4cb3f0b6 Temporarily back out ipx.h:1.15.2.1, which introduced a Linux compatibility
u_int to the IPX address structure, which introduced strong alignment
requirements for the structure, which in turn caused problems for MARS.

Reported by:	"Igor B. Bykhalo" <goshik at binep dot ac dot ru>
2005-01-23 12:57:38 +00:00
Shunsuke Akiyama c8004dbdf6 MFC: revision 1.56
Fix USB serial device stalled after tcflush() was called.
2005-01-23 11:42:28 +00:00
Poul-Henning Kamp 3e74d1e2b1 Remove a check that prevents us from purging the queues on shared interrupt
lines.  This has been long gone in -current.

Nailed by:	Mike Tancsa <[email protected]>
2005-01-21 13:44:42 +00:00
Paul Saab 6caa2e8525 MFC rev 1.57: Remove 6422, V100 and add the P600.
Approved by:	re (kensmith)
2005-01-21 05:28:00 +00:00
Peter Wemm 1167a1148e Yet another pass on trying to fix the nfs statfs large-fs blocksize scaler.
Casting the result of the 64 bit division to 32 bits (thus discarding the
upper 32 bits) and then looking at the truncated result to try and figure
out if the untruncated result would fit in 32 bits was utterly useless.

I am still not sure that it is right, but it has a chance of working now.
I'm not at all sure about the sign handling.  NFSv3 only reports positive
values here, but correctness of handling the 63/64 bit signs on nfs
volumes is not a problem we'll likely have to deal with for some time. I
think the "most correct" test is for an unsigned division testing for
exceeding LONG_MAX, since we should never end up with a negative number to
compare against LONG_MIN.
2005-01-21 01:23:25 +00:00
Peter Wemm ed315ed8c7 Partial backport of 64 bit filesystem space code. In spite of the bugs
in the kernel NFS code, df itself was broken.  It tries to re-factor the
statfs blocks / blocksize into whatever the user requested.  Thus, it must
be able to report >2TB file systems correctly, which means it must deal
with 64 bit block counts.
2005-01-21 01:09:04 +00:00
Peter Pentchev b82fa1e083 Unbreak the build when Kerberos IV is *not* built - add libkafs5 to
the krb4 dependencies.

Approved by:	rwatson
2005-01-20 08:41:52 +00:00
Jeffrey Hsu 3d9b68cde4 Merge copyright changes from -current.
Approved by:	re (Ken Smith).
2005-01-19 21:19:41 +00:00
Ken Smith 0801903ffb MFC revision 1.105:
date: 2002/09/07 04:59:49;  author: peter;  state: Exp;  lines: +1 -0
  Supposedly linux has added a 6th syscall arg register (%ebp).  I am not
  100% sure if this is enough, but it will not harm anything.

This appears to fix some breakage with the emulation of linux's mmap2().
When that function became available recently the linux executables started
using it which broke installing the emulators/linux_base-8 port.

Pointer from:	akiyama
MFS after:	1 day
2005-01-18 22:11:12 +00:00
Yaroslav Tykhiy d184ab77fe MFC 1.201: Use syslog(3) instead of err(3) when a daemon.
A daemon has no stderr to send its complains to.
2005-01-18 21:56:30 +00:00
Joerg Wunsch 8b42201cf9 MFC: (rev 1.84) document the actual behaviour for displaying the `Total'
line.
2005-01-18 10:53:10 +00:00
Robert Watson b9bcee4859 Do build hprop(8) by default, as we already build hpropd(8) by default. 2005-01-17 17:36:12 +00:00
Robert Watson a73cac65a0 When building hprop, add ${KRB5DIR}/lib to the include path, as the
mit_dump.c expects to be able to include krb5/admin.h.
2005-01-17 17:35:38 +00:00
Scott Long de34f506e8 Add tap(4) to LINT
PR: kern/44260
Submitted by: Matthias Andree
2005-01-17 09:37:27 +00:00
Garrett Wollman b3034f2177 MFC IERS Bulletin C 29
Obtained from:	International Earth Rotation Service
2005-01-15 21:56:17 +00:00
David Malone 881887ac92 MFC: 1.104 of tcp_usrreq.c
when IN6P_AUTOFLOWLABEL is set, set the flowlabel on outgoing tcp
connections.
2005-01-15 15:58:17 +00:00
David Malone 66779db452 MFC of 1.61, 1.62 of tcp_syncache.c and 1.107 tcp_var.h.
The tcp syncache code was leaving the IPv6 flowlabel uninitialised
for the SYN|ACK packet and then letting in6_pcbconnect set the
flowlabel later. Arange for the syncache/syncookie code to set and
recall the flow label so that the flowlabel used for the SYN|ACK
is consistent. This is done by using some of the cookie (when tcp
cookies are enabeled) and by stashing the flowlabel in syncache.
2005-01-15 15:55:59 +00:00
Diomidis Spinellis 5e07d07a5a Correct the pbio include file location.
Noticed by:	ru
Reviewed by:	ru
2005-01-14 14:21:06 +00:00
Christian Brueffer 68e129a8d3 MFC: rev. 1.10
- list the Hama USB RS-232 Serial Adapter as supported
- bump .Dd
2005-01-14 12:27:26 +00:00
Ruslan Ermilov 80263571fb MFC: Sync with HEAD. 2005-01-14 09:55:41 +00:00
SUZUKI Shinsuke ae3a8ecbba MFC Rev. 1.71
fixed an unexpected addr/port matching failure in IPv6 SA management

PR:		kern/72393
2005-01-13 22:30:16 +00:00
Eric Anholt d7ebb07ca9 Remove and recreate with correct permissions/owner three additional X socket
directories.

Submitted by:	lesi
2005-01-13 21:50:14 +00:00
Scott Long b71645face Teach libdisk about the ipsd devices. Note: I don't like to editorilize in
commits, but libdisk is just plain lame.  Being required to teach it about
each disk device name is part of the magic folklore that is just plain
wrong.  This is one of the many many many reasons why libdisk & sysinstall
need to be thrown away and rebuilt from scratch.  No amount of tweaking
and fixing them will make them better.
2005-01-13 17:55:24 +00:00
Diomidis Spinellis b6af7ee1d2 MFC 1.16 (plug memory leak)
PR:		bin/75656
2005-01-13 08:41:36 +00:00
Hidetoshi Shimokawa f6a3a3d70d MFC rev. 1.50:
Clear PCIM_CMD_SERRESPEN and PCIM_CMD_PERRESPEN for broken hardware.
2005-01-13 07:16:20 +00:00
Scott Long 52ddd62ff1 Add the ips.4 manual page. Add minor tweaks. 2005-01-13 01:01:10 +00:00
Scott Long e94b0bf53a Put the ips driver on disk2 of the install floppies. 2005-01-13 00:55:55 +00:00
Scott Long 004bd07ee0 Allow sysinstall to see ips devices. 2005-01-13 00:54:40 +00:00
Scott Long 8f61c29eb5 Add the ips and ipsd device nodes. 2005-01-13 00:53:17 +00:00
Scott Long 1ef30832eb Add the ips driver to GENERIC and LINT. 2005-01-13 00:50:47 +00:00
Scott Long 9c85ebd9f5 Add the kernel compile glue for the ips driver. 2005-01-13 00:48:31 +00:00
Scott Long 50db01c949 Hook the ips module up. 2005-01-13 00:47:50 +00:00
Scott Long 568b459d6d Add the ips module. 2005-01-13 00:47:33 +00:00
Scott Long d29d754d65 At long last, MFC the IBM ServeRAID driver. This is a backport of the
sources from HEAD, as opposed to a forward port of the original IBM 4.x
sources.  As such, it benefits from the many reliability improvements
that have happened to the driver in HEAD.  This is a RELENG_4_11 candidate.
2005-01-13 00:46:40 +00:00
Scott Long 982b7f9882 Add the ipsd major number. 2005-01-13 00:37:02 +00:00
Ceri Davies 92d68b0145 MFC r1.17:
Add a usb category for USB PRs.

Approved by:	re (kensmith)
2005-01-12 20:07:19 +00:00
Ken Smith e5005e050d Add a period to the end of a sentence, and bump document date.
Pointy hat:	kensmith
2005-01-12 17:24:22 +00:00
Ken Smith 59cac3bcac Regen from syscalls.master v1.30.2.9. 2005-01-12 16:36:50 +00:00
Ken Smith c2e9e58b60 This is a partial MFC of the current RELENG_5 Linux emulation, which
became necessary due to the plans for using linux_base-8 for the 4.11
release.  Among other things running "/compat/linux/bin/ls -l" dumped
core because it tried to use completely non-existent system calls.  We
don't actually implement the system calls it's trying to use but we at
least need to have something in place that returns an error code.

Things being added:

  - wrapper for mmap2(2) from
        sys/compat/linux/linux_machdep.c v1.31
        sys/compat/linux/linux_dummy.c v1.35
  - add dummy entries for fadvise64(2) and *xattr(2) family of syscalls from
        sys/compat/linux/linux_dummy.c v1.37
  - add ENOATTR error code because that is what the *xattr(2) family of
    syscalls returns, which in turn required tweaking the error code
    translation table in the NFS server code[1].
  - add $FreeBSD$ token to lib/libc/gen/errlst.c so it passes pre-commit
    check script...

[1] Noticed by rwatson.

Requested by:	nectar
Reviewed by:	nectar, sobomax, re@
Tested by:	nectar, ceri
MFS after:	2 days
2005-01-12 16:34:54 +00:00
Maxime Henrion 4b068b7114 Merge if_fxp.c:1.221 from HEAD to RELENG_5:
date: 2005/01/04 19:30:14;  author: mux;  state: Exp;  lines: +1 -1
  Allow fxp(4) cards with a revision id of 0 to use the 82503 serial
  interface as well.  This is not an expected revision id per the
  datasheet, but unfortunately there are such cards out there with
  a 82557 chipset, and they want to use the 82503.

  PR:             kern/75739
  Reported by:    Andre Albsmeier <[email protected]>
2005-01-12 13:27:29 +00:00
Christian Brueffer 7b579ecc74 MFC: rev. 1.17
- add new supported chips: 82541ER and 82546GB
- change .Nd to look better (no need to mention FreeBSD there)
- bump .Dd
2005-01-12 11:21:47 +00:00
Christian Brueffer 90bbe170cb MFC: rev. 1.30
- some SATA controllers were erroneously marked as SCSI, correct that
- move those controllers into the right place
- mention that the driver supports SATA
- bump .Dd
2005-01-12 11:21:10 +00:00
Christian Brueffer ed21603e68 MFC:
- add vendor names for the MegaRAID cards, since LSI aquired
  the AMI storage devision some time ago
- bump .Dd
2005-01-12 11:20:00 +00:00
Ken Smith e3128815a1 Sync list of ftp sites with current reality. 2005-01-12 03:56:05 +00:00
Ken Smith 796ca75f44 MFC of an off-by-one fix sos made to HEAD in v1.96 of ata-chipset.c and
v1.50 of ata-lowlevel.c.  From his log message:

  Log:
  Compensate for off by one bugs in disk firmware for 48BIT addressing cutover.

Requested by:	marck
Glanced at by:	sos
MFC after:	2 days
2005-01-11 18:25:01 +00:00
Ken Smith 0a5e413878 More disc1 package set adjustments. With the shift to linux_base-8 we
got to the point there wasn't enough space to put much more than the
basic gnome2-lite/kde-lite packages on disc1 which was painful.  So
for 4.11 we're going to make a disc1-gnome and disc1-kde which allows
us to put back a bunch of packages that have been slowly stripped out
of disc1 due to size issues.  Set the environment variable PKG_WINDOW
to select which base windowing system to include, default is gnome.

MFC after: 2 days
2005-01-11 05:07:44 +00:00
Ian Dowse 25ed983af9 MFC: 1.6; When searching for a suitable block of memory on the free
list, skip blocks that are too big by a factor of two or greater.
This avoids some cases of extremely inefficient memory use that can
occur when large (e.g. 64k) blocks on the free list get used when
allocating a 4k chunk of 64-byte fragments. Because fragments have
their own free list, the 60k difference got lost forever every time.
2005-01-11 01:19:43 +00:00
Julian Elischer f085049624 MFC:
Replace the static "qdat" structure with a per-instance softc field
  in all USB ethernet drivers. The qdat structure contains a pointer
  to the interface's struct ifnet and is used to process incoming
  packets, so simultaneous use of two similar devices caused crashes
  and confusion.

PR: kern/59290
2005-01-10 23:01:35 +00:00
Alexey Zelkin 19949e7d34 MFC: rev 1.40, fix redraw of checklist box while specifiyng manual dialog
size
2005-01-10 18:17:22 +00:00
Wilko Bulte 84d8785e65 MFC:
Document slot specific location for base I/O board on AS600.

Thanks to: Charles Smeijer for getting me my AS600.
2005-01-07 21:11:08 +00:00
Wilko Bulte 99092ca1ff MFC:
Note that fdisk is not used on Alpha.
Remove outdated info on install media.

Submitted by: "William H. Magill" <[email protected]>
2005-01-07 19:45:06 +00:00
Guido van Rooij cfd2ab27b8 MFC: 1.6 (link ipnat.conf manpage)
Requested by: Hideyuki KURASHINA <[email protected]>
2005-01-07 09:18:31 +00:00
Julian Elischer b5505c5064 Remove disparaging comment. 2005-01-07 06:35:06 +00:00
Vinod Kashyap 7029cef6c0 MFC of recent changes related to the 9.1.5.2 release of twa on the 3ware website.
Reviewed by: re
Approved by: re
MFC after: 1 day
2005-01-07 01:00:46 +00:00
Maxim Konovalov b9a32fb9fa o Indent (from rev. 1.59). 2005-01-05 09:19:33 +00:00
Maxim Konovalov 3cb00801c8 o MFC a part of rev. 1.59: do not ever try to write a sparse files with
-z (compress the core dump and kernel) flag.

PR:		bin/36136
Submitted by:	Dorr H. Clark, Dmitry Frolov
2005-01-05 09:14:34 +00:00
Mike Silbersack 01e59d4dee MFC revs 1.235 and 1.264;
Improve the security of RST handling, and add a sysctl which can fall
back to the old method.
2005-01-05 08:45:43 +00:00
Kirill Ponomarev e162c760ec MFC: Remove trailing spaces. 2005-01-05 08:38:32 +00:00
Julian Elischer 8a0dbc818b Fix a comment. 2005-01-05 00:48:55 +00:00
Marius Strobl 7028a338a2 Fix a mis-merge in the MFC of rev. 1.64 in rev. 1.3.2.3; the following
change wasn't included:
- Set the CAM status to CAM_SCSI_STATUS_ERROR rather than CAM_REQ_CMP
  in case of a CHECK CONDITION.

Noticed by:	Uwe Doering <[email protected]>
2005-01-03 18:38:57 +00:00
Josef El-Rayes fae19d5cc7 MFC fixes to string modification code.
Approved by:	re
Discussed on:	re, secteam
2005-01-03 15:00:55 +00:00
Robert Watson a547ce8244 Merge ipx.h:1.18 from HEAD to RELENG_4:
date: 2004/06/22 21:46:49;  author: bms;  state: Exp;  lines: +3 -0
  Improve source-code compatibility with Linux applications using the
  IPX stack.

  PR:             kern/65217
  Submitted by:   Radim Kolar
2005-01-02 13:00:51 +00:00
Kirill Ponomarev a8f7886c9e MFC: rev 1.24
date: 2004/12/30 13:09:34;  author: krion;  state: Exp;  lines: +3 -1
    Add LOG_NTP facility.

    Submitted by:   Kurt Jaeger <pi at complx dot LF dot net>
    Approved by:    ru
    MFC after:      3 days
2005-01-02 08:53:09 +00:00
Ken Smith 58fa08508a emulators/linux_base -> emulators/linux_base-8 per kris@. 2005-01-02 08:32:57 +00:00
Doug White b0846317e4 MFC: Fix locking/better IFF_OACTIVE handling (by jmg). Correct detected RAM
sizing for 88E8001 parts.  Fix off-by-one in VPD data read.  Correct handling
of jumbo frames for Yukon based devices.

PR:		kern/75460
Committed on behalf of: bz
2005-01-02 05:27:59 +00:00
Mike Silbersack cf12f9ab09 MFC of port randomization rate-based disabling:
in_pcb.c rev 1.157
in_pcb.h rev 1.79
ip_input.c rev 1.293
ip_var.h rev 1.93

Approved by:	re
2005-01-02 01:53:44 +00:00
Christian Brueffer abcf3ccf0a MFC: rev. 1.25
- call the driver 'bktr' instead of 'brooktree' throughout the document
- add a HARDWARE section
- add a more descriptive NAME section
- update for recently imported Pinnacle PCTV support
- add Branko Lankester, the original author of the PCTV patches,
  to the AUTHORS section
- bump .Dd
2005-01-01 14:39:41 +00:00
Julian Elischer 5d4d00597a MFC:
Fix a bug where an aborted command was removed from the
queue but not from the hardware's cache of it, leading to the
hardware DMAing into "freed" memory buffers.  (leading to crashes when
a usb ransaction was timed, but but eventually happenned)
2005-01-01 10:39:36 +00:00
Maxim Sobolev 297973c870 Complete 2005 transition.
Happy New Year! :-)
2005-01-01 07:29:20 +00:00
Warner Losh 81e26f4690 MFC: 2005
Approved by: re@ (kensmith)
2004-12-31 19:16:33 +00:00
Peter Pentchev 06018667aa Fix the build: gcc 2.95 with -ansi does not like C++ // comments. 2004-12-31 12:25:54 +00:00
Ken Smith 5edfe29d85 MFC of rev 1.329 of vm_object.c:
date: 2004/07/28 18:23:08;  author: alc;  state: Exp;  lines: +2 -2
  Correct a very old error in both vm_object_madvise() (originating in
  vm/vm_object.c revision 1.88) and vm_object_sync() (originating in
  vm/vm_map.c revision 1.36): When descending a chain of backing objects,
  both use the wrong object's backing offset.  Consequently, both may
  operate on the wrong pages.

  Quoting Matt, "This could be responsible for all of the sporatic madvise
  oddness that has been reported over the years."

  Reviewed by:    Matt Dillon

Reviewed by:	alc
Helped by:	DFly vm_map.c rev 1.31, vm_object.c rev 1.17
2004-12-31 11:12:18 +00:00
Julian Elischer 20d66878df MFC:
Formatting changes and a small correction when count of companions is wrong.
Diff reduction.
2004-12-31 08:45:18 +00:00
Julian Elischer b9194a374e MFC:
Slightly reorganise part of the ohci_softintr() function
to better keep track of the total amoutn transferred during a
transfer. Seems similar to some code in the NetBSD version.
I notice they have incorporated matches from him so I don't know which
direction it went.

Submitted by:   [email protected]
Obtained from:  patches to make the ueagle driver work
2004-12-31 08:40:04 +00:00
Julian Elischer 72785df59a MFC:
Allow /sys/dev/bktr to support Pinnacle PCTV Rave cards

PR:             73669
Submitted by:   arne_woerner at yahoo dot com
2004-12-31 08:33:52 +00:00
Julian Elischer 24270727e5 MFC of some whitespace chenges.
The change in current had a real bugfix but when I merged it in to 4.x
it disappeared and only the formatting changes remained..
Oh well it's a diff reduction..
2004-12-31 08:15:19 +00:00
Julian Elischer fd31cd3345 MFC: Add support for USB Microsoft Intellimouse
Submitted by:   Matt Wright <[email protected]>
2004-12-31 07:32:13 +00:00
Tony Ackerman da522905cf Corrected a workaround that should only be applied to one adapter. Workaround
was causing device hangs when incorrectly applied to other adapters.

PR:		kern/66634
2004-12-31 00:15:36 +00:00
Tony Ackerman 168c2a2543 Added device id support for Intel 82541ER and 82546GB dual port PCIE adapter.
PR:	None
2004-12-30 22:36:54 +00:00
Julian Elischer 39332a707d Merge a fix from Dragonfly:
to quote Matt:
Fix a very serious bug in contigmalloc() which we inherited from FreeBSD-4.x.
The contigmalloc() code incorrectly assumes that a page in PQ_CACHE can
be reused without having to do any further checks and it unconditionally
busies and frees such pages, and assumes that the page becomes PQ_FREE even
though it might actually have gone to a PQ_HOLD state.  Additionally the
contigmalloc() code unconditionally sets m->object to NULL, ignoring the
fact that the page will be in the VM page bucket hash table if object
happens to not be NULL, leading to page bucket hash table corruption.

The fix is two fold.  First, we add checks for m->busy, (m->flags & PG_BUSY),
m->wire_count, and m->hold_count and do not reuse a page with any of those
set.  We do this for all pages, not just PQ_CACHE pages, though it is
believed that it only needs to be done for PQ_CACHE pages.  Second, we
replace the m->object = NULL assignment with an assertion that it is
already NULL, since it had better be NULL and we cannot just set it to NULL
unconditionally without blowing up the VM page hash table.

Symptoms of the bug include:

    * Filesystem corruption, in particular with slower disk drivers (e.g.
      like the 'twe' driver), or in systems with drivers which use
      contigmalloc() a lot (e.g. require bounce buffers).

      Mangled directory entries, bad indirect blocks (containing data instead
      of indirect block pointers), and files containing other file's data.

    * 'page not found in hash' panic.

This is the last major VM issue in DragonFly, one that has plagued in
particular David Rhodus (who is a heavy user of the 'twe' driver) for over
a year.  I would never have found this bug if not for DR's persistence and
the dozens of kernel cores he was able to provide me over the last year.  We
finally got a core with a 'smoking gun', after having written a program
(/usr/src/test/debug/vmpageinfo.c) to run through all the VM pages and check
their hash table association for correctness it became obvious that pages
were being reused without being removed from the hash table which finally
led to contigmalloc*().

Many thanks to: David Rhodus!  Free gift enclosed!
2004-12-30 22:24:43 +00:00
Christian Brueffer cd620ce8d8 MFC: rev. 1.7
Fix typos.
2004-12-30 02:54:27 +00:00
Christian Brueffer 11b9d974bf MFC: rev. 1.6 + 1.7
The ixgb(4) driver actually first appeared in 5.3 and the upcomming 4.11.
2004-12-29 16:37:19 +00:00
Maxim Sobolev 5fe5b02ecb MFC: add missed mpt(4) manpage. 2004-12-29 15:57:30 +00:00
Maxim Sobolev f9453f732f MFC: add support for FC929X. 2004-12-29 15:49:18 +00:00
Maxime Henrion 69c9ec81e3 Merge if_fxp.c:1.220 from HEAD to RELENG_4:
date: 2004/12/20 10:18:21;  author: mux;  state: Exp;  lines: +2 -2
  Only try to use the 82503 serial interface for the 82557 chipsets.  The
  datasheet says it is only valid for such chipsets and shouldn't be used
  with others.  This fixes some 82559 based cards which otherwise only
  work at 10Mbit.

  MFC after:      5 days
  Tested by:      krion
2004-12-28 22:49:24 +00:00
Maxim Konovalov f89659a324 MFC rev. 1.19: allocate an additional white space in a username column. 2004-12-27 13:22:37 +00:00
Maxim Konovalov d849b2f8ce MFC rev. 1.9: no macros for sigemptyset(3) and friends,
sigismember(3) could return -1.
2004-12-27 13:18:19 +00:00
Maxim Konovalov ddb449118a MFC rev. 1.94: add a missed "." . 2004-12-27 13:11:02 +00:00
Maxim Konovalov 27281cd4ec MFC rev. 1.27 dump.h and rev. 1.16 itime.c: do not dump core
in -W if dumpdates was not readable and ddatev == NULL; remove
unused ddates_in.
2004-12-27 12:53:30 +00:00
Maxim Konovalov b5bbb63d0d MFC revs.1.81 - 1.87: FreeBSD 4.10-RELEASE, DragonFly BSD 1.0, 6.0-CURRENT,
FreeBSD 5.3, OpenBSD 3.6, NetBSD 2.0, "FreeBSD Design and Impl." book
description.
2004-12-27 12:23:28 +00:00
Wilko Bulte d5fcd3e2bd Make LCA entry consistent with the other ones. 2004-12-27 11:28:14 +00:00
Wilko Bulte 9e65f0866f Add Alpha CPU types 10-15. 2004-12-27 11:17:39 +00:00
Wilko Bulte 37c120575b move em(4) to MI section 2004-12-24 14:02:24 +00:00
Alexey Zelkin c824ab02d9 Fix longstanding typo
PR:	misc/50370
2004-12-24 08:00:30 +00:00
Mike Silbersack 15c54e979b MFC rev 1.259; accept RSTs when our window is closed. 2004-12-23 22:07:19 +00:00
Julian Elischer 6f3875497d MFC:
Small formatting change to allow ctags to parse the file successfully.
2004-12-23 21:38:07 +00:00
Wilko Bulte b2aa261ed5 move if_em from MD to MI
approval nodded by: scottl, ru
2004-12-23 18:50:58 +00:00
Christian Brueffer 472f85bd34 MFC: rev. 1.33
Nuke ports-picobsd, it was thrown out a while ago.
2004-12-22 17:23:44 +00:00
Yaroslav Tykhiy 40ae0ea23e MFC 1.37, 1.40: Document S_* macros and more struct stat fields.
Requested by:	roam
2004-12-22 09:43:19 +00:00
Ken Smith 5acc183353 Adjust the package set on disc1 so it fits as of 4.11RC1. 2004-12-22 06:21:31 +00:00
Ken Smith 9c1b8cd053 MFC rev 1.103:
date: 2004/11/03 18:26:06;  author: kensmith;  state: Exp;  lines: +7 -0
  Update the list of package names/descriptions.

MFC after:	3 days
2004-12-22 04:45:49 +00:00
Yaroslav Tykhiy 4e99bea24b MFC 1.198:
Never emit a message to stderr: use syslog instead.
When in inetd mode, this prevents bogus messages from
appearing on the control channel.  When running as a
daemon, we shouldn't write to the terminal we used to
have at all.
2004-12-21 12:44:00 +00:00
Christian Brueffer bc0f34fe75 MFC: rev. 1.11
Properly capitalize FireWire
2004-12-20 21:43:57 +00:00
Christian Brueffer 186ee3334b MFC: rev. 1.6
- remove nonexistant "device fwohci"
- sort SYNOPSIS devices
- capitalize Ethernet
- bump .Dd
2004-12-20 21:43:18 +00:00
Christian Brueffer 45f716af41 MFC: rev. 1.4
Assorted markup, spelling, and grammar fixes.
2004-12-20 21:42:37 +00:00
Christian Brueffer 53ef57b5d5 MFC: rev. 1.5
Assorted markup, spelling, and grammar fixes.
2004-12-20 21:41:35 +00:00
Christian Brueffer 3592bc55ea MFC: rev. 1.14 - 1.16
- Properly capitalize Gigabit Ethernet.
- First update for the 5721/5750/5751 chips.
2004-12-20 20:06:26 +00:00
Paul Saab 4d878a0ee5 MFC: 5721 Support
Approved by:	re
2004-12-20 18:58:15 +00:00
Ruslan Ermilov 2f91dfe89e MFC: Sync. 2004-12-20 10:13:13 +00:00
Kirill Ponomarev 7a609a120b MFC: rev 1.48
Introduce new variables FETCHINDEX, MASTER_SITE_INDEX and add
description for MASTER_SITE_BACKUP.
2004-12-20 08:09:58 +00:00
Christian Brueffer e85c0aa544 MFC: rev. 1.6
Remove clauses 3 and 4 of the license.
2004-12-19 10:36:12 +00:00
Ken Smith d784ed8488 Uncomment entries under the "not found in doc-common" section.
Thanks to:	jkoshy
Requested by:	ru
2004-12-19 05:02:05 +00:00
cvs2svn 6d9eff8b1e This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-12-18 19:12:07 +00:00
Gleb Smirnoff 4a8b975a4d MFC 1.32:
Note that send(2) is no longer applicable to divert(4) sockets.
2004-12-18 09:26:37 +00:00
Ken Smith 47b516386e Add 4.11 to the releases not found in doc-common.
Requested by:	ru
2004-12-18 01:11:33 +00:00
Boris Popov a320e6f34d Initialize olen value and use size_t type where necessary.
PR:		kern/70236
Approved by:	re
2004-12-17 12:55:52 +00:00
Ken Smith fc83953d68 Bump __FreeBSD_version for RELENG_4 to mark beginning of 4.11-STABLE.
Approved by:	re (implicit)
2004-12-17 06:41:35 +00:00
Ken Smith 33901cd56f The branch for RELENG_4_11 has happened so RELENG_4 shifts to being
called -STABLE, though note it's in a 'transition' period (we haven't
done the release...).

Approved by:	re (implicit)
2004-12-17 06:32:12 +00:00
Ken Smith dd175fc8c4 Change version to 4.11 in preparation for RELENG_4_11 branch.
Approved by:	re (implicit)
2004-12-17 04:35:57 +00:00
Ken Smith f40996fdf5 Change version to 4.11 in preparation for branching of RELENG_4_11.
Approved by:	re (implicit)
2004-12-17 04:33:43 +00:00
Darren Reed 639336d2b8 Allow ipnat redirect rules to work for non-TCP/UDP packets.
PR:		70038
Submitted by:	[email protected]
Reviewed by:	darrenr
Approved by:	re(kensmith)
Obtained from:	[email protected]
2004-12-17 02:24:30 +00:00
Darren Reed f93ab8566e Synchronise all of the files in src/contrib/ipfilter/ with those in
src/sys/contrib/ipfilter/netinet where the correct versions are located.

PR:		70492, 73580
Approved by:	re(kensmith)
2004-12-16 20:48:06 +00:00
Darren Reed 1117cf8f7d Using just m_pullup to get all of the interesting bits in packet into one
buffer doesn't work for ipv6 packets, so use m_defrag() here instead as an
easy drop-in replacement.

PR:		kern/70399
Submitted by:	[email protected]
Reviewed by:	darrenr
Approved by:	re(kensmith)
Obtained from:	[email protected]
2004-12-16 20:43:51 +00:00
Roman Kurakin 952ffd27cd MFC -j 1.16 -j 1.17:
revision 1.17
	date: 2004/12/14 23:13:08;  author: rik;  state: Exp;  lines: +1 -1
	Bring back ability to use FR support with sppp from Cronyx.

Approved by:	re (kensmith)
2004-12-16 19:26:15 +00:00
Wilko Bulte 15a11c7ee3 Document floppy brokennes on DS10-class Alphas.
Approved by: re (kensmith) / blanket
2004-12-15 22:10:31 +00:00
Yaroslav Tykhiy 140ea6d917 MFC: Make popen(3) thread-safe for libc_r.
Submitted by:	marck
Approved by:	re (kensmith)
2004-12-15 12:39:52 +00:00
Ken Smith 592b3f06d6 Attempt #2 at fixing boot floppies. Move NFS back into kernel to solve
current problem of mfsroot.flp overflowing (note to self: can't speed up
test release builds for boot floppy sizes by using NODOC=).  Address
original problem by removing sa (SCSI tape) and pass (SCSI passthrough)
devices.

Approved by:	re (scottl)
Pointy hat:	kensmith
2004-12-15 07:23:46 +00:00
Hiroki Sato dac0d4e120 Update &release.manpath.*;.
Pointed out by:	rik
2004-12-13 20:30:25 +00:00
Roman Kurakin fc55f827c3 Add Tau-PCI-L(/R) entry to the list of supported hardware by cp(4). 2004-12-13 19:55:06 +00:00
Marius Strobl baec73815e - MFC:
lib/Makefile 1.155
  libexec/Makefile 1.57
  usr.bin/Makefile 1.234 (partly), 1.235

  Build non-crypto telnet(1) and telnetd(8) if NO_OPENSSL is defined.

- Replace the check for the non-existence of src/secure and src/kerberosIV
  with a check for the non-existence of src/crypto only. This is to bring
  these checks in line with the demise of the NOSECURE knob and because
  if src/crypto doesn't exist we won't build any crypto stuff including
  not Kerberos IV (and also not Kerberos 5 for that matter).
  Note: On HEAD all these checks for the existence of crypto sources even
  have been completely removed.

Discussed with:	ru (some months ago)
Reviewed by:	ru (some months ago)
Approved by:	markm (telnet and secure bits, some months ago)
2004-12-13 14:10:30 +00:00
Marius Strobl 3d6414cf57 Add a note that MAKE_KERBEROS4 and MAKE_KERBEROS5 depend on OpenSSL
(and therefore must not be used together with NOCRYPT or NO_OPENSSL).

Corresponds to:
share/man/man5/make.conf.5 1.73
share/examples/etc/make.conf 1.216

Reviewed by:	ru (some months ago)
2004-12-13 14:03:52 +00:00
Marius Strobl 017b126fef MFC: 1.362
Unbreak world build if NO_OPENSSL is defined but MAKE_KERBEROS4 or
MAKE_KERBEROS5 are.

Reviewed by:	ru (some months ago)
Approved by:	markm (telnet and secure bits, some months ago)
2004-12-13 13:58:43 +00:00
Marius Strobl f60b09ba5c MFC:
Makefile.inc1 1.361
bin/ed/Makefile 1.22
lib/Makefile 1.157
lib/libcrypt/Makefile 1.31
lib/libfetch/Makefile 1.41
lib/libpam/modules/modules.inc 1.17
libexec/Makefile 1.61
share/examples/etc/make.conf 1.215
share/man/man5/make.conf.5 1.73
usr.bin/Makefile 1.239
usr.bin/fetch/Makefile 1.14
usr.sbin/pkg_install/Makefile 1.14
usr.sbin/pkg_install/add/Makefile 1.17
usr.sbin/pkg_install/info/Makefile 1.17
usr.sbin/pkg_install/version/Makefile 1.12
usr.sbin/ppp/Makefile 1.95, 1.96
usr.sbin/pppd/Makefile 1.25
usr.sbin/sendmail/Makefile 1.40
usr.sbin/tcpdump/tcpdump/Makefile 1.36

Retire the useless NOSECURE knob.

The motivation for this MFC is that MAKE_KERBEROS4 and MAKE_KERBEROS5
are meant to be buildable by various makefiles when NOSECURE is set but
this was broken because Kerberos depends on e.g. des(3) from OpenSSL
which wasn't built when NOSECURE was defined. Fixing the NOSECURE knob
however would have meant to make it do the same as the NOCRYPT knob.
If you had been using the NOSECURE build knob please now use the NOCRYPT
knob instead.

Discussed with:	ru (some months ago)
Reviewed by:	ru (some months ago)
Approved by:	markm (telnet and secure bits, some months ago), kensmith (re)
2004-12-13 13:50:02 +00:00
Stephen McKay ff100f6701 Unfortunately, abs() is not always available, since in 4.x it is magically
supplied by the compiler and LINT is compiled with -no-builtin.  Fix this
by defining abs() as a macro.

Another pointy hat for my collection...

Pointed out by: tinderbox, glebius, and ken.
2004-12-13 01:59:28 +00:00
Marius Strobl 7de2b6b273 MFC:
Remove GNU patch(1) sources unused since FreeBSD moved back to the
patch(1) sources in src/gnu/usr.bin/patch nearly seven years ago.
2004-12-13 00:32:48 +00:00
Marius Strobl 4e1a5051d4 MFC whois.c:
1.42: Add a -k flag for querying whois.krnic.net (the National Internet
      Development Agency of Korea) which hold details of IP address
      allocations within Korea.

MFC whois.1:
1.33: Add a -k flag for querying whois.krnic.net (the National Internet
      Development Agency of Korea) which hold details of IP address
      allocations within Korea.
1.34: Bump document date.

Short MFC interval to get this into RELENG_4 before the freeze for
FreeBSD 4.11.

MFC ok'ed by:	ceri
2004-12-12 23:53:50 +00:00
Scott Mitchell b5f2202a20 MFC: Add xe(4) manpage to 4.x
Approved by:	imp (mentor)
2004-12-12 23:50:44 +00:00
Scott Mitchell ea7dfe9255 MFC: rest of r1.267 - Add Xircom CEM28 and CEM33 cards.
Approved by:	imp (mentor)
2004-12-12 23:46:25 +00:00
Marius Strobl 30e7aee611 MFC whois.c:
1.29: Mark a function as __printflike().
1.30: Leave the `copyright' variable exposed, since the main purpose of
      it is to put a copyright in the object file.
1.35: Add support for identifying NORID (norwegian top level registry)
      handles.
1.38: Add whois.iana.org to the whois(1) utility, under the -I option.
1.39: Add whois.abuse.net to whois(1).
1.40: Add -b to usage.
1.41: Add special case for the german whois nameserver.

MFC whois.1:
1.29: mdoc(7) police: markup polishing.
1.30: Add whois.iana.org to the whois(1) utility, under the -I option.
1.31: Date bump.
1.32: Add whois.abuse.net to whois(1).
2004-12-12 23:02:45 +00:00
Marius Strobl f84262dc00 MFC: 1.64
- Set the CAM status to CAM_SCSI_STATUS_ERROR rather than CAM_REQ_CMP
  in case of a CHECK CONDITION.
- Make this driver return SCSI status information.
- While here, factor out the clearing of the CAM status from every
  element of the switch statement to only once before the switch.

MFC ok'ed by:	scottl (some months ago)
2004-12-12 22:23:10 +00:00
Brooks Davis 1a7e6820ce s/do_no_use/do_not_use/
Reported by:	ceri
Pointy hat to:	brooks
2004-12-12 21:08:33 +00:00
Brooks Davis 5f2f58bf80 MFC the addition of ifi_datalen to struct if_data and ifconfig support
for it.  The change to struct if_data differs slightly from the one in
5.3 in that a pad is added after ifi_xmitquota rather then adding
ifi_link_state before ifi_recvquota.  This is necessicary to maintain
the 4.x ABI.
2004-12-12 20:12:50 +00:00
Archie Cobbs 7eeeb757be MFC: (1.52) Disable protocol field compression on inner frame when compressing. 2004-12-12 19:37:52 +00:00
Gregory Neil Shapiro bf31515632 MFC: Enable _FFR_DEAL_WITH_ERROR_SSL to deal with OpenSSL error returns of 0.
PR:	bin/73105

     Revision  Changes    Path
     1.48      +1 -1      src/usr.sbin/sendmail/Makefile
2004-12-12 18:59:26 +00:00
Wilko Bulte 95e682dad3 Alpha needs to get USB ethernet devices out of BOOTMFS, so the newly
added axe(4) needs to be here as well.

<quote>
# USB support
# (if you add any USB devices to this list, they must be added to the Alpha

#  section of src/release/scripts/dokern.sh)
# USB Ethernet
</quote>

Forgotten by: rsm :-)
2004-12-12 18:51:39 +00:00
Shunsuke Akiyama a2e85ec8b5 Hook up bfe.4 man page. 2004-12-12 14:05:28 +00:00
Roman Kurakin ac1daac5ba MFC:
----------------------------
	revision 1.25
	date: 2004/07/07 19:36:12;  author: simon;  state: Exp;  lines: +20 -1
	Add a HARDWARE section.

	For cx(4) this was based on information from the Hardware Notes.

	OK'ed by:	rik
2004-12-12 13:27:23 +00:00
Roman Kurakin cdf457c9a1 MFC:
----------------------------
	revision 1.5
	date: 2004/09/05 22:09:53;  author: simon;  state: Exp;  lines: +16 -1
	Add a HARDWARE section which lists supported devices based on the
	Hardware Notes.

	MFC after:	3 days
2004-12-12 13:26:26 +00:00
Roman Kurakin 3bf0facda9 MFC:
Add Tau-PCI-L(/R) to list of supported hardware.
2004-12-12 12:29:39 +00:00
Roman Kurakin acb4e4179e MFC:
Add support for Tau-PCI/E3 rev. B
	Add support for Tau-PCI-L.
2004-12-12 11:38:05 +00:00
Mike Silbersack 46c635c8a5 Disable port randomization for now; it causes problems in some high speed
proxying applications.  Modified methods of randomization which should
solve this problem are being worked on, and will hopefully make it in
before 4.11-release.

This commit simply changes the default sysctl setting, it does not remove
or change the randomization feature in any way.
2004-12-12 04:40:11 +00:00
Stephen McKay befb53bc35 Merge from, um, oblivion: vinumvar.h 1.49, vinumrequest.c 1.73
When doing round-robin reads from a multi-plex volume, only switch to the
    next plex if the sector to be read isn't nearby the last read sector.

    Submitted by:  Vsevolod Lobko <[email protected]> via ru@

Not only does this boost multi-access performance, but surprisingly it helps
single process sequential reads on my IDE disk mirror.  My guess is that the
read-a-block skip-a-block read-a-block effect of strict round-robin defeats
some sort of on-disk caching, leading to poor performance.  With this patch,
longer contiguous reads from a single disk are more common.

/sbin/vinum needs to be rebuilt as this patch changes the size of struct plex.

OK'd by: grog
2004-12-12 04:10:51 +00:00
Ken Smith a12c5ccf61 Spell "filesystem" correctly both in the place I had copied it to and
the place I had copied it from.

Caught by:	ru
2004-12-12 02:19:58 +00:00
Scott Mitchell da2c889668 MFC: part of r1.267 - Add Xircom XEM5600 card.
Approved by:	imp (mentor)
2004-12-11 23:29:14 +00:00
Scott Mitchell 255430b096 MFC: r1.271 - Add Intel EtherExpress PRO/100 LAN/Modem card.
PR:		53027
Submitted by:	John Merryweather Cooper <coop9211 at uidaho dot edu>
Approved by:	imp (mentor)
2004-12-11 23:23:02 +00:00
Scott Mitchell 009c6816c0 MFC: r1.19 - clean up resources when attach fails.
PR:		kern/34306
Submitted by:	gibbs
Approved by:	gibbs, imp (mentor)
2004-12-11 23:20:23 +00:00
Gleb Smirnoff 09ed676473 MFC:
Make route caching optional and disabled by default.

Approved by:	re (kensmith)
2004-12-11 20:39:12 +00:00
Wilko Bulte 72021241cb Alpha can use 1 or 2 Gbyte of physical RAM max.
Approved by: re (kensmith) - blanket
2004-12-11 20:28:14 +00:00
Alexander Nedotsukov 39adb0385e MFC: 1.21
Fix -t option processing.
Partially initialized tm structure was passed into mktime(3).

Approved by:	ru
2004-12-11 17:16:45 +00:00
Xin LI f6d3442de8 MFC 1.7: Correct two bugs that may result in incorrect CBCP response for
administrator specified number.
2004-12-11 11:23:56 +00:00
Jeffrey Hsu de9bbd1231 Merge rev 1.104 from current:
date: 2004/08/03 02:01:44;  author: hsu;  state: Exp;  lines: +1 -1
  Fix bug with tracking the previous element in a list.

  Found by:       [email protected]
  Submitted by:   [email protected]
2004-12-11 08:58:15 +00:00
Ken Smith 078d489abe The kern.flp floppy was, as usual, overflowing. Moving NFS out of the
kernel on the boot floppy and into the mfsroot.flp floppy as a module
seems to solve the space problem and doesn't break the install.
2004-12-11 03:16:53 +00:00
Ken Smith 9d19e1fc9b Add in some processing of the cvsbug script that has been done in the
past.  I think it got missed in the last cvs import.

Approved by:	peter
2004-12-10 18:19:19 +00:00
Yaroslav Tykhiy 02dc26bbbc MFC 1.24:
Fix off-by-one errors and potential buffer overruns
in handling file and link names that reach the allowed
maximum for old tar and ustar archive formats.
2004-12-10 15:38:36 +00:00
cvs2svn aeb7c8bf0c This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-12-09 23:13:19 +00:00
Scott Mitchell 5e8ee2104c MFC axe(4) manpage.
Approved by:	imp (mentor)
2004-12-09 00:16:13 +00:00
Scott Mitchell 8b8c0ecc55 Attach if_axe to the build.
Reviewed by:	iedowse
Approved by:	imp (mentor), re
2004-12-08 22:33:11 +00:00
Scott Mitchell ba6a372623 MFC if_axe USB 2.0 Ethernet driver
Submitted by:	Barry Bouwsma <freebsd-misuser at dyndns dot dk>
Reviewed by:	iedowse
Approved by:	imp (mentor), re
2004-12-08 22:17:28 +00:00
Scott Mitchell 919cf7713e Sync to 1.11.2.67 of usbdevs
Reviewed by:	iedowse
Approved by:	imp (mentor), re
2004-12-08 22:15:06 +00:00
Scott Mitchell ab09063bdb MFC Sitecom LN029 and System TALKS SGC-X2UL USB 2.0 Ethernet adapters, for
if_axe driver.

Reviewed by:	iedowse
Approved by:	imp (mentor), re
2004-12-08 22:11:11 +00:00
cvs2svn e540c83c5d This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-12-08 22:02:59 +00:00
Mark Peek a68f3e37e4 MFC v1.23: Add new PCI device ID for PERC4/DI. 2004-12-08 18:53:23 +00:00
David Malone 009a640b3e Sync with -current (except interface renaming changes):
1) Man page updates.
2) Update from KAME.
3) -n flag
2004-12-08 12:18:57 +00:00
David Malone c1f481dc2e Sync with -current:
1) Fix a typo in a comment.
2) Merge macros that abstract locking and memory allocation.
3) Use the right bit of constant data when finishing hashing the name.
2004-12-08 11:54:13 +00:00
Julian Elischer 5f894ea0fa Hey that wasn't suppposed to be ther yet either.
Revert part of MFC that is not supposed to come over yet.
2004-12-08 08:52:30 +00:00
Julian Elischer 59d2a4939b Oops that wasn't supposed to be in there..
revert part of previous MFC that snuck in..
2004-12-08 08:44:42 +00:00
Julian Elischer cfd1541b83 MFC miscellaneous changes from NetBSD 2004-12-08 08:22:05 +00:00
Julian Elischer 376b93cd23 MFC a slight API change to allow callers to learn the size
of the string descriptor loaded.
2004-12-08 07:55:48 +00:00
Julian Elischer d5da8444da MFC a change to allow us to open some devices that are a little
confused..
2004-12-07 21:41:41 +00:00
Wilko Bulte 161a873ca1 Nice idea, but no cigar: bge(4) makes the bootfloppy overflow, so loose
it from GENERIC again :-(
2004-12-07 17:52:54 +00:00
Roman Kurakin 12c433d00f MFC -j 1.29 -j 1.30, -j 1.34 -j 1.35
----------------------------
	revision 1.35
	date: 2004/12/03 16:57:15;  author: rik;  state: Exp;  lines: +4 -2
	Don not call pp_down()/pp_up() form XX_tlf()/XX_tls() in non PPP mode
	to privent running of PPP's state machine in non PPP mode.

	MFC: after 3 days.
	----------------------------
	revision 1.30
	date: 2004/08/13 12:35:52;  author: rik;  state: Exp;  lines: +6 -6
	branches:  1.30.2;
	Fix resource check while autodetection.
2004-12-07 16:47:06 +00:00
Roman Kurakin fa8d4a9c2a MFC -j 1.13 -j 1.14, -j 1.16 -j 1.17:
----------------------------
	revision 1.17
	date: 2004/12/03 16:57:15;  author: rik;  state: Exp;  lines: +4 -2
	Don not call pp_down()/pp_up() form XX_tlf()/XX_tls() in non PPP mode
	to privent running of PPP's state machine in non PPP mode.

	MFC: after 3 days.
	----------------------------
	revision 1.14
	date: 2004/08/13 12:35:52;  author: rik;  state: Exp;  lines: +6 -6
	branches:  1.14.2;
	Fix resource check while autodetection.
2004-12-07 16:44:53 +00:00
Roman Kurakin 6dcb2d80b7 MFC -j 1.13 -j 1.14:
----------------------------
	revision 1.14
	date: 2004/12/03 16:57:15;  author: rik;  state: Exp;  lines: +4 -2
	Don not call pp_down()/pp_up() form XX_tlf()/XX_tls() in non PPP mode
	to privent running of PPP's state machine in non PPP mode.

	MFC: after 3 days.
2004-12-07 16:42:11 +00:00
Kris Kennaway 2eb5fda4ca MFC: Add more commonly-used locale directories 2004-12-07 02:54:17 +00:00
Ken Smith c1b70db5e1 We're one week away from code freeze for the 4.11 release cycle. Bump
the version now as a heads-up to users because this week typically means
increased developer activity and the branch is a tiny bit more volatile
than "usual".
2004-12-06 14:39:44 +00:00
Olivier Houchard c7c3bc6980 MFC rev 1.5 and 1.6
r1.5: Note we now support the DC395U2W cards.
r1.6: Change the HARDWARE section to have the same style as in the other
FreeBSD section 4 manual pages.
2004-12-04 14:41:51 +00:00
Olivier Houchard eafc0f956f MFC the current state of the trm(4) driver. It notably adds support for the
DC395U2W adapters, and should fix panics/hangs under heavy load.

Reported and tested by: jmz
2004-12-04 14:41:37 +00:00
Roman Kurakin 690cc0d20f MFC (1.4-1.6):
revision 1.6
	date: 2004/11/29 15:32:31;  author: rik;  state: Exp;  lines: +1 -1
	Fix typo.

	Submitted by:   Janusz Muc'ka (Defacto) <gdef at cvd dot pl>
	MFC after:      3 days
	----------------------------
	revision 1.5
	date: 2004/05/20 16:40:06;  author: ru;  state: Exp;  lines: +293 -261
	branches:  1.5.2;
	Clean up language.

	Reviewed by:    rik
	----------------------------
	revision 1.4
	date: 2004/05/18 07:23:37;  author: ru;  state: Exp;  lines: +389 -269
	Markup overhaul.
2004-12-03 11:54:35 +00:00
Garrett Wollman 54d25fc02d MFC: new Argentina zoneinfo directory
Pointed out by:	kensmith
Pointy hat to:	wollman
2004-12-03 04:54:52 +00:00
Garrett Wollman 63ee143dd1 MFC tzdata2004e and 2004g. This is likely to be the last update of
tzdata on the 4-STABLE branch.  For ongoing maintenance, users should
be aware that compiled zoneinfo formats are compatible across all
platforms and all versions of FreeBSD.
2004-12-02 23:16:39 +00:00
Garrett Wollman be06288d86 MFC rev. 1.13 (newsletters V-9 and V-10), required for update of
timezone database.
2004-12-02 23:13:46 +00:00
Wilko Bulte 0c165b22e6 Add bge(4) as it has proved itself on Alpha.
Tested using: the gigE switch donated by DS
2004-12-02 19:06:43 +00:00
Christian Brueffer 5b62335a5e MFC: rev. 1.13
Re-formulate the first sentence for better readability
2004-12-02 02:07:12 +00:00
Christian Brueffer 54ab6db2ab MFC:
Xref polling.4 and bump .Dd
2004-12-02 02:01:37 +00:00
Colin Percival 37228edef3 FreeBSD-SA-04:17.procfs:
MFC (in the spirit of) revision 1.54 of
src/sys/fs/procfs/procfs_status.c

Approved by: so (nectar)
2004-12-01 21:33:57 +00:00
Gleb Smirnoff 124cdcc090 MFC 1.110:
- Since divert protocol is not connection oriented, remove SS_ISCONNECTED flag
  from divert sockets.
- Remove div_disconnect() method, since it shouldn't be called now.
- Remove div_abort() method. It was never called directly, since protocol
  doesn't have listen queue. It was called only from div_disconnect(),
  which is removed now.
2004-12-01 11:16:04 +00:00
Hidetoshi Shimokawa 5d2ed95fb3 MFC: Fix malloc type in free(). 2004-12-01 06:55:47 +00:00
Ceri Davies d8aaa247eb MFC r1.25:
Allow the -f argument to work.

  PR:		bin/73229
  Submitted by:	Irina Liakh <spell at itl dot ua>
2004-11-28 17:51:05 +00:00
Ken Smith b14633d38a Remove single-quotes from around version number, it breaks scripts that
parse the version number.

Approved by:	peter
2004-11-28 02:25:20 +00:00
Simon L. B. Nielsen 9a085daa1d MFC 1.46+1.47:
- Document the DISABLE_VULNERABILITIES knob.
- Don't say this manual page is too long, it's not that long.
- s/man page/manual page/g
- Bump document date.
2004-11-27 15:05:27 +00:00
Julian Elischer 2ebe307886 Apply a patch from Scott Mitchel to allow these devices to work
properly again. This is not a perfect fix but since this is only for 4.x
the 'not-goodness' of the patch will remain within this branch and should
never propogate..  "good enough for government work" as we say
in Australia.

PR:	69319
Submitted by:	scott+freebsd at fishballoon dot org
2004-11-26 00:34:20 +00:00
Simon L. B. Nielsen ebb8435c33 MFC 1.231:
Only write the rc.conf header when a new rc.conf is written.

Approved by:	trhodes
2004-11-25 22:54:04 +00:00
Yaroslav Tykhiy 0a03b46110 MFC:
ftpd.c   1.185  '\n' needs not to appear in reply() strings.

ftpd.c   1.186  Fix perror_reply() vs. reply() usage.
ftpcmd.y 1.62   ---"---
2004-11-25 10:38:07 +00:00
Julian Elischer 828352a9c9 MFC: Fix just the worst of the known timeout race conditions.
ehci.c 1.20
 uhci.c 1.159
 ohci.c 1.147
2004-11-24 19:04:30 +00:00
Julian Elischer d5ab398e13 MFC: recent USB2/EHCI related changes from NetBSD
ehci.c 1.16
  uhub.c 1.64
  usb_subr.c 1.73
  usbdivar.h 1.42
2004-11-24 18:55:46 +00:00
Julian Elischer f2f1e2b3da MFC 1.15 State saving under suspension conditions.
Dissabled under ifdefs as I can not test it fully, but diff
 reduction to allow further MFCs to be done easier.
2004-11-24 18:32:34 +00:00
Julian Elischer eb8290a4c3 MFC 1.14
Diff reduction to -current.
 MFC the detach code but do not turn it on as I cannot test it
 properly.  From iedowse and NetBSD
2004-11-24 18:26:53 +00:00
Julian Elischer 9bbedfce10 MFC support for interrupt pipes and better BIOS handover.
MFC: ehci.c rev 1.13 amd ehcivar.h 1.5
2004-11-24 18:10:44 +00:00
Julian Elischer 42c45a8785 MFC cleanups and such up to version 1.11
From NetBSD via -current
2004-11-24 18:02:22 +00:00
Julian Elischer a27b01c007 MFC: Some changes from NetBSD via -current Version 1.7
fixes a few toggle problems and cleans up some code and commenrts.
More to come.
2004-11-24 17:57:05 +00:00
Julian Elischer 943645ac3f MFC: add an extra device ID 2004-11-24 17:43:48 +00:00
Alexander Kabaev b0089b9824 Make the life of those who is stuck debugging multithreaded programs on 4.x
little easier. Teach gdb how to look for thread info in core files. This
allows for more detailed post-mortem analysis of crashed programs as users
should now be able to use standard gdb commands to list all threads running
in the program at the time of the crash and switch between them to look at
their backtraces and inspect their frames.

Allow gdb to cleanly detach multithreaded programs.

Tested by:	jhb
Approved by:	obrien
2004-11-22 19:09:02 +00:00
Giorgos Keramidas 5aabc8e551 MFC 1.23: Correctly document the return value of strerror() and
strerror_r() and the contents of the returned buffer for unknown
error codes.
2004-11-20 00:03:28 +00:00
Xin LI 05e94b0ac6 MFC 1.5:
Correct a potential DoS vulnerability, as described at

http://www.securityfocus.com/archive/1/379450
2004-11-18 15:21:41 +00:00
Colin Percival 7cc508c0c6 FreeBSD-SA-04:16.fetch:
MFC revision 1.75 of src/usr.bin/fetch/fetch.c
2004-11-18 12:02:29 +00:00
Simon L. B. Nielsen 148721d90b MFC v. 1.224:
Workaround a problem with Postfix MTA selection code when installing via
FTP by hard-coding the Postfix major and minor revision (for the current
stable version).

Approved by:	trhodes
2004-11-16 22:13:58 +00:00
Paul Saab 29cc66260f Bump __FreeBSD_version for VM fix dealing with unwiring of fictitious
pages.
2004-11-16 20:51:45 +00:00
Paul Saab fad00f014e MFC:
>alc         2004/05/21 21:53:52 PDT
>
>  FreeBSD src repository
>
>  Modified files:
>    sys/vm               vm_extern.h vm_fault.c vm_map.c vm_page.c
>  Log:
>    To date, unwiring a fictitious page has produced a panic.  The reason
>    being that PHYS_TO_VM_PAGE() returns the wrong vm_page for fictitious
>    pages but unwiring uses PHYS_TO_VM_PAGE().  The resulting panic
>    reported an unexpected wired count.  Rather than attempting to fix
>    PHYS_TO_VM_PAGE(), this fix takes advantage of the properties of
>    fictitious pages.  Specifically, fictitious pages will never be
>    completely unwired.  Therefore, we can keep a fictitious page's wired
>    count forever set to one and thereby avoid the use of
>    PHYS_TO_VM_PAGE() when we know that we're working with a fictitious
>    page, just not which one.
>
>    In collaboration with: green@, tegge@
>    PR: kern/29915

Reviewed by:	alc
2004-11-16 19:48:09 +00:00
Paul Saab 066419b6b8 MFC: Support for the 5750/5751 2004-11-16 19:32:16 +00:00
Simon L. B. Nielsen 3331c02999 Very late MFC of v. 1.15:
Note that the D-Link 530-TXS also works with the ste(4) driver.
2004-11-15 23:38:48 +00:00
Ruslan Ermilov 2b3a8ec394 MFC: 1.79: Pacify gcc -Wundef. 2004-11-15 22:11:08 +00:00
Simon L. B. Nielsen 159eb62532 MFC 1.8: Fix typo. 2004-11-15 21:03:14 +00:00
Yaroslav Tykhiy b4af411577 MFC rev. 1.169, 1.175: Fixes related to logxfer(). 2004-11-13 12:44:12 +00:00
Yaroslav Tykhiy 41450ebc83 MFC rev. 1.166-1.168: Assorted fixes around the call to sendfile(2). 2004-11-13 12:28:50 +00:00
Julian Elischer 4f7eab5fd4 Apparently update_intr_masks() is only on x86 2004-11-12 20:33:13 +00:00
Julian Elischer 2f2c7518e2 Add a bandaid to help use devices that use the tty system with usb.
This makes teh two systems disable each other's interrupts
while they are operating together.
It's not perfect as it doesn't fully cover dynamic devices
and teh effect is not reversible, but it is similar to the hack we have
been doing for ywars with slip and ppp.

Submitted by: lost the email.
2004-11-11 22:59:26 +00:00
Maxim Konovalov 06de3e925e MFC rev. 1.160: kill an unused variable.
MFC rev. 1.164, 1.165: do not unconditionally fork() after accept().
2004-11-10 12:56:33 +00:00
Yaroslav Tykhiy 923db67e06 MFC: Fix a typo: sc = ns*nt, not nc*nt. 2004-11-09 18:06:06 +00:00
Ceri Davies 4e190c8a3a MFC r1.36:
Use a safe temporary file for saving out the PR if send-pr is
  interrupted.
2004-11-09 00:22:24 +00:00
Pawel Jakub Dawidek 3121ace36a Fix 'show' command for pipes and queues.
PR:		bin/70311
Submitted by:	Pawel Malachowski <[email protected]>
2004-11-08 18:47:11 +00:00
Don Lewis ff8cabbf9e MFC dir.c:1.30, fsck.h:1.33, fsutil.c:1.25, inode.c:1.37, main.c:1.42,
pass1.c:1.43, pass2.c:1.26, pass3.c:1.15, pass4.c:1.15, pass5.c:1.4
    with minor changes to match RELENG_4 code.

> truckman    2004-10-08 20:44:48 UTC
>
>   FreeBSD src repository
>
>   Modified files:
>     sbin/fsck_ffs        dir.c fsck.h fsutil.c inode.c main.c
>                          pass1.c pass2.c pass3.c pass4.c pass5.c
>   Log:
>   Eliminate linked list used to track inodes with an initial link
>   count of zero and instead encode this information in the inode state.
>   Pass 4 performed a linear search of this list for each inode in
>   the file system, which performs poorly if the list is long.
>
>   Reviewed by:    sam & keramida (an earlier version of the patch), mckusick
>   MFC after:      1 month
>
>   Revision  Changes    Path
>   1.30      +2 -3      src/sbin/fsck_ffs/dir.c
>   1.33      +15 -15    src/sbin/fsck_ffs/fsck.h
>   1.25      +1 -3      src/sbin/fsck_ffs/fsutil.c
>   1.37      +2 -0      src/sbin/fsck_ffs/inode.c
>   1.42      +0 -8      src/sbin/fsck_ffs/main.c
>   1.43      +5 -16     src/sbin/fsck_ffs/pass1.c
>   1.26      +5 -1      src/sbin/fsck_ffs/pass2.c
>   1.15      +3 -3      src/sbin/fsck_ffs/pass3.c
>   1.15      +8 -11     src/sbin/fsck_ffs/pass4.c
>   1.40      +2 -0      src/sbin/fsck_ffs/pass5.c

Tested by:	scrappy
2004-11-08 08:21:02 +00:00
Archie Cobbs 1f091c7835 MFC: (rev. 1.7) Rename internal structure to fix cut & paste error. 2004-11-06 21:43:16 +00:00
Peter Pentchev d7e49c4669 Correct the instructions for automated X setup: use 'configXSetup' instead
of 'configXEnvironment', and add 'configXDesktop'.

Not applicable to 5.x or 6.x, since the X configuration stuff has been
ripped out of sysinstall(8) there.

PR:		62665
Submitted by:	makham <[email protected]>
2004-11-05 18:09:19 +00:00
Wilko Bulte dfd8bdf5d3 Never be afraid to try something new. Remember, amateurs built the ark.
Professionals built the Titanic.
2004-11-02 10:26:17 +00:00
David Malone a069dcffa1 MFC: use nanoseconds in time comparison. 2004-10-30 20:45:45 +00:00
David Malone fb2d6e02b2 Sync with current execpt for the USE_RFC2292BIS option. Includes -I option
(use ICMP), endianness hiding, man page updates and various other cleanups.
2004-10-30 20:29:49 +00:00
Bruce M Simpson 9c06b5aeb5 MFC r1.131:
Check that rt_mask(rt) is non-NULL before dereferencing it, in the
RTM_ADD case, thus avoiding a panic.

PR:		kern/42030
Submitted by:	Iasen Kostov
2004-10-26 17:36:16 +00:00
Alfred Perlstein 251e78450a Give a "proper" prototype for the xdrproc_t type.
And a proper one for rpctest_service().

This allows programs utilizing the rpc headers to utilize higher warning
levels.
2004-10-26 02:25:17 +00:00
Hidetoshi Shimokawa 678a0f451f MFC: 1.18 - 1.20
- Don't crash if the CROM is all zeros.
- Use new eui64(3) functions to print EUI-64s and to allow access to nodes
	by EUI-64 and name.
- Add -m option, set default fwmem target.
2004-10-24 12:57:42 +00:00
Hidetoshi Shimokawa f01a9a0257 MFC:
- Normalize polling interval while the target is offline.
- eui64(5) support.
- Invalidate dcons buffer address if the magic is wrong.
- Manpage fix.
2004-10-23 15:50:37 +00:00
Hidetoshi Shimokawa 99d69eafca MFC:
Add support for eui64(5) to libc.
2004-10-23 15:43:20 +00:00
David E. O'Brien 06fd0dbf73 Partially MFC rev 1.15: provide an escape to our "savestring" compatibility
with ancient readline versions madness when 'RL_NO_COMPAT' is defined.
This should help ports/devel/gdb6 to build on RELENG_4.
2004-10-20 19:58:02 +00:00
Tony Ackerman 2e714a8149 Fixes incorrect copyright year and formatting errors introduced in previous version.
Reviewed by:	Prafulla Deuskar
MFC after:1
2004-10-19 20:46:14 +00:00
Sam Leffler d6656d1a35 MFC: compile fix for missing ; w/o INVARIANTS 2004-10-17 20:47:35 +00:00
Sam Leffler d921716475 MFC: Move session state from on-card memory to host memory... 2004-10-17 19:31:58 +00:00
Tony Ackerman 705c6a1f29 Clariified full duplex commands and added support for new devices. 2004-10-15 23:31:19 +00:00
Tony Ackerman 50ac58acd2 MFC
Added support for Intel PRO/1000 GT Desktop Adapter(Device ID 8086 107C)
Removed support for Intel 82541ER
Added fix for 82547 which corrects an issue with Jumbo frames larger than 10k.
Added fix for vlan tagged frames not being properly bridged.
Corrected TBI workaround.
Corrected incorrect LED operation issues
2004-10-15 23:27:42 +00:00
Diomidis Spinellis 835c344a9e MFC changes 1.4 (imp - newbus) and 1.3 (obrien - style)
OK'd by: imp
2004-10-15 16:22:30 +00:00
Ruslan Ermilov 99d5bbbd13 MFC: 1.49: correctly pass -1 to setfile(). 2004-10-08 22:31:50 +00:00
Ken Smith 42db169fb3 MFC v1.390: For this menu pressing 's' should result in selecting a
'Standard' installation but was instead selecting the 'Select' button.

Adapted from work by:	josef@
PR:			i386/37999
2004-10-08 02:16:43 +00:00
Xin LI 5d89ca4947 We already have GBK support so make sure that mklocale(1) would not
complain that it is not supported.

Reviewed by:	ru
Approved by:	murray (mentor)
2004-10-08 01:27:57 +00:00
Xin LI cae220d3d3 Because that GB18030 needs several libc functions to be actually
functional and presently they are not back-ported, disable the
build of GB18030 locale by now so we won't get the 13K+ warnings
when doing ``make buildworld''.

Noticed by:	ru
Approved by:	murray (mentor)
2004-10-08 01:26:14 +00:00
Diomidis Spinellis a0170b46cf Added pbio.4 in the set of manual pages.
PR:		i386/46238
Approved by:	re (kensmith)
Reminded by:	imp's commit on HEAD
2004-10-07 17:26:46 +00:00
Diomidis Spinellis e79022b230 Added the pbio(4) 8255 parallel peripheral interface basic I/O driver.
The driver is designed for performing I/O under program control using
peripherals such as the Advantech PCL-724 card, which emulates the Intel
8255A PPI in mode 0.  Other 8255A-based peripherals such as the BMCM
PIO24II card have also been reported to work.

PR:	i386/46238
Approved by:	re (kensmith)
2004-10-07 11:54:01 +00:00
Diomidis Spinellis bfbd4f46cb Added the pbio(4) 8255 parallel peripheral interface basic I/O driver.
The driver is designed for performing I/O under program control using
peripherals such as the Advantech PCL-724 card, which emulates the Intel
8255A PPI in mode 0.  Other 8255A-based peripherals such as the BMC
Messsysteme PIO24II card have also been reported to work.

PR:	i386/46238
Approved by:	re (kensmith)
2004-10-07 11:45:21 +00:00
SUZUKI Shinsuke 58239933c7 Fixed a kernel crash due to a duplicated free when net.inet[6].ip[6].rtexpire=0.
(this bug is specific to FreeBSD-4.x, so it's not committed to -CURRENT nor RELENG-5)

Reported in:	freebsd-net ("Weird memory exhaustion with FreeBSD 4.10-STABLE" starting from Sep 23, 2004)
Obtained from:	KAME
Approved by:	re (scottl)
2004-10-06 02:35:17 +00:00
Sheldon Hearn 1cdfadaa72 MFC rev 1.32: regen
Approved by:	re (hrs)
2004-10-05 20:12:15 +00:00
Wilko Bulte e791328929 The state that separates its scholars from its warriors will have its
thinking done by cowards, and its fighting by fools. - Thucydides
2004-10-03 11:08:21 +00:00
Warner Losh c704df90ee After assigning numbers for years in current, phk move it w/o talking
to me :-(.
2004-10-01 06:13:36 +00:00
Dag-Erling Smørgrav 105c010bf1 MFC: unsetting an undefined variable or function is not an error.
PR:		standards/45738
Submitted by:	Matthias Andree <[email protected]>
2004-09-30 04:44:10 +00:00
Dag-Erling Smørgrav 9e6212ccb0 MFC: (1.188) limit inetd to 60 simultaneous connections.
PR:		conf/33670
2004-09-27 18:46:00 +00:00
Dag-Erling Smørgrav ac0f469ced MFC: (1.73) restore the r_flag check; this unbreaks mirror mode. 2004-09-25 09:40:42 +00:00
Paul Saab e0e74444f1 MFC: Add some special case code to fix a problem with the BCM5704
in TBI (fiber) mode.
2004-09-23 20:11:18 +00:00
John Baldwin ed6c388096 MFC: Force a redraw if all dists are selected. 2004-09-23 18:25:33 +00:00
Paul Saab 7cfbe2e4d2 MFC:
revision 1.10
date: 2003/09/18 17:00:03;  author: jhb;  state: Exp;  lines: +1 -1
Fix a busted constant related to PCI configuration acess method #1.  The
reserved bits in the port that must be zero are 24:30, not 20:30.  Bits
16:23 are used to set the bus number.  This meant that when we tested for
config mechanism #1, if the previous PCI configuration transaction sent
used a bus number greater than 15, one of the bits in 20:23 would be
non-zero and we would fail to use config mechanism #1 and thus fail to see
that PCI existed on the machine at all.

Approved by:    jhb
2004-09-22 20:14:46 +00:00
MIHIRA Sanpei Yoshiro 6f36c00e89 Sync to 1.11.2.66 of usbdevs 2004-09-20 05:31:50 +00:00
MIHIRA Sanpei Yoshiro d00d2223bf MFC umass.c 1.113:
Add support Western Digital External USB HDD
	ONSPEC entry are sorted
2004-09-20 05:30:42 +00:00
MIHIRA Sanpei Yoshiro 7258d59b12 MFC usb_quirks.c 1.40:
Add support Qualcomm CDMA modem
2004-09-20 05:23:08 +00:00
MIHIRA Sanpei Yoshiro 8475ea74e7 MFC uscanner.c in 1.58
Add support Nikon CoolScan LS40 ED
2004-09-20 05:08:29 +00:00
MIHIRA Sanpei Yoshiro a9593345ff Sync to 1.11.2.63 of usbdevs 2004-09-20 04:59:52 +00:00
MIHIRA Sanpei Yoshiro fa4d1f4f59 MFC uplcom.c 1.21:
add support ELECOM UC-SGT(minor change version)
http://www2.elecom.co.jp/products/UC-SGT.html
2004-09-20 04:50:09 +00:00
Jun Kuriyama 819cf7175f MFC: Fix a condition where the hole would be inserted in the wrong
place during a split.

     Obtained from:	NetBSD
2004-09-19 12:44:29 +00:00
Xin LI e0b78373ec MFC revision 1.153
date: 2004/09/15 08:19:03;  author: delphij;  state: Exp;  lines: +7 -1
Clear all "active partition" bits before we set a new one.

This adds a safebelt that prevents users to mark more than
one "active" partitions, which will lead to a unbootable
machine, especially in multi-boot configurations.

Approved by:	re (scottl), mentor (murray)
2004-09-18 16:57:39 +00:00
Diomidis Spinellis 9e7d5c71ef Fix the suspend timer code to reflect the documented reality.
Approved by:	re (kensmith)
2004-09-18 10:26:12 +00:00
Diomidis Spinellis 1241fa7aa0 Document the hw.ata.suspend tunable.
Prompted by:	wilko
Approved by:	re (kensmith)
2004-09-18 10:24:55 +00:00
Diomidis Spinellis 1b3103f7b3 Allow setting the suspend mode on an ATA disk via a sysctl variable.
This is a direct commit to RELENG_4, because in 5.x the utility
of this change has been subsumed by ATAng and ports/sysutils/ataidle.

Approved by:	re (kensmith)
Original patch by: Robert Sexton
2004-09-17 20:28:30 +00:00
Hidetoshi Shimokawa 026ff6848e MFC rev. 1.32: Use VIS_GLOB flag.
PR: bin/60524
2004-09-17 05:43:28 +00:00
Hidetoshi Shimokawa 436c928e82 MFC: Add support for VIS_GLOB and sync with -current.
PR: bin/60524
2004-09-17 05:42:48 +00:00
Xin LI 1fd4ce7baf MFC revision 1.37
date: 2002/10/06 09:09:27;  author: charnier;  state: Exp;  lines: +11 -16
While removing a memory leak, rev 1.32 introduced a
free-memory-and-reuse-it-after. Correct both problems and
make rcp -r work again under /etc/malloc.conf -> AJ.

PR:		bin/54969
Approved by:	murray (mentor)
2004-09-16 12:16:10 +00:00
Maxim Konovalov cd0ec27543 MFC rev. 1.17 jail.c and rev. 1.58 jail.8: add -l option to jail(8)
similar to su(1): before running jail'ed program under specific user's
credentials, clean the environment and set only a few variables.
2004-09-14 06:35:59 +00:00
Andre Oppermann be838642d9 MFC 1.133: Change the array of char to an array of struct pollfd. 2004-09-13 19:46:21 +00:00
Maxim Konovalov 92930a08f4 MFC rev.1.75: recover normal behavior: return EINVAL to attempt
to add a divert rule when module is built without IPDIVERT.
2004-09-13 07:21:17 +00:00
Gleb Smirnoff 7393983383 MFC 1.34:
Increase PPTP_MAX_TIMEOUT up to 3 seconds. 10 proved too much for high
   packet
   loss links, and 1 second appeared to be too small for high latency links.
2004-09-10 06:19:20 +00:00
Yaroslav Tykhiy c80e9db908 MFC:
Apply EVL_VLANOFTAG() to a tag passed to vlan_input_tag() by a
VLAN-supporting Ethernet interface so the irrelevant bits (priority
etc) are cleared.  Otherwise frames with non-zero dot1q priority
would not be directed to the right vlan interface if the parent
Ethernet interface didn't mask off the irrelevant bits by itself.

Refuse to configure a bogus VLAN ID on a vlan(4) interface.
2004-09-09 16:57:33 +00:00
Christian Brueffer b7b4889d97 MFC: rev. 1.61
Fix a couple of typos in comments
2004-09-09 13:22:18 +00:00
Christian Brueffer 126777ee7d MFC: rev. 1.4 (partly)
- fix a device name
- various language fixes
2004-09-09 11:47:54 +00:00
Christian Brueffer aa03dcfb70 MFC: rev. 1.5
Add a missing 's'
2004-09-09 11:44:52 +00:00
Christian Brueffer b767d3d7f3 MFC: rev. 1.4
Remove dublicate words
2004-09-08 15:27:30 +00:00
Brooks Davis fbad4408cc MFC rev 1.200
When detaching an interface, don't leave an obsolete pointer to the
  soon to be deleted struct ifnet around.

PR:		kern/52260
Submitted by:	Jinmei Tatuya <jinmei at isl.rdc.toshiba.co.jp>
2004-09-08 04:08:21 +00:00
Maxim Konovalov 46e97468e7 MFC rev. 1.56: restore a historical ipfw1 logamount behaviour: rules
with 'log' keyword but without 'logamount' limit the amount of their
log messages by net.inet.ip.fw.verbose_limit sysctl value.
2004-09-07 06:38:49 +00:00
Gleb Smirnoff dea1126d10 MFC ng_fec manpage.
Approved by:	julian (mentor)
2004-09-05 10:26:00 +00:00
Ruslan Ermilov d6c5553e9e Merge (and tweak as necessary) documentation changes from HEAD that are
relevant to RELENG_4, including documenting the following configuration
variables: DOC_LANG, DOCRELEASETAG, KERNEL_FLAGS, KERNELS, NOCDROM,
PORTSRELEASETAG, and WORLD_FLAGS.
2004-09-03 09:36:16 +00:00
Christian Brueffer e6cc6648fc MT4: rev. 1.27
- use .Nm
- fix some grammar and spelling mistakes
2004-08-31 00:04:08 +00:00
Christian Brueffer f8a289aaec MT4: part of rev. 1.18, 1.19
- correct two typos
- correct the link to the AIC-6915 programmer's manual
- bump document date
2004-08-31 00:01:17 +00:00
Sheldon Hearn 278be81fff MFC rev 1.31: regen
This branch (RELENG_4) was out of sync with HEAD and RELENG_5.  I didn't
take the time to find out why.
2004-08-30 15:53:06 +00:00
Wilko Bulte d5feebc727 Now that I discovered that 164SX SRM recognises Intel 8255x NICs and allows
them to be net booted lets document that fact.
2004-08-28 21:17:24 +00:00
Yaroslav Tykhiy 16a5e39235 MFC 1.156:
Open a socket for a data transfer in active mode using euid
of the current user, not root, to allow matching the user's
FTP data traffic with an ipfw(8) rule.
2004-08-28 12:49:58 +00:00
Yaroslav Tykhiy 9f23b8da36 MFC: Fix some bugs in the code protecting from port theft.
netinet/in_pcb.c	1.147, 1.152
netinet6/in6_pcb.c	1.54, 1.57
2004-08-28 12:39:07 +00:00
Yaroslav Tykhiy adab1a9cfd MFC: Make adjusting by months more intuitive as well as
suitable for scripting.

date.1	1.68
vary.c	1.16
2004-08-28 09:03:42 +00:00
Marcel Moolenaar 0df25953e0 MFC: Implement missing SOUND_MIXER_WRITE_RECSRC ioctl.
PR: 55290
2004-08-28 06:29:51 +00:00
Tim J. Robbins 1868ad305e MFC eval.c 1.22, extern.h 1.12, main.c 1.26: Store a pointer to "null" in
struct ndblock's defn member instead of a duplicate allocated on the heap;
the address defn points to is significant, and is checked against the
address of "null" in certain conditionals.

PR:		59883
2004-08-23 11:27:00 +00:00
Peter Pentchev fe8563e611 MFC rev. 1.20: spell _SC_CLK_TCK correctly. 2004-08-23 11:10:58 +00:00
Peter Pentchev 97e10b9078 MFC getaddrinfo.3 1.25, getipnodebyname.3 1.14 and getnameinfo.3 1.17:
cross-reference these three pages.  Also, bump the document date.
2004-08-23 11:06:01 +00:00
Peter Pentchev 4f2ef939d4 Argh... also MFC rev. 1.52: spell FTP correctly and bump the date. 2004-08-23 11:04:25 +00:00
Peter Pentchev 6acb9d284f MFC rev. 1.51: describe the ftp-chroot option of login.conf. 2004-08-23 10:58:13 +00:00
Colin Percival 89255bea3d MFC revisions 1.98 - 1.102: Correct definition for port 1000, add
8021/tcp, sort entries correctly, whitespace cleanup, and add port 3653 [1].

PR:		conf/63907 [1]
2004-08-22 15:04:57 +00:00
Dag-Erling Smørgrav acb834cd40 MFC: (1.72) don't rely on sb.st_size unless we're sure it's meaningful. 2004-08-22 00:35:44 +00:00
MIHIRA Sanpei Yoshiro fcaa72e465 Sync to 1.11.2.62 of usbdevs 2004-08-21 08:26:06 +00:00
MIHIRA Sanpei Yoshiro 4fb8a12dd0 MFC umass.c 1.111:
add support for SanDisk Cruzer Mini 256MB USB 2.0 Flash Drive
2004-08-21 08:24:46 +00:00
David Malone 94fea8db8e MFC: now e.f.f.3.ip6.arpa is delegated, we no longer need to query ip6.int
Obtained from:  KAME
2004-08-21 07:53:07 +00:00
MIHIRA Sanpei Yoshiro b6f920ee6b MFC scsi_da.c 1.171:
add support Frontier Labs NEX IA+ Digital Audio Player with USB CF card reader/writer
2004-08-21 06:40:07 +00:00
Ruslan Ermilov ff0760f903 MFC the "dot" command. 2004-08-20 14:34:44 +00:00
Wilko Bulte c446f83730 - Note that Adaptec 3940UW won't be recognised by the 164sx SRM
- Warn that 164SX is a picky customer with regards to DIMMs.
2004-08-19 19:27:33 +00:00
Dag-Erling Smørgrav 32c47fffc3 MFC: (1.2) skip val-tags in read-only repositories. 2004-08-19 07:07:28 +00:00
Oliver Eikemeier ff50ea79df MFC forgotten ports-x11-themes category 2004-08-18 23:35:19 +00:00
MIHIRA Sanpei Yoshiro b0231f1da9 MFC scsi_da.c 1.170:
Add support iRiver iFP MP3 player
2004-08-18 03:36:06 +00:00
MIHIRA Sanpei Yoshiro 4f0f30e1cb Sync to 1.11.2.61 of usbdevs 2004-08-18 03:27:40 +00:00
MIHIRA Sanpei Yoshiro e9f5b88e0b MFC umass.c 1.109:
Add support Sony Handycam TRV-30 memory stick slot
2004-08-18 03:25:44 +00:00
MIHIRA Sanpei Yoshiro 0c23573736 MFC uplcom.c 1.20:
Add support to Sony Ericsson USB Cable(Susteen USB Data Cable)
2004-08-18 03:19:18 +00:00
Marc Fonvieille c89da00830 MFC:
1.13 Add Epson Perfection 1670
1.14 Add Canon CanoScan LIDE 20 and 30 (and fix name of other Canon
     scanners)
1.15 Update Document Date

Approved by:	re (fake line to allow commits on RELENG_4 branch)
2004-08-17 11:54:37 +00:00
Tim J. Robbins 16af5718b8 MFC rev. 1.9: bring in fix from gzip 1.3.3 to avoid crashes when
processing certain corrupt input files.
2004-08-16 09:03:34 +00:00
MIHIRA Sanpei Yoshiro bebabf4453 MFC bktr_card.c 1.24 and bktr_card.h 1.7
Add support AOpen VA1000 video capture card
2004-08-15 12:17:36 +00:00
Bruce A. Mah 3afbf1d8ac MFC: ppp(8) LQM, ppp(8) set rad_alive. 2004-08-13 15:13:11 +00:00
Hajimu UMEMOTO 939b44f0de MFC 1.187: allow more than MLEN bytes for ancillary data to meet the
requirement of Section 20.1 of RFC3542.
2004-08-13 14:51:45 +00:00
Hajimu UMEMOTO 2858b47848 MFC 1.93: do not send icmp response if the original packet is encrypted. 2004-08-13 14:48:50 +00:00
Peter Pentchev 9488db1ae3 MFC if.c 1.198 and if_xl.c 1.179:
Do not attempt to clean up data that has not been initialized yet.
This fixes two kernel panics on boot when the xl driver fails to
allocate bus/port/memory resources.
2004-08-13 14:42:18 +00:00
Peter Pentchev 1f44c1984e MFC revisions 1.29 through 1.31: fix a printf() example and bump
the document date.
2004-08-13 07:28:04 +00:00
Wilko Bulte 83fc1620e6 Clarify that both ECC and non-ECC DIMMS work on 164SX.
Suggested by: ru
2004-08-12 12:45:56 +00:00
Hajimu UMEMOTO 4086220b64 MFC: Use RFC 3849 address for examples.
etc/hosts.allow:	1.19
	etc/rc.firewall6:	1.15
2004-08-11 17:56:53 +00:00
Hajimu UMEMOTO 077b92555f MFC 1.18: allow ::1 explicitly. 2004-08-11 17:54:24 +00:00
Oliver Eikemeier f01c8fef8d bump __FreeBSD_version for the MFC of revision 20040629 of the package tools. 2004-08-11 16:18:44 +00:00
Oliver Eikemeier d6c03fac92 sync the pkg_install tools with -CURRENT:
- MFC of the package tools revision 20040629 changes.

- replace the perl version of pkg_version(1) by its C equivalent,
  which means that `pkg_version -c' does no longer work

- keep the perl version of pkg_update(1) until a replacement is available

- include some man pages fixes
2004-08-11 16:16:24 +00:00
Wilko Bulte 9b33db5efb There is nothing but real hardware to verify things: 164sx can really
run on non-ECC, plain vanilla PC133 PC SDRAM DIMMs.

Thanks to: obrien@ for the donation of a 164sx mlb.
2004-08-10 19:09:20 +00:00
Dag-Erling Smørgrav 527272efa8 MFC: (1.69) truncate long file names in progress meter
(1.70) style nits
     (1.71) don't strip trailing whitespace from passwords
2004-08-10 01:08:18 +00:00
Dag-Erling Smørgrav a6effd3d3b MFC: (1.73) allocate space for terminating NUL in base 64 encoded string. 2004-08-10 01:01:54 +00:00
Ruslan Ermilov 800692ee9f Do not run "make hierarchy" when installing kernel but *not* installing
modules, allowing in particular /usr to be mounted read-only.  This
change won't be MFS'ed, because semantics of installing modules in 5.x
is slightly different from 4.x.

PR:		68150
2004-08-09 10:36:06 +00:00
Gregory Neil Shapiro 6cbdb1abad MFC: sendmail 8.13.1 import and related changes 2004-08-09 00:15:44 +00:00
cvs2svn 20b30be859 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-08-08 22:27:03 +00:00
MIHIRA Sanpei Yoshiro 71bdce1cc5 Whitespace cleanup that was missed by quirks commit 1.42.2.52 2004-08-08 01:34:36 +00:00
Dag-Erling Smørgrav 56c2ce95b4 Behold the awesome might of the whitespace crusader! 2004-08-07 20:58:00 +00:00
Dag-Erling Smørgrav 743a815f1e MFC: (1.11, 1.12) set baudrate to 100Mbps, advertise VLAN capability.
PR:		kern/64222
Submitted by:	Steinar Haug <[email protected]>
2004-08-07 20:45:59 +00:00
Brian Somers 7d97f1e370 MFC: Support a ``set rad_alive N'' command to enable periodic RADIUS accounting
information being sent to the RADIUS server.

     Logging of RADIUS accounting information moves to a ``set log [+-]radius''
     level, along with the RADIUS alive info, and the version number is bumped
     to 3.2 to reflect this.

     Mostly submitted by:    [email protected] (back in January)
2004-08-07 18:27:08 +00:00
MIHIRA Sanpei Yoshiro c300634c04 MFC: rev.1.169
Quirk for SEGRAND NP-900 USB MP3Player
2004-08-07 09:36:46 +00:00
Gleb Smirnoff 676c1c66b8 MFC rev. 1.75
PR:		bin/69674
Approved by:	julian (mentor)
2004-08-05 06:51:24 +00:00
Maxim Konovalov bd6ea2a7ee MFC rev. 1.31: the signal number has to be less than NSIG strictly. 2004-08-05 04:06:41 +00:00
Brian Somers 4ee0f11843 MFC: Re-implement LQM, this time according to the rfc 2004-08-04 14:36:40 +00:00
Ruslan Ermilov 04678a5510 MFC: 1.41: make -p cover symlinks too. 2004-08-04 08:58:52 +00:00
Philip Paeps 1280725d12 MFC moused.c r1.67 and moused.8 r1.46
Document the existence of the '-l' option to specify at what level to operate
the mouse driver.  This has been undocumented for more than six years :-)
2004-08-03 19:28:08 +00:00
Makoto Matsushita 968e56c24a MFC: Enable KEYMAP_PATH environment variable to tweak keymap path.
This commit imports following commit to RELENG_4:
	src/usr.sbin/kbdcontrol/kbdcontrol.1 rev 1.27
	src/usr.sbin/kbdcontrol/kbdcontrol.c rev 1.34, 1.35

If my build sandbox works as expected, Jul/17/2004 or later RELENG_4
release build is broken iff old build environment is used.  This is because
that even if a new keymap hits the tree, release build doesn't see src/
directory but /usr/share/syscons/keymaps.

About three years before, 5-current had a fix for that by sobomax, but
it was not MFCed yet.  Let me give a chance to fix for RELENG_4.

Tested on: tora.jp.FreeBSD.org
           (aka snapshots.jp.FreeBSD.org RELENG_4 buildbox)
2004-08-03 14:59:09 +00:00
Colin Percival 5c9193bd76 MFC 1.61,1.62:
Restore part of the word that got (accidentally) removed.
Removed whitespace at EOL.
Document the behaviour of the "-o file" option when "file" is a directory
(downloaded file(s) are created inside the directory).
2004-08-02 01:27:35 +00:00
Max Khon a29c9bb582 MFC: Add copyriht notices.
Prodded by:	imp
2004-07-31 20:58:50 +00:00
Ruslan Ermilov 49d836dd1e MFC: Sync with HEAD (pull up latest mdoc(7) changes). 2004-07-30 08:16:37 +00:00
Peter Pentchev 8d97ad588e MFC sys/conf/NOTES rev. 1.1245: a couple of grammar fixes in the 'bktr'
options section.
2004-07-29 07:34:46 +00:00
Dag-Erling Smørgrav 49f3739d8a MFC: s/Guiseppe/Giuseppe/ 2004-07-29 07:01:45 +00:00
Peter Pentchev 03d5540b18 MFC rev. 1.14: fix 'camcontrol rescan' syntax and use the proper indentation
for the FILES list.
2004-07-29 06:22:27 +00:00
Paul Saab 47af04f6ba MFC: rev 1.55, Name non-physical devices. 2004-07-28 06:19:54 +00:00
Gary Jennejohn 508330f870 MFC 1.16 - fix a possible hang at warm boot.
PR:		kern/68756
Submitted by:	Ari Suutari <[email protected]>
2004-07-26 09:12:57 +00:00
Jens Schweikhardt 7c7b2a1b53 MFC: bktr driver may not tune correctly
PR:		kern/66006
Submitted by:	Josh Elsasser <[email protected]>
2004-07-24 10:36:28 +00:00
Paul Saab 5ec196f996 MFC:
Use a separate flag when doing a kernel coredump when polling for
completion instead of abusing the interrupt enable flag.
2004-07-22 16:35:18 +00:00
Guy Helmer da45326339 MFC: daemon.c 1.6 daemon.3 1.13-1.14
Prevent abnormal termination of a child daemon process when created
by a parent that is a session leader (e.g., login shell) by ignoring
SIGHUP before calling fork(2) and then restoring SIGHUP's action
after setsid(3).  Based on the patch by Martin Kammerhofer
<[email protected]>.
This has been in -current for 8 months with no reports of adverse
affects.

PR:		bin/25462
Prompted-by:	[email protected]
2004-07-21 13:53:14 +00:00
Maxim Sobolev 328d77b814 MFC: Allow /var/log to be not a directory but a symlink to a directory.
Reminded by:	gad
2004-07-21 07:22:54 +00:00
Max Khon 503bee413e Set ifp->if_output. This is still required in RELENG_4.
Submitted by:	Stanislav Svirid <count at riss-telecom dot ru>
2004-07-21 05:57:56 +00:00
Christian Brueffer ac13e2fa3f MFC: rev. 1.18
Mention the vfs.usermount sysctl.
2004-07-21 01:28:04 +00:00
Alexander Leidinger a744afb201 MFC rev. 1.77: Implement SNDCTL_DSP_SETDUPLEX.
Approved by:	matk
2004-07-20 14:29:34 +00:00
Alexander Leidinger a913a18b80 MFC rev. 1.43:
---snip---
New defines that paves the way for new midi features and ports.

Changes consists of an IOCTL (SNDCTL_SEQ_GETTIME) and a constant.
---snip---

PR:		59233
Approved by:	matk
Requested by:	lofi
2004-07-20 13:49:30 +00:00
Giorgos Keramidas d483ccc309 MFC: 1.32
Refer to the sysutils/cdrtools port now that the sysutils/mkisofs
port has been merged into the former.
2004-07-20 08:19:54 +00:00
Hidetoshi Shimokawa ce6dc61f26 MFC: Adjust packet length correctly for FreeBSD-4. 2004-07-20 04:33:08 +00:00
Brian Somers 8351d73116 MFC: Report the number of bytes not written when complaining about failed
writes
2004-07-20 01:48:44 +00:00
Maxime Henrion 8a4e5798aa MFC r1.70: When checking the result of the test_aux_port() function,
ignore two more bogus return values sent by some hardware.

PR:		kern/61482, kern/54188
Submitted by:	Ulf Lilleengen <[email protected]>,
		Victor Balada Diaz <[email protected]>
2004-07-19 00:43:34 +00:00
Christian Brueffer 49202d2ec0 MFC: rev. 1.12
Add traditional BSD names to the finger-friendly com[1-4] entries.

Approved by:	dougb
2004-07-18 02:26:54 +00:00
Brian Somers 6cc18d41bf MFC: Fix ``set ifaddr''. The code was actually using an uninitialised
variable, but conveniently, because ncpaddr.ncpaddr_family !=
     AF_INET, the call to ncpaddr_getip4addr() became a no-op leaving
     the local address as it was (defaulting to whatever my hostname
     resolves to).
2004-07-18 01:02:23 +00:00
Maxim Konovalov f67f0fe739 MFC rev. 1.13 limits.c and rev. 1.25 limits.1:
Update the usage string in the limits(1) manpage to include -b for
sbsize. Also, correct the format string in getopt(3) usage to reflect
that -b takes an argument, and correct another case of RLIMIT_SBSIZE
having been forgotten.
2004-07-17 21:39:15 +00:00
Boris Popov c7584757da MFC: Use correct location for nsmb.conf file. 2004-07-17 14:42:14 +00:00
Yaroslav Tykhiy 030415d443 Stop pretending we support full-blown HTTP/1.1 because we are not
ready to handle all its aspects.  Failure to deal with HTTP/1.1,
with chunked transfer encoding in particular, led to broken transfers
and data corruption.  Fall back to using HTTP/1.0, which is safe.

A point to note: While the "Host:" header had not been in the
original HTTP/1.0 standard, it became a de-facto standard for
HTTP/1.0 as well.  It is understood by servers in HTTP/1.0
sessions if supported at all.

This issue doesn't apply to CURRENT since lukemftp handles HTTP/1.1
correctly.

PR:		bin/68547
Reviewed by:	vs
2004-07-16 09:02:47 +00:00
Seigo Tanimura 88e7a7d178 snd_sbc depends on sbc_pcm.
PR:		kern/67426
Submitted by:	Matthew Emmerton <[email protected]>
Obtained from:	DragonFlyBSD
2004-07-16 07:58:53 +00:00
Giorgos Keramidas 3ac03a06f5 MFC: 1.22
Fix some grammar-wording knit.
2004-07-15 20:30:02 +00:00
Giorgos Keramidas 3303685f7e MFC: 1.28 , 1.29
Fix various grammar knits.
2004-07-15 20:23:18 +00:00
Giorgos Keramidas 74315662c3 MFC: 1.18
Correct a minor syntax mistake.
2004-07-15 20:17:31 +00:00
Peter Pentchev 32611ca35d Fix yet another hard sentence break. No content changes. 2004-07-15 13:44:45 +00:00
Peter Pentchev f58b752908 Several grammatical fixes.
PR:		66826 (partially)
Submitted by:	Michel Lavondes <[email protected]>
2004-07-15 13:43:49 +00:00
Peter Pentchev 21fec91c2e MFC the relevant spelling fixes from mpp's rev. 1.1234 of src/sys/conf/NOTES. 2004-07-15 07:46:24 +00:00
Murray Stokely 5b8d5516e5 Make latin american keymap with accent keys available in sysinstall.
PR:		67365
2004-07-15 06:13:42 +00:00
Murray Stokely 4ab1708ec3 MFC: latin american keymap improvements. submitted by maintainer.
PR:	misc/53327
2004-07-15 05:43:10 +00:00
Murray Stokely 9c07b25664 MFC: r1.7 - r1.9 : technical terms for automated spellchecking of docs 2004-07-15 04:00:52 +00:00
Brian Somers b97ea0606a MFC: If HISMACADDR is set in the environment (by pppoed), pass the value to
the RADIUS server as RAD_CALLING_STATION_ID.
2004-07-14 13:30:15 +00:00
Brian Somers acd2b49f6c MFC: Reduce MAXMSS limit by 12 bytes to allow for rfc 1323. 2004-07-14 13:26:24 +00:00
Brian Somers ef75fbb236 MFC: Mention that ``set mtu max'' is necessary for PPPoE.
Assorted whitespace & linefeed tweaks.
2004-07-14 13:25:10 +00:00
Peter Pentchev 78aac7d56e Fix a typo and MFC <sys/types.h> from rev. 1.6.\
PR:		66764
Submitted by:	Michel Lavondes <[email protected]>
2004-07-13 16:20:56 +00:00
Peter Pentchev f8fc049052 MFC rev. 1.16 (a 'paramter' typo fix) and 1.17 (kill hard sentence breaks).
PR:		66575
Submitted by:	Michel Lavondes <[email protected]>
2004-07-13 15:07:23 +00:00
Peter Pentchev 6e313453a3 MFC rev. 1.14: "An iface node *can* be configured..."
PR:		66574
Submitted by:	Michel Lavondes <[email protected]>
2004-07-13 15:01:41 +00:00
Peter Pentchev d9beecb216 Remove the description of the MAKE_SHELL variable that is not honored
in -STABLE's make.  The MAKE_SHELL description seems to have crept into
the merge in rev. 1.12.2.24.

PR:		65615
Submitted by:	Matthew Seaman <[email protected]>
2004-07-13 14:52:31 +00:00
Jens Schweikhardt 183462409b Catch up with -current. 2004-07-11 19:24:14 +00:00
Paul Saab c2dad9ae3f MFC: rev 1.135
Deal with the possibility of negative available space from the file server
to avoid Bad Things(TM) happening (eg: df crashing with a floating point
exception).
2004-07-10 10:28:08 +00:00
Oliver Eikemeier 00edce152f MFC of the new variable `.MAKEFILE_LIST'. Add the following
to make.conf(5) to have a `deptree' target in all makefiles:

.NOTMAIN: deptree
deptree:
	@echo 'Dependency tree for ${MAKE} in ${.CURDIR}:'
	@l=1; \
	for d in ${.MAKEFILE_LIST}; do \
		case "$$d" in \
		..)	l=$$(($$l-2));; \
		/*)	printf '%-*s%s\n' $$l '' "`realpath \"$$d\"`"; \
			l=$$(($$l+2));; \
		*)	printf '%-*s%s\n' $$l '' \
				"`realpath \"${.OBJDIR}/$$d\"`"; \
			l=$$(($$l+2));; \
		esac \
	done
2004-07-10 08:14:42 +00:00
Ruslan Ermilov 122b618ffe MFC: Avoid dependency on the current date. 2004-07-09 08:41:11 +00:00
Philip Paeps 0b94fa76fb MFC: Fix the '\' next to lshift for users of Belgian keyboards. 2004-07-09 06:42:32 +00:00
Maxim Konovalov d5c41ef3e8 o Several mbuf(9) flags have different values in -CURRENT and -STABLE.
Spotted by:	Robert Wagner
2004-07-07 16:34:49 +00:00
Oliver Eikemeier 081fb083c1 MFC of bsd.port.mk 1.307 and bsd.port.subdir.mk 1.31 2004-07-05 23:10:25 +00:00
Darren Reed 50bfabc1f8 These files (duplicates of sys/contrib/ipfilter/netinet/*) don't exist in
-current so an 'automatic' MFC will miss them.
2004-07-05 17:06:31 +00:00
Darren Reed 3a3fe2b792 MFC that got lost - cast interface numbers to ints, not chars, so that big
numbered ones (see PR) don't get truncated.

PR: 64584
2004-07-05 16:55:16 +00:00
Darren Reed 630b179a20 MFC: unless NOINET6 is defined, compile IPv6 code in by default.
PR: 57730
2004-07-05 16:23:17 +00:00
Darren Reed 133101f091 The prototype for fr_makefrip() should never have changed, the fil.c in
src/contrib/ipfilter just wasn't updated to match sys/contrib/ipfilter like
it should have been.
2004-07-05 06:02:35 +00:00
Darren Reed ca9ff87079 The prototype for fr_makefrip() is out of step with the function. 2004-07-04 17:41:44 +00:00
Darren Reed b33babcea8 MFC of IPFilter 3.4.35. 2004-07-04 09:24:41 +00:00
Garance A Drosehn dc1a374b60 Make "neworder" the default for how newsyslog will do it's work. 2004-07-02 22:24:40 +00:00
Paul Saab 5fdc71be51 MFC: rev 1.162
NO_SYNC_CACHE for ciss
2004-07-02 03:38:07 +00:00
Yoshihiro Takahashi 1a952bed97 MFi386: Add cp(4) driver. 2004-07-01 11:38:41 +00:00
Dag-Erling Smørgrav a81009aa76 MFC (1.68): fix discrepancy between code and docs for -S option. 2004-07-01 10:16:25 +00:00
Paul Saab c66fb1b0c9 MFC:
rev 1.51: need to call ciss_media_accept async anymore.
rev 1.52: on media exchange, update/rescan the drives.
2004-07-01 07:04:25 +00:00
Roman Kurakin ef1bedcb31 MFC: Add cp(4) driver for Cronyx Tau-PCI.
Requested by:	Cronyx users.
2004-06-30 17:56:01 +00:00
Roman Kurakin 6f3ce7d63d MFC: Add cp(4) driver for Cronyx Tau-PCI adapters.
Requested by:	Cronyx users.
2004-06-30 17:51:31 +00:00
Roman Kurakin de4749b88d MFC: Add cp(4) driver for Cronyx Tau-PCI adapters.
Requested by:	Cronyx users.
2004-06-30 17:44:08 +00:00
Roman Kurakin d903aef630 MFC: markup and spaces fixup by ru@, cross-reference to cp(4). 2004-06-30 17:39:57 +00:00
Roman Kurakin e4eb651002 MFC: Add cp(4) driver for Cronyx Tau-PCI adapters.
Requested by:	Cronyx users.
2004-06-30 17:37:22 +00:00
Roman Kurakin 0d7e597f72 MFC: Add cp(4) driver for Cronyx Tau-PCI.
Requested by:	Cronyx users.
2004-06-30 17:33:55 +00:00
Colin Percival dbc11f797a FreeBSD-SA-04:13.linux:
MFC revision 1.116 of sys/compat/linux/linux_ioctl.c

Approved by:	so (des)
2004-06-30 17:31:44 +00:00
Roman Kurakin 7b25d361f9 MFC: Add cp(4) driver for Cronyx Tau-PCI adapters.
Requested by:	Cronyx users.
2004-06-30 17:14:56 +00:00
Roman Kurakin decebe29a0 MFC: Add cp(4) driver for Cronyx Tau-PCI adapters.
Requested by:	Cronyx users.
2004-06-30 17:05:17 +00:00
Roman Kurakin 622da46e64 MFC: Add cp(4) driver for Cronyx Tau-PCI serial adapters.
Requested by:	Cronyx users.
2004-06-30 16:58:17 +00:00
Murray Stokely 24b54b5cd0 MFC: ipfw now supports lookup tables. 2004-06-30 00:47:55 +00:00
cvs2svn 359814c583 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-06-29 19:06:43 +00:00
Dag-Erling Smørgrav bb91d91c2b MFC: upgrade to 1.11.17.
Approved by:	peter
2004-06-29 16:10:53 +00:00
Scott Long 43c4d5d913 Document scsi bus wiring better.
PR: kern/50741
2004-06-29 15:41:05 +00:00
David Malone f49f5434db Sync syslogd with -current, except the -o option. Includes:
1.128 Terminate program names if we hit a '/'.
1.127 Log file name may be prefixed by a '-' if it shouldn't be synced.
1.126 Be more careful about using using the file descriptor f_file.
1.125 String fixes (inspired by OpenBSD).
1.124 Warn about paths that are too long (OpenBSD).
1.123 Fix some not-in-practice bugs to do with log levels.
1.122 Update some comments.
1.121 Warns fixes.
2004-06-29 10:07:35 +00:00
Warner Losh f8cbcd6f38 Put the candle back: we removed gdbserver in the last commit for reasons
no one can recall now, likely related to breakage in current.

Approved by: obrien
2004-06-29 03:32:11 +00:00
Christian Brueffer d826fba54f MFC: rev. 1.10
Fix typos and add spaces before `(' in some comments
2004-06-27 13:09:38 +00:00
John-Mark Gurney bbefd01b7c fix a deadlock that can occure w/ large files and syncing disks...
PR:		66781
Submitted by:	brian at ncircle dot com
Reviewed by:	mckusick
2004-06-27 05:32:39 +00:00
Markus Brueffer 9ea34678da MFC: rev. 1.31
s/udi_peed/udi_speed/
2004-06-26 18:08:07 +00:00
Oliver Eikemeier 00c20216b3 MFC: Addition of sha1 and rmd160 2004-06-25 16:35:12 +00:00
Stephen McKay 3db3075e69 MFC: nfs_bio.c:1.130, nfs_subs.c:1.128, nfsnode.h:1.43
Fix a bug which can cause an NFS client to incorrectly read a growing file.

PR:		kern/64091
Submitted by:	peadar
2004-06-25 12:28:50 +00:00
Bill Fumerola c5812ca0b3 MFC r1.27: refuse connections in per-ip chroot if the directory does not exist 2004-06-24 23:12:32 +00:00
Archie Cobbs 0af8aa22a9 MFC: (rev. 1.18) Avoid calling bpf_filter() with len == 0. 2004-06-24 14:37:35 +00:00
Doug Ambrisko a598b1ccb4 MFC Disable card interrupts when doing a TX. 2004-06-24 04:18:26 +00:00
Scott Long 4a55ebd190 MFC: Document the ciss passthrough interface. 2004-06-23 20:56:07 +00:00
Scott Long 32b0b85070 MFC: Add SCSI passthrough support to ciss. Non-disk devices that are exposed
by the ciss firmware will now be exported to CAM as normal devices.

Sponsored by:	Tape Laboratories, Inc.
2004-06-23 20:48:36 +00:00
Paul Saab befa7d92f0 MFC: 1.54 Reset the update flag when scanning for new devices. 2004-06-22 23:06:17 +00:00
Tony Ackerman db89fedf20 Removed ixgb driver as its unlikely to be used by many. 2004-06-22 20:57:55 +00:00
Bruce Evans 0530f1310a MFC (1.140: Turned off the "calcru: negative time" warning for certain
SMP cases, and print separate messages for non-monotonic and negative
times).

Turned off the warning for zombie cases too.

Fixed some style bugs in the messages.

Only the warning about non-monotonic times is turned off.  Unlike in
-current, these are only known to be caused by calling calcru() from
ttyinfo() for ^T processing (always if it is called for a zombie) so
turning off the warning is believed to only lose a cryptic warning
that the times printed for ^T are slightly out of date.

PR:		52490
2004-06-22 05:36:59 +00:00
Bruce Evans 757b803ba5 Raise the ipl to splstatclock() in donice() before calling resetpriority().
This fixes races with schedcpu() and schedclock().  It corresponds to
sched locking before the sched_nice() call in -current.  Lock assertions
made the races very obvious in -current.

Adjust the process's priority after calling resetpriority() as in
schedclock() to maintain the invariant that the current priority is
always _the_ process's user priority if it is a user priority.  This
is to support uncommitted assertions that the priority is correct on
return to user mode.  The priority is correct here (modulo bugs
elsewhere) but it needs to be set explicitly to satisfy the assertions.
2004-06-22 04:38:08 +00:00
Maxim Konovalov 057242a4d7 MFC -U flag (rev. 1.53 jail.8 and rev. 1.15 jail.c). 2004-06-21 10:09:47 +00:00
Lukas Ertl 8a116ea218 Don't set the ctime of an inode when atime or mtime are specified.
PR:            bin/44343
Submitted by:  Scott Wiersdorf <[email protected]>
2004-06-20 22:04:53 +00:00
Garance A Drosehn 28cb2255b6 MFC 1.90->1.95: MFC all of the changes related to the "neworder"
processing -- EXCEPT that the default behavior is still to use the
"oldorder" processing.  This allows people on 4.x-stable to try
out the "neworder" processing (either by `newsyslog -D neworder',
or by adding '<debug> neworder' to newsyslog.conf).

I plan to change the default to neworder in a week or two, and then
will remove all the oldorder code after a few more weeks.

PR:		parts of this came from bin/25070 by Helge Oldach
2004-06-20 17:41:22 +00:00
Max Khon c1af72064e Remove references to netstat(1). 2004-06-20 15:11:31 +00:00
David E. O'Brien 98047d032d MFC: rev 1.23 (add "blame" as an "annotate" alias for interoperability with
subversion)
2004-06-20 01:06:34 +00:00
Garance A Drosehn 2c4892b59e MFC 1.88->1.89: A variety of minor changes. Allow users to set a
debugging option via the newsyslog.conf file.  Add a routine to change
file-attributes (chown, chmod, chflags), instead of having several
places doing the same sequence of system-calls.  A few cosmetic/style
changes.  These should not effect any users.
2004-06-19 12:51:05 +00:00
Garance A Drosehn 2cec53328b MFC *: Add a 'D' flag that can be specified on entries in newsyslog.conf.
If specified, the matching log files will have the NODUMP flag set on
them after they are created.

[* = 1.87 newsyslog.c, 1.2 newsyslog.conf.5]

Submitted by:	Sean Eric Fagan
2004-06-19 12:39:00 +00:00
Garance A Drosehn e9c80bbd6d MFC 1.86: Change standard processing to use the newer createlog()
routine that had been written some months ago for other processing.
This should get rid of a few subtle situations where an existing log
file would not exist (for a short time) while it is being rotated.
2004-06-19 12:28:00 +00:00
Garance A Drosehn 1acbffe2bd MFC 1.83: Do not :-terminate err(3) string, one will be added anyway. 2004-06-19 12:23:20 +00:00
Colin Percival 25f7fec178 MFC: s/mbps/Mbps/ (We don't support any 10 millibit-per-second network cards.)
PR:		docs/67719
Submitted by:	Linh Pham
2004-06-19 01:52:40 +00:00
Nate Lawson 956fbcd8a0 MFC revs 1.8-1.9: Fix semantics for AcpiExSystemDoStall(). Sleeping with
tsleep allowed the process to lose splhigh() in the wrong place.

Tracked down by:	Andriy Gapon <avg AT icyb.net.ua>
2004-06-18 18:20:13 +00:00
Max Khon e4a2eb510d Back out printing sfbufs stats. 2004-06-18 08:52:02 +00:00
Kirill Ponomarev 6a70605b60 MFC: rev. 1.45 (new descriptions for path, info, maint, cat,
bdeps, and rdeps. Some new examples for "search" target.
2004-06-18 06:09:29 +00:00
Tony Ackerman ef871faee0 MFC
Adding ixgb(4) for Intel 10GbE Adapters
2004-06-17 18:17:08 +00:00
Tony Ackerman ab8120436f MFC
First release of ixgb driver for the Intel(R) PRO/10GbE Family of Adapters.  This driver has
been developed for use with FreeBSD, version 4.8 and later.

Submitted by:	Hema Joyce
Reviewed by:  	Prafulla Deuskar
Approved by:  	Prafulla Deuskar
2004-06-17 18:07:41 +00:00
Max Khon dcb4675601 MFC:
sendfile(2)-related statistics that can be viewed through netstat -m:
- The number of times sendfile() had to do disk I/O
- The number of times sfbuf allocation failed
- The number of times sfbuf allocation had to wait
and three sysctl's: kern.ipc.nsfbufs, kern.ipc.nsfbufspeak,
kern.ipc.nsfbufsused that also can be viewed through netstat -m.

Submitted by:	Igor Sysoev <is (at) rambler-co.ru>
2004-06-17 00:08:23 +00:00
Max Khon a995d48957 MFC: Add missing dot and newline in a message. 2004-06-16 21:57:55 +00:00
Max Khon a03338e4fe Change last remaining references to "arlconfig" to "arlcontrol". 2004-06-16 21:44:11 +00:00
Hajimu UMEMOTO 7527d8b1c6 MFC 1.52: _dns_getaddrinfo() used a dangling pointer "addr" in
the res_target structure.  It was not a problem for now.  But,
It should be fixed for a future.

PR:		bin/67994
Submitted by:	JINMEI Tatuya <[email protected]>
2004-06-16 17:11:20 +00:00
Peter Pentchev 9ae412aae5 Merge rev. 1.28:
Fix the ordering in the description of the dlsym() lookup procedure to
reflect src/libexec/rtld-elf/rtld.c rev. 1.68 - the globally-loaded
objects (RTLD_GLOBAL) are searched before the local object's DAG's.
2004-06-16 13:55:57 +00:00
Yaroslav Tykhiy 3f25347467 MFC rev. 1.19-20:
Describe how test(1) will evaluate its expressions for a symlink.
Remove a duplicated description of the test for the null string.
2004-06-16 12:10:25 +00:00
cvs2svn 37bf26c99a This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-06-16 09:47:27 +00:00
Ruslan Ermilov e76ae7c791 MF RELENG_4_10: Update for 4.10. 2004-06-16 07:57:33 +00:00
Ruslan Ermilov 2e194f7889 MFC: IPFW2 lookup tables. 2004-06-16 06:57:49 +00:00
Diomidis Spinellis 7e14c916a4 Removed CVS conflict lines.
Noticed by: pjd
2004-06-15 21:55:45 +00:00
Paul Saab cd0ed1ef6b MFC:
rev 1.10: Define HOTPLUG event
rev 1.11: Update logical drive structure
rev 1.12: Document the 64bit blocks_to_recover/pad struct to 1024 bytes.
2004-06-15 21:22:29 +00:00
Paul Saab 29ff608ccb MFC: Turn on SCSI PREFETCH 2004-06-15 21:18:26 +00:00
Paul Saab 8926bbf81a MFC: rev 1.47 and 1.48
Add a bunch of PCI device ID's and only do I/O to ONLINE volumes.
2004-06-15 21:09:45 +00:00
Diomidis Spinellis 8b2e4a7c5d MFC 1.44 Send RADIUS gigaword data when OctetsIn or OctetsOut go
over UINT32_MAX.

PR:             bin/61294
Submitted by:   Boris Kovalenko
2004-06-15 17:39:34 +00:00
Diomidis Spinellis b7e8a1b0b7 Partial MFC of 1.7: added some missing defines.
These are needed to MFC usr.sbin/ppp/radius.c 1.44

Submitted by:   Michael Bretterklieber
PR:             46555
PR:             bin/61294
Approved by:	ru
2004-06-15 17:38:10 +00:00
Diomidis Spinellis 01d970fd28 MFC 1.101: shave-off per packet getprotobynumber() calls reducing default
case running overhead by 38%.
2004-06-15 14:25:21 +00:00
Diomidis Spinellis 138962d61b MFC 1.14 Add Greek character encoding suport. 2004-06-15 14:16:04 +00:00
Diomidis Spinellis dd3cb7d73c Undo the previous 1.19 "Really add -l to the usage output." MFC.
RELENG_4 does not support led(4).
2004-06-15 14:09:23 +00:00
Diomidis Spinellis 058ccba7fb MFC 1.18 and 1.19
1.18 - Add Greek character encoding suport. (dds)
1.19 - Really add -l to the usage output. (ru)
2004-06-15 14:01:36 +00:00
Diomidis Spinellis 21e9482568 MFC: Fix and clarify unparsable sentence. 2004-06-15 13:38:12 +00:00
Diomidis Spinellis d6abe599a8 MFC:
Bring the description for login_getclassbyname in sync with the function's
arguments.  The function has as a second argument a struct passwd * pointer,
not a directory name.
2004-06-15 13:31:20 +00:00
Ian Dowse b03d28e805 MFC: 1.55; initialise `restartcnt' so that restarting the port is
actually attempted. This fixes "port error, giving up port 1" errors
on some VIA UHCI controllers.
2004-06-13 14:40:12 +00:00
MIHIRA Sanpei Yoshiro 71ba210b19 MFC 1.107: Add support Neodio-3260 8-in-1 multi format USB memory card / flash controller 2004-06-13 07:47:38 +00:00
MIHIRA Sanpei Yoshiro 3048e443a0 MFC 1.21: Add support SUNTAC U-Cable type A4 (AS144L4) 2004-06-13 07:35:47 +00:00
MIHIRA Sanpei Yoshiro 2e77b8aa1c MFC 1.15: Add support Sony/Ericsson SEMC DSS-20 SyncStation. 2004-06-13 06:18:25 +00:00
MIHIRA Sanpei Yoshiro 81d54bf413 Sync to 1.11.2.59 of usbdevs 2004-06-13 04:55:20 +00:00
MIHIRA Sanpei Yoshiro af3f67574c MFC: Syncronise the device list with -current. 2004-06-13 04:53:26 +00:00
Garance A Drosehn 70f6e0c569 MFC 1.5: Remove reference to <stdint.h>, even if it's just a comment in 4.x. 2004-06-12 17:57:08 +00:00
Garance A Drosehn 0e68251e26 Make it so users can select the new (5.x) behavior for processing extra
parameters by compiling `ps' with -DPS_BACKWARD_COMPATIBILITY=0, instead
of requiring them to patch ps.c.  The default behavior has not changed.
2004-06-12 17:53:48 +00:00
Garance A Drosehn cf43adf63a MFC 1.85: Improved versions of the is*ch() and tolowerch() macros. 2004-06-12 15:45:17 +00:00
Garance A Drosehn 772228eb51 MFC 1.84: When rotating some "blah.log" file, make sure that a chmod and
(if requested) a chown is done on the "blah.log.0" file.

PR:		bin/67137
Submitted by:	jeh
2004-06-12 15:43:01 +00:00
Vinod Kashyap 0ec2196974 Fix for a problem seen only on 6xxx series controllers, where-in the
driver tries to submit the same request repeatedly, on finding the
controller cmd queue to be full.  This is an MFC from -CURRENT, and
is being done a bit fast because it addresses a 4.10 errata item, and
has already been tested for a week on a heavily used -STABLE machine
that was previously showing symptoms of the problem.

Submitted by:ps, vkashyap
Reviewed by:re
Approved by:re
2004-06-11 18:57:32 +00:00
Christian Brueffer 210782c69b MFC: rev. 1.11
Fix typo
2004-06-11 14:07:39 +00:00
Oliver Eikemeier a6d97c3e6d MFC of the `-depth n' primary and the -maxdepth fix. 2004-06-11 09:40:17 +00:00
Oliver Eikemeier 46d57f8804 MFC of revision 1.96:
give out a little more information in case of a missing dependency
2004-06-11 09:06:27 +00:00
Peter Pentchev f86eaee27e MFC rev. 1.27 - fix a grammatical mistake: the PC3 character sequences
*are* also supported.
2004-06-11 06:07:14 +00:00
Ruslan Ermilov 056834fc55 MFC: 1.29: Avoid a null pointer dereference if the .DEFAULT target
has no commands.
2004-06-10 13:07:53 +00:00
Dag-Erling Smørgrav 7b24bba1b7 MFC (usbhid.h 1.11): add __BEGIN_DECLS / __END_DECLS. 2004-06-10 06:49:10 +00:00
Hiten Pandya 730aa1d769 Revert previous commit regarding FUNLOCKFILE(fp), it has ill effects. 2004-06-09 19:24:22 +00:00
Lukas Ertl 3344073b85 MFC 1.77:
Plug small memory leak.
2004-06-09 11:24:00 +00:00
David Malone cfdccf5ff5 MFC: Make the comment for DLT_NULL slightly more accurate. 2004-06-08 21:16:42 +00:00
Hiten Pandya 13f3cc92e3 Move the call to FUNLOCKFILE(fp) after modification of the fp's fields.
Reviewed by:   	Daniel Eischen <deischen at freebsd.org>,
             	Robert Watson <rwatson at freebsd.org>
2004-06-08 13:15:01 +00:00
Garance A Drosehn c5ded54bf9 MFC *: Fix the kludge-old-options processing so `ps tpt' will be treated
the same as `ps -tpt', instead of being changed into `ps -tpT'.  Also adjust
it so `ps t p0' is treated like `ps -t p0', instead of making it `ps -T p0'.

This includes the rewrite of the kludge-option processing, but it does NOT
remove the long-undocumented BACKWARD_COMPATIBILITY compile-time option.
If you delete the '#define BACKWARD_COMPATIBILITY' line, you'll get the
newer handling for "extra arguments", which is to treat them as requests
for processes.

Also brings in a number of style(9) improvements.

[* = 1.90 & 1.92 -> 1.98 ps.c]

PR:		bin/52489         (for `ps tpt' and `ps t p0')
Submitted by:	Jilles Tjoelker   ( " )
2004-06-08 00:11:26 +00:00
Murray Stokely 2da0ac0976 Additions to the known hardware problems list should be sent to doc@
rather than jkh@.  This section was reorganized in 5.X so the change
is not necessary there.

Noticed by:	"Ted Mittelstaedt" <[email protected]>
2004-06-07 22:45:59 +00:00
Hajimu UMEMOTO 439470cbf1 MFC 1.73: do not check super user privilege in ip6_savecontrol. It is
meaningless and can even be harmful.
2004-06-07 08:54:23 +00:00
Archie Cobbs bb5251083a The previous checkin (MFC: Allow "lower" and "orphans" hooks to be connected
at the same time) was incomplete and broke things. This patch fixes that.
2004-06-06 19:47:58 +00:00
Gregory Neil Shapiro d39c0831e1 MFC: Remove trailing space.
Revision  Changes    Path
     1.36      +1 -1      src/etc/mail/Makefile
2004-06-06 17:29:48 +00:00
Gregory Neil Shapiro 2afb8a30fb MFC: Honor NOINET6 and disable IPv6 support in libmilter and sendmail if it
is set.

     Revision  Changes    Path
     1.4       +5 -1      src/lib/libmilter/Makefile
     1.4       +5 -1      src/lib/libsm/Makefile
     1.44      +5 -1      src/usr.sbin/sendmail/Makefile
2004-06-06 17:27:11 +00:00
MIHIRA Sanpei Yoshiro b5c52ff6c5 MFC 1.202: Add new ID for Intel 82562ET (ICH5/ICH5R) Pro/100 VE Ethernet.
PR:		i386/61320, kern/67211
Submitted by:	Andrew Halliwell <[email protected]>
2004-06-05 13:19:03 +00:00
Kris Kennaway 216a2ba27b MFC: Add locale and www directories 2004-06-05 11:47:03 +00:00
MIHIRA Sanpei Yoshiro 173d5aeeb4 MFC 1.268: fix MELCO LPC3-TX entry. 2004-06-05 06:13:54 +00:00
Brian Somers 3565f05e6b Handle read_block() failures by ignoring the disk rather than
dumping core.
2004-06-04 11:57:38 +00:00
Peter Pentchev 7761a16e35 MFC ipfw.8 rev. 1.132: clarify the MAC address specification formats. 2004-06-04 09:24:33 +00:00
Peter Pentchev c0238c87b2 MFC accept.2 rev. 1.27: clarification that 'addr' is optional. 2004-06-04 09:15:54 +00:00
Marius Strobl 941e9e50b2 MFC:
release/alpha/mkisoimages.sh 1.8
release/i386/mkisoimages.sh 1.9

mkisofs(8) is now installed by sysutils/cdrtools.
2004-06-02 22:25:48 +00:00
Kirill Ponomarev 3c88d09ebe - Remove leading zero from document date [1]
- Remove entry which tells about periodical INDEX updates in
  the CVS repository
- Add description for fetchindex target

Requested by:	ru [1]
Approved by:	josef (mentor)
2004-06-02 20:21:51 +00:00
Max Khon b4b5760eaa MFC: arl(4) network device driver and control utility for
Aironet Arlan 655 wireless network adapters.
2004-06-02 19:06:39 +00:00
cvs2svn ea38e3e2eb This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-06-02 18:03:08 +00:00
Kirill Ponomarev 1445089ab4 - Bump the document date
Requested by:	ru
Approved by:	ru, josef (mentor)
2004-06-02 15:03:59 +00:00
John Baldwin 80dc010d15 Don't check to see if APs need to be added to the logical_cpus_mask unless
logical_cpus is non-zero.  Without this, machines w/o HTT get divide by
zero faults.

Pointy hat to:	jhb
2004-06-02 14:42:59 +00:00
Kirill Ponomarev 89c685b414 - Mention new targets from bsd.port.mk:
* config
  * showconfig
  * rmconfig
  * describe
- Add OPTIONS description
- Word smithing

PR:		docs/67342
Reviewed by:	ru
Approved by:	josef (mentor)
2004-06-02 14:21:15 +00:00
Hajimu UMEMOTO 9715ee6fc3 MFC 1.14: drop packet which has ::1 as src or dst via other than lo0
like as rc.firewall does.
2004-06-02 09:11:28 +00:00
Poul-Henning Kamp cc77aef1f2 There is a comma missing in the table initializing the
pmap_prefault_pageorder array.  This has two effects:

1. The resulting bogus contents of the array thwarts part of the
optimization effect pmap_prefault() is supposed to have.

2. The resulting array is only 7 elements long (auto-sized), while
pmap_prefault() expects it to be the intended 8 elements.  So this
function in fact accesses memory beyond the end of the array.
Fortunately though, if the data at this location is out of bounds it
will be ignored.

This bug dates back more than 6 years.  It has been introduced in
revision 1.178.

Submitted by:	Uwe Doering <[email protected]>
PR:	67460
2004-06-02 07:04:21 +00:00
Brian Somers f75dffcf36 MFC: Add a missing memcpy and a few tests for NULL pointers 2004-06-02 01:42:59 +00:00
Brian Somers e6e912a08d MFC descriptions of pkg_version and pkg_version_index.
Pull in a bunch of spelling and grammar fixes while I'm here.
2004-06-02 01:34:00 +00:00
Archie Cobbs 9e89f224d4 MFC: Allow "lower" and "orphans" hooks to be connected at the same time. 2004-06-01 22:55:24 +00:00
John Baldwin ca071a2135 A few BIOS's will actually enumerate logical CPUs in their MP Table. Try
to handle that case better by adding any CPUs that appear to be logical
CPUs to the logical_cpus_mask bitmask.  -CURRENT uses different code for
enumerating CPUs, so this is not an MFC.

Submitted by:	Bruce Walker bmw at mxtreme dot com
2004-06-01 18:09:58 +00:00
Ruslan Ermilov 130750596e MFC: Maintain statistics about received frames. 2004-06-01 14:50:38 +00:00
Seigo Tanimura 0f530408bd MFC rev 1.28: Alice, Christopher Robin and Pooh Bear. 2004-06-01 09:45:56 +00:00
Maxim Konovalov 3c2fcd5428 MFC rev. 1.218: fix buffer overrun in in_pcbopts(). 2004-06-01 07:38:56 +00:00
Hiroki Sato a3e0589668 Bump __FreeBSD_version to 491100 for 4.10-STABLE.
Submitted by:	eik
2004-06-01 03:49:13 +00:00
Yaroslav Tykhiy 7a847f5325 MFC:
Clarify the issue of compatibility of different interfaces
to advisory locking.
2004-05-31 19:17:07 +00:00
Yaroslav Tykhiy 522e06d9c2 MFC: cron(8) -j and -J options. 2004-05-31 17:27:01 +00:00
Yaroslav Tykhiy af214503a8 MFC: Add -j' and -J' for time jitter. 2004-05-31 17:14:25 +00:00
Kirill Ponomarev d1eeea341b - Fix typo
Approved by:	tobez
2004-05-31 16:55:12 +00:00
MIHIRA Sanpei Yoshiro f24043b762 Sync to 1.11.2.58 of usbdevs 2004-05-30 12:23:34 +00:00
MIHIRA Sanpei Yoshiro ab098dce20 MFC 1.49-1.51: add support Kyocera AH-K3001V (cellular phone in Japan) 2004-05-30 12:21:55 +00:00
David Malone 4307272345 MFC:
1.126	Remove the requirement that the "discard" service be defined.
1.125	request_init pairs terminated by a 0 key.
1.124	Warn if inetd's config file doesn't exist.
1.123	Rename 'int log' to avoid shadowing.
2004-05-30 10:53:46 +00:00
Maxim Konovalov 8a61168626 MFC rev. 1.20: fix a typo. 2004-05-28 07:59:31 +00:00
Paul Saab 991bdc90c5 Don't compile ciss with CISS_DEBUG=0 as a module. 2004-05-28 01:53:47 +00:00
Hiroki Sato 4f1177adbb New errata:
The release notes should have mentioned the bfe(4) driver.
2004-05-27 23:23:36 +00:00
Ken Smith 52d4972101 Note 4.10-RELEASE date. 2004-05-27 06:19:32 +00:00
Ruslan Ermilov 0155f53770 MFC: Maintain statistics about received frames. 2004-05-26 08:53:59 +00:00
Dag-Erling Smørgrav 05c48b65c1 Cosmetic change to simplify patch generation. 2004-05-25 22:46:38 +00:00
Ken Smith ea8035a600 Tagging for the 4.10 release is done so this is probably the right time
to shift RELENG_4 from PRERELEASE to STABLE.
2004-05-25 17:41:08 +00:00
Ken Smith d8a857f3c0 Unlike previous releases we want a few notes in the errata docs at
the point the release goes out so we're adding it now to RELENG_4
and then will MFS it.  This will probably be backed out so the entries
are empty in RELENG_4 some time after the 4.10 release.

Reviewed by:	bmah
2004-05-25 14:06:09 +00:00
Maxim Konovalov 3e0efc7c44 o MFC rev. 1.144: fix comments. 2004-05-24 17:42:16 +00:00
Diomidis Spinellis 67417d8e25 MFC changes 1.29 -> 1.30
Remove a trailing newline, to behave as documented in syslog(3):
"A trailing newline is added if none is present."
2004-05-24 14:40:10 +00:00
Paul Saab 7dc1060be8 MFC: support for the BCM5705K 2004-05-24 04:53:08 +00:00
Ken Smith 25ec5b711e It was found the previous commit causes a severe change in behavior
of msync( ...,MS_INVALIDATE) on NFS-mounted partitions.  Given this
is a stable branch and the issue being addressed to begin with may
not concern some users we are providing a way to get the old behavior
if desired.  The default will be to have the new behavior which is to
only flush pages from memory if they are not dirty.  By changing the
sysctl vm.old_msync users can get the old behavior back.  Because of the
unified VM/buffer-cache system what to do as a proper fix to this
issue is proving to be quite difficult.  It is still being worked on
but we need this stop-gap solution for now.
2004-05-22 20:28:53 +00:00
Joerg Wunsch 5caffa2a47 MFC:
smb.4 rev 1.10: much more detailed description of the API
smbus.4 rev 1.14: add xref URL to SMBus specs
2004-05-22 07:29:43 +00:00
Joerg Wunsch 96f3f63337 MFC: rev 1.8/1.9, fix description of the symmetric nature of the enigma
encryption, update xrefs.

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:
2004-05-22 07:26:34 +00:00
Oliver Eikemeier 6a4601ac2f MFC rev 1.60, 1.61 (document how -maxdepth and -mindepth really work)
PR:		66613
Approved by:	ru
2004-05-21 09:48:34 +00:00
Josef Karthauser 4531a21321 MFC: Allow the location of the INDEX file to specified to pkg_version.
This is particularly convenient on a cluster of machines to prevent
     having to rebuild the INDEX file on each.
2004-05-20 21:49:03 +00:00
Hiten Pandya 510f875cf9 Bring in important changes from HEAD:
* Remove a long obsolete paragraph from the BUGS section.
	* Bump the date.

Requested by:	alc
2004-05-20 20:43:33 +00:00
Ken Smith 716e1f17ae MFC rev 1.37, mdoc fixes.
mdoc help:	ru
2004-05-20 18:42:04 +00:00
Daniel Harris a9a21d4537 MFC 1.34-1.36, typos and style. 2004-05-20 17:54:57 +00:00
Ken Smith 19c08504ec Add mention of -g option to manual page and usage message. This had
already been done in HEAD as part of a larger commit (rev. 1.60).
2004-05-20 17:10:10 +00:00
Roman Kurakin 9ff92f43f8 MFC: 1.1159 Spell Cronyx Tau and Sigma families correctly. 2004-05-20 13:36:36 +00:00
Dag-Erling Smørgrav 7a2647b3d2 Merge updated patch from vendor branch (1.1.1.17) 2004-05-20 13:17:16 +00:00
Paul Saab 32ac2794c4 MFC: rev 1.124. Fix "thundering herd" problem in accept. 2004-05-19 19:28:24 +00:00
Ken Smith 16425b8844 Style fixup in previous commit.
Noticed by:     bde (thanks!)
2004-05-19 18:07:15 +00:00
Scott Long 6262246b0a MFC:
Use the Generic 9005 mask when looking for generic 7901B
	parts.  This allows the driver to attach to 7901B parts
	on motherboards using a non-Adaptec subvendor ID.

This also supports a recent Dell OEM part.

Submitted by:	gibbs
2004-05-19 17:33:42 +00:00
MIHIRA Sanpei Yoshiro 22287f24d3 MFC 1.20: fix SONY_CLIE_41 (as PEG-SJ33/U) 2004-05-19 11:04:19 +00:00
Dag-Erling Smørgrav 112cc98310 Merge parser fix from vendor branch (rev 1.1.1.16) 2004-05-19 06:21:56 +00:00
Maxim Konovalov 16b666fb07 o MFC revs. 1.46 - 1.47: document m_free(9) and m_getcl(9). 2004-05-18 14:24:33 +00:00
Warner Losh 20c85e48a7 Fix two bugs that aren't in the current:
1) only have a long timeout for the wi_cmd_ini command.  All others should
   much faster at 10ms.  Some cards seem to timeout when the signal quality
   is low, and a faster timeout means that retry will happen in a fraction of
   a second, rather than seconds.
2) ifconfig passes -1 in i_val for the ssid and ignores the rest of the
   parameters if it returns an error.  wi used to return an error in this
   case, which means none of the 802.11 parameters were being reported.
   Since an works, fix the presumed bug in wi.
2004-05-18 06:57:33 +00:00
Vinod Kashyap 1982ee8b1b Undid scottl's recent changes. 2004-05-17 17:06:12 +00:00
Christian Brueffer 13764c3893 MFC: 1.27
o fix a typo
o remove stray word
o add missing words
2004-05-17 11:38:55 +00:00
Roman Kurakin 05023e257b MFC: 1.200, 1.201 2004-05-17 10:46:46 +00:00
Archie Cobbs 63d6e044a8 MFC: Add 'enableWindowing' configuration knob to the ng_pptpgre(4) node. 2004-05-16 19:26:46 +00:00
Scott Long 549018e7ff Sleep for 1 second after loading modules so that slow devices can be probed.
This is not an MFC as it is unclear if it is needed in HEAD.

Submitted by:	vkashyap
2004-05-16 04:19:38 +00:00
Scott Long dd54a58a3a Remove twa_intrhook prototype
Submitted by: cperciva
2004-05-15 15:43:46 +00:00
Scott Long fc71e5b990 MFC: Set the cpi.hba_inquiry field to something useful. 2004-05-15 05:20:12 +00:00
Scott Long cc78281082 MFC: Remove the config_intrhook as it is not needed. 2004-05-15 05:19:50 +00:00
Ken Smith 4f75aff7ee Forced commit to note that the work done for rev 1.65.2.15 was done
by Matt Dillon.  Sorry Matt.
2004-05-14 23:36:20 +00:00
Ken Smith bb07c990bb Forced commit to note that the change for rev 1.187.2.27 was developed
by Matt Dillon.  Sorry Matt.
2004-05-14 23:35:19 +00:00
Ken Smith 5540244780 MFC of 1.119, Change ffs_realloccg() to set the valid bits for the extended
part of the fragment to zero the valid parts of a VM_IO buffer.

Reviewed by:	alc, tegge
MFS:		immediately
2004-05-14 22:02:36 +00:00
Ken Smith 15e2f6217b Implement IO_INVAL in the vnode op for writing by marking the buffer as
"no cache".  Note this was not done to HEAD because the VM system is
different.

Reviewed by:	alc, tegge
MFS:		immediately
2004-05-14 18:27:52 +00:00
Ken Smith b479bc7d93 Change vm_map_clean(... MS_INVALIDATE) to not delete dirty pages. Note
this was not needed in HEAD because the VM system is different.

Reviewed by:	alc, tegge
MFS:		immediately
2004-05-14 18:24:44 +00:00
Nate Lawson 1abc5fd5b2 MFC: rev 1.28 -- fix unqualified names. 2004-05-13 03:50:58 +00:00
Tim Kientzle 32129f25c4 MFC: Sync du up with -CURRENT. This includes:
* Faster link checking
  * ANSIfication
  * -h/-k interaction fixes
  * Style updates
2004-05-12 05:35:22 +00:00
Vinod Kashyap 0fae05c0c0 1. Fixed potential problem that would cause out-of-order requests in twe_startio.
2. Fixed possible race condition in twe_start.
3. Changed version.

Submitted by: scottl
Reviewed by: vkashyap
Approved by: re
2004-05-12 03:37:43 +00:00
Tim J. Robbins 8eef25b658 MFC rev. 1.21: Fix BSS buffer overflow in makeargv(). 2004-05-12 02:18:08 +00:00
Tim J. Robbins e4a2c0b197 MFC rev. 1.28: Fix two buffer overflows caused by off-by-one errors:
avoid writing a null character 1 byte past the end of cmdline[] when
libedit is being used for input, and avoid writing a null pointer 1
element past the end of margv[].
2004-05-12 02:11:33 +00:00
Tim J. Robbins e6169502b5 MFC rev. 1.5: Fix a BSS buffer overflow caused by makeargv() writing past
the end of margv[] when an input line contains 20 or more space-separated
words.
2004-05-12 02:05:58 +00:00
Simon L. B. Nielsen 1834623df7 Unlike -current, -stable has a linux(8) manual page, but no linux(4).
PR:		docs/66484
Submitted by:	Michel Lavondès <[email protected]>
2004-05-10 20:18:58 +00:00
Roman Kurakin eca792afa4 MFC: Hide FR support more correctly. We should hide it since we do not
have fr support in FreeBSD's sppp, but we have it in Cronyx's sppp.
2004-05-09 19:35:08 +00:00
Roman Kurakin f3243a1a40 Remove reference to hints file since we don't have it in RELENG_4
Correct kernel config entry.

Pointy hat:	rik
Pointed by:	Dmitry Morozovsky <marck at rinet dot ru>
2004-05-09 19:00:47 +00:00
Bruce A. Mah 87dda158ae MFC: Add 4.10 entries so that pkg_add -r fetches from the
right package sets.

Partial merge of:

	src/usr.sbin/pkg_install/add/main.c 1.56->1.57

PR:		66251
Submitted by:	eik
2004-05-08 23:54:26 +00:00
Kris Kennaway d7458f0003 MFC: (Belatedly) catch up to XFree86 4.3.0 layout 2004-05-08 07:32:33 +00:00
Nate Lawson ec17f52474 MFC quirk from rev 1.168: Neuros Digital Audio USB player 2004-05-08 04:02:34 +00:00
Christian Brueffer 7d9bd55207 MFC: 1.33
Fix spelling

Submitted by:	Michel Lavondès <[email protected]>
2004-05-07 18:54:03 +00:00
Christian Brueffer 9b5dad2730 MFC:
1.21  kill hard sentence breaks
1.22  fix typo

PR:		docs/66263
Submitted by:	Michel Lavondes <[email protected]>
2004-05-07 12:50:42 +00:00
Maxim Konovalov 3bb4b4fbf2 MFC revs. 1.79, 1.80: add OpenBSD 3.5, NetBSD 1.6.2 was a patch release,
add BSD/OS 5.1 ISE.
2004-05-06 16:08:17 +00:00
Yoshihiro Takahashi cc193cb5c6 MFC: Increase BUS_SPACE_IAT_MAXSIZE to 33. 2004-05-06 13:23:59 +00:00
Josef Karthauser 16596e50e6 Regen 2004-05-06 09:03:54 +00:00
Josef Karthauser 97f4633b83 MFC: Support the Palm Zire 31. 2004-05-06 09:03:23 +00:00
Jacques Vidrine d31cd5a2c1 Correct a heap buffer overflow in k5admind(8) when built with Kerberos
IV support.

Obtained from:	Heimdal CVS
2004-05-05 20:19:48 +00:00
Jacques Vidrine 040f6a17aa Correctly validate the transited field in Kerberos tickets.
http://vuxml.freebsd.org/bfb36941-84fa-11d8-a41f-0020ed76ef5a.html

Obtained from:	Heimdal 0.5.3
2004-05-05 19:49:41 +00:00
Ken Smith 3b105e1b75 MFC of rev 1.331:
date: 2004/03/23 08:37:34;  author: tjr;  state: Exp;  lines: +2 -1
	Do not copy vm_exitingcnt to the new vmspace in vmspace_exec().
	Copying it led to impossibly high values in the new vmspace,
	causing it to never drop to 0 and be freed.

Requested/tested by:	ps
Reviewed by:		alc
MFS:			immediately
2004-05-05 19:28:23 +00:00
Hiroki Sato d127946b2f MFC: Add URLS_ABSOLUTE=YES into the doc.1 target. 2004-05-05 13:11:26 +00:00
MIHIRA Sanpei Yoshiro b13ed4ea64 MFC: Add support 2 devices(USB-DVD-R drives rev.1.105)
- Logitec LDR-H443SU2
	- IO-DATA DVR-UEH8
2004-05-05 07:59:29 +00:00
Colin Percival 25d01a0568 MFC revision 1.12, a bit over 2 years late: Dereferencing NULL pointers
considered harmful.
2004-05-04 10:52:54 +00:00
John Polstra 7f7eddf984 MFC part of if_bge.c revision 1.41: atomically load and clear the
status block.  This makes the bge devices work much better when
interrupts are shared.

This change entails bringing in the atomic_readandclear_* functions
from -current.  RELENG_4 already had the equivalent loadandclear
function for the i386, but it did not exist for the alpha.
2004-05-03 20:32:32 +00:00
Andrey A. Chernov 60ccd51ffc MFC v1.15, split_lines() rewrite 2004-05-03 04:48:18 +00:00
Ken Smith 6a4632622e Adjustments to package sets for disc1 for the 4.10 release. The
compat packages are being removed because of security issues, they
are no longer buildable.  The other packages being removed are due
to space issues, they don't fit.  Packages chosen for removal were
either thought to be less popular with the majority of people, or
were large *and* you need a network connection to be able to use them
so downloading them post-install should be possible.

This will be merged into RELENG_4_10 immediately but note that a commit
to HEAD has not and will not be done for this now.  -current package
sets are smaller (.tbz versus .tgz) so the package sets are at least
somewhat disjoint.  And it's pointless to update this in HEAD until
a 5.X release comes.
2004-05-03 01:12:40 +00:00
John Polstra fe72310ec3 MFC 1.21: Fix memory leak in ng_get_string_token. 2004-05-01 18:41:19 +00:00
Pierre Beyssac 82e7e80303 MFC rev 1.26: check source address (-s) for validity. 2004-04-30 22:45:47 +00:00
Ken Smith 6edfe8b496 Add information about the new DISC?_NAME and DISC?_LABEL variables.
Caught by:	ru
2004-04-30 13:28:19 +00:00
Hiroki Sato 7490c79cac MFC:
mmap(2) security fix, and
	rarpd(8) multiple IP addresses support.
2004-04-30 11:54:37 +00:00
Ruslan Ermilov 5f0902387c MFC part of rev. 1.8 that fixed an mbuf memory leak (without
saying so in the commit log) when only one link is connected.

Glanced at by:	archie, julian
2004-04-30 09:29:17 +00:00
Ken Smith 734f6bd587 This allows for tweaking the name put in the label on the CD's when using the
Makefile to build the ISO's.  Previous 4.X releases had a non-generic name
for the labels but were put together 'manually' instead of using the Makefile.

This will be insta-MFC'ed...
2004-04-30 04:17:41 +00:00
Joerg Wunsch 6f2d8221d2 Mostly sync with -current.
Merged:

rarpd.c
. rev 1.35 (use in_addr_t instead of u_long)
. rev 1.36 (major cleanup, make everything more sane)
. rev 1.38 (clarification about -a)
. rev 1.39 (typo fix)
. rev 1.40 (allow rarpd to listen on interfaces with more than one
  IP address)
rarpd.8
. -a clarification

Not merged:

. rarpd.c 1.34 _FBSD() cosmetics

PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:
2004-04-27 19:25:01 +00:00
Paul Saab 65b1d64b5e MFC: Bring ciss up-to-date with -CURRENT and support for the MSA20
and MSA500 as well as other small fixes.
2004-04-27 17:12:04 +00:00
Lukas Ertl 4bc9c45e87 Properly handle on-disk configuration formatting for subdisks that
aren't attached to a plex.

PR:             kern/65956
Submitted by:   Dmitry Morozovsky <[email protected]>
Approved by:    grog (mentor)
2004-04-26 20:32:59 +00:00
Lukas Ertl 74b7196fdc MFC 1.98:
Plug a mem leak in vinum_scandisk().
2004-04-26 20:16:29 +00:00
Marius Strobl fbe467ee04 MFC: 1.52
Fix a couple of camcontrol issues that popped up on sparc64:

 - bzero the CCB header in getdevtree() and set the path properly, to
   avoid having random garbage in the CCB header.
 - if the lun isn't specified in a device specifier, it should default to
   0, not whatever random data happens to be in the lun variable.
 - move the prototype for getdevtree() out from under #ifndef MINIMALISTIC,
   since it is used in both cases.

Approved by:	ken (maintainer), marcel (mentor)
2004-04-25 17:10:18 +00:00
Ken Smith fd0b032530 This is an MFC of work done by Alan Cox. It addresses a security issue
with mmap(2) where pages marked as PROT_NONE may become readable under
certain circumstances.

The commits to -current being MFC-ed with this are:

	Revision  Changes    Path
	1.333     +5 -4      src/sys/vm/vm_map.c
	1.109     +1 -1      src/sys/vm/vm_map.h

Which were a result of a PR:

	Submitted by:   "Mark W. Krentel" <[email protected]>
	PR:             kern/64573

Reviewed by:	alc
2004-04-25 16:03:41 +00:00
Hiroki Sato 6468edfb33 MFC:
ng_hub(4),
	vr(4) polling support,
	per-interface polling(4) support, and
	random ephemeral port allocation.
2004-04-24 17:33:09 +00:00
Hiroki Sato e0c9b1ba8c Update copyright and version numbers, and trim relnotes
and errata items for 4.10-STABLE.
2004-04-24 13:56:21 +00:00
Mike Silbersack 1493b41f82 MFC rev 1.143 - 1.146:
Randomize ephermal source ports.
2004-04-23 23:31:54 +00:00
Don Lewis ac296511a8 Don't skip the splx() call in *_usr_bind() and *_usr_connect() if the
socket address length check fails.  This is similar to the fix in
revision 1.99, except this version of the fix does not move the sanity
checks out from under the spl.

Submitted by:	pjd
Pointy hat to:	truckman
2004-04-23 19:49:08 +00:00
Ken Smith 59bf0f7ebc Dammage control...
This is the closest mapping to how the development branch got handled
for the previous releases.
2004-04-23 12:00:48 +00:00
Ruslan Ermilov 47885ac32b MFC: polling(4) meets vr(4). 2004-04-22 22:04:52 +00:00
Ruslan Ermilov 2039b93804 MFC: Per-interface polling(4) control. 2004-04-22 22:03:28 +00:00
Ruslan Ermilov 5b0c4be20c MFC: ng_hub(4). 2004-04-22 21:43:43 +00:00
Warner Losh 21beaf0b6f revert rather than argue 2004-04-22 19:54:59 +00:00
Warner Losh 2718c1ae36 MFC: FreeBSD anthology copyright from head
Noticed by: kensmith
2004-04-22 19:24:26 +00:00
Warner Losh 9399f9caa6 BETA->STABLE now that we've branched 2004-04-22 19:18:36 +00:00
Ken Smith 0ccc71cd64 From the better-late-than-never department: Bump copyright year to 2004. 2004-04-22 17:20:13 +00:00
Murray Stokely 7a93aeb05a MFC: Update number of ports and size requirement for ports dist.
Approved by:	re
2004-04-21 11:08:55 +00:00
Murray Stokely 99529a7a08 MFC: Add security/portaudit to disc3.
Approved by:	re
2004-04-21 10:58:20 +00:00
Luigi Rizzo c8f9c3f1cc MFC 1.105: only skip the length field (one byte) when comparing addresses.
Being so close to the code freeze I went for the easy fix -- just remove
the bug -- rather than playing with convoluted casts to produce a
stylistically correct piece of code.  This and whitespace can be
fixed after 4.10 by those interested.

Approved by: re
2004-04-20 23:40:14 +00:00
Ruslan Ermilov 2d9026793b MFC: Sync mdoc(7) with version in HEAD.
Approved by:	re (bmah)
2004-04-20 19:04:23 +00:00
Hiroki Sato fed593391a MFC:
DA_OLD_QUIRKS removed.

Approved by:	re (implicitly)
2004-04-20 18:38:19 +00:00
Nate Lawson 469f228846 MFC quirks.
Approved by:	re (scottl, any mistakes under penalty of beer)
2004-04-20 17:59:44 +00:00
Ken Smith 6ba1378d1b This is a partial MFC of 1.74. From the CVS log for that:
revision 1.74
	date: 2003/01/30 15:00:17;  author: phk;  state: Exp;  lines: +4 -0
	Catch some cases where asking for ridiculously large allocations could
	result in a segfault.  Instead just return NULL.

Requested by:	JINMEI Tatuya <jinmei (at) isl.rdc.toshiba.co.jp> and so@
Reviewed by:	phk (but he's not responsible if this makes 4.10 go boom :-)
Approved by:	re (scottl)
2004-04-20 14:43:25 +00:00
Nate Lawson 53f87a2b69 Prove once again data duplication is bad. Finally remove all instances
of DA_OLD_QUIRKS (I hope?)

Approved by:	re (in principle)
2004-04-20 13:03:55 +00:00
Wilko Bulte bd392fa06a MFC: Linux Alpha powertools link has become obsolete.
Reported by: R. Busch <[email protected]>

Approved by: re (jhb)
2004-04-19 20:29:59 +00:00
Colin Percival f3f0b0dd5b MFC revision 1.31 (plus style fixes thereof): Add support for Exsys
EX-41098 cards.

PR:		kern/65040
Submitted by:	Stefan Grundmann <[email protected]>
Approved by:	re (jhb)
Style fixes by:	bde
2004-04-19 19:28:18 +00:00
Nate Lawson 94b34272d8 Remove opt_da.h from 4-stable Makefile also.
Approved by:	re (future-tense, "unbreaking build good")
2004-04-19 17:32:16 +00:00
Maxime Henrion 68c886d620 Unbreak the build by not including opt_da.h since it doesn't exist anymore.
Kindly asked by		kris, cperciva
Approved by:		re (implicitely, this is to unbreak build)
Hopefully not minded by:	re
2004-04-19 14:13:16 +00:00
Nate Lawson a7c38f622c Remove the DA_OLD_QUIRKS option.
Approved by:	re (scottl)
2004-04-19 06:02:17 +00:00
Nate Lawson 8ac3bbd136 Remove quirks under DA_OLD_QUIRKS. They have been disabled since
2003/8/7 with no problems.

Approved by:	re (scottl)
2004-04-19 05:59:59 +00:00
cvs2svn c10aca829b This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-04-17 23:52:58 +00:00
Hiroki Sato 4221352668 MFC:
SA-04:07.cvs.

Approved by:	re (implicitly)
2004-04-17 17:08:46 +00:00
Christian Brueffer e56048f871 MFC: 1.13
o split a sentence to make it more understandable
o mention that the acctfile has to exist for accton to work
o add reference to acct.5

Approved by:	re (kensmith)
2004-04-17 10:06:38 +00:00
Christian Brueffer 4815eb82c6 MFC: 1.16 - 1.19
o List some sysctl variables that influence accounting
o Add reference to accton.8
o Bump document date

Approved by:	re (kensmith)
2004-04-17 10:04:10 +00:00
Bruce A. Mah 95fd32db0d MFC: src/CHANGES and src/UPDATING.
Fix minor typo in previous commit.

Approved by:	re (implicitly)
2004-04-17 05:22:40 +00:00
Bruce A. Mah 590759f12e Massage the GNOME update note a bit: Fix what looks like a mistaken
reference to kde3, tweak wording slightly, and use the portupgrade
manpage entity.

Approved by:	re (implicitly)
2004-04-17 05:12:33 +00:00
Hiroki Sato 887e94165b New release note:
GNOME 2.6 and KDE 3.2.1.

MFC:
	umct(4) driver added, and SIZE attribute in distinfo.

Update release note:
	Use &man.twa.4;, and
	usb(4) has early support for some USB2 devices[*].

Suggested by:	julian[*]
Approved by:	re (implicitly)
2004-04-16 18:42:08 +00:00
Julian Elischer 7a77567aa7 MFC of several small changes to the USB code..
Diff reduction on several ethernet adapter drivers (name chenges etc)
MFC a Bill Paul Copyright notice.
Add several device IDs.
Reset a uhci controller the same way we do in -current
remove an un-needed include file
add code to probe a Clie 3 series

Approved by: re (scottl@)
2004-04-16 18:12:58 +00:00
Olivier Houchard 3977213e1c MFC rev 1.22:
Call trm_Interrupt() in trm_poll(). This fixes the lock at reboot time some
people reported.

Approved by:	re
2004-04-15 20:16:28 +00:00
Ruslan Ermilov 3a72350fe3 MFC: Bring Groff and mdoc(7) in sync with -CURRENT.
Approved by:	re (bmah)
2004-04-15 19:25:02 +00:00
Jacques Vidrine 4447bf20aa MFC: Patch vulnerabilities in the CVS client and server:
A malicious CVS server could cause your CVS client to overwrite
    arbitrary files (CAN-2004-0180).

    When a CVS client uses the `-p' checkout option, the server could be
    fooled into checking out files from outside the given $CVSROOT.

Submitted by:	Derek Robert Price <[email protected]>
Approved by:	re
2004-04-15 15:35:26 +00:00
Ruslan Ermilov ff68ea7bfb MFC: 1.17: Enforce the poll_burst <= poll_burst_max constraint.
Approved by:	re (scottl)
2004-04-15 08:37:34 +00:00
Stephen McKay d35fa68994 MFC: if_sk.c (revs 1.67 and 1.78), if_skreg.h (revs 1.17 and 1.20).
Add support for Linksys EG1032 and D-Link DGE-530T cards.

Approved by: re (scottl)
Obtained from: OpenBSD/NetBSD (partially)
2004-04-15 07:24:21 +00:00
Vinod Kashyap 01a496c3a9 Added an entry for twa.4 (for 4.x).
Reviewed by: ru
Approved by: re
2004-04-14 18:08:17 +00:00
Vinod Kashyap e3d385db4a Removed old, redundant entry for twa.
Reviewed by: re
Approved by: re
2004-04-14 02:16:22 +00:00
Vinod Kashyap 5139bb84bf Adding man page for 3ware's 9000 series storage controller driver (twa) into 4.x.
Reviewed by: ru
Approved by: re
2004-04-14 02:12:14 +00:00
Julian Elischer 2178f4f320 Add an ID for the "Sitecom Cardreader CN-311"
Approved by: re (scott)
2004-04-13 21:28:58 +00:00
cvs2svn 25afede98d This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-04-13 20:57:45 +00:00
Robert Watson e990da42a0 MFC man page for umct(4) driver.
Approved by:	re (scottl)
2004-04-13 03:42:11 +00:00
Robert Watson 3d14262950 MFC umct(4) driver written by Scott Long <scottl>:
Add 'umct', a driver for MCT Corp. and Belkin F5U109 USB-Serial
  adapters.  This is based on the ubsa driver by Alexander Kabaev along
  with documentation gleaned from the Linux mct_u232 driver.  I've had
  this driver sitting in my tree for almost 6 months, and several others
  have found it useful.

I've been using this with success on my RELENG_4 USB macines.  MFC of
umct.4 to follow.

Approved by:	re (scottl)
2004-04-13 03:39:17 +00:00
Ken Smith 0384ef7a36 Sync list of FTP sites with current reality, and re-do the IPv6 section
to match -current's layout.

Approved by:	re (implicit)
2004-04-13 03:27:47 +00:00
Pierre Beyssac 892898510a MFC rev 1.36/1.37: fix _dns_ghbyname() to return NS_TRYAGAIN instead
of NS_NOTFOUND.  This gets getipnodebyname(3) to correctly return
h_errno=TRY_AGAIN instead of HOST_NOT_FOUND.

Approved by:	re (scottl)
2004-04-12 23:07:29 +00:00
Dag-Erling Smørgrav 98d7d99a7b MFC: (1.66) workaround for servers that ignore ranges in chunked mode.
Approved by:	re (scottl)
2004-04-12 19:52:44 +00:00
Bruce A. Mah 2e61f7fa96 Fix some minor grammar nits. Translators can probably ignore this.
Approved by:	re (implicitly)
2004-04-11 23:51:21 +00:00
Hiroki Sato 0215f09113 Some style fixes.
Approved by:	re (implicitly)
2004-04-11 17:06:28 +00:00
Hiroki Sato 191d022449 The next release is 4.10, not 4.9.1.
Approved by:	re (implicitly)
2004-04-11 11:50:17 +00:00
Hiroki Sato 61234566e9 Bump the version number. We are at 4.10-BETA now.
Approved by:	re (implicitly)
2004-04-10 20:53:05 +00:00
Hiroki Sato 1aef92c6fd MFC:
nge(4) VLAN support bugfix,
	rl(4) polling support bugfix,
	ste(4) polling support,
	twa driver,
	ps(1) supports more POSIX/SUSv3 compatible options, and
	OpenSSL 0.9.7c -> 0.9.7d.

Update release note:
	usb(4) initial support of EHCI and umodem(4) now uses /dev/ucom*.

Approved by:	re (implicitly)
2004-04-10 20:50:13 +00:00
Vinod Kashyap 78dadc9e82 Changed comments following changes to not bundle firmware by default.
Approved by: re
2004-04-10 02:46:27 +00:00
Ken Smith d18d35b702 Move the ciss and twa drivers into modules on floppy disk 2 instead of
inside the kernel on floppy disk 1 for floppy disk based installs.

Approved by:	re (scottl)
2004-04-10 02:13:49 +00:00
Scott Long 81223aa12a MFC rev 1.2: Don't inlcude the firmware image by default.
Approved by:	re
2004-04-10 02:02:27 +00:00
Scott Long f797638298 Hook twa up to the build as i386-only
Submitted by: vkashyap amcc.com
Approved by: re
2004-04-09 23:26:58 +00:00
Ken Smith 9f8b0a0dad First pass at disc1 package set adjustments for upcoming release.
Approved by:	re (scottl)
2004-04-09 19:34:09 +00:00
Lukas Ertl 459a54197a Correct check for md type drives and allow vinum to be run on
storage array type drives like ida(4).

PR:           bin/59042
Submitted by: Thomas Sandford <[email protected]>
Approved by:  grog (mentor)
Approved by:  re
2004-04-08 06:37:02 +00:00
Colin Percival 36c2455970 MFC revision 1.1.1.11: Repair a regression in OpenSSL 0.9.7d which could
cause a null pointer dereference.

Requested by:	nectar
Approved by:	re (scottl)
2004-04-08 05:36:17 +00:00
Vinod Kashyap a530cc89f4 Merged changes from twe in -CURRENT to RELENG_4.
Reviewed by: ps
Approved by: re
2004-04-07 22:18:01 +00:00
Vinod Kashyap 6f47e15f97 Initial check-in (for 4.x) of the device driver (twa) for 3ware's 9000 series
PATA/SATA RAID controllers.  This driver is a SIM under CAM, and so, behaves
like a driver for a SCSI controller.

Reviewed by: ps
Approved by: re
2004-04-07 20:29:01 +00:00
Vinod Kashyap 4806369cab Initial check-in (for 4.x) of the device driver for 3ware's 9000 series
PATA/SATA RAID controllers.  This driver is a SIM under CAM, and so, behaves
like a driver for a SCSI controller.

Reviewed by: ps
Approved by: re
2004-04-07 20:20:07 +00:00
Colin Percival 172cfeaefa Wrap security/freebsd-update inside if [ "X${PKG_ARCH}" = "Xi386" ], in
order to avoid breakage.  (security/freebsd-update is currently marked
i386-only.)

Approved by:	re (scottl)
2004-04-07 13:09:28 +00:00
Scott Long c737a26a5e Enter the 4.10 release cycle by going to 4.10-BETA
Approved by:	re
2004-04-07 12:36:50 +00:00
Ruslan Ermilov d519e0e833 Fixed a bug in previous revision: compute the payload checksum before
we convert ip_len into a network byte order; in_delayed_cksum() still
expects it in host byte order.

The symtom was the ``in_cksum_skip: out of data by %d'' complaints
from the kernel.

To add to the previous commit log.  These fixes make tcpdump(1) happy
by not complaining about UDP/TCP checksum being bad for looped back
IP multicast when multicast router is deactivated.

Reported by:	Vsevolod Lobko
2004-04-07 10:01:39 +00:00
Roman Kurakin 23a07ddd61 MFC: Add ct control devices for Cronyx Tau. 2004-04-07 09:53:54 +00:00
Roman Kurakin f20404ef12 MFC:
1. Extend Cronyx Sigma record cx(4).
2. Add Cronyx Tau record ctau(4).
2004-04-07 09:50:03 +00:00
Roman Kurakin 8a92525891 MFC:
1. Remove hyphen between prodoct and company name for Cronyx Sigma (cx (4)).
2. Add list of models for Cronyx Sigma.
3. Add Cronyx Tau (ctau(4)) entry.
2004-04-07 09:37:31 +00:00
Kirill Ponomarev 35135c1ac9 - Use "/bin/hostname" explicitly instead of "hostname".
MFC:		etc/rc.d/hostname rev 1.7
Approved by:	tobez
2004-04-07 09:27:30 +00:00
Roman Kurakin a9dc217a40 Add entries for ct.4 and ctau.4 as part of MFC. 2004-04-07 09:23:55 +00:00
Roman Kurakin c38b5311b7 Unbreak compilation of driver with option NETGRAPH_CRONYX. 2004-04-07 09:21:27 +00:00
Roman Kurakin 255f56bed3 MFC: Connect ct.4 and ctau.4 to system.
Approved by: imp (mentor)
2004-04-07 09:14:17 +00:00
Roman Kurakin 634f80b8ed MFC: Manual page for ct (4) device. 2004-04-07 09:11:58 +00:00
Roman Kurakin e3c04948b6 MFC: Add support for Cronyx Tau adapters (ctau (4) driver).
Approved by: imp (mentor)
2004-04-07 09:09:47 +00:00
Roman Kurakin ea49dffefe MFC: rev 1.22 2004-04-07 09:08:23 +00:00
Ruslan Ermilov 6e11e8bf30 MFC: 1.6: make this compile without warnings. 2004-04-07 08:59:32 +00:00
Roman Kurakin 9e935e51fd MFC: Add support for Cronyx Tau adapters (ctau (4) driver).
Approved by: imp (mentor)
2004-04-07 08:53:48 +00:00
Roman Kurakin fbc155aa69 MFC: Add support for Cronyx Tau adapters (ctau (4) driver). Connect driver
to the system.

Approved by: imp (mentor)
2004-04-07 08:39:06 +00:00
Roman Kurakin db0b437223 MFC: Add support for Cronyx Tau adapters (ctau (4) driver).
Approved by: imp (mentor)
2004-04-07 08:28:05 +00:00
Roman Kurakin 536e23d0f4 MFC: Add support for Cronyx Tau adapters (ctau (4) driver).
Approved by: imp (mentor)
2004-04-07 08:17:14 +00:00
Roman Kurakin 857f32a3c8 MFC: Add support for Cronyx Tau adapters (ctau (4) driver).
Approved by: imp (mentor)
2004-04-07 08:11:57 +00:00
Gregory Neil Shapiro 547ccb4b72 MFC: Fix path to rc.sendmail
Revision  Changes    Path
     1.25      +1 -1      src/contrib/sendmail/FREEBSD-upgrade
2004-04-07 05:32:13 +00:00
Paul Saab 19151ba2de MFC:
Add support for the Altima 1002, BCM5901, BCM5901 rev A2 and BCM5788.
2004-04-06 22:53:00 +00:00
Ceri Davies 2931a85491 MFC revision 1.16:
Add a new threads category.
2004-04-06 21:19:12 +00:00
Ruslan Ermilov ef8e79dae8 Overdue MFC of rev. 1.58.
Noticed by:	rwatson
2004-04-06 20:11:53 +00:00
Paul Saab 2ef6bb4f17 MFC: rev 1.66
Enable the memory arbiter before turning off the PXE restart.
2004-04-06 18:30:05 +00:00
cvs2svn 7c720078c5 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-04-06 12:34:26 +00:00
Ruslan Ermilov 0661ed5295 Actually fix the TX performance with polling(4) enabled
by increasing the TX list size from 64 to 128, which is
adequate for HZ=1000.

Submitted by:	Vsevolod Lobko
2004-04-06 11:04:54 +00:00
Bruce M Simpson 10ba73459e MFC: Fix regression in setkey whereby parser would fail to recognise tcp
as both a security protocol and an upper level protocol for encapsulation.

PR:		bin/63616
Submitted by:	ume@
2004-04-06 10:02:12 +00:00
Ruslan Ermilov 3110d38de0 MFC: ste(4) meets polling(4). 2004-04-06 08:44:55 +00:00
Ruslan Ermilov 3812bd3da5 MFC: synch driver with its -CURRENT version, including the support
for polling(4) and a work-around to deal with the hardware problem
of a stuck RX.
2004-04-06 08:40:39 +00:00
Colin Percival 1330fde7ae MFC revision 1.49 of pkg_info.1, revision 1.44 of main.c:
1. Clarify that `pkg_info -flags' needs either `-a' or a package name. [1]
2. Sychronize `usage:' with the manual page.

PR:		misc/64786 [1]
2004-04-06 03:49:11 +00:00
Warner Losh 38dedff018 MFC 1.128: Improve identification of VIA C3 Samuel, Samuel2, Ezra,
Ezra-T and Nehemiah CPUs.

MFC Forgotten by: imp
MFC Reminder: Yasuhiro KIMURA-san.
2004-04-06 01:40:30 +00:00
Julian Elischer 2faf5aeb11 MFC of 1.62->1.63
retry on the first action to hit the device, not the 2nd.
2004-04-06 00:46:02 +00:00
Maxim Konovalov 74b26872cd MFC rev. 1.141: the lenght of the port list is limited to 30 entries
in ipfw2 not to 15.
2004-04-05 19:33:44 +00:00
Shunsuke Akiyama 0145fbd314 umodem driver is no longer used /dev/umodem* device node.
Now it's used /dev/ucom* device node.
2004-04-05 14:02:56 +00:00
Ruslan Ermilov 036baabcc9 MFC: 1.134: Three bugfixes, mostly affecting polling(4). 2004-04-05 07:31:18 +00:00
Guido van Rooij 43c3d6d390 MFC:
mount.c: rev 1.58-1.61
mount.8: rev 1.60 and 1.61

This unbreaks -o fstab and -o current in combination with -a

Reminded by: Pawel Malachowski
2004-04-05 07:23:20 +00:00
Josef Karthauser aed0e651fa MFC: Add support for Treo600 (rev 1.18) 2004-04-04 19:17:35 +00:00
Josef Karthauser 953e03cf0c Regen. 2004-04-04 19:17:00 +00:00
Josef Karthauser dff4f556a5 MFC: Syncronise the device list with -current. 2004-04-04 19:16:31 +00:00
Garance A Drosehn e00893febb MFC 1.74 1.75 & 1.80: Sort the declarations of global variables, and
split two 'fmt' strings so they're easier to read on 80-char windows.

Approved by:	re(scottl)
2004-04-04 18:16:37 +00:00
Garance A Drosehn 1302b23d33 MFC 1.73 & 1.83: Sort the routine prototypes.
Approved by:	re(scottl)
2004-04-04 18:01:23 +00:00
Garance A Drosehn f21f8da873 MFC *: Change the #if-ish logic which is used to add the `-f' option
when `ps' is compiled with LAZY_PS, so that there is only one PS_ARGS
string to modify when changing the option-list.  Also get `-f' to show
up in the usage() statement when compiled with LAZY_PS.  Also move the
'f' case in the select statement, so it in alphabetical order.

[* = 1.68 1.69 & 1.86 ps.c]

Approved by:	re(scottl)
2004-04-04 17:50:23 +00:00
Garance A Drosehn 4b8012927a MFC *: Support more POSIX/SUSv3 options:
- Change `-p' to allow a list of process IDs, and `-t' to allow a list
    of terminal names, instead of only a single value for each.
  - Add the `-A' option of SUSv3, which is exactly the same as `-ax'.
  - Add the `-G gidlist' (group id).
  - Allow any of these "selector options" to be specified multiple times,
    and have `ps' keep adding to a given list -- instead of replacing the
    previously-specified values.
  - Fix interactions between selector-options, so that: "If any are
    specified, ... ps shall select the processes represented by the
    inclusive OR of all the selection-criteria options." (from SUSv3)
  - Add a `-X' option, which is the reverse of the `-x' option.
  - various minor improvements in parsing and error handling.

This should result in no user-visible changes, except for adding the
new features.  The man page is updated to describe the new features,
and to describe the sorting options in better and more complete detail.

[* = 1.67 1.72 1.76->1.79 1.84 & 1.85 ps.c,  1.71->1.74 ps.1]

Approved by:	re(scottl)
2004-04-04 17:03:40 +00:00
Colin Percival de4a869aff Finish initializing a knote before we pass it to a callout. This had
resulted in panics if large numbers of events were created with short
timeouts.

This hasn't been fixed in -CURRENT yet; 5.x has a more serious race
condition which I need to fix first.

PR:		kern/64121
Submitted by:	Gerrit Nagelhout
2004-04-04 07:03:14 +00:00
Yoshihiro Takahashi 93f9742943 MFi386: revision 1.27.2.12. 2004-04-04 04:38:26 +00:00
Roman Kurakin 32f7e5f566 Unbreak MAKEDEV all (MAKEDEV cx)
Pointed by:	nyan
2004-04-03 14:26:30 +00:00
Ruslan Ermilov e9fb26d230 MFC: 1.55: Properly program the VLAN TCI field (in network byte order). 2004-04-03 07:11:11 +00:00
Andre Oppermann 67d8b42a96 MFC of rev 1.50, fix refcount leak in verify_rev_path() function.
Reviewed by:	sam
2004-04-02 17:15:44 +00:00
Robert Watson be6705113c MFC src/sys/fs/msdosfs/msdosfs_vfsops.c:1.119:
Don't reject FAT file systems with a number of "Heads" greater than
  255; USB keychains exist that use 256 as the number of heads.  This
  check has also been removed in Darwin (along with most of the other
  head/sector sanity checks).
2004-04-02 16:56:10 +00:00
Roman Kurakin 89fe3acbe0 MFC: Add Cronyx-Sigma entries. (cx(4) and sconfig(8))
Approved by:	imp (mentor)
2004-04-02 16:07:56 +00:00
Roman Kurakin a392df8aed MFC: Add Cronyx-Sigma entry.
Approved by:	imp (mentor)
2004-04-02 16:03:56 +00:00
Roman Kurakin ac03705b9d MFC: Retire old cx(4) driver.
Approved by:	imp (mentor)
2004-04-02 15:59:56 +00:00
Roman Kurakin 7bf69ca361 MFC:
1. Remove reference to cxconfig.8
2. Add reference to sconfig.8

Approved by:	imp (mentor)
2004-04-02 15:46:29 +00:00
Simon L. B. Nielsen 8c7a272bc3 MFC v. 1.21 (from usr.sbin/nfsd/nfsd.8):
Add a cross reference to exports(5).
2004-04-02 10:40:42 +00:00
Jacques Vidrine 2c1f04b982 MFC OpenSSL 0.9.7d. 2004-04-02 01:11:21 +00:00
Alfred Perlstein b4a40edb7b Revert atkb change so that we can rebreak POLA for the sake of release.
Requested by: scottl
2004-04-01 22:59:22 +00:00
Alfred Perlstein 3e53d5fec2 MFC: Fix booting with ps2 keyboards. 2004-04-01 21:49:17 +00:00
Roman Kurakin 77b9d02d11 MFC: Finaly kill cxconfig itself.
Approved by:	imp (mentor)
2004-04-01 18:35:04 +00:00
Roman Kurakin 6220f8d69b MFC: Kill already dead cxconfig entry.
Approved by:	imp (mentor)
2004-04-01 18:26:16 +00:00
Roman Kurakin fd4abcf5cc MFC: connect sconfig to system build process.
Approved by:	imp (mentor)
2004-04-01 18:24:29 +00:00
Roman Kurakin e07b66bafc 1. Add making all Cronyx-Sigma devices (cx?, cuax?, cuay?, cuaz?, ttyx?, ttyy?
ttyz?)
2. Remove old control device /dev/cronyx in favour of /dev/cx? (it is safe to
   do it befor rm cxconfig, cause it is not linked to system build process.)

Approved by:	imp (mentor)
2004-04-01 17:12:58 +00:00
Roman Kurakin 1fd66ee745 MFC: Update man cx(4) to reflect driver changes.
Approved by:	imp (mentor)
2004-04-01 17:08:35 +00:00
Roman Kurakin 7be90102f8 MFC: New driver doesn't need old compatibily scheme.
Approved by:	imp (mentor)
2004-04-01 16:57:00 +00:00
Roman Kurakin 0496c9492b MFC:
1. Remove references to old driver.
   2. Connect new one to the system.

Approved by:	imp (mentor)
2004-04-01 16:55:30 +00:00
Roman Kurakin 732f5942b8 MFC: Remove references to old driver. We do not support pc98 at all.
Approved by:	imp (mentor)
2004-04-01 16:48:08 +00:00
Roman Kurakin e95439c7ac MFC: Add NETGRAPH_CRONYX option (if set, enables NETGRAPH support).
Approved by:	imp (mentor)
2004-04-01 16:40:28 +00:00
Roman Kurakin 68d3f74d3d MFC: Cronyx-Sigma entry.
Approved by:	imp (mentor)
2004-04-01 16:16:56 +00:00
Ruslan Ermilov 37c940eb30 MFC: 1.7, 1.9: Improved documentation about polling(4). 2004-04-01 11:12:29 +00:00
Ruslan Ermilov d1ea0a8600 Fixed bad bits of the polling(4) support MFC. 2004-03-31 15:17:57 +00:00
Ruslan Ermilov f5bca6da54 MFC: 1.212: Rework multicast routing interaction with delayed checksums. 2004-03-31 07:52:15 +00:00
Dag-Erling Smørgrav 749aa8cdb5 Revert previous commit (which removed locales that 4.x still has) 2004-03-30 20:59:41 +00:00
Robert Watson 692c4b0985 MFC src/usr.sbin/sbin/nfsd.c:1.29:
Problem:

    When an NFS server is port-scanned nfsd sometimes exits. This has
    happened 3 times the last few weeks.

    Nfsd has been written to exit when accept(2) fails. Unfortunately
    accept can sometimes make a "normal" return with errno ECONNABORTED
    and in this case nfsd exits prematurely.

  Solution:

    Check for ECONNABORTED (and also EINTR, since nfsd uses signals)
    and continue.

  Submitted by:   Bjoern Groenvall <[email protected]>
  PR:             61084

Reminded by:	Lewis Thompson <[email protected]>
2004-03-30 20:25:33 +00:00
Dag-Erling Smørgrav 3c41ae2dcf Synch with -CURRENT. 2004-03-30 19:40:35 +00:00
Dag-Erling Smørgrav 9364eb7072 Synch with -CURRENT. 2004-03-30 18:48:03 +00:00
Ken Smith 4b210dd4da Add information about the most recent Security Advisory. 2004-03-30 18:18:34 +00:00
David Malone 3dbc2290d3 MFC 1.19: Make the vaule of PTT_RELAY_SID match the RFC. 2004-03-30 14:03:02 +00:00
Dag-Erling Smørgrav 8f56fff5e5 MFC (rev 1.61): do not print warning if kernel does not support PIM 2004-03-30 09:18:15 +00:00
Pawel Jakub Dawidek a6713ff0d8 This is the right fix for the information leakage.
Reported by:	Dave Tweten
2004-03-30 07:53:17 +00:00
cvs2svn b0e84c1cea This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-03-30 03:46:01 +00:00
Roman Kurakin 368b869b85 MFC: configuration utility for Cronyx adapters. Replacement for cxconfig.
Old code will be deleted after switching system files to new one.

Approved by:	imp(mentor)
Approved by:	re
2004-03-29 21:36:19 +00:00
Roman Kurakin d54087f2b6 MFC: modules support for Cronyx-Sigma adapters.
Approved by:	imp (mentor)
Approved by:	re
2004-03-29 21:34:29 +00:00
Roman Kurakin e521edb4ed MFC: ioctls for Cronyx serial adapters.
Approved by:	imp (mentor)
Approved by:	re
2004-03-29 21:32:33 +00:00
Roman Kurakin e8b9283cf6 MFC: Update code for Cronyx-Sigma adapters. Old code will be deleted after
switching system files to new one.

Approved by: imp (mentor)
Approved by: re
2004-03-29 18:06:33 +00:00
Julian Elischer e46a558aea Turn allow people to compile the EHCI driver into a kernel.
It is not yet perfect, but it does work enough to be useful.
2004-03-29 18:04:29 +00:00
Ken Smith 71a41470d1 Fixes to file locking issues.
MFC:  usr.sbin/pw/edgroup.c 1.9
      usr.sbin/pw/fileupd.c 1.10
2004-03-29 14:14:21 +00:00
Julian Elischer 0587919163 MFC 1.142
After examining the remaining diffs after MFCing,
I've decided that -current has this right and 4.x has this wrong..
Set the buffer end address as startpage + offset + buflen
instead of startpage + buflen
After all, the buffer START is startpage + offset
2004-03-29 09:23:19 +00:00
Julian Elischer 41a53fdc65 MFC 1.142
MFNetBSD Version 1.146
    various probing and attaching tweeks.

Submitted by:   Rudolf Cejka <[email protected]>
2004-03-29 08:53:26 +00:00
Hajimu UMEMOTO 6f8a84cc00 MFC 1.52: in icmp6_mtudisc_update(), use ND link mtu to detect
if the path MTU should be updated.
2004-03-28 15:13:37 +00:00
Hajimu UMEMOTO c1876395b8 MFC 1.62 (partly), 1.77 (partly):
- notify a proper path MTU to applications.
  - strictly follow RFC2460 section 5 last paragraph (sending rule when
    PMTU < 1280).
2004-03-28 15:11:57 +00:00
Hidetoshi Shimokawa ad57d94411 Sync with -current:
* all
- s/__FUNCTION__/__func__/.
- Compatibility for RELENG_4 and DragonFly.

* firewire
- Fix kldload failure
- Add a PCI ID of NEC uPD72873.
- Fix a bug reported misc/64623.
- Timestamp just before queuing.
- Retry bus probe if it fails.
- Use device_printf() for debug message.
- Invalidiate CROM while update.
- Don't process minimum/invalid CROM.

* sbp
- Add ORB_SHORTAGE flag.
- Add sbp.tags tunable.
- Revive doorbell support. It's not enabled by default.
2004-03-28 11:50:43 +00:00
Hajimu UMEMOTO ba3451e7dd MFC 1.45: missing splx(). 2004-03-28 09:01:26 +00:00
Garance A Drosehn 9de161e859 MFC 1.29: Add a check for wtmp records which have invalid values for
ut_time.  Wtmp records with time==0 get "the time of the last valid
record", while records where time goes backwards (compared to the
previous record) are skipped.  Also prints a message saying how many
records were changed or skipped due to these checks. This check was
inspired by a simpler check in OpenBSD's version.
2004-03-27 18:02:44 +00:00
Garance A Drosehn 0b0b13e4a8 MFC 1.28: Add a debug-statement from NetBSD, and then rework all
debug-statements so the program compiles without errors or warnings
when DEBUG is defined on sparc64 with 64-bit time_t's (in -current).
Also have debug statements include the year when printing records
from a different year than 'now'.  Also print out a special
timestamp in debug statements when ut_time==0.
2004-03-27 17:58:46 +00:00
Garance A Drosehn 328ab403ca MFC 1.22->1.27: A variety of cosmetic changes, warning-reducing fixes, or
style(9) improvements.  After this, ac.c compiles okay with WARNS=5.
2004-03-27 17:53:19 +00:00
Garance A Drosehn 4297921b2d MFC 1.20->1.21: These are changes which were important for utmp fixes
done in current.  In my testing they do not change the results of ac,
but I want to MFC these to make later MFC's easier.
2004-03-27 17:41:19 +00:00
Garance A Drosehn 5da55a03a3 MFC 1.19: Fix logic error resulting in incorrect calculation of login time
(from Aug 5, 2001)

PR:		bin/4204
Submitted by:	Anatoly A. Orehovsky
2004-03-27 17:17:45 +00:00
Garance A Drosehn b552d94f66 MFC 1.17->1.18: Constify. Replace strncpy -> strlcpy. 2004-03-27 17:11:56 +00:00
Garance A Drosehn fb7ced41c0 MFC 1.66: Fix 'ps -p proclist' and 'ps -u userlist' so the command
returns non-zero if no processes were matched.  Also sorts the list
of 'int's in main, as long as I had to add another one...
2004-03-27 16:35:36 +00:00
Garance A Drosehn 22647ba58e MFC *: Improvements to 'ps -p <x>'. Wrt 4.x-stable, this adds support
for <x> being a comma-separated list of processes, and does a much
better checking for invalid-values of <x>, such as 'ps -p someword'.

[* = 1.65 ps.c, 1.67 ps.1]
2004-03-27 16:27:46 +00:00
Ceri Davies e0114bb9f1 MFC revisions 1.25 and 1.26 of src/usr.sbin/mountd/exports.5:
Note that only one webnfs share is allowed per NFS server.
2004-03-27 14:28:01 +00:00
Pawel Jakub Dawidek 4e401c9005 MFC informations leakage fix.
Reviewed by:	rwatson
2004-03-26 22:07:27 +00:00
Julian Elischer 210a962846 MFC latest MFNetBSD.
MFC: 1.5->1.6, "Diff reduction to NetBSD"
Obtained from: NetBSD via -current
2004-03-26 21:42:34 +00:00
Hidetoshi Shimokawa 319f08b246 Revert the previous change(rev 1.2.2.4).
Depending on CAM module seems to have ill effect on RELENG_4 when
CAM is compiled into the kernel.
2004-03-26 09:53:17 +00:00
Diomidis Spinellis 9bad1b8e27 MFC revision 1.28
Shave-off troff cycles by invoking .Fa only once.

Submitted by:	ru
2004-03-26 08:57:50 +00:00
Julian Elischer 527b9e1a94 Shut up stupid compiler warning. 2004-03-26 08:46:37 +00:00
Julian Elischer 294385da1f MFC 1.60->1.62
MFC some diffs from NetBSD to improve probing of some troublesom
 devices.
2004-03-26 08:39:37 +00:00
Garance A Drosehn 1726747766 More code-diff reductions wrt ps.c in 5.x-current, to make it easier to
MFC some upcoming updates.  This should cause no user-visible changes.
2004-03-25 19:16:40 +00:00
Ruslan Ermilov 66bbd65fc9 MFC: 1.63: Reprogram hardware RX filters when IFF_ALLMULTI flag is set. 2004-03-25 08:49:22 +00:00
Ruslan Ermilov aa4a1b937e MFC: 1.417: visual bell bugfix. 2004-03-25 08:41:09 +00:00
Hiroki Sato 8395465263 New release note:
better usb(4) support merged from -CURRENT,
	disklabel(8) -f option.

MFC:
	umass(4) timeout/ATAPI MMC command support.
2004-03-24 18:05:29 +00:00
Luigi Rizzo 3be06f9f9c do not run newaliases by default on diskless machines.
We can do that from the local rc files if necessary.
2004-03-24 11:42:51 +00:00
Luigi Rizzo a06f1734d6 Insert the directories passed with the T134 bootp cookie
(kern.bootp_cookie) in the list of paths used for diskless templates.

When foo.cpio.gz archives are present, do not copy the content from a
foo/ directory even if present. This restores the previous behaviour,
and is also important from the point of view of efficiency (saving
many RPCs to copy the individual files), which was the whole point for
introducing the cpio archive.

(these files are not anymore in -current but equivalent functionality
will be implemented there, and the maintainer has been already informed).
2004-03-24 11:41:56 +00:00
Colin Percival ccc9e49ac3 MFC revision 1.69: Correctly adjust the number of processes waiting on a
semaphore if we're woken up in the middle of sleeping.
2004-03-24 11:41:19 +00:00
Julian Elischer e8f5cf70d9 Don't needlessly duplicate a packet when we only have one destination
hook attached.

An MFC I forgot a couple of years ago.
2004-03-24 09:01:00 +00:00
Julian Elischer 1603874d27 MFC 1.25->1.26, don't collect statisitics for disconnected hooks. 2004-03-24 08:50:29 +00:00
Pawel Jakub Dawidek ca1268ef42 MFC: Fixed a bug: When symbolic link is pointed onto a mount point,
it can't be moved to a different file system.

PR:		bin/64430
Submitted by:	Samuel Tardieu
2004-03-24 08:34:36 +00:00
Luigi Rizzo ff6e3167f0 Add a -f option to make disklabel to work on regular files (representing
disk images). The change actually boils down to little more than
providing the equivalent of a 'virgin' label for the file, all
the remaining label manipulation being the same.
This saves the need for going through vn/mdconfig (and root privs)
just to label an image file.

RELENG_4 only commit because disklabel is not in RELENG_5/CURRENT anymore,
though I suspect a similar change could be applied to bsdlabel and friends.
2004-03-24 08:34:22 +00:00
Jens Schweikhardt 614a0e4598 Sync with CURRENT (rev. 1.143) 2004-03-23 19:41:32 +00:00
Garance A Drosehn 4430d425c7 MFC various style(9)-ish and other cosmetic changes from -current,
mainly to greatly reduce the code-diffs in ps.c (but that dragged
in some similar changes to the other files).  This should result
in no user-visible changes.  This is done to make it easier to MFC
some user-visible changes that are coming up, but those MFC's will
be done at a later date.
2004-03-23 18:40:24 +00:00
Anton Berezin 70d92a3802 Fix hostname determination from linux applications inside a jail
(uname(2) used to return the host environment's hostname).

Approved by:	silence on emulation@
2004-03-23 12:16:48 +00:00
Paul Saab cadec8d42e MFC:
speedup stream socket recv handling by tracking the tail of the
mbuf chain instead of walking the list for each append.  This has
been pretty well tested at Yahoo!

Obtained from:	netbsd (jason thorpe)
Reviewed by:	silby
2004-03-22 23:59:55 +00:00
Ruslan Ermilov 0a57da35a2 MFC: install /bin/sh in safe mode thus allowing the use of
shell scripts to strip binaries during installworld.
2004-03-22 07:40:12 +00:00
Hiroki Sato 3c1cd5bcfe MFC: Update the supported hardware.
Approved by:	scottl
2004-03-21 15:25:49 +00:00
Christian Brueffer 7ff44475fb MFC: 1.10
Grammar fix
2004-03-21 09:56:26 +00:00
Julian Elischer dcd38311ed MFC of 1.59->1.60 usb_subr.c
"Re-enable detach events after adding a bugfix from NetBSD
  that unbreaks them."
2004-03-21 07:39:51 +00:00
Scott Long 02fbca395d MFC: Add support for two new cards, along with one somewhat older one. 2004-03-20 21:10:08 +00:00
Maxim Konovalov f0873446bb MFC rev. 1.25: document 'callback phone_number'. 2004-03-20 19:33:58 +00:00
Jens Schweikhardt b694c0983f Catch up with -CURRENT. This includes:
* Fixes to xterm
* screen enhancements
* compact mvterm entry
* style police
2004-03-20 09:46:33 +00:00
Hiroki Sato 186376a878 MFC:
xl(4) hardware TX checksum disabled.
2004-03-20 06:19:38 +00:00
Mike Silbersack 314e12f912 MFC rev 1.167; disable TX checksumming 2004-03-19 23:21:05 +00:00
Daniel Harris f0a50a4f55 MFC 1.14: Remove extra "the". 2004-03-19 14:28:53 +00:00
Diomidis Spinellis a08b6abb17 MFC 1.27 changes.
Document missing EFAULT errno value.
2004-03-19 14:16:07 +00:00
Colin Percival 36881235d9 MFC rev. 1.20 2004-03-19 08:26:52 +00:00
Ceri Davies 252dddee10 MFC r1.15:
Correct a grammatical error.

	PR:		docs/63984
	Submitted by:	Ulrich Spoerlein <[email protected]>
2004-03-18 20:44:01 +00:00
Hiroki Sato e36238c022 MFC: SA-04:05.openssl. 2004-03-18 16:41:35 +00:00
Nate Lawson cfa6505f7d MFC: bus_alloc_resource_any(9) for compatibility with 5.x. No driver
conversions will be done in 4.x.
2004-03-17 17:54:25 +00:00
David Malone 9edf684ba6 Enable the programming of multicast filters on -stable.
Reviewed by:	julian
2004-03-17 17:39:12 +00:00
Jacques Vidrine 58a6c81357 MFC s3_pkt.c 1.1.1.9:
Correct a denial-of-service vulnerability in OpenSSL (CAN-2004-0079).
2004-03-17 12:23:51 +00:00
Tom Rhodes 6ccb52b2af Attach newsyslog.conf.5 to the build. 2004-03-16 20:12:38 +00:00
Tom Rhodes bd14e3a769 MFC the new syslog.conf.5 manual page and changes from newsyslog.8 rev 1.43. 2004-03-16 20:12:06 +00:00
Ruslan Ermilov 2726e84f43 MFC: 1.414, 1.415: Fixed the essential GID checks.
Prodded by:	gshapiro
2004-03-16 17:55:57 +00:00
Hiroki Sato d40be2bd43 MFC:
em(4) hiccup fix,
	ng_vlan(4),
	ifconfig(8) polling status support.
2004-03-16 15:28:16 +00:00
Ruslan Ermilov 4ae87c331a MFC: 1.313: Use fresh tools in installkernel, if available.
1.416: Create hierarchy before installing a new kernel.
2004-03-16 08:34:19 +00:00
Colin Percival 5d56b2bca9 MFC rev. 1.14 2004-03-16 07:12:44 +00:00
Colin Percival 6204eba859 MFC rev. 1.39 2004-03-16 07:11:07 +00:00
Max Khon b8b83d6fae softdep_sync_metadata: fix bug introduced in rev. 1.57.2.10:
call drain_output() in correct place
(before checking dirty list and with locks held).

Approved by:	mckusick
Spotted by:	<[email protected]>
2004-03-15 18:04:41 +00:00
Ruslan Ermilov d245d79c4f MFC: 1.98, 1.99. Mainly useful for displaying the polling(4) status
of the interface.
2004-03-15 07:25:30 +00:00
Marc Fonvieille a76d86792e MFC: 1.35
Typo fix.
2004-03-14 12:59:10 +00:00
Colin Percival a36a0201bb MFC of revisions 1.21, 1.24. This allows script to operate
non-interactively, and avoids doing tty stuff to non-ttys.

PR:		bin/56166, bin/57414, ports/57415, bin/59036, ports/60534
2004-03-13 09:21:00 +00:00
Colin Percival 857a545a2e MFC of revision 1.27
Approved by:	rwatson (mentor)
2004-03-12 23:33:10 +00:00
cvs2svn 62fe8c45a9 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-03-12 21:45:34 +00:00
Christian Brueffer 9e5e0da0ef MFC: 1.16
s/controller/device/ in synopsis

Prodded by:	Recent change in DragonFlyBSD
2004-03-12 16:07:11 +00:00
Peter Wemm 5992e1a0e6 MFC: part of vm_map.h rev 1.68 and vm_map.c 1.212. This is actually
a prequisite of the vm_map.c rev 1.280 that dillon prematurely MFC'ed
on Jan 13th, 2003.  Without this change, the kernel leaks vmspaces
to varying degrees depending on the circumstances.  Specifically,
vm_exitingcnt was being copied from the parent to the child when it
might have been non-zero.  This caused the child's vm_exitingcnt to
never hit zero.  This was blowing up machines at work.
2004-03-12 00:24:56 +00:00
Ruslan Ermilov 05f0dcfa84 ng_vlan(4) for the masses. 2004-03-10 15:35:20 +00:00
Lukas Ertl 4753f22e0c When faking disklabels, change default fragment size from 1k to 2k
as this is more appropriate for modern disks.

Also, remove a duplicate variable assignment.

PR:              kern/63839
Submitted by:    Dmitry Morozovsky <[email protected]>
Approved by:     grog (mentor)
2004-03-09 10:18:47 +00:00
Maxim Konovalov b5d332bae1 MFC revs. 1.77, 1.78: FreeBSD 5.2.1, NetBSD 1.6.2. 2004-03-07 07:56:20 +00:00
Christian Brueffer eae2c1eaeb MFC:
Add bfe(4)
2004-03-05 11:48:33 +00:00
Christian Brueffer 4ba9abcda1 MFC: 1.2
o remove stray 'the'
o remove instance of wrong apostrophe usage
2004-03-05 11:45:14 +00:00
Bruce A. Mah 4120fb130a MFC: SA-04:04. 2004-03-05 04:23:42 +00:00
Ceri Davies c1bff3b651 MFC revision 1.22:
Have edquota honour MAXLOGNAME rather than hardcoding the maximum
	  username length to 29 characters.

PR:             misc/62944
Submitted by:   David Hill <[email protected]>
Approved by:    ru
2004-03-04 19:23:05 +00:00
Bruce A. Mah 03b38e0a9c MFC: SA-04:04. 2004-03-04 17:07:22 +00:00
cvs2svn c1729b49ca This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-03-04 14:16:13 +00:00
Bruce M Simpson db602b2488 MFC: Add a new option to mountd(8), -p <port>. This allows the user to specify
a known port for use in firewall rulesets; otherwise the port is chosen
at run-time by bindresvport().

No objection from:	-security@
2004-03-04 13:04:32 +00:00
Tom Rhodes 1db125c226 MFC: rev 1.57 (-follow, / in place of .)
MFC: rev 1.56 (fix a type s/h/H/)
2004-03-04 12:02:44 +00:00
Don Lewis 32f62429e1 Forced commit. Previous commit also MFC'ed sys_process.c rev 1.117.
When reparenting a process in the PT_DETACH code, only set p_sigparent
  to SIGCHLD if the new parent process is initproc.
2004-03-04 09:02:37 +00:00
Maxim Konovalov f3cba6605a MFC rev. 1.59: sysctl net.inet.ip.forwarding=1 is needless. 2004-03-04 05:04:15 +00:00
Maxim Sobolev 45bca2a70e MFC: Pentium 4 thermal control circuit support. 2004-03-03 15:24:15 +00:00
Ruslan Ermilov 07bf472928 Properly adjust an mbuf(9) chain in ether_input() after stripping
Ethernet header.

PR:		kern/62989
2004-03-03 12:35:16 +00:00
Ruslan Ermilov 6ef444c522 MFC: 1.22: Use newer constraints for inline assembly to indicate
that an operand is input/output.  This is also -O0 friendly.

OK'ed by:	bde
2004-03-03 12:31:50 +00:00
Ruslan Ermilov f2f7d9e610 Alongside rev. 1.33, use static __inline', not extern __inline',
for __cursig(), needed to be able to compile the kernel with -O0.
2004-03-03 12:29:50 +00:00
Don Lewis 70a6ce0e19 MFC: kern_exit.c 1.222
A Linux thread created using clone() should not send SIGCHLD to its
    parent if no signal is specified in the clone() flags argument.

PR:	42457
2004-03-03 09:21:14 +00:00
Don Lewis 67405fb569 MFC: kern_exit.c 1.221
sys_process.c	1.116

    When reparenting a process to init, make sure that p_sigparent is
    set to SIGCHLD.
2004-03-03 09:18:41 +00:00
Julian Elischer 3ded5f573c Initial MFC edits for EHCI code 2004-03-02 23:27:41 +00:00
Julian Elischer 054f1481f0 Bring over ehci drivers from -current
more commits to follow
2004-03-02 23:21:14 +00:00
Max Khon 6b1d012417 MFC: rev. 1.5:
Properly cleanup the stack before jumping to cerror() if rfork(2) fails.

Submitted by:	Igor Sysoev <[email protected]>
2004-03-02 18:20:35 +00:00
Jacques Vidrine 3cda90ae2f MFC in part tcp_input.c 1.228, tcp_subr.c 1.182, tcp_var.h 1.98:
Limit TCP segment reassembly queue size.

Submitted by:	andre
2004-03-02 17:19:18 +00:00
Tim J. Robbins 4a5958485a MFC rev. 1.117: If the "next free cluster" field of the FSInfo block is
0xFFFFFFFF, it means that the correct value is unknown. Since this value
is just a hint to improve performance, initially assume that the first
non-reserved cluster is free, then correct this assumption if necessary
before writing the FSInfo block back to disk.

PR:		62826
2004-03-02 09:43:04 +00:00
Julian Elischer c327a5a025 MFC, Don't go into an infinite loop on receiving a packet error. 2004-03-02 08:41:33 +00:00
Julian Elischer 771dbf2c5d MFC of whitespace changes 2004-03-02 01:56:40 +00:00
Josef El-Rayes 145656ccef Merge the int values for the signal(3) manual page from current.
I removed the line for SIGTHR which does not exist under 4.X

Approved by:    simon(mentor)
MFC v. 1.34
2004-03-01 21:43:50 +00:00
John Baldwin 1bcb94cbac MFC: Fix problem with key rollover. 2004-03-01 20:56:02 +00:00
Yaroslav Tykhiy 9d59032f96 MFC 1.75: Add cross-references to vlan(4), capitalize generic "VLAN". 2004-03-01 18:24:01 +00:00
Thomas Quinot 081563adb5 MFC env.c rev. 1.11 and 1.12: bring crontab parser in conformity
with documentation.

PR:		bin/38374
2004-03-01 13:21:52 +00:00
Christian Brueffer 25151b0a0e Forced commit to note, that the last commit message should have read:
MFC: 1.17

Remove reference to miibus.4, cue(4) does not use it.
2004-03-01 09:23:45 +00:00
Christian Brueffer 2775b83c2b MFC: 1.11
cue(4) doesn't use miibus(4)
2004-03-01 09:22:11 +00:00
Julian Elischer 1007ae1e1d remove debug code specific to -current 2004-03-01 07:23:27 +00:00
Noriaki Mitsunaga 4b3aa07ca2 [MFC]
Add ncv(4), nsp(4), and stg(4) man page for nsp, ncv, and stg SCSI host
adapter device drivers, and attach them to the build.
2004-03-01 00:24:29 +00:00
Julian Elischer c427c62d5a After Far too long, MFC something resembling the -current version of the
USB code. This will allow teh addition of USB-2 support to 4.10 and
simplify debugging as they had diverged too much.

Submitted by:	[email protected]
Obtained from:	NeBSD via -current
2004-03-01 00:07:26 +00:00
Ian Dowse a1298a98b3 MFC: 1.14; fix a typo that stopped ypset's -h option from working
with a hostname rather than an IP address.
2004-02-29 21:09:39 +00:00
Ian Dowse 9989e41eb1 MFC: 1.102; exit immediately if a second SIGINT is received, to
avoid long delays where ^C is ineffective during certain DNS lokups.
2004-02-29 21:05:18 +00:00
Ian Dowse a4d7534240 MFC: 1.119, 1.120: be much more strict about parsing tagged log
messages from /dev/klog; if the line doesn't match ^<%d>, then treat
it as a regular kernel printf line. Use strtol for reading numbers.
2004-02-29 20:59:19 +00:00
Ian Dowse af1ffe62db MFC: 1.21, 1.22; don't print the oldest line in the message buffer
if the buffer is full, since that line is almost always incomplete.
Make the parsing of <%d> lines more strict, and simplify the logic.
2004-02-29 20:39:40 +00:00
cvs2svn f44b87bb48 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-02-29 18:30:36 +00:00
Tor Egge d68d3cb739 MFC: Fix off by one error when clearing posix locks during detach of
file descriptor table from a process leader.

PR:		61505
2004-02-28 00:43:31 +00:00
Joe Marcus Clarke 8952dc081b MFC:
Add ports-net-mgmt module.
2004-02-27 17:19:31 +00:00
Marc Fonvieille edc75100e6 MFC: 1.22: Fix bogus "ffsinfo -c 0" example with "ffsinfo -g 0 -l 4". 2004-02-27 10:56:56 +00:00
Dag-Erling Smørgrav 0be36e9683 MFC: markup nits, mention fetch(3) more prominently 2004-02-27 10:33:52 +00:00
Dag-Erling Smørgrav 4289455890 MFC: revamped progress meter. 2004-02-27 10:33:29 +00:00
Dag-Erling Smørgrav e02eefb7e6 MFC: various markup issues. 2004-02-27 10:25:34 +00:00
Dag-Erling Smørgrav 6cbb108abc MFC: graceful recovery from code 416. 2004-02-27 10:24:59 +00:00
MIHIRA Sanpei Yoshiro 965e9efdfa MFC: I forgot Add the READ_BUFFER command to umass_atapi_transform.
(1.11.2.23 and rev.1.97)

PR:		kern/63384
Submitted by:	Ryuji MATSUMOTO <[email protected]>
2004-02-26 23:45:58 +00:00
Tim J. Robbins ca3f2516f2 MFC: Fix problems that occurred when a file was removed and a directory
created with the same name, and vice versa.

PR:		62342
2004-02-26 11:12:43 +00:00
Maxim Konovalov 14aa90293e MFC a part of rev. 1.43: pri -> priority. 2004-02-26 10:07:33 +00:00
Jacques Vidrine 83e209362f MFC 1.9: Limit the amount of memory userspace processes can cause the
kernel to allocate via DRI on r128 devices.
2004-02-25 20:43:25 +00:00
Ceri Davies d24b032b55 MFC revision 1.19:
Only call chflags() on directories once.

	  Approved by:    ru
	  MFC after:      1 week
2004-02-25 19:47:50 +00:00
Ruslan Ermilov 19953eb12f MFC: Fixed parsing of double quotes. 2004-02-23 12:10:57 +00:00
Ruslan Ermilov d0a4947510 MFC: 1.324: "cvs update" with -R. 2004-02-23 11:26:11 +00:00
Ruslan Ermilov 3f11492547 MFC:
- New API functions for libnetgraph.
- Get rid of static buffers where possible.
- Fixed memory leak in NgSendAsciiMsg().
- WARNS fixes for ngctl(8).
- mdoc(7) cleanup for netgraph(3).
- Reduced gratuitous diffs to the trunk.
2004-02-23 11:23:12 +00:00
Ruslan Ermilov 88b305eff2 MFC: Allow the socket buffer sizes to be controlled via sysctl(8). 2004-02-23 10:17:33 +00:00
Julian Elischer 9f11673373 get a brain and check with KASSERTs turned on. 2004-02-23 02:46:46 +00:00
David Malone bd3f1e5e73 MFC 1.157: Return EACCES rather than ENOBUFS if ipfw blocks a packet
on the way out at layer 2.
2004-02-22 17:31:05 +00:00
Philippe Charnier 3c0fd7e012 MFC: add missing endusershell() call.
PR: bin/2442
2004-02-22 11:28:06 +00:00
Philippe Charnier e72efe5803 MFC: add missing setusershell() call.
PR: bin/2442
2004-02-22 11:21:27 +00:00
Philippe Charnier f75ad97fc8 MFC: rework of getusershell()/endusershell() use.
PR: bin/2442
2004-02-22 11:11:13 +00:00
Gregory Neil Shapiro 2a544dc1f6 sendmail 8.12.11 has been MFC'ed to RELENG_4 2004-02-22 04:30:32 +00:00
Gregory Neil Shapiro 7ba82be78b Update date to reflect date of RELENG_4 MFC 2004-02-22 04:26:34 +00:00
Gregory Neil Shapiro 2f3342e810 MFC: sendmail 8.12.11 import 2004-02-22 04:25:44 +00:00
Wilko Bulte 75eed988de MFC: Add EPSON Perfection 3200 scanner. 2004-02-21 16:40:07 +00:00
Wilko Bulte 13df1e508a MFC: Add EPSON Perfection 3200 scanner 2004-02-21 16:35:20 +00:00
Ruslan Ermilov 0a80a882e4 Connect bfe module to the build. 2004-02-20 15:44:41 +00:00
Ruslan Ermilov 7dfa9c3a5a Attempt to stop tinderbox flooding our mailboxes. 2004-02-20 15:41:54 +00:00
Ruslan Ermilov 80b67ebb1f MFC: 1.16: Fixed CLEANFILES. 2004-02-20 12:52:01 +00:00
Munechika SUMIKAWA 5daf89faa5 MFC: Flush stdout when -A option is used. 2004-02-20 12:10:27 +00:00
Ruslan Ermilov 1763aa8f82 Use the correct (for RELENG_4) header to get the byteorder(3) prototypes. 2004-02-19 18:54:27 +00:00
Pawel Jakub Dawidek d81a84df36 Don't allow mount/umount operations inside jail as well as don't allow
umount file systems mounted by users if vfs.usermount is set to 0.

Tested by:	demon
Approved by:	scottl (mentor)
2004-02-19 14:02:30 +00:00
Don Lewis b636c6896b MFC 1.92 - Check that sa_len is the appropriate value in tcp_usr_bind(),
tcp6_usr_bind(), tcp_usr_connect(), and tcp6_usr_connect()
           before checking whether the address is multicast so that the
           proper errno value will be returned if sa_len is incorrect.
2004-02-19 11:58:14 +00:00
Don Lewis d352e03d5c MFC 1.163 - Add a somewhat redundant check on the getsockaddr() len
argument to avoid writing past the end of a dynamically
             allocated buffer, even though the minimum allocation size
             prevents an actual buffer overflow from occuring without
             this check.
2004-02-19 11:55:42 +00:00
Julian Elischer 2e88b9f200 MFC the man page for the bfe driver.
I don't know if I should say it first appeared in 4.10 as I
don't know if there will be a 4.10 so I'm leaving it untouched..
2004-02-17 20:56:50 +00:00
Julian Elischer e650dbfe59 Add a note about the Broadcom BCM4401 driver. 2004-02-17 20:52:56 +00:00
Julian Elischer 2bb5e345db Allow people top try building the Broadcom 4401 driver into a kernel. 2004-02-17 20:47:25 +00:00
Julian Elischer fcaf350fdd Testing over the weekend has been positive. Remove the
warning to allow people to build this module.
2004-02-17 20:43:16 +00:00
Bruce A. Mah 26c1077c2c MFC: dcons(4) and dconschat(8), killall(1) -e, libdisk PC98, pw(8)
-H.
2004-02-17 05:32:14 +00:00
Bruce A. Mah c6637f1fdc MFC: TCP RFC 2385 (TCP-MD5), libmap.conf(5). 2004-02-17 05:17:29 +00:00
Bruce M Simpson 53e20e8a84 MFC: Shorten the name of the socket option used to enable TCP-MD5 packet
treatment.

Submitted by:	Vincent Jardin
2004-02-16 22:21:47 +00:00
Yaroslav Tykhiy 27826d7818 MFC rev. 1.148, 1.150-1.153:
- deny attempts to delete or rename a file
  if a guest user isn't allowed to modify files on the server;

- disallow downloading raw directory contents by real users
  in order to work around buggy GUI clients which think that
  trying to download a directory is a fair way to tell it
  from a regular file;

- "(char *)0" --> "NULL" where possible.
2004-02-16 16:11:26 +00:00
Bruce M Simpson 59eabf0a1e MFC: Spell types consistently throughout this file. Do not use the __packed
attribute, as we are often #include'd from userland without <sys/cdefs.h>
in front of us, and it is not strictly necessary.

Noticed by:	Sascha Blank
2004-02-16 14:41:46 +00:00
Bruce M Simpson 37e8e9dbfa Don't compile xform_tcp.c if options TCP_SIGNATURE is not defined.
Noticed by:	Chuck Swiger
2004-02-16 14:32:19 +00:00
Peter Pentchev 3a6c45e7f7 MFC bootpd.c 1.22 and bootpd.8 1.18: document the '-h hostname' option,
sort the options in the manpage synopsis, bring usage() up to date.
2004-02-16 09:17:37 +00:00
Justin T. Gibbs bd3f8055a2 MFC: Update to the aic7xxx and aic79xx drivers in today's current. 2004-02-15 19:30:03 +00:00
John-Mark Gurney 71ab0a1dd9 MFC: rev 1.93 update frlengths after isoc transfer
PR:		kern/60109
Submitted by:	Damien Bergamini
2004-02-15 05:26:54 +00:00
Bruce M Simpson 136b29c6b6 MFC: Import of TCP-MD5 (RFC2385) support (userland).
Sponsored by:	sentex.net
2004-02-14 22:28:29 +00:00
Bruce M Simpson e3d973742d MFC: Import of TCP-MD5 (RFC2385) support.
Sponsored by:   sentex.net
2004-02-14 22:24:09 +00:00
Bruce M Simpson 2a8d8f83e1 MFC: Document the functions m_apply() and m_getptr(). 2004-02-14 22:04:15 +00:00
Poul-Henning Kamp e97823f8ec Grab a copy of the majors file from -current and stick it in RELENG_4.
All future major number allocations should happen from the copy in RELENG_4.
2004-02-14 20:49:49 +00:00
Prafulla Deuskar 37dc7d9316 MFC:
Only reset the phy when it is absolutely required.
  This should fix the issues with long *init* times when
  you do ifconfig em0 alias.
2004-02-14 00:56:45 +00:00
Julian Elischer f557dfe09a Upgrade to the version of the MFC by Edwin Groothuis.
This seems to work but I have heard of hangs...
2004-02-13 21:36:34 +00:00
Diomidis Spinellis 5bade38b08 MFC 1.27
getnetbyname fixes:
Do not choke on malformed network addresses.
Return n_name in static space, not on the function's stack.

Tinderbox fixes by:	Ruslan Ermilov
2004-02-13 20:59:43 +00:00
Julian Elischer d282732c66 Stop people from using this until I complete the MFC 2004-02-12 23:08:49 +00:00
Julian Elischer ac4f3fd589 Makefile for creating bfe module. 2004-02-12 22:12:36 +00:00
Julian Elischer 7572d6b7e7 Merge to match "pavel's" version for 4.8.
other patches were also supplied by Edwin Groothuis (edwin at mavetju dot org)

more merging to come.
2004-02-12 21:54:02 +00:00
Julian Elischer a0a55af5d8 MFC the Broadcom 4401 ethernet driver
This commmit just brings over the files unchanged..
I will be applying the patches to make it 4.x as a second commit.
2004-02-12 21:00:54 +00:00
Doug Barton 30887e8a4c NO_MAKEDEV was supposed to be a commented out example.
PR:		misc/62683
Submitted by:	Dmitry Kazarov <[email protected]>
2004-02-11 22:08:50 +00:00
John Baldwin e09ba927b4 MFC: Add support for more 2-port Avlab Tech cards. 2004-02-11 18:02:05 +00:00
Bruce M Simpson d4f2b44348 Finish the job of killing off crmbuf.c due to the m_apply pushup. 2004-02-11 06:54:36 +00:00
Bruce M Simpson 82ef3ea615 The one that got away. Purge crmbuf.c as this was providing a definition
of m_apply which generated tinderbox errors.

Pointed out by:	tjr
2004-02-11 06:52:09 +00:00
Bruce M Simpson e93e667c54 Forced commit to note that previous commit was in fact an MFC. 2004-02-10 17:37:11 +00:00
Bruce M Simpson a427373c85 Push m_apply() and m_getptr() up into the collection of standard mbuf
routines, and purge them from opencrypto.

Reviewed by:	sam
Obtained from:	NetBSD
2004-02-10 17:34:53 +00:00
Tom Rhodes 74e17e3ec2 Sync with CURRENT. This brings in several mdoc(7) fixes and some content. 2004-02-10 07:25:18 +00:00
Tom Rhodes 87db2f5ce4 MFC: rev 1.33:
Remove 'broken in some cases' Xref to Kerberos.

PR:		30443
Cool with:	markm (who approved this ages ago)
2004-02-10 07:10:33 +00:00
Tom Rhodes 61a07a21f0 MFC: rev 1.23:
Discuss the 'MAILTO' environment variable.

PR:		58783
Submitted by:	Marc Silver <[email protected]>
2004-02-10 07:03:46 +00:00
Tom Rhodes 80c22cace9 MFC: rev 1.18:
It is not the job of this manual page to list 'supported chipsets'.

PR:		60575
Submitted by:	Andreas Möller
2004-02-10 06:57:41 +00:00
Tom Rhodes 7f2eae773c MFC: rev 1.307:
Xref the proper manual pages.

PR:		60999
Submitted by:	Marc Silver <[email protected]>
2004-02-10 06:54:15 +00:00
Diomidis Spinellis e767ccd633 MFC changes from killall.c 1.27 killall.1 1.30
New -e flag, modifies the behavior of the -u uid flag to use the
effective user id, instead of the real user id.
2004-02-09 21:46:07 +00:00
Ian Dowse bbea3e65c4 MFC: 1.14; Undo the adjustment of the total memory used by dirhash
in the case where allocating the dirhash structure fails. Fix a few
typos in comments and update copyright.
2004-02-08 22:30:59 +00:00
Bruce A. Mah 3e81cc27a7 MFC: SA-04:02.
While here, add missing date for SA-03:19 note.
2004-02-08 22:26:05 +00:00
Ian Dowse e45410b470 MFC: 1.32; make the documentation of PT_STEP match its implementation. 2004-02-08 22:24:17 +00:00
Doug Barton 672705a638 Properly document the difference between NO_MAKEDEV and NO_MAKEDEV_RUN.
PR:		conf/37909
Submitted by:	Paul Fardy <[email protected]>
2004-02-08 08:46:12 +00:00
Mike Silbersack da8f265ed2 MFC rev 1.91: don't bother defragging mbuf chains sent to the loopback,
the ipv6 stack can handle them just fine as is.
2004-02-08 08:40:24 +00:00
Bruce A. Mah 6f3952fe92 MFC: SA-04:02. 2004-02-06 21:38:39 +00:00
MIHIRA Sanpei Yoshiro 2dc7e990c5 MFC: Add the Synchronize command to umass_atapi_transform. It seems to work
unmodified for ATAPI type devices.(rev.1.40)

Submitted by:	MATSUMOTO Ryuji <[email protected]>
		[FreeBSD-users-jp 78260]
2004-02-06 14:51:52 +00:00
Jacques Vidrine 144e48357a MFC sysv_shm.c 1.90: Correct a reference counting bug in shmat(2). 2004-02-05 18:01:26 +00:00
Dag-Erling Smørgrav 20f479cc4c GC port.mkversion. 2004-02-05 00:07:09 +00:00
Dag-Erling Smørgrav 16bae34c3b Remove Perl lines except for the base system version; it's better to
let use.perl handle them.
2004-02-04 22:38:08 +00:00
Max Khon 999f51b8f5 Bump __FreeBSD_version for libmap MFC. 2004-02-04 06:07:39 +00:00
Max Khon 57ba045c0c MFC: rev. 1.10 (forgotten in previous commit). 2004-02-03 21:13:47 +00:00
Max Khon 829e70cd4e MFC:
Manpage for libmap.conf. Examples do not make sense in RELENG_4.
2004-02-03 21:10:31 +00:00
Max Khon bf5521f90d MFC:
Dynamic object dependency mapping: libmap.

PR:		58133
2004-02-03 21:04:16 +00:00
cvs2svn ca7a547e06 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-02-03 18:53:41 +00:00
Matt Jacob 08bce52b4e MFC: spelling fix. 2004-02-02 22:38:25 +00:00
Matt Jacob 58df498086 MFC: MAKE_WWN_FROM_NODE_NAME macro 2004-02-02 22:38:13 +00:00
Matt Jacob 4d15c766c4 MFC: sync with common source. 2004-02-02 22:37:44 +00:00
Matt Jacob 3596d4ba86 MFC: fixes to message define botches; add at_crn field to ATIO2 2004-02-02 22:37:33 +00:00
Matt Jacob d888e022cb MFC: CTIO3 handling; some silly bug fixes that have been around for a while,
AYNC_CTIO handling
2004-02-02 22:37:00 +00:00
Matt Jacob 475ecb491c MFC: some debug printuots to be cleaner. 2004-02-02 22:36:18 +00:00
Matt Jacob 438dd7c2b9 MFC: we return f/w major/minor/micro with hba info. 2004-02-02 22:35:50 +00:00
Matt Jacob 1221f59921 MFC: bug fix for CTIO2 fetch; changes to ATIO2 fetch/put (for crn tag) 2004-02-02 22:35:29 +00:00
Matt Jacob ec5ff791bd MFC: changes to ioctl get gets HBA info; __inline -> INLINE 2004-02-02 22:34:48 +00:00
Matt Jacob f3f9a6cabf MFC: typos, some NetBSD fixes, ISP_FW_CRASH_DUMP fix, some reset logic changes
and role change implications.
2004-02-02 22:34:03 +00:00
Matt Jacob 80dbcb74e2 It's silly to keep a maintainer file around for something that is released
in -current.
2004-02-02 22:14:35 +00:00
MIHIRA Sanpei Yoshiro cb61308837 MFNetBSD: URL updates(rev.1.108) 2004-02-02 15:00:15 +00:00
Simon L. B. Nielsen d10185f733 MFC 1.5:
Add Sandberg USB to Serial Link (model number 133-08) to the list of
supported devices.
2004-02-01 12:37:35 +00:00
MIHIRA Sanpei Yoshiro 65c3f7f42a MFC: Add support(rev.1.101)
- 2nd type of GL641USB USB-IDE bridge
	- Plextor Plexwriter 40/12/40U
2004-02-01 12:27:16 +00:00
MIHIRA Sanpei Yoshiro a0555b17dc Sync to 1.11.2.53 of usbdevs 2004-02-01 12:23:16 +00:00
MIHIRA Sanpei Yoshiro da9dff6389 MFC: Synchronise with -current. 2004-02-01 12:12:28 +00:00
Andrey A. Chernov d6a6a136c9 MFC 1.50 - fix LC_ALL priority 2004-01-31 21:49:00 +00:00
Maxim Konovalov eb3f8f2b65 MFC rev. 1.45: pass a correct argument to errx(3). 2004-01-31 19:16:46 +00:00
Johan Karlsson 37aa348e6c MFC rev 1.12:
Do not install SYMLINKS if both NO_MAILWRAPPER and
	NO_SENDMAIL is defined.
2004-01-31 17:16:57 +00:00
Hartmut Brandt fc62ac150e Fix sorting order: 3C > 39. I'm still more comfortable with
octal than with hex numbers.
2004-01-30 14:40:47 +00:00
Joerg Wunsch 3588d8b8ea MFC rev 1.11: update to latest InterNIC version, namely change A RR for
b.root-servers.net.  named's are starting to complain these days...
2004-01-30 14:40:06 +00:00
Hartmut Brandt ad28490dad Bring over missing partition types from -current, but don't touch
the names of the already existing types. This is a delayed MFC of rev.
1.55, 1.58, 1.73.

PR:		i386/14793, bin/27268
2004-01-30 14:36:31 +00:00
Maxim Konovalov 19d96beb3b MFC rev. 1.30: document -s flag. 2004-01-30 10:15:31 +00:00
Colin Percival 7903cb9ba9 MFC rev 1.66: Bring ps(1) up to date with changes
in the past seven years.

PR:		bin/34955
Submitted by:	Tim Robbins
Approved by:	rwatson (mentor)
2004-01-29 19:06:34 +00:00
Jens Schweikhardt bcdbfc444d MFC: DTRT, quote parens in an extended regular expression. 2004-01-29 18:16:58 +00:00
Nate Lawson b3ce7fe380 MFC: enable autosense by default and note where someone (maybe you!)
should submit support for report luns.
2004-01-29 18:02:41 +00:00
Colin Percival a3133e4631 MFC rev 1.14: ffsinfo *appends* to outfile.
Approved by:	rwatson (mentor)
2004-01-29 15:48:26 +00:00
John Baldwin 1c02a9b0f3 MFC: Various fixes to libstand filesystem code:
- Cleanup inconsistencies in error code handling.
- Fix splitfs to allow for the first chunk to be on a different floppy than
  the foo.split file.
2004-01-28 17:34:26 +00:00
Olivier Houchard ca39d317eb MFC rev 1.138:
Update Eterm entry to Eterm 0.9.2

Submitted by:	Geraud CONTINSOUZAS <[email protected]>
2004-01-28 17:12:40 +00:00
John Baldwin 1b80f7d4f4 MFC: Fix edge case in floppy bounce buffers used for crossing 64k boundary. 2004-01-28 16:28:50 +00:00
Tim J. Robbins 5642fc7432 MFC rev. 1.12: Fix an inverted test for NOPEN in the unused
function smb_smb_flush().
2004-01-28 06:21:01 +00:00
David E. O'Brien 1f99d83811 MFC: revision 1.366 2004-01-28 05:18:12 +00:00
Yoshihiro Takahashi 8f2b0b0905 MFC: Fixed pc98 partition type. 2004-01-27 15:29:06 +00:00
Dag-Erling Smørgrav 3835afbbfc MFC: don't pretend that perfectly valid file names are "bogus". 2004-01-27 09:07:10 +00:00
Dag-Erling Smørgrav 2113c162c7 The previous log message is correct in that 1.25.2.8 fixes truncation
detection, but it was not a forced commit.  It should have said "MFC:
apply consistent indentation".
2004-01-27 09:06:21 +00:00
Dag-Erling Smørgrav b2ebd14f1d forced commit; previous log message should have been
MFC: correct truncation detection after use of snprintf.
2004-01-27 09:03:41 +00:00
Dag-Erling Smørgrav b6cc126127 whitespace nits. 2004-01-27 09:02:00 +00:00
Dag-Erling Smørgrav a84effeb24 MFC: avoid potential buffer overflow in format_cmd().
Forgotten by:	jkh
2004-01-27 08:59:48 +00:00
Dag-Erling Smørgrav 7ce40cd5f4 MFC part of 1.75; specifically, call pam_acct_mgmt().
PR:		bin/28311
2004-01-26 21:18:38 +00:00
Colin Percival 2d808e384a MFC rev 1.26: killall should avoid killing itself.
Approved by:	rwatson (mentor)
2004-01-26 18:07:01 +00:00
Maxim Sobolev edf5f80d4e MFC: (whilespace-only)
Kill trailing spaces.
2004-01-26 12:24:28 +00:00
Maxim Konovalov 08f94bd21d MFC rev. 1.28 killall.1 and rev. 1.25 killall.c: sync usage() and man
page synopsis with reality.

MFC rev. 1.29 killall.1: -m flags contructs case sensitive RE.
2004-01-26 12:19:19 +00:00
Hidetoshi Shimokawa d9054a408b Add dependency on cam. 2004-01-26 07:27:25 +00:00
Hidetoshi Shimokawa 1a971b49c1 MFC: cam_xpt.c rev 1.91
Build CAM module.

OK'ed by: ken
2004-01-26 07:18:46 +00:00
Hidetoshi Shimokawa a066e5bfae Sync with -current
* firewire
- Remove pending list.
- Ignore timeout for the FWXF_START state.
- Define M_FWMEM for debugging.
- Comment out DELAY() in fw_asybusy().
- Improve debugging messages.
- Fix register mis-alignment introduced in rev1.12.
- Add missing free() in exception handlers.
- Add tcode_str[] and improve debug message.

* sbp
- Freeze simq while bus reset.
- If max_speed is negative, use the maximum speed which the
  ohci chip supports.  The default max_speed is -1.

* sbp_targ.c
- Add speed in struct sbp_targ_login.
- Remove unnecessary htonl().

* if_fwe
- If tx_speed is negative, use the maximum speed which the
  ohci chip supports.  The default tx_speed is 2.

* all
- Remove __P().
2004-01-26 04:51:15 +00:00
Ian Dowse 41284ebcd1 MFC: add a -H <fd>' option that is like -h <fd>', but accepts an
already encrypted password on the specified file descriptor.
2004-01-25 20:42:59 +00:00
Christian Brueffer d07969a329 MFC: 1.3
Fix reference to firewire(4)
2004-01-25 01:53:05 +00:00
Joe Marcus Clarke 287cb9a84a MFC:
Add the ports-accessibility category.
2004-01-24 22:18:17 +00:00
Robert Watson d5e10ce671 MFC kern_sig.c:1.266
When not creating a core dump due to resource limits specifying
  a maximum dump size of 0, return a size-related error, rather
  than returning success.  Otherwise, waitpid() will incorrectly
  return a status indicating that a core dump was created.  Note
  that the specific error doesn't actually matter, since it's lost.

  MFC after:      2 weeks
  PR:             60367
  Submitted by:   Valentin Nechayev <[email protected]>
2004-01-24 18:56:44 +00:00
Yoshihiro Takahashi 284063b6f4 MFC: Supported the gdc_clear function. 2004-01-24 11:16:24 +00:00
Yoshihiro Takahashi 35d7de4626 MFC: Include machine/asmacros.h instead of machine/asm.h. 2004-01-24 11:11:07 +00:00
Yoshihiro Takahashi b1f68323af MFC: Fix to support KANA and graphics characters. 2004-01-24 10:58:38 +00:00
Simon L. B. Nielsen eb2d51b4c2 MFC 1.11:
Add Canon N676U and Canon N1220U to the list of supported devices.
2004-01-24 10:20:37 +00:00
MIHIRA Sanpei Yoshiro a485e66613 MFC: Add support IO-data DVD Multi-plus unit iU-CD2(rev.1.100) 2004-01-24 04:18:36 +00:00
MIHIRA Sanpei Yoshiro 7e04bc4ad4 MFC: Pay attention to the timeout value passed down by the upper layer.
(rev.1.99)
Some USE CD-R,RW Drive now support writing
2004-01-24 04:14:35 +00:00
MIHIRA Sanpei Yoshiro dc3bea302c MFC: Empty vendor string overrides knowndevs(rev. 1.59) 2004-01-24 03:55:46 +00:00
MIHIRA Sanpei Yoshiro 83ad3bfe1d MFC: Add support SUNTAC U-Cable type A3(AS64LX) 2004-01-24 03:52:34 +00:00
MIHIRA Sanpei Yoshiro 629eb05b60 Sync to 1.11.2.52 of usbdevs 2004-01-24 03:40:29 +00:00
MIHIRA Sanpei Yoshiro b12cd37ccf MFC: Synchronise with -current. 2004-01-24 03:36:44 +00:00
Christian Brueffer 362b77d09f Add two supported SATA chips, Intel ICH5 and VIA 8237
Reviewed by:	bmah
2004-01-23 13:44:58 +00:00
Maxim Konovalov 5bb8d559ec MFC rev. 1.51: include opt_ipsec.h so IPSEC/FAST_IPSEC is defined and
the appropriate code is compiled in to support the O_IPSEC operator.
2004-01-22 08:50:26 +00:00
Kris Kennaway bbba11c940 MFC: Do not try to mmap()/munmap() 0-length files.
This allows a 4.x cp binary to work correctly on 5.x kernels (for which
munmap() of a 0-length mapping returns an error).

Noticed by:	bento's 4.x package build
2004-01-22 06:23:38 +00:00
Warner Losh 7630ae3047 MFC: remove cryptotest, and merge the copyright notice from current
for the Makefile
2004-01-22 05:59:35 +00:00
cvs2svn 87f09e1a3b This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2004-01-21 13:24:39 +00:00
Joe Marcus Clarke 8c052d0c3f MFC:
Add the ports/arabic category to the examples.
2004-01-20 22:44:18 +00:00
John Baldwin 3e7f3183a2 MFC: Fix up some nits and save %cx around BIOS read calls to workaround a
bug in some BIOSs.
2004-01-20 19:30:31 +00:00
Gregory Neil Shapiro 0ddb92dfeb MFC: Sync AC97 changes from -CURRENT:
ac97.c: 1.49: Add ID for ALC658 CODEC.
ac97.c: 1.48: Recognize the Avance Logic ALC655 codec found on some
	      ICH4/5-based motherboards, such as the Gigabyte I848P.
ac97.c: 1.46: Add Creative EV1938.
ac97.c: 1.45: When present use ogain instead of master for surround sound
	      channels.
ac97.c: 1.44: Additional VT1616 id.
ac97.c: 1.43: Apply Rudolf Cejka's patch for AD1980 hook & ac97_fix_auxout.
	      Associate AC97_MIX_AUXOUT with SOUND_MIXER_OGAIN rather than
	      SOUND_MIXER_MONITOR.
	      Add ac97_fix_tone to remove tone controls from mixer if invalid

ac97.h: 1.14: Apply Rudolf Cejka's patch for AD1980 hook & ac97_fix_auxout.
	      Associate AC97_MIX_AUXOUT with SOUND_MIXER_OGAIN rather than
	      SOUND_MIXER_MONITOR.
	      Add ac97_fix_tone to remove tone controls from mixer if invalid

ac97_patch.c: 1.2: Add patch for AD198x.

ac97_patch.h: 1.2: Add patch for AD198x.

Approved by:	matk
2004-01-20 17:49:24 +00:00
Ceri Davies b1f5aa196c MFC r1.7
Correct compilation with "#define really_paranoid".
2004-01-18 21:58:33 +00:00
Ceri Davies 233f2f4426 MFC r1.15:
gethostbyname2() is able to lookup AF_INET6.

	PR:		23823
	Noticed by:	Andrew Arensburger <[email protected]>

This was mentioned again in:

PR:		docs/59669
Submitted by:	Volker Stolz <[email protected]>
2004-01-18 21:39:58 +00:00
Ceri Davies 69974ccca8 MFC r1.24:
Stop "fortune -l" from looping forever.
2004-01-18 21:32:24 +00:00
Alex Dupre 7cd4326848 MFC rev. 1.8 and rev. 1.1114:
- Update list of device drivers that support polling
- Remove redundancy in LINT
2004-01-18 09:17:53 +00:00
Maxim Konovalov d82d12d21c MFC rev. 1.137 and 1.138: -f in conjunction with -p and -c flags are
ipfw2 features.
2004-01-18 08:47:40 +00:00
Jens Schweikhardt da31e8ac52 Backout previous commit. On RELENG_4 we have printf as a shell builtin
(not so in HEAD). If you want to build/install RELENG_4 on HEAD, you
have to set MAKEDEVPATH to include /usr/bin (at least as long HEAD's
/bin/sh has no printf builtin).

Explained by:	bde
2004-01-18 08:28:07 +00:00
Robert Watson 37bf8914b9 MFC 1.179:
date: 2003/05/16 01:13:16;  author: rwatson;  state: Exp;  lines: +5 -1
  Add a tunable/sysctl "hw.fxp_noflow" which disables flow control support
  on if_fxp cards.  When flow control is enabled, if the operating system
  doesn't acknowledge the packet buffer filling, the card will begin to
  generate ethernet quench packets, but appears to get into a feedback
  loop of some sort, hosing local switches.  This is a temporary workaround
  for 5.1: the ability to configure flow control should probably be
  exposed by some or another management interface on ethernet link layer
  devices.

Requested by:	Pawel Malachowski <[email protected]>
2004-01-17 23:04:26 +00:00
Jens Schweikhardt 6cc38b3818 Add /usr/bin to PATH for the case when MAKEDEVPATH is empty
in order to find printf which is used several times.
2004-01-17 18:07:45 +00:00
Hajimu UMEMOTO ff065e50d2 MFC 1.41: try rtinit() only when the route is not installed.
this allows, e.g., duplicated attempts of 'ifconfig lo0 ::1'
like for IPv4.
2004-01-17 16:07:31 +00:00
Yoshihiro Takahashi 0c655f75ec MFC: MINIMALDOCPORTS lists. 2004-01-17 06:58:19 +00:00
Jens Schweikhardt 4fcc8f647f Garbage collect an unused variable and unused whitespace at EOL. 2004-01-16 20:01:16 +00:00
Maxim Konovalov bb24a496e8 MFC rev. 1.74-1.76: FreeBSD 4.9, MacOS 10.3, OpenBSD 3.4, FreeBSD 5.2,
fix footer.
2004-01-16 08:29:34 +00:00
Christian Brueffer a505cdd4e2 Add Intel ICH5 and VIA8237 to the list of supported chips. 2004-01-15 23:43:16 +00:00
Maxim Konovalov f0533223de MFC rev. 1.136 ipfw.8 and rev. 1.44 ipfw2.c: legitimate -f (force)
flag for -p (preprocessor) case.
2004-01-15 12:41:45 +00:00
Christian Brueffer 225b1872ae MFC:
Add reference to miibus.4
2004-01-14 12:57:25 +00:00
Christian Brueffer 365385aa7d MFC: 1.17
device uhci0 -> device uhci

Remove reference to miibus.4, the driver doesn't use it.
2004-01-14 12:52:16 +00:00
Christian Brueffer 057a39ce9c MFC: 1.9, 1.10 (relevant parts)
Remove drivers that don't need miibus(4):
o an
o awi
o kue

Add missing drivers:
o gx
o lge
o nge
o sk
2004-01-14 12:49:40 +00:00
David Schultz 2746b7597e Unbreak the build. I had this fix on my -STABLE test box, but it
apparently never made it back to my local repository.

Pointy hat to:	das
2004-01-13 21:20:02 +00:00
Hajimu UMEMOTO 4f5a032d13 MFC 1.46: in set{peer, sock}addr, do not convert the unspecified
address (::) to the mapped address form.
2004-01-13 14:43:22 +00:00
Christian Brueffer ad6ab6f35a MFC: 1.63
Fix typo in a comment
2004-01-13 11:32:44 +00:00
David Schultz 3ceac2ff45 MFC:
src/sys/fs/unionfs/union_vnops.c,v 1.103
2004-01-13 06:51:55 +00:00
MIHIRA Sanpei Yoshiro 027347b17f check USB_CDC_ACM_HAS_FEATURE flag(from FreeBSD-current and NetBSD)
Now umodem support motorola v66 phone

PR:		kern/47274
Submitted by:	Colin Perkins <[email protected]>
2004-01-12 13:19:08 +00:00
MIHIRA Sanpei Yoshiro 1ec2eea693 MFC: Rev. 1.97 Add the MMC commands to umass_atapi_transform. 2004-01-12 13:02:54 +00:00
MIHIRA Sanpei Yoshiro 65358acad4 MFC: Add support SUN TYPE 6 USB KEYBOARD 2004-01-12 12:58:34 +00:00
MIHIRA Sanpei Yoshiro ab0ffd2003 MFC: Add support
- Canon USB Scanner N676U
	- Canon USB Scanner N1220U
2004-01-12 12:54:34 +00:00
MIHIRA Sanpei Yoshiro e70e805efb Sync to 1.11.2.51 of usbdevs 2004-01-12 12:52:07 +00:00
MIHIRA Sanpei Yoshiro a59b6ca7b1 MFC: Synchronise with -current. 2004-01-12 12:49:39 +00:00
Ian Dowse 1ad931c8d3 MFC: 1.33; correct a problem with propagation of the nodump flag
on directories that are larger than one block in size.

Reminded by:	Pawel Malachowski
2004-01-12 00:30:31 +00:00
Johan Karlsson cf9af3255b MFC rev 1.28: Make sure argv[x] exists before using it. 2004-01-11 17:51:45 +00:00
Bruce A. Mah 3a00d9fb67 New release notes: stl(4) update.
MFC:  ifconfig(8) staticarp, makewhatis(1) rewrite, stat(1) from
NetBSD, which(1) rewrite.

Bump copyright date.
2004-01-10 18:15:44 +00:00
Tim J. Robbins d501ffdfc5 MFC: Fix a problem that occurs when truncating files on NFSv3 mounts: we
need to set np->n_size back to the desired size again after calling
nfs_meta_setsize(), since it could end up in nfs_loadattrcache() getting
called, which would change n_size back to the value it had before the
truncate request was issued. The result of this bug is that the size info
cached in the nfsnode becomes incorrect, lseek(fd, ofs, SEEK_END) seeks
past the end of the file, stat() returns the wrong size, etc.

PR:		41792
2004-01-10 08:24:33 +00:00
Tim J. Robbins 3660252fa3 MFC rev. 1.32: Change the buffer length test in NEEDSP() so that it does
not subtract one unsigned number from another potentially smaller one,
leading to wraparound (and heap corruption, eventually).

PR:		58813
2004-01-10 06:30:37 +00:00
Tim J. Robbins 2e86e350bd Bring in all of the smbfs features and bug fixes from -current to -stable:
- Add support for SMB signing, which is required to connect to
  Windows 2003 servers.
- Add support for mixed-case passwords.
- Add support for large (up to 64K) READ_ANDX/WRITE_ANDX requests.
- Increase TCP send/receive queue size to support these large requests.
- Receive packets in small pieces so TCP slowstart will get ACKs faster.
- Fix off-by-one bug preventing access to servers with NetBIOS names
  exactly 15 characters long.
- Allow the [, ], and = characters in non-8.3 filenames.
- Only close files on the server when there are no more references to
  the vnode; makes mmap()'d regions work properly after the local
  file descriptor has been closed.
- Fix mishandling of files >4GB.
- Diff reduction to make future merges easier.

PR:	36038 46902 57123
2004-01-10 04:17:50 +00:00
Tim J. Robbins bacf03bd21 MFC: Allow md_get_xxx() to be called with a NULL result pointer if the
caller is not interested in the result. Some diff reduction with -current.
2004-01-10 01:13:53 +00:00
Ruslan Ermilov 5b0b449271 MFC: Standardize the Ethernet address parse type. 2004-01-09 08:58:06 +00:00
Ruslan Ermilov 9eec79a322 MFC: 1.38: Replaced two bzero() calls with the M_ZERO flag to malloc(). 2004-01-09 08:40:36 +00:00
Maxim Konovalov 50615d70c2 MFC rev. 1.16: actually add -x option. 2004-01-09 08:33:58 +00:00
Ceri Davies 7b9c306790 MFC revision 1.27 of src/sbin/mount_nullfs/mount_nullfs.8:
Correct an instance of an erroneous "it's".
2004-01-08 22:28:42 +00:00
Dag-Erling Smørgrav b2db9cd896 Bump __FreeBSD_version for the addition of e_sid in struct kinfo_proc. 2004-01-08 22:15:01 +00:00
Dag-Erling Smørgrav 17b85b5fff Export the session id in struct kinfo_proc. 2004-01-08 22:14:16 +00:00
David Malone db5cc1106f MFC: Fix ip6fw reset so it works on TCP packets with SYN set. 2004-01-08 22:04:54 +00:00
John Baldwin 89e19bedbf MFC: Add support for the Sunix SUN1889-based 2 port card. 2004-01-07 19:26:03 +00:00
John Baldwin 1e9d917e38 MFC: Replace an outb() with a DELAY(1) during the test for configuration
mechanism #1.  This fixes probing for PCI on some systems.
2004-01-07 19:23:56 +00:00
Gregory Neil Shapiro 794408beb6 MFC: Use hoststat/purgestat instead of sendmail -bh/-bH so the calls can
be properly mailwrapper'ed.

     Revision  Changes    Path
     1.8       +3 -3      src/etc/periodic/daily/150.clean-hoststat
2004-01-06 17:50:52 +00:00
Simon L. B. Nielsen 5c27eb199f MFC the rest of the change from version 1.20 (missed in the original
MFC).

Submitted by:	Watanabe Kazuhiro <[email protected]>
PR:		docs/60854
2004-01-04 12:48:13 +00:00
Christian Brueffer 9603df2422 MFC: 1.14
o fix typos
o grammar fix
o concat two lines
2004-01-04 11:04:43 +00:00
Don Lewis 556694d2e5 MFC 1.226 - Set fs_ronly to the correct value in ffs_reload() when
reloading the file system super block after fsck has
	    repaired the file system.
2004-01-02 21:15:10 +00:00
Maxim Konovalov 1d950aa8ba MFC rev. 1.39: grammar. 2004-01-02 12:53:46 +00:00
Doug Ambrisko 517dbc8585 MFC Version 1.128, don't use the cached inp->inp_route unless
it is marked as RTF_UP.  This fixes a panic when an interface
	is detached (ie. suspend/resume).

Not objected by:	sam, iedowse
Fix in -current by:	iedowse
2004-01-02 04:06:42 +00:00
Christian Brueffer ca79a5785f MFC: 1.19
o use .Nm
o fix language usage
2004-01-01 15:29:05 +00:00
Christian Brueffer 8b063b295a MFC: 1.2
o add missing sysctl to synopsis
o remove some useless words
o fix spelling
2004-01-01 15:25:56 +00:00
Christian Brueffer 35256f3d79 MFC: 1.3
o add reference to safe.4
o remove useless word
2004-01-01 15:24:34 +00:00
Christian Brueffer 8fa582844a MFC: 1.3
o grammar fixes
o FireWire.4 -> firewire.4
o wordsmithing
2004-01-01 15:22:01 +00:00
Christian Brueffer ae0a5b023e MFC: 1.4
o grammar fixes
o wordsmithing
o sort references
2004-01-01 15:20:24 +00:00
Christian Brueffer eb18668492 MFC: 1.4
Add reference to safe.4
2004-01-01 15:15:50 +00:00
Hajimu UMEMOTO 31f0e09bc2 MFC 1.26: validate the argument for multicast routing socket options
correctly.
2004-01-01 07:37:33 +00:00
John Baldwin 0b542d7ec9 MFC: Add PCI ID's for the ICH4 mobile ATA controller.
PR:		kern/57969
Submitted by:	Ryuichiro Imura <[email protected]>
2003-12-31 18:05:16 +00:00
Gregory Neil Shapiro b493c79cfd MFC: Enable IPv6 by default but make it optional so it doesn't affect
sites without IPv6.

     Revision  Changes    Path
     1.29      +3 -3      src/etc/sendmail/freebsd.mc
2003-12-31 17:42:16 +00:00
John Baldwin 0247989427 MFC support for the following devices:
- Titan VScom PCI-800L
- Oxford Semiconductor OX12PCI840
- Moxa Technologies, Smartio C104H/PCI
- Moxa Technologies, Smartio CP-104UL/PCI
- IC Book Labs Ironclad x8 Lite
- IC Book Labs Ironclad x8 Pro

This was prompted by the PR which included a patch for 4.x for the Titan
800L.

PR:		kern/41555
Reported by:	François Laissus <[email protected]>
2003-12-31 17:28:47 +00:00
Daniel Eischen 5ce0776c19 MFC: Reenable signals for threads after joining. 2003-12-31 13:46:39 +00:00
Doug Ambrisko 3d095cbbf1 MFC: Fixes for MPI-350 so that it doesn't read past end of the buffer
space and don't access the dma memory until it is properly setup.
	This prevents a couple of panics (the read panic happens with
	newer firmware).
2003-12-31 03:02:46 +00:00
Maxim Konovalov 0fdfb81b5a MFC rev. 1.76: fix a comment. 2003-12-30 12:28:09 +00:00
Jens Schweikhardt 0675dd969d MFC: Fix a case of undefined behavior due to overlapping buf objects in
snprintf (buf, size, fmt, buf, etc). This only works by chance with our
libc, but fails (with a truncated string) on e.g. glibc.
2003-12-30 10:21:01 +00:00
Daniel Eischen 6a975d6427 MFC: In the wrapped write(), return if the syscall write() returns 0.
PR:	59291
2003-12-29 15:18:01 +00:00
Yaroslav Tykhiy f4d11c9e14 Document the sysctl(8) variable "net.graph.nonstandard_pppoe". 2003-12-29 14:28:56 +00:00
Yaroslav Tykhiy be51bf8bc3 MFC: Fix the DoS condition triggered by a non-standard PPPoE frame. 2003-12-29 14:24:58 +00:00
Ceri Davies 2d71cfa371 MFC revision 1.32:
Add the -m, -w and -x options to ls's usage message.

	PR:             51493
	Submitted by:   Walter Belgers
	MFC after:      1 month
2003-12-27 17:32:13 +00:00
Andrey A. Chernov b12e81151c MFC: 1.49 (slash-pointers advancement) 2003-12-27 14:16:03 +00:00
Christian Brueffer 6756ae0ab0 Start sentences on new lines.
This page is in sync with the -CURRENT one now.
2003-12-26 06:48:24 +00:00
Christian Brueffer 9a831abaf1 MFC: 1.22
o grammar fixes
o wordsmithing
2003-12-26 06:44:11 +00:00
David Malone ef74fa3326 Sync with -current (except -o option):
1) Don't recurse on errors.
2) Remove unused printf argument.
3) Use skip_message for program and hostname matching (which allows multiple
   comma-seperated names to be given).
2003-12-26 00:03:19 +00:00
Christian Brueffer e395f607f4 MFC: 1.11
o grammar fixes
o wordsmithing
o s/isochronus/isochronous/
2003-12-25 22:55:28 +00:00
Christian Brueffer b94393cc10 MFC: 1.2
o correct a path
o wordsmithing
2003-12-25 22:52:54 +00:00
Christian Brueffer 093a80823f MFC: 1.10
o grammar fixes
o removed wrong 's usage
2003-12-25 22:51:32 +00:00
Christian Brueffer 4116140597 MFC: 1.7
Grammar fixes
2003-12-25 22:48:49 +00:00
Christian Brueffer 372bdc44be MFC: 1.5
o use .Nm
o wordsmithing
2003-12-25 22:47:38 +00:00
Christian Brueffer 0554b9bea5 MFC: 1.9
Wordsmithing
2003-12-25 22:46:10 +00:00
Diomidis Spinellis f1c18a7ec1 MFC changes 1.35 -> 1.36
Add sticky(8) cross reference.

PR:             docs/60068
Submitted by:   Ken Stailey
2003-12-25 22:29:38 +00:00
Takeshi Shibagaki 8ed5563b75 MFC: Add Allied Telesis SIC-AT boards support.
if_ed.c <- 1.219
     if_ed_cbus.c <- 1.11
     if_ed_isa.c <- 1.14
     if_edreg.h <- 1.32
     if_edvar.h <- 1.15
2003-12-24 17:02:00 +00:00
Jordan K. Hubbard c6463664f6 In hindsight, committing stuff while under the influence of powerful narcotics
(aka prescription flu medicine containing lots of hydrocodone) might not have
been one of my better ideas.  Fix typo noticed by Nate Lawson.  The other
files look OK.
2003-12-24 04:11:49 +00:00
Jordan K. Hubbard cac95409ac This completes our sync-up with -current for the memory leak patch. 2003-12-24 01:10:34 +00:00
Jordan K. Hubbard da6c465c9f <big sigh>
I missed these from the MFC and caused the dysfunction reported on -stable,
I just didn't catch it due to lack of personal locale-use.  Yes, when you
change an internal function it is also necessary to change the functions
which *call* it or bad things happen.  Yes, I should have caught this myself.
I'm a little rusty in -stable, sorry.  Won't happen again. :(
</big sigh>
2003-12-24 01:08:47 +00:00
Maxim Konovalov 1db96d7265 MFC rev. 1.52: IN_MULTICAST wants an address in host byte order. 2003-12-23 12:23:57 +00:00
Jordan K. Hubbard 0debd99632 Syncronize with change to ldpart.c in last MFC. Whoops!
Reported by: Andrzej Tobola <[email protected]>
2003-12-23 07:29:32 +00:00
Jordan K. Hubbard 287e017d28 MFC: fix memory leak in setlocale() helper functions.
PR#: misc/59910
2003-12-22 20:45:16 +00:00
MIHIRA Sanpei Yoshiro bf45d2ea12 MFC Rev.1.92 - 1.96
Add support
	IBM 256MB USB Drive(MSYSTEM DiskOnKey2)
	Logitec LDR-H443U2 DVD-RAM/-R/+R/-RW/+RW Drive
	Panasonic KXL-CB20AN Portable DVD-ROM/CD-R/RW
	Panasonic KXL-CB35AN(DVD-ROM & CD-R/RW)
	PNY Attache Flash Drive
2003-12-22 20:30:25 +00:00
MIHIRA Sanpei Yoshiro 22ac9bb9e2 MFC Rev. 1.47
Add support minolta 5400 USB scanner
2003-12-22 20:00:55 +00:00
MIHIRA Sanpei Yoshiro 5a13babde3 MFC Rev. 1.78
Add support HP hn210e usb ethernet
2003-12-22 08:27:58 +00:00
MIHIRA Sanpei Yoshiro 786927cb12 Regen. 2003-12-22 07:54:03 +00:00
MIHIRA Sanpei Yoshiro 5901cee9c4 MFC: Synchronise with -current. 2003-12-22 07:52:56 +00:00
MIHIRA Sanpei Yoshiro 546052d50a MFC Rev.1.111
Add ADMtek ADM9511 and ADM9513 device ID's
2003-12-22 07:29:32 +00:00
John Baldwin 01bb38ef2b Remove the commented out HTT option as it was made obsolete prior to 4.9.
Reported by:	maxim
2003-12-19 22:52:44 +00:00
Hidetoshi Shimokawa afad18c534 Add dcons. 2003-12-19 14:34:23 +00:00
Maxim Konovalov ed088342e1 MFC a part of rev. 1.38: grammar. 2003-12-19 12:07:03 +00:00
John Baldwin 321c61834d MFC: Look for /boot/loader as well as /BOOT/LOADER. 2003-12-18 17:09:58 +00:00
Warner Losh b2b3eb7dff Fix comment about what the default compilation environment is. It is
4.x, not 2.1.x!
2003-12-17 21:18:20 +00:00
John Baldwin 252ac8a1a9 Pin 0 on the first I/O APIC is always an ExtINT pin. Some BIOS's are
broken and list the type of the pin as INT rather than ExtINT in the MP
Table.  To workaround, force pin 0 of ioapic 0 to be ExtINT if it is of
type INT.  This is not a MFC as -current has very different apic code now.
Current's mptable parser might need a similar workaround.

PR:		i386/39234
Reported by:	Henri Hennebert <[email protected]>
2003-12-16 16:32:28 +00:00
Ruslan Ermilov 7f8e5baecd MFC: 1.73: Unbreak the NOINSTALLLIB install. 2003-12-16 10:44:40 +00:00
Dag-Erling Smørgrav e5314f197e MFC (rev. 1.86): install a SIGCHLD handler. 2003-12-16 08:34:11 +00:00
Dag-Erling Smørgrav 89680e2813 MFC: support for the Vibra 128 (and other CT4730-based cards)
Submitted by:	orion
2003-12-15 21:31:29 +00:00
Ruslan Ermilov 09a864a844 Don't call bpf_mtap(), ether_input() does this for us. 2003-12-15 14:50:04 +00:00
Dag-Erling Smørgrav 3f5cb32b2c Connect stat(1) to the build. 2003-12-15 10:58:23 +00:00
Dag-Erling Smørgrav eceb2c846b MFC: stat(1) command from NetBSD. 2003-12-15 10:58:08 +00:00
Hidetoshi Shimokawa eed9d83e2b MFC:
- Introduce sbp_targ_login instead of sbp_targ_istate.
- Implement reconnection and logout.
- Freeze simq while bus reset.
2003-12-14 03:12:29 +00:00
Hidetoshi Shimokawa 40bd12f4f4 Put back accidentally removed cardbus support. 2003-12-14 03:09:27 +00:00
Dag-Erling Smørgrav f7fe32deda Perl is no longer needed for installworld, but makewhatis(1) is now a
bootstrap tool.  Also fix a NOPERL nit: PERL5LIB is not needed in the
cross-build environment if NOPERL is defined.
2003-12-13 16:05:34 +00:00
Dag-Erling Smørgrav 8dcf932850 Retire the Perl implementation of makewhatis(1). 2003-12-13 16:01:42 +00:00
Dag-Erling Smørgrav d399f5ecef Switch to the C implementation of makewhatis(1). 2003-12-13 15:59:11 +00:00
Dag-Erling Smørgrav b07a198dd3 MFC: reimplement makewhatis(1) in C. 2003-12-13 15:56:51 +00:00
Dag-Erling Smørgrav 5cd0c185dc MFC: reimplement which(1) in C. 2003-12-13 15:47:19 +00:00
Paul Saab 412ef013ee MFC: rev 1.33 whitespace cleanup 2003-12-13 07:56:28 +00:00
Warner Losh ae4ac29492 Research on Stallion's website shows that there is a limit of 4
pannels, or 32 ports for the ech boards.  The only possible way to
make an error is to have 8 + 8 + 8 + 16 or 8 + 16 + 16, so we detect
that more directly and cleanup properly (eg, ignore the last panel).
This was the intent of the too many ports attached to board message
before, and should be more robust.

# now, too port this to current.
2003-12-13 06:05:07 +00:00
Warner Losh 654ecccaae Move check to see if you have too many panels to early in the loop rather
than at the end where it suffered from a fencepost error.

However, I'm not entirely sure that it is still correct because it
looks like we access something in the ioaddr2 range.  I need more
stallion pannels to know for sure.  The code is less incorrect than it
was before at least when you have two pannels connected to the
EC8/32-AT.  Two pannels are allowed and appear to work.  Stallion says
that 3 cannot work, or when the agregate number of ports is > 32.  I
think that these tests should be more explicit, but until I have more
hardware, this is less wrong.
2003-12-13 00:14:25 +00:00
Paul Saab 1af73c6405 MFC: Correct the READ/WRITE CDB direction definition. 2003-12-12 22:03:38 +00:00
Paul Saab 72ce517747 MFC: Define RAID 5+1 and RAID ADG fault tolerances 2003-12-12 22:01:17 +00:00
Paul Saab 12fd6b2207 Fix a mis-merge in ciss_unmap_request and actually unmap a request.
Fir another mis-merge in ciss_cam_action_io when getting an error back
from ciss_start, only REQUEUE the request if the error is not EINPROGRESS

Pointy hat to: 	me
2003-12-12 21:58:42 +00:00
John Baldwin 8bb944bbbc MFC: Use casts to fix printf warnings in print_uptime() on alpha.
PR:		alpha/43561
Reported by:	Eugene Grosbein <[email protected]>
2003-12-11 21:33:43 +00:00
John Baldwin d02de97257 MFC: Various cleanups to the non-interactive disk labeling code including
failing altogether if a single entry failed instead of just continuing and
not leaking flags from earlier chunks into later ones.
2003-12-11 20:25:22 +00:00
John Baldwin 836e720587 MFC: Drop the size argument to new_part() as well as the hack to create
partitions twice since the size was not known the first time a partition
was created.
2003-12-11 20:20:15 +00:00
John Baldwin 4460ae8a6b MFC: When setting the mountpoint name, remember any previous setting of the
newfs flag for this partition.
2003-12-11 20:14:06 +00:00
John Baldwin 8127ea4393 MFC: Zero the interval timers on fork rather than copying them to the child
process.
2003-12-11 19:31:00 +00:00
John Baldwin 21577deb2c MFC: Don't call sysbeep() in sc_bell() if either duration or pitch is zero. 2003-12-11 19:27:34 +00:00
Diomidis Spinellis 17ef677715 MFC changes 1.15 -> 1.16
Removed unused macro definition
2003-12-11 15:11:04 +00:00
Diomidis Spinellis 2cdb1101ea MFC changes 1.11 - 1.12
- Document gencat(1) (dds)
- Remove claim that pi and ex use mkstr; pi is long gone, and nex doesn't
  use it. (tjr)
2003-12-11 15:08:56 +00:00
Diomidis Spinellis b387a4dcaa MFC 1.3 -> 1.4
Remove extraneous semicolons.  They are already provided by
the macro definition, and cause the generation of syntactically
incorrect code that gcc happens to accept.
2003-12-11 14:59:35 +00:00
Diomidis Spinellis aa402ccf94 MFC src/sys/nfsclient/nfs_vnops.c 1.208 -> 1.209 2003-12-11 14:52:23 +00:00
Diomidis Spinellis c9a3a124d8 MFC changes:
1.30 -> 1.31 feeder.c
1.9 -> 1.10 feeder.h

Change gcc-specific aggregate initialization member specifiers
into C9X initializer designators.
2003-12-11 14:41:12 +00:00
Hajimu UMEMOTO b53a045e2f MFC 1.70: link-local multicast address must be converted to KAME specific
embeded scopeid form.
2003-12-10 19:02:03 +00:00
Diomidis Spinellis c05bd6b067 MFC 1.20->1.21
Add errnor return values to match the NFS client implementation and
better represent failures of special files accessed over NFS.
2003-12-10 14:54:31 +00:00
Diomidis Spinellis e5615aff5e MFC 1.26 -> 1.27
Fix/add errno return values to match the NFS client implementation and
better represent failures of special files accessed over NFS.
2003-12-10 14:51:19 +00:00
Diomidis Spinellis 73800b9b5f MFC changes 1.12 -> 1.13
Documented missing EINVAL errno value; see kern_prot.c:
	if (ngrp > NGROUPS)
		return (EINVAL)
2003-12-10 14:35:48 +00:00
Diomidis Spinellis 81d3f865d6 MFC changes 1.7 -> 1.8
Fix problem where initgroups would silently truncate groups
with more than NGROUP elements without providing the opportunity to
setgroups to fail and correctly retorn an error and set errno.
2003-12-10 14:33:57 +00:00
Don Lewis 57caecf5cf MFC 1.39 through 1.42 - Print the dirpref avgfilesize and avgfpdir parameters. 2003-12-10 09:38:37 +00:00
Warner Losh 88c79fe0d2 Update the Stallion driver to 5.6.0b1 (the latest one on the web
site).  This only updates the stallion (stl) driver.  The stli driver
isn't updated because the driver is corrupt on the stallion web site
:-(.

This fixes my EC8/32-AT card, which worked with the 1.0.0 driver, but
not the 2.0.0 driver.  It also fails to break my EasyIO-8 PCI card
(well, I can't completely test it just yet).

This is being committed directly to stable because this driver doesn't
compile in current.  I'm doing a current port, but it will commit that
later.  Also, 2.0.0 hasn't made it into current either.
2003-12-09 04:36:30 +00:00
Paul Saab 7e59526712 MFC: rev 1.27
Support EINPROGRESS and properly deal with 64bit physical addressing.
2003-12-08 22:19:40 +00:00
Bruce M Simpson 3606e44668 MFC: Introduce the STATICARP flag to -STABLE.
Submitted by:	ru (rtsock.c)
Sponsored by:	Weyland-Yutani Corporation
2003-12-08 17:16:58 +00:00
Bruce M Simpson 0bc8a5bc69 MFC: Introduce the STATICARP flag to -STABLE.
Submitted by:	ru (rtsock.c)
Sponsored by:	Weyland-Yutani Corporation
2003-12-08 16:55:21 +00:00
Yaroslav Tykhiy adbc482304 MFC rev. 1.147: Avoid adding excessive CRs when in ASCII mode. 2003-12-06 18:13:20 +00:00
Bruce A. Mah 13a733c5f4 MFC: SA-03:19. 2003-12-05 00:01:30 +00:00
Søren Schmidt 649427556e Add support for the VIA 8235 and 8237 including the SATA part.
Add support for the AMD 8111
Fix support for the nForce (so it actually does something).
Add support for the nForc2 and nForce3.
Ideas from -current but different impl.

Sponsored by: Yahoo!
2003-12-04 10:47:42 +00:00
Søren Schmidt aca6da7f31 Add support for the Serverworks CSB6. Idea from -current but different impl.
Sponsored by: Yahoo!
2003-12-04 10:39:31 +00:00
Søren Schmidt ec7631c985 Fix support for the CMD648/649 chips, idea from -current but different impl.
Sponsored by: Yahoo!
2003-12-04 10:33:54 +00:00
Don Lewis 238fd80064 Fix two white space nits.
Pointed out by:	njl
2003-12-04 04:25:06 +00:00
Don Lewis f472804678 The existing hash algorithm in bufhash() does not distribute entries
very well across buckets, especially in the case of cylinder group blocks
which are located at a sequence of locations that are a multiple of a large
power of two apart.  In the case of large file systems, one or possibly
a few of the hash chains can get excessively long.  Replace the existing
hash algorithm with a variation on the Fibonacci hash.

Tested by:	Ken Marx <[email protected]>
2003-12-03 21:49:06 +00:00
Max Khon 543039c818 Mention -M option in usage().
PR:		57462
Submitted by:	Ryuichiro Imura
2003-12-03 01:51:23 +00:00
Bruce Evans 135f52d692 MFC (1.405: quick fix for most of the pessimization in rev.1.194). 2003-12-02 06:18:37 +00:00
David Greenman 695dcdfa5b Fixed typo: is -> it 2003-12-01 22:21:25 +00:00
Doug Ambrisko 2127acb223 MFC: Dell 2650 no link led problem. 2003-12-01 21:06:59 +00:00
Doug Ambrisko c408fa790b MFC: OX16PCI954 device id 0x950a. 2003-12-01 20:45:08 +00:00
Ceri Davies 28de8761cf MFC r1.35:
Attempt to save the last dregs of emacs users' sanity by saving the
    contents of the PR when an interrupt is received during the editor
    session.  This stops the use of ^G from deleting a filled PR from
    underneath the user.

    PR:			bin/59201
    Submitted by:	Heikki Suonsivu <[email protected]>
2003-12-01 19:12:58 +00:00
David Greenman ff4d8f189b Fixed a bug in sendfile(2) where the sent data would be corrupted due
to sendfile(2) being erroneously automatically restarted after a signal
is delivered. Fixed by converting ERESTART to EINTR prior to exiting.

Updated manual page to indicate the potential EINTR error, its cause
and consequences.
2003-12-01 09:38:11 +00:00
Joseph Koshy 105552d157 Correct typos. 2003-12-01 04:48:51 +00:00
Bruce A. Mah f0ae3dad91 MFC:
New release notes:  SA-03:19, BIND 8.3.7.

Add old version information to sendmail note.
2003-12-01 00:34:57 +00:00
Doug Ambrisko efa515d297 MFC: - Support for newer firmware on non MPI350 cards (ie. new RID lengths)
and more flexible SSID lists.
      -	Some tweaks to the MPI350 handling but not the hack to kick start
	the new MPI350 firmware.
2003-11-30 20:29:42 +00:00
Shunsuke Akiyama 5b329c006d MFC: revision 1.4
Add the following devices to the list of supported devices, to sync
manual page with the source code:
- HAL Corporation Crossam2+USB IR commander
- RATOC REX-USB60
- SOURCENEXT KeikaiDenwa 8 (with and without charger)
2003-11-30 13:12:47 +00:00
Shunsuke Akiyama f05a359b62 MFC: Make interrupt pipe interval time configurable.
- Add kernel options: {UPLCOM,UVSCOM}_INTR_INTERVAL
     - Add sysctl variables: 'hw.usb.{uplcom,uvscom}.interval'

sys/conf/options:		1.426
sys/dev/usb/uplcom.c:		1.16
sys/dev/usb/uvscom.c:		1.19
sys/i386/conf/LINT:		1.1189 (in NOTES)
sys/modules/uplcom/Makefile:	1.2
2003-11-30 13:05:38 +00:00
Shunsuke Akiyama d00eca24b9 MFC: revision 1.11
Apply some fixups in the driver_t's.
2003-11-30 12:53:40 +00:00
Shunsuke Akiyama 2563dfc6ec MFC: Revision 1.15, 1.17
Add device IDs supported by uplcom(4).
- SOURCENEXT Corp. KeikaiDenwa 8
- SOUECENEXT Corp. KeikaiDenwa 8 with charger
- HAL Corp. Crossam2+USB
2003-11-30 12:51:56 +00:00
Shunsuke Akiyama 251204bda4 MFC: revision 1.35
Add missing ioctl functions.
2003-11-30 12:48:52 +00:00
Shunsuke Akiyama e9f012bcb2 MFC: revision 1.7
Add rue(4) into list of miibus-using drivers and reference.
2003-11-30 12:47:25 +00:00
Bruce M Simpson 49b13d9069 MFC: Fix some minor nits in netstat whereby large interface names would be
truncated. In environments where many tunnel or vlan interfaces are created,
interface names have high numbers which overflow the field width.

PRs:		bin/52349, bin/35838
Submitted by:	Mike Tancsa, Scot W. Hetzel
2003-11-30 02:58:44 +00:00
Doug Barton e01e87bcd1 MFC of version 8.3.7 import
Requested by:	security-officer
2003-11-28 22:13:48 +00:00
Hajimu UMEMOTO 378bbc86c7 MFC 1.167: AF_LINK sockaddr has to be attached to ifp->if_addrlist until
the end, as many of the code assumes that TAILQ_FIRST(ifp->if_addrlist)
is non-null.
2003-11-28 15:09:03 +00:00
Hajimu UMEMOTO 5f5eec9b6d MFC 1.11: fixed a bug comparing sav->key_auth and SADB_AALG_NONE. 2003-11-28 14:54:26 +00:00
Hajimu UMEMOTO e6cca334eb MFC 1.23: correct stat to increment. 2003-11-28 14:52:52 +00:00
Hajimu UMEMOTO 58694486f1 MFC 1.60: missing splx. 2003-11-28 14:42:22 +00:00
Ruslan Ermilov 22e34fe7d8 Hook up the pst(4) driver.
Reviewed by:	sos
2003-11-28 08:51:54 +00:00
Mike Silbersack 53c9685f37 MFC rev 1.27:
Document that listen() can return EINVAL now.
2003-11-28 06:41:33 +00:00
Ruslan Ermilov bafbd8d225 MFC: Handle includes the normal way. 2003-11-27 15:05:37 +00:00
Ruslan Ermilov b2512a47cf Fixed a typo. 2003-11-27 14:52:36 +00:00
Ruslan Ermilov d697b04539 MFC: 1.69: Allow ``route -vnd flush'' for non-roots. 2003-11-27 14:50:04 +00:00
Ruslan Ermilov 6908cbf9ed MFC: 1.60: Print the correct ICMP statistics for "no return routes". 2003-11-27 14:46:49 +00:00
Bruce M Simpson ce33caeeba Forced commit to note that I also brought in ipsec_enable into rc.conf.5
as of last revision as it was missing.
2003-11-27 10:08:48 +00:00
Bruce M Simpson 448cfec42b Add a means of starting an IKE daemon from the rc system at an appropriate
time during the boot process. This is needed in the case where NFS mounts
from servers reachable only via IPSEC are in /etc/fstab.

PR:		conf/42497
Submitted by:	Volker Stolz
2003-11-27 09:51:29 +00:00
Hidetoshi Shimokawa 68b504d3a4 Add dependency. 2003-11-26 08:42:39 +00:00
Josef Karthauser 982ca41b09 Regen. 2003-11-25 21:23:48 +00:00
Josef Karthauser c7589594d3 MFC: Synchronise with -current. 2003-11-25 21:23:03 +00:00
Josef Karthauser 40093c0048 MFC: (Rev 1.29) fix spelling of ATTACH. 2003-11-25 21:13:37 +00:00
Anton Berezin 8ca3b9daed MFC rev. 1.90:
Sync comment with code's reality.
2003-11-25 18:52:03 +00:00
Luoqi Chen 4327290c08 Backout rev 1.48.2.2: it wasn't necessary and broke ddb breakpoint support.
Pointed out by:		bde
2003-11-24 21:16:47 +00:00
Simon L. B. Nielsen 4cedeadc92 MFC v. 1.3+1.4:
- Ispell sweep of share/man/man4.
- Add cross reference to the em(4) driver, which also supports the
  NICs supported by the gx(4) driver.
2003-11-24 00:07:16 +00:00
Simon L. B. Nielsen 96699bfd93 MFC v. 1.5:
- Synchronize the list of support devices with the driver source code.
2003-11-23 23:58:31 +00:00
Bruce Evans cde6b02965 MFC (1.23: changed RB_PAUSE to retrospectively avoid breaking binary
compatibility, and marked the old value and RB_PROBEKBD as reserved
for internal use in boot blocks.  Also unintentionally clobber a style
fix in 1.22).

The corresponding change to boot/boot2.c has not been not merged, since
RELENG_4's boot2 doesn't actually support RB_PAUSE (or even the 7 year
old flag RB_MUTE), so any plain merge would just add an incomplete set
of comments to code that should be rewritten so that it doesn't need
the comments.  RELENG_4's boot/loader does support these flags, and
it doesn't need changing since it doesn't hard-code copies of them.
2003-11-23 01:47:19 +00:00
Bruce Evans 7289ca60e0 MFC (1.22: fixed some style bugs). 2003-11-23 01:11:10 +00:00
Archie Cobbs 4c85c2aa66 MFC: (rev. 1.31) Maximum ACK timeout for GRE packets from 10 -> 1 second. 2003-11-22 15:28:16 +00:00
Simon L. B. Nielsen 80fd9356bd MFC 1.14-1.16:
- Document the KZPCA-AA.
- Sync the sym(4) manual page with the hardware notes, and change the
  list of supported controllers into a list.
2003-11-21 00:02:29 +00:00
Dag-Erling Smørgrav 9eaaddbfc0 MFC: warn about partitions that overlap with the mbr. 2003-11-20 08:24:33 +00:00
Wilko Bulte a866392285 MFC:
Add vendor ID to make Marvell chipset work. E.g. to be found
on SMC9452TX it seems

Submitted by: Jung-uk Kim <[email protected]>
Tested by: <Radu Bogdan 'veedee' Rusu> [email protected]
2003-11-18 23:22:03 +00:00
Prafulla Deuskar ef31ccb6a3 MFC:
- Code cleanup
- In the receive routine handle the case where last descriptor could have
    less than 4 bytes of data.
- Handle race between detach/ioctl routine.
- Add facilities for tuning "em" drivers interrupt delays without recompiling
  the driver. These changes were done by John Polstra.
Submitted by:	jdp (sysctl's for interrupt delay tuning)
2003-11-18 17:25:53 +00:00
Simon L. B. Nielsen 3006cf44a1 Bump version number since we are at 4.9-STABLE now.
Approved by:	ru
2003-11-18 13:42:04 +00:00
Don Lewis 4fdbb9c348 MFC 1.116 which tweaks the minbfree, minifree, maxcontigdirs calculations
to give results that work better.
2003-11-18 03:36:23 +00:00
Eric Anholt 31d26cfa4f MFC: r1.56 (Prevent leaking fsid to non-root in linux compat). 2003-11-17 22:58:57 +00:00
Hidetoshi Shimokawa 9e6a3584bc Fix build on alpha.
Noticed by: tinderbox & imp
2003-11-16 09:54:13 +00:00
Christian Brueffer 3ac1319fa3 MFC: 1.35
Add a describtion for the '-d' flag and fill in a missing comma
2003-11-15 10:48:59 +00:00
Bruce M Simpson 37e0f49ddf MFC: Add the svn service to /etc/services.
PR:		conf/54371
Submitted by:	Roman Neuhauser
2003-11-15 08:39:11 +00:00
Christian Brueffer 9132723a8a MFC: Sync this manual page with the one in -current 2003-11-14 23:23:58 +00:00
Anton Berezin 8fb6ba2ddd MFC 1.30:
Remove the code for parsing octal modes, since setmode(3) already
handles them.
2003-11-14 15:27:08 +00:00
Hidetoshi Shimokawa 022e618eb5 MFC: add dcons. 2003-11-14 12:59:51 +00:00
Hidetoshi Shimokawa 5548a03a21 Sync with -current. 2003-11-14 12:58:12 +00:00
Hidetoshi Shimokawa 26f09b4605 Add manpages for dcons(4), dcons_crom(4), and sbp_targ(4). 2003-11-14 12:57:35 +00:00
Hidetoshi Shimokawa e5338c8918 MFC: dconschat(8) 2003-11-14 12:21:00 +00:00
Hidetoshi Shimokawa 59016d89db MFC: dcons(4) and dcons_crom(4). 2003-11-14 12:16:46 +00:00
Hidetoshi Shimokawa 73f386e9e2 s/Firewire/FireWire/. 2003-11-14 12:14:07 +00:00
Hidetoshi Shimokawa a4a47944e4 Build sbp_targ(4). 2003-11-14 12:06:35 +00:00
Hidetoshi Shimokawa 06e725a114 Sync with -current:
- Add -p option to dump phy registers.
- Add '0x' in front of EUI64 to avoid confusion.
2003-11-14 11:40:20 +00:00
Hidetoshi Shimokawa de02cca606 Sync with -current:
- Major restruction of asynchronous receive API.
- Add sbp_targ(4) code.
- Add fwphy register definitions.
- Enable core dump on sbp-2 device.
- Add some tunables/sysctls.
- Minor bug fixes and stability improvement.
2003-11-14 11:34:29 +00:00
Hidetoshi Shimokawa 8e146da1f3 MFC: rev. 1.19 and 1.20
- Detach black hole device on AC_PATH_DEREGISTERED.
- Pick up a correct path_id for the bus on AC_PATH_REGISTERED.
- Call cam_periph_invalidate() only if the periph is found.
2003-11-14 11:31:25 +00:00
Hidetoshi Shimokawa 909d23d274 Sync with -current:
- Fixes for sbp_targ(4).
- Enhance -s option.
- 16 byte command support(not enabled for -stable).
2003-11-14 09:55:53 +00:00
Hidetoshi Shimokawa 19b1ca550f Don't check block number overflow for D_MEM.
/dev/fwmem needs 48bit offset.

This change is needed only for 4-stable.
2003-11-14 09:51:47 +00:00
Matt Jacob 785cc9c755 MFC: fix broken _IOR usage 2003-11-14 05:13:43 +00:00
Ruslan Ermilov c22c45e705 MFC: Shift+PrintScr - prev. screen. 2003-11-12 14:20:16 +00:00
Ruslan Ermilov a01b140220 Properly shutdown the node (don't panic). 2003-11-12 13:27:43 +00:00
Mike Heffner 1cb4f8f95a MFC:
Support A4 Tech RFSW-35 mouse.
2003-11-12 04:51:24 +00:00
Mike Heffner 6c74e20775 MFC: 1.60
Reset device twice.
2003-11-12 04:26:26 +00:00
cvs2svn 1153e4a1fb This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-11-12 04:06:22 +00:00
Josef Karthauser 2137436d2a MFC: (rev 1.16)
Sony Clie_40 devices don't need the PALM_4 initialisation hack.
2003-11-12 00:19:50 +00:00
Mike Silbersack 01a9f72f9e MFC rev 1.85; fix a condition where sis_encap would allocate a new mbuf,
causing bpf_mtap to be fed the stale, now-freed m_head.
2003-11-11 17:32:26 +00:00
Mike Silbersack 64bde611d5 MFC rev 1.127; fix a condition where dc_encap would allocate a new mbuf,
causing bpf_mtap to be fed the stale, now-freed m_head.
2003-11-11 17:28:15 +00:00
Mike Silbersack 81f70d8cd2 MFC rev 1.143; don't allow a listen on already connected sockets 2003-11-11 17:18:18 +00:00
Max Khon 65bcc36207 MFC: rev. 1.88
Add kern.ipc.shm_allow_removed (integer, rw) sysctl (default 0) which when set
to 1 allows to return removed segments in shm_find_segment_by_shmid().
2003-11-11 13:44:59 +00:00
Peter Pentchev 342ca95782 MFC the typo fix from rev. 1.61: 'in cloud' -> 'in a cloud'. 2003-11-11 08:27:51 +00:00
David Schultz 5698d5cec4 MFC src/sys/kern/kern_fork.c,v 1.126
This closes a local DOS whereby a user can put a process in an
uninterruptible sleep by calling rfork(RFNOWAIT|RFPPWAIT|RFPROC).

Reported by:	Igor Serikov <[email protected]>
2003-11-11 07:26:44 +00:00
David Schultz 4437eb9216 MFC src/sys/sys/unistd.h,v 1.29 2003-11-11 07:26:33 +00:00
Bruce A. Mah b0d322900f New errata: xterm termcap(5) entry breaks hack(6). ata(4) tagged
queueing broken.
2003-11-11 05:03:00 +00:00
Gregory Neil Shapiro 99a0328f21 MFC: People are blindly coping this example refuse file. Doing so breaks
buildworld as src/etc/sendmail/freebsd.mc is missing.  That example
     was added 3 years ago, before the /etc/mail/ infrastructure was in
     place for customized configurations.  It is time to remove this example.

     Revision  Changes    Path
     1.11      +0 -1      src/share/examples/cvsup/refuse
     1.10      +4 -6      src/share/examples/cvsup/refuse.README
2003-11-11 04:52:39 +00:00
Wilko Bulte 6c294dc619 reformat HP eng. mgr quote
Requested by: nate
2003-11-10 23:02:32 +00:00
Wilko Bulte 37b7d862da MFC: add HP engineering mgr anecdote 2003-11-10 18:49:57 +00:00
Christian Brueffer 2ddf32ad9b MFC: Document usbd_enable and usbd_flags
PR:		57118
Reported by:	Chris Pepper <[email protected]>
2003-11-10 16:22:32 +00:00
Ruslan Ermilov 1f6aa14e61 Attach ng_eiface(4) module to the build. 2003-11-10 14:01:18 +00:00
Ruslan Ermilov 67b690133b Added missing module dependency. 2003-11-10 13:59:54 +00:00
Ruslan Ermilov 811c5e5c82 Added the missing KMODDEPS, MFC the removal of -g. 2003-11-10 12:56:22 +00:00
Dag-Erling Smørgrav 52fc7c37b4 Add optional paths for recent and upcoming Perl versions. 2003-11-10 09:03:00 +00:00
Ceri Davies 52af50d70b Further diff reduction with HEAD. 2003-11-07 23:18:36 +00:00
Ceri Davies d8b2688931 Reduce diffs with HEAD. 2003-11-07 22:17:31 +00:00
Bruce A. Mah 32760db6ff MFC: amr(4) crashdump support, lost+found 0700, libalias and Cisco
Skinny Station.
2003-11-07 16:55:29 +00:00
Simon L. B. Nielsen 22cb595d14 MFC v. 1.13:
Add a missing word.
2003-11-07 11:48:56 +00:00
Paul Saab 9baf40c90a MFC: rev 1.31 PCI id 2003-11-07 03:25:46 +00:00
Ceri Davies cac38171a0 MFC r1.4:
Correct a grammatical error.

	PR:		misc/54967
	Submitted by:	Paul A. Scott <[email protected]>
2003-11-06 21:30:38 +00:00
Hajimu UMEMOTO c632f020c2 MFC 1.67: correct behavior when ipv6mr_interface is 0. 2003-11-06 16:47:04 +00:00
Matthew Hunt 1d36391d15 MFC: Add r_{earth,moon,sun}. 2003-11-05 22:40:47 +00:00
Gregory Neil Shapiro 75911cc372 MFC: Cast the NULL to a pointer type for 64 bit architectures 2003-11-04 21:35:40 +00:00
Murray Stokely 0eb671a6cf MFC: GBK encoding. 2003-11-04 19:38:29 +00:00
Murray Stokely 0918f51191 MFC: the GBK locale directories. I didn't meant to MFC this yet but I
accidentally MFCed one of the GBK files so this is needed.
2003-11-04 19:32:15 +00:00
Murray Stokely e35b6d25c6 Add GB18030 directories. 2003-11-04 05:15:44 +00:00
Murray Stokely edee2ade1d MFC: Support for gb18030 encoding. 2003-11-04 05:12:21 +00:00
Murray Stokely a03fab4d84 Finish MFC of GB18030 locale. 2003-11-04 05:03:28 +00:00
Murray Stokely b4595c9c8a MFC: PRC locales. 2003-11-03 16:45:49 +00:00
Hideyuki KURASHINA 2b12fab7ee Merge the following from the English version:
1.1.2.113  -> 1.1.2.117    errata/article.sgml
   1.22.2.385 -> 1.22.2.388   relnotes/common/new.sgml
2003-11-03 14:02:26 +00:00
Bruce A. Mah cff2f89135 Bump BASE variable definition for 4.9.
Pointed out by:	Kent Hauser <[email protected]>
2003-11-02 07:07:08 +00:00
Tim J. Robbins 2a91ea3f50 MFC rev. 1.20: Fix a warning that showed up on 64 bit systems. It was
actually a real bug that had been swept under the carpet.
2003-11-02 04:28:58 +00:00
Scott Long 55ba5153a5 MFC: Remove erroneous PCI Id. 2003-11-01 18:44:51 +00:00
Joe Marcus Clarke 3e6c918643 MFC: Add Cisco Skinny Station Protocol translation support to libalias
and supporting applications (ppp and natd).

Approved by:	ru
2003-11-01 03:50:03 +00:00
Bruce A. Mah 4521fc4f44 MFC: Sort the lists of supported devices. No other content changes. 2003-11-01 00:43:28 +00:00
Bruce A. Mah 8b74d38e29 MFC: In the lists of supported devices, remove "The" from the names of
devices and capitalize the words "Gigabit", "Ethernet", and "adapter"
consistently.
2003-11-01 00:42:39 +00:00
Bruce A. Mah af2dcd8bc8 MFC: Synchronize the list of supported ti(4) with CURRENT.
Partially in response to PR.

PR:		55637
2003-11-01 00:41:26 +00:00
Bruce A. Mah 5346b0ea03 MFC: Add the multicast.4 and pim.4 manual pages and hook up to the
build.
2003-11-01 00:14:56 +00:00
Tor Egge 99a7ed5523 MFC rev 1.428: Zero fill a new page table before adding it to a page
directory.  Otherwise a 2nd, 3rd etc. thread might end up using garbage
for address translation.
MFC (partial) rev 1.43[67]: Don't zero fill existing page table.
2003-10-31 20:13:09 +00:00
Tor Egge e4d3045faf MFC rev. 1.259: Don't put held pages onto a cache queue. 2003-10-31 20:12:11 +00:00
Simon L. B. Nielsen 3a6389fed8 Note the 4.9 release date.
Reviewed by:	bmah
2003-10-31 16:40:39 +00:00
Yoshihiro Takahashi 29141d516b MFi386: revisions 1.385.2.33 and 1.385.2.34. 2003-10-31 13:44:22 +00:00
Sheldon Hearn adad9c5a46 MFC rev 1.79: clarify description of INSTALL 2003-10-31 11:58:46 +00:00
Bruce A. Mah be45efd13e New errata (really plural this time): crypto distribution required,
mention problems with machines that don't support emulation-booting
CDROMs.

While here, add date-stamps for errata items.  A couple of people
asked for this and it seemed useful and easy to do.
2003-10-30 23:25:22 +00:00
Garance A Drosehn bcbdfa1ba2 MFC *: Move the time-processing routines to separate source files,
and restructure them.  This is mainly to fix up the "will trim at"
messages printed when running 'newsyslog -v'.

[* = 1.1->1.2 extern.h, 1.81->1.82 newsyslog.c, 1.1->1.4 ptimes.c,
     1.15 Makefile]
2003-10-30 23:21:03 +00:00
Gregory Neil Shapiro f7cdbba775 Sync with HEAD by MFC'ing change 1.3 made by des:
Usage style sweep: spell "usage" with a small 'u'.
2003-10-30 22:42:48 +00:00
Gregory Neil Shapiro b258887e99 MFC: Adding WorkAroundBrokenAAAA seems a necessity even in the submit.mc given
the number of broken DNS servers out there in the world.  Since we are
     diverging from the sendmail.org submit.mc, it's time to make our own
     freebsd.submit.mc.
2003-10-30 22:38:33 +00:00
Gregory Neil Shapiro aaf28c1fac MFC: Turn SENDMAIL_CF_DIR into an officially supported make.conf variable
and use it in src/etc/sendmail/Makefile in case the user wants to use
     a different path to the sendmail m4 sources (e.g., sendmail port users).
2003-10-30 22:37:06 +00:00
Gregory Neil Shapiro 12df8315bd MFC: Before trying to restart/stop the MTA or MSP queue runner, make sure
we are configured to use an MTA or MSP queue runner.  Otherwise the
     script used to complain about the missing PID file.
2003-10-30 22:33:14 +00:00
Gregory Neil Shapiro 83dc7a79d1 MFC: sendmail 8.12.10 (note that parts of 8.12.10 were MFC'ed prior to
FreeBSD 4.9-RELEASE)
2003-10-30 22:31:46 +00:00
Thomas Quinot 619e8a0c9c MFC rev. 1.43:
(scsi_request_sense): Set allocation length in REQUEST_SENSE CCB.

Reviewed by:	ken
2003-10-30 15:06:35 +00:00
Simon L. B. Nielsen 4de453a71e MFC 1.17:
- Update the page title to include information about which cards
  are supported by the driver.
- Use a list to specify which cards are supported.
- Add the 3c592/3c597 EISA cards to the list of supported cards.
2003-10-29 23:29:17 +00:00
Bruce A. Mah 5f22ee8931 New errata item: OpenLDAP package incompatibilities.
Pointed out by:	murray
2003-10-29 22:46:23 +00:00
Simon L. B. Nielsen 2fc5d0bd9b MFC 1.20:
- Sync usage with the manual page.

Approved by:	trhodes
2003-10-29 22:18:40 +00:00
Garance A Drosehn 0c75e80168 MFC 1.79->1.80: Reduce the annoying compiler warnings that can pop up
when compiling with gcc 3.3.x and -Wshadow.  (this was mainly an issue
on -current...)
2003-10-29 21:59:47 +00:00
Simon L. B. Nielsen d5067f63ca MFC 1.21+1.22:
- Reflect the fact that fxtv is now found in ports/multimedia/fxtv.
- mdoc(7) cleanup.
2003-10-29 21:57:23 +00:00
Simon L. B. Nielsen ded5cd2cef MFC 1.14-1.16:
- Add the optional port argument to SYNOPSIS.
- Make the description of the connect, get, and put commands clearer.
- Markup polishing.
2003-10-29 21:49:22 +00:00
Garance A Drosehn f4a8b02670 MFC 1.73->1.78: Mainly cosmetic changes to parse8601 and parseDWM.
Also adds the '-D something', which can set some debugging options
(such as '-D TN=<time>').
2003-10-29 21:37:35 +00:00
Simon L. B. Nielsen ae5315fc02 MFC 1.19:
- Add the Dell PERC 4/Di to the list of supported devices; it
  has been supported for the last 10 months.
- Make the device list compact, since it is getting rather large.
2003-10-29 21:27:03 +00:00
Ruslan Ermilov 86992e799e MFC: Added /usr/X11R6/man and /usr/local/man as optional manpaths. 2003-10-29 20:56:51 +00:00
Ruslan Ermilov 7d5ca82ae3 MFC: The -P option. 2003-10-29 20:39:46 +00:00
Hajimu UMEMOTO ad405ca84e MFC: Don't depend on IPv4-mapped IPv6 address to bind to both IPv4
and IPv6.

	libexec/ftpd/ftpd.8:	1.66
	libexec/ftpd/ftpd.c:	1.146
2003-10-29 18:22:48 +00:00
Simon L. B. Nielsen e689ef5e94 MFC: index(3) 1.10 and strchr(3) 1.11
Move a sentence about the terminating \0 from the RETURN VALUES section
(where it didn't really belong), to the DESCRIPTION section.
2003-10-29 18:15:48 +00:00
Bill Paul 1b8bd21f62 Kudos to Guido for porting the tdkphy driver to RELENG_4, but it
needs in the miibus module Makefile too.
2003-10-29 17:06:48 +00:00
Sheldon Hearn 69544a6fcf MFC rev 1.26: regen 2003-10-29 11:20:31 +00:00
Martin Blapp b346bbcc33 MFC Rev. 1.125
Don't read the MAC address from a copy of the EEPROM in the softc
that has been recorded earlier and overwrite it again later by
reading it directly from the EEPROM again.

Read the MAC address from the PAR0/PAR1 registers instead, which
are autoloaded on reboot.
2003-10-29 09:57:33 +00:00
Ian Dowse 013827e358 MFC: sbin/fsck_ffs 1.27; change the default mode for lost+found
from 01777 to 0700.
2003-10-29 09:53:29 +00:00
Martin Blapp c260f6d840 Forced commit: Previous commit message was not correct.
Ignore CSR13, CSR14, CSR15 'Media Specific Data' registers
for 21143 based cards which use SIA mode.

MFC rev. 1.126 of if_dc.c
2003-10-29 09:52:33 +00:00
Ian Dowse 0307339f51 MFC: 1.19; When looking for the ':' separator in the root path,
don't go past the terminating '\0'.
2003-10-29 09:47:40 +00:00
Martin Blapp 70d995dc31 MFC:
Rev. 1.38 of if_dcreg.h
Rev. 1.125 if if_dc.c
2003-10-29 09:46:10 +00:00
Guido van Rooij 393e4d8e7a MFC: support for tdk 78Q2120 MII 2003-10-29 09:27:52 +00:00
Paul Saab 18b704460a MFC: crashdump support for amr 2003-10-29 09:11:38 +00:00
Bruce A. Mah 5f47e34a22 First errata against 4.9-RELEASE: Change in HyperThreading support.
While here, add trademark boilerplate.
2003-10-28 18:15:15 +00:00
Bruce A. Mah 0627dec30b Trim release notes and errata for a post-4.9 world, bump version
numbers for 4.9-STABLE.

Approved by:	re (implicitly)
2003-10-27 18:49:51 +00:00
Murray Stokely ca2f2edc47 Add proper entries to release table so that pkg_add -r on a 4.9 system
will fetch 4.9 packages, instead of falling back on 4-stable packages.
2003-10-27 07:56:27 +00:00
Murray Stokely 73f6c89d75 Identify as 4.9-STABLE. 2003-10-27 02:24:47 +00:00
Murray Stokely 99cb926b07 Bump for 4.9-STABLE. 2003-10-27 02:22:50 +00:00
Max Khon 6679855387 Fix setting PIO mode timings on AcerLabs Aladdin IV/V chipsets
(add missing 'break' statements).

Approved by:	sos, re
Reported by:	Juan Manuel Sanchez <[email protected]>
2003-10-26 18:34:23 +00:00
Dag-Erling Smørgrav 59005991e3 MFC: (1.14) plug a memory leak in the PAM child process. 2003-10-26 11:20:47 +00:00
Dag-Erling Smørgrav c6e5096f43 MFC: fix, improve & extend NFS support.
Submitted by:	hmp
Approved by:	re (murray)
2003-10-23 20:57:22 +00:00
John Baldwin 0beb526803 Add a note about the changes to the HTT support.
Approved by:	re (scottl)
2003-10-22 20:36:27 +00:00
John Baldwin 3a0f48841f MFC: Always enable hyperthreading to avoid lockups due to APIC interrupt
routing problems.
- Enable cpu_idle_hlt for the SMP case by default since that significantly
  helps HTT performance.
- Provide a facility for disabling individual CPUs by refusing to schedule
  processes on them.
- Use the above to provide a sysctl for disabling or enabling all logical
  CPUs.  The default is to disable all logical CPUs.
- Remove the 'HTT' kernel option now that it is obsolete.

Submitted by:   ps
Approved by:    re (murray)
2003-10-22 20:15:10 +00:00
John Baldwin 455b1d51aa MFC: Always enable hyperthreading to avoid lockups due to APIC interrupt
routing problems.
- Enable cpu_idle_hlt for the SMP case by default since that significantly
  helps HTT performance.
- Provide a facility for disabling individual CPUs by refusing to schedule
  processes on them.
- Use the above to provide a sysctl for disabling or enabling all logical
  CPUs.  The default is to disable all logical CPUs.
- Remove the 'HTT' kernel option now that it is obsolete.

Submitted by:	ps
Approved by:	re (murray)
2003-10-22 19:04:09 +00:00
Hiroki Sato 84f7936869 Merge the following from the English version:
1.22.2.384 -> 1.22.2.385	relnotes/common/new.sgml

Approved by:	re (bmah)
2003-10-22 15:24:33 +00:00
John Baldwin 76b353e5eb MFC: Add support for the Intel ICH5 SATA controller in both legacy and
enhanced mode.

Submitted by:	Dan Strick <[email protected]>
Approved by:	re (murray)
2003-10-22 14:43:52 +00:00
Tim J. Robbins 5dcb3762e0 MFC linux_misc.c 1.149, linux_uid16.c 1.12: Reject negative ngrp arguments
in linux_setgroups() and linux_setgroups16().

Approved by:	re (murray)
2003-10-22 13:51:46 +00:00
Thomas Quinot a13293f19f MFC rev. 1.86:
(cdcleanup,cdsysctlinit): Defend against calling sysctl_ctx_free on an
 uninitialized sysctl_ctx.

Approved by:	re (murray)
2003-10-21 22:26:11 +00:00
Thomas Quinot c35dd19054 MFC rev. 1.160:
(dacleanup, dasysctlinit): Defend against calling sysctl_ctx_free on
 an uninitialized sysctl_ctx.

Approved by:	re (murray)
2003-10-21 22:18:19 +00:00
Eric Anholt 346491d798 Fix problems with slowdowns and hangs with the DRM on -stable. The condition
checks for sleeping waiting for IRQs were not wrapped in spldrm().

PR:		kern/57334
Submitted by:	Shobaki sam. <[email protected]>
Approved by:	re (murray)
Obtained from:	DRI CVS (Keith Whitwell)
2003-10-19 19:17:15 +00:00
Bruce A. Mah ce4c258c3a MFC: Fix minor grammatical nits in atkbd(4) note and safe(4) note.
Add cross-reference for newly-MFC-ed pae(4) manpage.

Approved by:	re (implicitly)
2003-10-19 18:33:34 +00:00
Hiroki Sato d1d9e0c9d6 MFC:
- hifn(4) 7955 and 7956 chipset support.
	- ipfw(4) limit rule processing fixed.
	- OpenSSL 0.9.7c.
	- timezone database tzdata2003d.

Approved by:	re (bmah)
2003-10-19 17:11:49 +00:00
Simon L. B. Nielsen 83aa38c22a MFC of PAE(4) v. 1.6 without section about PAE kernel config file and
without reference to the bus_dma(9), both of which does not exist on
-STABLE.

Approved by:	re (murray)
2003-10-19 08:12:15 +00:00
cvs2svn 2de8210c7f This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-10-19 00:03:14 +00:00
Scott Long b05fd50a12 MFC Rev 1.40 to fix use-after-free problems with dynamic rules.
Submitted by: mckusick
Approved by: re (murray>
2003-10-17 11:01:03 +00:00
Peter Wemm 2261ff1626 MFC: rev 1.178 - 1.180: map page zero read/write in case DISABLE_PSE is
used (APM breaks with DISABLE_PSE) or if PSE is turned off for Pentium4.

Approved by:	re (scottl)
2003-10-17 06:54:00 +00:00
Garrett Wollman 16c50b6b50 MFC: tzdata2003d (updates Canada, Brazil, New Zealand)
Approved by:	re (murray)
2003-10-16 15:02:34 +00:00
Hideyuki KURASHINA e4ab521735 Merge the following from the English version:
1.1.2.106  ->  1.1.2.113 errata/article.sgml
   1.22.2.358 -> 1.22.2.384 relnotes/common/new.sgml
   1.1.2.7    ->    1.1.2.8 share/sgml/release.dsl

Approved by:	re (murray)
2003-10-15 15:47:29 +00:00
Hideyuki KURASHINA fc64eea49b MFC: Note sk(4) support for SK-9521 V2.0 and 3COM 3C940.
Approved by:	re (murray)
2003-10-15 15:31:32 +00:00
Wilko Bulte 705e042d76 MFC: Note added support for 3C940 and Marvell Semiconductor 88E1000*
gigabit PHY

Submitted by:   Jung-uk Kim <[email protected]>
Based on: Nathan L. Binkert's OpenBSD patch for sk(4)
Approved by: re (jhb, murray)
2003-10-14 18:31:42 +00:00
Wilko Bulte d3bf56b89d MFC: Add support for SK-9521 V2.0 and 3COM 3C940.
Based on: Nathan L. Binkert's patch for OpenBSD
Patch submitted by and thanks to: Jung-uk Kim <[email protected]>
Approved by: re (jhb, murray)
2003-10-14 18:22:42 +00:00
John-Mark Gurney 26a28f458b MFC: v1.152
Fix problem with EVFILT_WRITE filters on pipes

Approved by:	re@
Obtained from:	nCircle
2003-10-14 05:01:04 +00:00
Murray Stokely 2561df3902 MFC: update number of ports in the ports collection dialog box. 2003-10-12 21:37:15 +00:00
Daniel Eischen f63eff5765 MFC: Allow a return of 0 from __sys_write() to exit the loop in libc_r's
wrapped version of write().

Approved by:	re@
2003-10-11 18:37:09 +00:00
Makoto Matsushita 7886bc6980 Fix (one of) 4.9-RELEASE release breaker, "Loading kernel modules while
installation phase sometimes causes an error" bug.  It also includes
"there's an error while loading firewire modules" bug.

Since the results of readdir(3)'s whims, either sbp.ko or if_fwe.ko is
picked up for load BEFORE firewire.ko.  Unfortunately module_path is
not properly set, kldload(2) cannot find kernel modules, firewire.ko,
which is required to load sbp.ko/if_fwe.ko.  This is why you'll see
"loading failed" message.

Actually these are mostly comes from following commits on the HEAD:
	src/release/Makefile rev 1.721
	src/usr.sbin/sysinstall/modules.c rev 1.5

Approved by:	murray (as of re@, pre-approved)
2003-10-11 08:10:33 +00:00
Sam Leffler d3087931a9 MFC 1.3: 7955/7956 support
Approved by:	re (murray)
2003-10-08 23:57:50 +00:00
Sam Leffler 9c14228866 MFC 7955/7956 symmetric crypto support
Note performance is currently suboptimal.

Approved by:	re (murray)
2003-10-08 23:52:00 +00:00
Ruslan Ermilov affb16548d Avoid segfaulting if current working directory is unreadable.
(HEAD is not subject to this bug.)

PR:		bin/56087
Submitted by:	Volker Stolz <[email protected]>
Approved by:	murray@re
2003-10-08 08:14:22 +00:00
Murray Stokely f58c22e5fe Go back to PIO mode for now; MMIO mode appears to cause problems on
some systems.

Submitted by:	Mike Silbersack <[email protected]>
2003-10-08 06:01:57 +00:00
Jacques Vidrine 8b7f73ec03 The test for whether or not this is a Pentium 4 for the purpose of
disabling PSE on such processors was unnecessarily made twice.

But much worse, the second test was incorrect.

Symptoms reported by:		Mike Tancsa <[email protected]> and others
``This commit looks wrong.'':	tegge
Pointy hat to:			nectar
2003-10-08 02:26:39 +00:00
Jacques Vidrine a5e207e9d3 Add NO_PSE_HACK kernel option.
Reminded by:	jhb
2003-10-07 16:58:53 +00:00
Jacques Vidrine 787abbeec9 Disable PSE at boot time for Pentium 4 processors. On many such CPUs,
data corruption will result otherwise.  It seems that the bug is
aggravated by recent work related to PAE.

This change was originally based on rev 1.386, but now the test for
CPU type is correct and the display of the warning is postponed until
we have initialized the kernel message buffer (e.g. for dmesg).

peter@ believes that only certain revisions of the Pentium 4 processor
are affected.  However, we are unsure which so we choose to be safe by
disabling PSE on all Pentium 4s.

The test can be disabled entirely with NO_PSE_HACK.

Approved by:	re
2003-10-07 12:34:37 +00:00
Ruslan Ermilov 946048e6f8 Respect DESTDIR.
PR:		54004
Submitted by:	Sergey Akifyev <[email protected]>
Approved by:	murray@re
2003-10-07 06:59:19 +00:00
Bruce A. Mah 5eadf4dccf MFC: Add a warning about the safe(4) driver's experimental status.
Submitted by:	sam
Approved by:	re (implicitly)
2003-10-06 19:11:17 +00:00
Sam Leffler c194218894 MFC 1.81: "short cable" fix for DP8315
Approved by:	re (murray)
2003-10-06 18:29:23 +00:00
Sam Leffler a7c674c3fb MFC 1.240: add IPSEC_FILTERGIF suport for FAST_IPSEC
Approved by:	re (murray)
2003-10-06 18:25:59 +00:00
Sam Leffler 4c35c2253f MFC 1.2:
o add missing {}'s that to safe_dmamap_uniform that caused extraneous copies
  for partly-aligned operations through /dev/crypto (unlikely)
o add missing case in iov code that never showed up because of the above bug

Approved by:	re (murray)
2003-10-06 17:03:08 +00:00
Bruce A. Mah bf9bba7dfc New errata: SA-03:15.
Approved by:	re (implicitly)
2003-10-06 04:21:21 +00:00
Bruce A. Mah c6ed2dfc6d MFC: SA-03:15, mount_msdos(8) -M.
Approved by:	re (implicitly)
2003-10-06 04:15:56 +00:00
Warner Losh 5a9699a334 Driver names for DRIVER_MODULE in current are 'ed' and 'ep', but in
-stable they need to be 'if_ed' and 'if_ep'.  ifconfig should be
modified, but this is a lower risk change this late in the release
cycle.

Approved by: re@
2003-10-06 02:53:52 +00:00
Hiroki Sato a4a1e67611 Bump release.manpath.freebsd to 4.8-stable.
Approved by:	re (bmah)
2003-10-05 16:59:31 +00:00
Hiroki Sato 8469186e1d MFC: SA-03:18.
Approved by:	re (bmah)
2003-10-05 16:57:58 +00:00
Hiroki Sato b1e1c1e457 New errata: SA-03:16.
MFC: SA-03:14, SA-03:17, SA-03:18.

Approved by:	re (bmah)
2003-10-05 16:56:24 +00:00
Hiroki Sato f8c2eda02c New release note:
SA-03:16.
MFC:
	SA-03:14, SA-03:17.

Approved by:	re (bmah)
2003-10-05 08:24:06 +00:00
Jacques Vidrine 8a0b289964 Revision 1.10.2.4 introduced a regression: the offset was ignored.
This could cause a reader of /proc/*/regs to spin, because read(2)
would never return end-of-file.  In practice, this has much less
impact than I would expect.  Tools such as truss(1) make only a
single, fixed-size read (into a `struct reg').  (Similarly for
write(2).)

The cause was a sort of typo: `uiomove_frombuf' was spelled
`uiomove'.

Noticed by:	David Rhodus <[email protected]>
Approved by:	re (implicitly)
2003-10-04 15:50:35 +00:00
Joe Marcus Clarke d5c8cf5af6 MFC: 1.48
Export PARALLEL_PACAKGE_BUILD to the environment as well to catch more
packages that should/should not be included on the first CD.  This is needed
for the recent KDE space-saving change.

Approved by:	re (bmah)
2003-10-03 16:50:17 +00:00
Jacques Vidrine 7cb0e72ae5 Correct several integer underflows/overflows in linprocfs. See the
log message for kern_subr.c 1.77 for more details.
2003-10-03 12:03:50 +00:00
Jacques Vidrine 76caa953f9 MFC OpenSSL 0.9.7c.
Approved by:	re
2003-10-03 01:32:14 +00:00
Jacques Vidrine 262a50de71 MFC (the spirit of) procfs_dbregs.c 1.23, procfs_fpregs.c 1.29,
pseudofs_vnops.c 1.42, kern_subr.c 1.77, uio.h 1.28:
Correct several integer underflows/overflows in procfs.

Approved by:	re
2003-10-02 16:49:49 +00:00
Jacques Vidrine d8f1550d6b Correct a case in readv(2) where the file descriptor reference count
should have been decremented but was not.

Reported by:	Joost Pol <[email protected]>
Approved by:	re
2003-10-02 15:08:01 +00:00
Mike Silbersack ab81a20e03 Add an include I forgot in the previous commit. Eeek. 2003-10-02 02:22:58 +00:00
Simon L. B. Nielsen f3d3cc7849 Add the Dell PERC 4/Di to the list of supported devices for amr(4).
Reported by:	David Magda <[email protected]>
Approved by:	re (bmah)
2003-10-01 20:36:57 +00:00
Mike Silbersack 3af12b3dac MFC rev 1.309 ; increase the # of kmap entries allowed.
Approved by:	re (murray)
2003-10-01 19:39:42 +00:00
cvs2svn 6ed0f09c85 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-10-01 12:32:43 +00:00
Bruce M Simpson a4bf1e9e86 MFC: The knobs controlling ipfw2 and ip6fw were not protected when running
at an elevated securelevel. Fix this behaviour and function as documented.

PR:		kern/39396
Approved by:	re (rwatson)
2003-10-01 07:07:07 +00:00
Luoqi Chen a7cd3bd4e1 Fix a function prototype error.
Approved by:	re@
2003-10-01 04:02:18 +00:00
Andrew Gallatin 6f8c6f6360 Fix a bug which was introduced in version 1.187.2.16 of
sys/vm/vm_map.c and affects the unwiring memory:

The map entries are processed in a loop, checking to make sure the
entry is wired and asserting it has a wired count. However, another
loop was inserted more-or-less in the middle of the of the unwiring
path.  This loop picks up the "entry" loop variable from the first loop
without first setting it to start_entry.  Naturally, the second loop
is never entered and the pages backing the entries are never unwired.
This can lead to a leak of wired pages.

Reviewed by: alc
Approved by: re (murray)
2003-10-01 01:21:37 +00:00
Mike Silbersack 2eee526d9d MFC rev 1.154
Approved by:	re
2003-09-30 18:23:22 +00:00
Tom Rhodes 5b03bafa82 MFC: Fix a cut n paste typo. 2003-09-29 15:53:54 +00:00
Murray Stokely 49f75626cb Update for 4.9-RC. 2003-09-28 22:56:57 +00:00
Murray Stokely eb50c0c487 Welcome to 4.9-RC.
RC1 is imminent.

Approved by:	re
2003-09-28 22:55:45 +00:00
Ken Smith 5c22d01efa - Update to list of FTP sites.
Approved by:	murray
2003-09-28 13:05:26 +00:00
Ian Dowse 00a9740e0c Save and restore the interrupt mask in fork1() instead of using
spl0() and hence assuming that the old interrupt mask was zero.
Although fork1() is normally called with a zero mask, one exception
to this is when it is called by kthread_create() before configure()
has unmasked interrupts for the first time. In that case it can
cause interrupt storm hangs during device configuration, because
interrupts can be delivered before the corresponding device drivers
are ready to receive them.

This should fix the boot-time USB hangs that have been reported.

Approved by:	re (murray)
2003-09-28 11:08:31 +00:00
Paul Saab 26600b6232 MFC rev 1.55
By not setting No_CRC in the Mode Control Register, we must also
reduce the size of the packet by 4 bytes to remove the ethernet crc.

Approved by:	re
2003-09-26 16:02:04 +00:00
Scott Long 431b938258 MFC:
aic79xx_pci.c:
aic7xxx_pci.c:
	When performing our register test, be careful
	to avoid resetting the chip when pausing the
	controller.  The test reads the HCNTRL register
	and then writes it back with the PAUSE bit
	explicitly set.  If the last write to the controller
	before our probe is to reset it, the CHIPRST
	bit will still be set, so we must mask it off
	before the PAUSE operation.  On some chip versions,
	we cannot access registers for a few 100us after
	a reset, so this inadvertant reset was causing PCI
	errors to occur on the read to check for paused
	status.

Approved by: re (murray)
2003-09-26 15:24:14 +00:00
Ken Smith b0dc19f36a - Updated list of FTP sites.
Approved by:	murray
2003-09-26 12:07:43 +00:00
Ruslan Ermilov 8242b22ae1 MFC: 1.17, 1.18, 1.24, 1.28.
Urged by:	Sergey Benner <[email protected]>
Approved by:	re (blanket)
2003-09-26 07:55:18 +00:00
Wilko Bulte 865f0e0592 MFC:
Clarify SRM bootability on Alpha for DAC960.

Approved by: re (bmah) / blanket
2003-09-25 21:18:47 +00:00
Mike Silbersack 547b789d30 MFC BUS_DMA_ZERO support for busdma memory allocations, and M_ZERO
support for contigmalloc, which is required for BUS_DMA_ZERO support.

Approved by:    re (scottl)
2003-09-25 18:55:27 +00:00
Gregory Neil Shapiro 2b6aba4638 MFC some of the security safety belts from sendmail 8.12.10 for
4.9-RELEASE.  A full MFC of 8.12.10 will occur after 4.9-RELEASE.

Approved by:	re (murray)
2003-09-25 04:53:38 +00:00
Bruce M Simpson bbf090d096 Fix a logic error in the check to see if arplookup() should free the route.
Noticed by:	Mike Hogsett
Reviewed by:	ru
2003-09-24 21:51:13 +00:00
Dag-Erling Smørgrav 003bece945 Update version string. 2003-09-24 19:28:35 +00:00
Dag-Erling Smørgrav a8792d6047 MFC: (1.13) remove bogus calls to xfree(). 2003-09-24 19:16:50 +00:00
Dag-Erling Smørgrav 586d9c5ed5 MFC: (1.12) resp is a pointer to an array of structs. 2003-09-24 18:32:22 +00:00
Dag-Erling Smørgrav 6459e13844 MFC: (1.7) return the correct error value when a null query fails. 2003-09-24 18:32:12 +00:00
Mike Silbersack e815dbe92c Protect crfree() with splhigh; without this, there appears to be
a crfree race which can occur on SMP systems.

Submitted by:	Ed Maste <[email protected]>
Approved by:	re
2003-09-23 18:22:13 +00:00
Bruce M Simpson b7feb429a2 Fix a bug in arplookup(), whereby a hostile party on a locally
attached network could exhaust kernel memory, and cause a system
panic, by sending a flood of spoofed ARP requests.

Approved by:	security-officer, jake (mentor)
Reported by:	Apple Product Security <[email protected]>
2003-09-23 16:54:39 +00:00
Paul Saab 9e977454ca MFC: rev 1.54, Do not set the No_CRC bit in the Mode Control Register. 2003-09-23 02:34:49 +00:00
Ruslan Ermilov 0b52705183 MFC: 1.60: Better documentation of -redirect_port port range syntax. 2003-09-22 18:59:45 +00:00
Murray Stokely 946e15275c MFC: r1.41 - disc1 is over 680megabytes right now, so remove
linux-netscape-navigator for now to free up space (-communicator is a
superset and is still included).

Approved by:	re (murray)
2003-09-22 07:19:04 +00:00
Stefan Eßer 5a3694cb42 MFC: Fix name of no-reset device (ulpn -> unlpt) and fix style.
This file is now identical to HEAD, except for CVS IDs.

Approved by:	re
2003-09-21 20:17:54 +00:00
Joe Marcus Clarke 35a3ae31b2 Put x11-wm/sawfish2 and irc/xchat on CD 1 instead of sawfish and xchat.
Sawfish is gone, and xchat2 is more widely used these days since it is the
current stable release.

Approved by:	re (murray)
2003-09-21 19:07:23 +00:00
Bruce M Simpson 402c71788b Prevent vmstat -m totals from overflowing by using a 64-bit type. Likely
to be needed for systems using PAE.

PR:		bin/55124
Reviewed by:	bde
Approved by:	re, jake
2003-09-20 19:10:01 +00:00
Bruce A. Mah bc8ab86229 Fix a minor glitch in conditional text.
Approved by:	re (implicitly)
2003-09-20 00:20:26 +00:00
Bruce A. Mah 2b5f9dff46 New errata: SA-03:13.
Approved by:	re (implicitly)
2003-09-20 00:19:42 +00:00
Bruce A. Mah 7ed2c54046 MFC: SA-03:13, GNOME 2.4, KDE 3.1.4. 2003-09-20 00:03:01 +00:00
Gregory Neil Shapiro f938c51fc8 Include a patch number in the version header in case 8.12.10 isn't
MFC'ed before 4.9-RELEASE.  8.12.10 will be imported into -CURRENT
this weekend.

Approved by:	re (murray)
2003-09-19 21:19:36 +00:00
Daniel Eischen b8fab849f1 MFC: Preserve the state of %fs and %gs when sending a signal. NVidia
drivers (for one) seem to need this.  This has existed in -current
     for some time since both libthr and libkse also require this
     behavior.

Requested by:	kde@
Approved by:	re (jhb, murray)
2003-09-19 18:35:36 +00:00
Doug Barton b948354e1e MFC up to 1.96
Approved by:	re (bmah, murray)
2003-09-19 06:55:23 +00:00
Thomas Quinot a114d1e033 MFC rev. 1.22:
(atapi_action, case XPT_PATH_INQ): Handle properly the case of
CAM_TARGET_WILDCARD (target_id_t is an unsigned integer type).

Approved by:	re (murray)
2003-09-18 20:15:55 +00:00
Tom Rhodes 811c4a2e1d MFC revisions 1.43 and 1.44 for the package list.
Approved by:	re (murray)
2003-09-18 19:27:50 +00:00
Tom Rhodes f228caee65 MFC: All the sysinstall(8) changes to provide alternative MTA selection during
an initial FreeBSD install.

This MFCs the following revisions:
config.c revisions 1.211, 1.213, and 1.214
menus.c revision 1.374
sysinstall.h revision 1.247 and
variable.c revision 1.36

Approved by:	re (murray)
2003-09-18 19:17:48 +00:00
Hiten Pandya 0deca9c00f MFC: The linux(4) manual page.
Approved by:	mentor (des@), re (murrary@)
2003-09-18 07:29:08 +00:00
Garance A Drosehn 6ae39ed176 Correct the calculation of "a leap year" in parseDWM. The previous
calculation would only match a leap year every 400 years.  The first
time this bug would cause any noticeable problems is in Feb 2004.

This is similar to the change made in revision 1.2 of ptimes.c.

Approved by:	re (murray)
2003-09-17 17:41:55 +00:00
Jacques Vidrine 7dc9f14293 MFC parseaddr.c 1.1.1.18:
Correct address parsing bug that is believed to be remotely exploitable.
2003-09-17 15:18:20 +00:00
Jacques Vidrine 93c5e252b5 Previous commit also MFC'd buffer.c 1.2, channels.c 1.16. 2003-09-17 14:44:46 +00:00
Jacques Vidrine 87f57b8ac8 MFC deattack.c 1.1.1.6, misc.c 1.1.1.5, session.c 1.41, ssh-agent.c 1.19:
Correct more cases of allocation size bookkeeping errors.
2003-09-17 14:41:41 +00:00
Ollivier Robert f15dc20ce0 MFC of revision 1.22:
Document the fact that send(2) can return EPIPE (like when a socket is not
connected).

PR:             docs/56683
Submitted by:   Chris S.J. Peron <[email protected]>
Approved by:    re (bmah)
2003-09-17 14:28:21 +00:00
Scott Long b5b1a2890e Fix a typo from the last commit.
Submitted by: Sergey N. Voronkov <[email protected]>
2003-09-17 09:11:40 +00:00
Eric Anholt 6390245cf5 MFC 1.19: The GTLB enable/flush bit is 1<<7, not 1<<8.
PR:		kern/56297
Submitted by:	Dan Angelescu <[email protected]>
Approved by:	re (murray)
2003-09-17 06:57:15 +00:00
Scott Long 61cb7a5b10 MFC rev 1.78 and 1.69 to fix a pontential adapter deadlock and potential
panic.

Approved by:	re (murray)
2003-09-17 05:24:58 +00:00
Bruce A. Mah edc5c39a2b MFC: SA-03:12.
Approved by:	re (implicitly)
2003-09-16 23:40:08 +00:00
Jacques Vidrine 00b4bf180b Update the OpenSSH addendum string for the buffer handling fix. 2003-09-16 14:33:04 +00:00
Jacques Vidrine a248c600fe MFC 1.1.1.7: Do not record expanded size before attempting to reallocate
associated memory.
2003-09-16 13:07:41 +00:00
Mike Silbersack 7dff622e5b MFC rev 1.115 (check for null return from M_PREPEND)
Approved by:	re
2003-09-16 05:43:56 +00:00
Luigi Rizzo 30c435164c MFC (almost) of 3 bugs reported recently:
+ fix aligmnent issues on 64-bit architectures (1.40);
 + better argument checking when enabling/disabling ipfw-related
   sysctl variables (1.39)
 + fix handling of foo/0 as an alias for "any";

Approved by: re@
2003-09-15 10:27:03 +00:00
Yaroslav Tykhiy 2e2c1f3145 MFC rev. 1.21: Update the explanation of parity capabilities
to bring it into accord with the present getty(8) code.

Approved by:	re (bmah)
2003-09-15 08:39:53 +00:00
Ceri Davies 2eec0d2c07 MFC r1.5:
Using prefix=/usr will put these files in /usr/gnats, not /usr/ports.
Approved by:	re (bmah)
2003-09-14 20:11:17 +00:00
Maxim Sobolev 8da04cce21 MFC: ftruncate64 syscall.
Requested by:	yar
Approved by:	re
2003-09-14 16:25:23 +00:00
Mike Silbersack dad49b55e4 MFC mbuf_stress_test Mark II.
Approved by:	re (murray)
2003-09-13 05:52:47 +00:00
Ceri Davies 081cda731b MFC:
Add the ports/dns and ports/polish categories.

	  Revision  Changes    Path
	  1.37      +2 -0      src/share/examples/cvsup/cvs-supfile
	  1.27      +2 -0      src/share/examples/cvsup/ports-supfile
	  1.10      +1 -0      src/share/examples/cvsup/refuse
	  1.9       +2 -1      src/share/examples/cvsup/refuse.README

Approved by:	re (jhb)
2003-09-12 19:01:13 +00:00
Ruslan Ermilov 69a5c55c56 MFC: Fix Russian KOI8-R support.
Approved by:	re (murray)
2003-09-10 08:30:47 +00:00
David E. O'Brien 198bc7977f Back out revision 1.9.2.1 ("LOGIN_NAME_MAX" MFC), breaking lukemftpd and
dissapointing our users.

Requested by:	bde, wollman, murry
2003-09-10 08:11:54 +00:00
Kenneth D. Merry 7606d9e6af MFC: Move dynamic sysctl(8) variable creation for the cd(4) and da(4)
drivers out of cdregister() and daregister(), which are run from interrupt
context.

Files/revisions merged:

scsi_da.c:		1.157, 1.158
scsi_cd.c:		1.81
subr_taskqueue.c:	1.17
taskqueue.h:		1.8
cd.4:			1.33
da.4:			1.42
cd.9:			1.18
not merged:		taskqueue.9 rev 1.7, 1.8 (not in RELENG_4)

This code is necessarily a little bit different than the version committed
to -current, mainly in the area of mutexes.  (Which become splfoo() in
-stable.)

The sysctl code does blocking mallocs (M_WAITOK), which causes problems
if malloc(9) actually needs to sleep.  (And causes a panic for people
running with INVARIANTS turned on.)

The eventual fix for this issue will involve moving the CAM probe process
inside a kernel thread.  For now, though, I have fixed the issue by moving
dynamic sysctl variable creation for these two drivers to a task queue
running in a kernel thread.

The existing task queue in -stable (taskqueue_swi) runs in software interrupt
handlers, which wouldn't fix the problem at hand.  So I have created a new
task queue, taskqueue_thread, that runs inside a kernel thread.

scsi_cd.c:	Remove sysctl variable creation code from cdregister(), and
		move it to a new function, cdsysctlinit().  Queue
		cdsysctlinit() to the taskqueue_thread taskqueue once we
		have fully registered the cd(4) driver instance.

scsi_da.c:	Remove sysctl variable creation code from daregister(), and
		move it to move it to a new function, dasysctlinit().
		Queue dasysctlinit() to the taskqueue_thread taskqueue once
		we have fully registered the da(4) instance.

taskqueue.h:	Declare the new taskqueue_thread taskqueue, update some
		comments.

subr_taskqueue.c:
		Create the new kernel thread taskqueue.

cd.4:		Update the cd(4) man page to talk about the minimum command
		size sysctl/loader tunable.  Also note that the changer
		variables are available as loader tunables as well.

da.4:		Update the da(4) man page to cover the retry_count,
		default_timeout and minimum_cmd_size sysctl variables/loader
		tunables.  Remove references to /dev/r???, they aren't used
		any longer.

cd.9:		Update the cd(9) man page to describe the CD_Q_10_BYTE_ONLY
		quirk.

Approved by:	re (scottl, murray)
2003-09-10 00:40:40 +00:00
John Baldwin d7c1171878 MFC: Add PCIR_BARS and PCIR_BAR(x) macros to aid in maintaining drivers
shared between HEAD and RELENG_4.

Approved by:	re
2003-09-09 23:14:53 +00:00
Ruslan Ermilov 28ab40c2dc Fix ``make includes''.
Submitted by:	Marius Strobl <[email protected]>
Approved by:	re (murray)
2003-09-09 20:17:28 +00:00
Bruce M Simpson de28d89963 MFC: Add the IP_ONESBCAST option, to enable undirected IP broadcasts to be
sent on specific interfaces. This is required by aodvd, and may in future
help us in getting rid of the requirement for BPF from our import of isc-dhcp.

PR:		kern/37486
Obtained from:	BSD/OS
Approved by:	re, jake (mentor)
2003-09-09 19:09:23 +00:00
cvs2svn 2ef28e9720 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-09-09 18:17:24 +00:00
David E. O'Brien 754b98800b MFC: rev 1.15: add the POSIX sanctioned "LOGIN_NAME_MAX"
Approved by:	murray
2003-09-09 02:55:32 +00:00
Pierre Beyssac be1ab45a10 Fix incorrect structure initialization introduced in 1.2.2.14.
PR:		kern/56467
Submitted by:	[email protected]
Approved by:	re
Pointy-hat-to: pb
2003-09-07 21:39:22 +00:00
John-Mark Gurney e45b4d1d0e MFC: rev1.6
This makes sure no tty is given to ipfw

Approved by:	re@
2003-09-07 18:55:43 +00:00
Doug Barton 3d838cec4d Inform users how to deal with sendmail.cf problems caused by the
mergemaster/sendmail chicken and egg problem.

Approved by:	re (murray)
2003-09-07 18:47:14 +00:00
Bruce A. Mah 88b8c3e8ca MFC: PIM, lukemftpd 20030105 snapshot.
8139C+/8169 support in rl(4) was removed.
2003-09-06 18:16:42 +00:00
Bruce A. Mah 29d6134e2a Partial sync with HEAD.
isp.4	1.13->1.16

Approved by:	re (implicitly)
2003-09-06 17:48:39 +00:00
David Greenman 96c7aa5626 Fixed panics that will occur during attempts to rescan ATA disk devices
(which occur after disk errors). The panic is due to attempts to acquire
the ATA channel lock multiple times (at different levels), with the second
attempt trying to sleep in an interrupt context. The fix is to indicate
to the other levels that we already have the lock.
The problem has been fixed in -current a different way and isn't portable
to -stable.

Reviewed by:	[email protected]
Approved by:	[email protected]
2003-09-05 18:27:39 +00:00
Luoqi Chen e15f945eff MFC: ata driver bus dma code.
Eyeballed by:	sos
Approved by:	re
2003-09-05 07:29:10 +00:00
Gregory Neil Shapiro 55f2eed346 MFC: Build the submit.cf file instead of installing the version that ships
with the vendor sendmail distribution.  By doing so, we avoid mergemaster
     warnings after every 'make' in /etc/mail/.

     Revision  Changes    Path
     1.28      +11 -4     src/etc/sendmail/Makefile

Approved by:	re (murray)
2003-09-05 01:12:28 +00:00
Ceri Davies 64636ca5b6 MFC revision 1.65:
Add a note that the -u option can be overridden by settings in
	login.conf(5).

Approved by:	re (murray)
2003-09-04 18:13:18 +00:00
Mike Silbersack b1753d5aa9 Update comment about 4.x's vm bug: it's fixed now.
Approved by:	re (murray)
2003-09-04 05:06:58 +00:00
Prafulla Deuskar 338c132f59 MFC:
Add support for new devices.
  Bug Fixes:
          - Allow users to use LAA
          - Remember promiscuous mode settings while bridging
          - Allow gratuitous arp's to be sent

PR:	52966/54488
Approved by:	re (murray)
2003-09-03 16:36:46 +00:00
Peter Pentchev 9584cb7c55 MFC rev. 1.59:
Clarify the order of arguments passed to the pre-/post-install script
in the description of the pkg_create -i command-line option.

Approved by:	re (bmah)
2003-09-03 08:23:56 +00:00
Simon L. B. Nielsen b8925a62a2 MFC v. 1.3 of my(4).
Approved by:	re (bmah/murray)
2003-09-02 18:27:09 +00:00
Josef Karthauser 6e085fa180 Regen 2003-09-02 14:35:57 +00:00
Josef Karthauser ad79c4d167 MFC: Add support for the following Palm devices:
Handspring Treo
	Palm I705
	Palm M130
	Palm Tungsten T
	Palm Tungsten Z
	Palm Zire
	Sony Clie NX60
	Sony Clie S360
2003-09-02 14:35:17 +00:00
Dag-Erling Smørgrav e3a75c8f65 MFC: (1.89) don't fclose() a bogus FILE *.
PR:		bin/55950
Submitted by:	Andre Albsmeier <[email protected]>
Approved by:	re (murray)
2003-09-02 10:09:35 +00:00
Scott Long 8acef55d08 Move the pst module to the i386-only section. It has no prayer of being
64-bit clean at the moment.
2003-09-02 05:37:12 +00:00
Scott Long 712006dce9 Remove the include of <pci.h> from here.
Submitted by: [email protected]
2003-09-01 16:21:57 +00:00
Scott Long 9bcab0ad1e Pull the ida module out onto the second floppy. 2003-09-01 07:02:46 +00:00
Scott Long cce3bfe9d1 Build the ida module. 2003-09-01 06:59:34 +00:00
Scott Long 86a3a47a6f Add glue to make the ida(4) driver be a module. This is complicated by
the existance of the EISA attachment.  Since the EISA bus methods are
not DEVMETHODs, and thus can cause link failures if the eisa bus is not
compiled into the system, make the compiling of the EISA attachment be
optional.  This is going into RELENG_4 first since it is needed to make
the install floppies fit, and does not represent the real solution that
should be attempted for HEAD.
2003-09-01 06:59:02 +00:00
Wilko Bulte 038a553587 remove mpt(4) so that the bootfloppy no longer overflows.
Approved by: re (scottl)
2003-09-01 05:30:52 +00:00
Scott Long 8135491575 Take mly out of the second floppy and put pst in it's place. Things might
not yet fit, but it's close.  The CAM underpinnings of mly make it
impossible to put on the second floppy.

Approved by: re
2003-09-01 04:38:22 +00:00
Scott Long 590fe0ac4c Compile the pst module.
Approved by: re
2003-09-01 04:36:47 +00:00
Scott Long 3c6b15530f Add the module glue for the pst(4) driver.
Approved by: re
2003-09-01 04:35:22 +00:00
Scott Long a390ba341f Remove the p1003_1b extensions from the BOOTMFS kernel.
Approved by: re
2003-09-01 04:22:41 +00:00
cvs2svn 2c6dc5ae5f This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-08-31 19:37:49 +00:00
Nate Lawson f20690f0e4 MFC two device ids (ICH4 and ICH5).
Approved by:	re (murray)
2003-08-31 19:22:10 +00:00
Wilko Bulte 74d541333d alpha does not have apm, not in GENERIC either. So dokern.sh has
no business trying to remove it.

Approved by: re (scottl)
2003-08-31 18:21:27 +00:00
Wilko Bulte 82b7e6007f esp(4) has been declared dead on Alpha for a long time now. Bury the remains.
Approved by: re (scottl)
2003-08-31 17:17:13 +00:00
Wilko Bulte ae697d874f Onboard Adaptec SCSI HBAs are bootable on UP2000.
Obtained from: obrien
Approved by: re (bmah)
2003-08-31 12:26:31 +00:00
Luoqi Chen 99915acc7d More vm_offset_t -> vm_paddr_t conversions in kernel dump related code.
This is functionally a no-op. If you have 4G or more memory, most likely
you will still have problem with dumping since PCI device windows are
not currently excluded.

Approved by:	re
2003-08-31 00:16:28 +00:00
Bill Paul 4a1545a6fb Back out the changes for the 8139C+/8169 chips. One user has reported a
problem trying to use a regular 8139 NIC (D-Link DFE-538+/8139D chip)
on a machine with 1.2GB of RAM. A NIC with exactly the same chip rev
works in my test box without any problems. I suspect a strange busdma
interaction, but there's not enough time for me to properly debug/fix
it before the release is cut, and breaking 8139D support is a regression.

Eventually, I plan to put the 8139C+/8169 support in a separate driver
anyway.

Approved by:	[email protected]
2003-08-30 17:51:09 +00:00
Tor Egge 7b51a9051b Avoid conflict between temporary page table mappings performed by
interrupts and temporary page table mappings performed outside
interrupt context without splvm() protection.  Interrupt time async
completion callbacks for pageout operations triggered this conflict.

Approved by:	re (murray)
2003-08-30 15:39:08 +00:00
Wilko Bulte 0a8f527aeb update UP2000 section with info gleaned from obrien's newly acquired
UP2000 dual 750MHz machine.

Approved by: re (bmah)
2003-08-30 12:01:36 +00:00
Mike Silbersack bb20651f7e Update the status of -stable's ability again, I jumped the gun
with my last entry. :(
2003-08-29 04:38:28 +00:00
David E. O'Brien ff0ec8acc0 MFC: sync with NetBSD -- sl_add() now returns an int.
Approved by:	murray
2003-08-28 22:13:04 +00:00
Pierre Beyssac 49edcb48dc MFC 1.23: Add support for the newer Moxa PCI 8-port, 16550-compatible
based CP-168U board. It initializes and attaches in the same way
as the older (but higher performance) C168H. The only difference
is the board ID, which is 0x1681.

PR:		kern/53548
Submitted by:	[email protected]
Approved by:	re
2003-08-28 19:53:20 +00:00
Bruce A. Mah bd50576a9f New errata: SA-03:11, dc(4) bugfix.
Approved by:	re (implicitly)
2003-08-28 15:09:40 +00:00
Bruce A. Mah 789644cbfa New release notes: SA-03:11, dc(4) bugfix.
Approved by:	re (implicitly)
2003-08-28 15:08:58 +00:00
Murray Stokely 21f6be28d6 Move Mylex driver to the mfsroot floppy, to avoid boot floppy overflow. 2003-08-28 10:28:10 +00:00
Kelly Yancey de58aa68b0 MFC revision 1.22: When size is 1 should just null terminate the string.
This fix has the side effect of making vsnprintf() properly return the
length of the string that would have been created if the buffer were
infinite length when the passed size is 1.  Previously, it would
erroniously return 0 which causes auto-extending sbufs to misbehave in
userland apps linked against libsbuf.

Approved by:	re (jhb)
2003-08-27 18:20:57 +00:00
Martin Blapp 59a9f27304 MFC: rev. 1.63 and rev. 1.123
Do it right this time. All davicom cards need DC_TX_ALIGN.

Avoid an unnecessary copy of a packet if it is already in a single mbuf.
Introduce an additional device flag for those NICs which require the
transmit buffers to be aligned to 32-bit boundaries.

Approved by:		murray (re)
2003-08-27 13:40:36 +00:00
Martin Blapp bcfbc444c5 Back this out by request.
DC_TX_ALIGN is not defined in stable. I'll have to solve this differently.
2003-08-27 12:49:13 +00:00
Martin Blapp ef469efd19 MFC: All davicom cards seem to need DC_TX_ALIGN.
Approved by:	murray (re)
2003-08-27 08:29:32 +00:00
Michael Reifenberger 1f3b1fafb9 MFC optional (default off) compile-time support for openldap in heimdal.
Support is enabled by setting WITH_OPENLDAP.

Approved by:	re
2003-08-27 08:22:00 +00:00
Stephen McKay a0fb2afc22 almost-MFC: Søren and I have made a minimal 4.x variant of the bits in
current (ata-chipset.c:1.32) that properly support the SiI 0680 chip.
Prior to this, heavy load on both channels at once would cause command
timeouts and sometimes data corruption.

Submitted by: sos
Approved by: re (murray) and sos
2003-08-26 11:32:57 +00:00
Mike Silbersack 9789c0a544 Update note about 4.x breakage to note that the problem has been fixed,
noting the dates during which it was broken.
2003-08-26 05:47:54 +00:00
Luoqi Chen 44c769890e Fix a race where a wrong page mapping might be removed. 2003-08-26 05:35:00 +00:00
Mike Silbersack 6f4cd4df6f Add a warning about -stable's stability at the moment. 2003-08-25 21:52:08 +00:00
Murray Stokely 0cb5288161 Update for 4.9-PRERELEASE.
Approved by:	re
2003-08-25 21:17:57 +00:00
Murray Stokely f3374e691e Welcome to 4.9-PRERELEASE.
Approved by:	re (murray)
2003-08-25 21:13:32 +00:00
Doug Barton 63f8f84529 MFC of version 8.3.6 import 2003-08-25 21:07:53 +00:00
Doug Barton 225c270e4b MFC 1.15, build named-xfer static to aid in chroot'ing 2003-08-25 20:40:41 +00:00
Doug Barton 453658f063 MFC 1.8, SYNOPSIS for heap.3 2003-08-25 20:37:27 +00:00
Nate Lawson 261051d3cd MFC 1.8 and 1.9: Add information about maintaining a local CVS branch. 2003-08-25 19:10:45 +00:00
Nate Lawson 08a80c797e Sort quirks. MFC IntelligentStick quirk. At this point, all da(4) quirks
are the same for -current and -stable.

Also, temporarily re-enable all USB floppy quirks for 4.9R.  Although I
received no input whether or not these devices work without the quirks,
installs often depend on USB floppies and it is unacceptable for them to
be broken for a release.  They will be disabled again after the release.
2003-08-25 18:28:28 +00:00
Nate Lawson acbcee657c Remove all USB 6-byte quirks as the da(4) driver no longer generates
6-byte commands for umass(4) devices.
2003-08-25 18:08:38 +00:00
Nate Lawson 40fbc89575 MFC i-Bead mp3 player quirks: usbdevs:1.135, umass.c:1.90 2003-08-25 17:51:07 +00:00
Nate Lawson c356194bfc MFC USB device quirks: rev 1.152, 1.153, 1.154 2003-08-25 17:49:55 +00:00
Gregory Neil Shapiro 9dd8e8bd72 MFC: Revert revision 1.25 now that mergemaster does a 'make all' to build
the required .cf file(s).

     Revision  Changes    Path
     1.27      +1 -1      src/etc/sendmail/Makefile
2003-08-25 16:42:23 +00:00
Doug Barton df35bd66f4 MFC most of 1.4[467], the preserve replaced files option,
and the fix for the build target
2003-08-25 08:27:41 +00:00
Doug Barton 1caed59a0c MFC 1.28, docs for the -P (preserve replaced files) option,
and why not to merge files you didn't modify
2003-08-25 08:24:35 +00:00
Doug Barton 4dab37bb93 MFC 1.8 - style.Makefile(5),
1.9 - MAINTAINER goes into src/MAINTAINERS in HEAD
2003-08-25 08:11:28 +00:00
Jeffrey Hsu d0a0e351aa Merge from -current support for Protocol Independent Multicast.
Submitted by:	Pavlin Radoslavov <[email protected]>
2003-08-24 21:37:34 +00:00
Garrett Wollman 7f76557fe8 Delete some merge conflict markers that somehow snuck in here.
Noticed by:	[email protected]
2003-08-24 21:29:40 +00:00
Hajimu UMEMOTO 4a786413f5 MFC:
- added the case of 802.11 to check link status.
  - use strncpy just in case.
  - __P() cleanup.
  - improved the -a option.  it can probe a interface automatically when
    the interface wake up.  it can be started anytime even when there is
    no network interface on the list of intarfaces in the kernel.
  - get a correct link ID for each interface at initialization
    (using scope libraries if HAVE_SCOPELIB is defined).
  - fill in sin6_scope_id correctly before sendmsg().

	usr.sbin/rtsold/if.c:		1.10
	usr.sbin/rtsold/probe.c:	1.10
	usr.sbin/rtsold/rtsol.c:	1.10
	usr.sbin/rtsold/rtsold.8:	1.12
	usr.sbin/rtsold/rtsold.c:	1.15
	usr.sbin/rtsold/rtsold.h:	1.7
2003-08-24 18:34:25 +00:00
David E. O'Brien 81f976916d MFC: LukeM's ftpd taken from the NetBSD CVS repo on 5-Jan-2003. 2003-08-24 17:46:49 +00:00
Jeffrey Hsu 35e7ba909c Merge from -current support for Protocol Independent Multicast.
Submitted by:	Pavlin Radoslavov <[email protected]>
2003-08-24 17:04:44 +00:00
Simon L. B. Nielsen b6068b687b MFC: 1.16
Add the SmartBridges SmartLink to the list of supported devices.
2003-08-24 15:14:43 +00:00
Simon L. B. Nielsen a7d3b5d4ef MFC: 1.24
Catch up fe(4) with the hardware notes.
2003-08-24 15:07:40 +00:00
Simon L. B. Nielsen f4e19716c0 MFC: 1.23
Catch up ep(4) with the hardware notes.
2003-08-24 15:00:05 +00:00
Simon L. B. Nielsen 0f99b88aea MFC: 1.17+1.19
Ispell sweep of share/man/man4.

Add VT6105/VT6105M Rhine III to the list of supported chips.
Change the manual page title to use the device family name (Rhine),
since the list of supported device id's won't fit on one line anymore.
2003-08-24 14:32:55 +00:00
Simon L. B. Nielsen b90e1e67d0 MFC: 1.172
Correct the device id's for the VIA Rhine III chips supported by the
vr(4) driver: VT86C105/VT86C105M -> VT6105/VT6105M.
2003-08-24 10:46:25 +00:00
Jeffrey Hsu 86f68b0a16 Merge from -current. Remove redundant bzero.
Submitted by:	Pavlin Radoslavov <[email protected]>
2003-08-24 09:12:08 +00:00
Jeffrey Hsu 17999ae8af Merge from -current support for Protocol Independent Multicast.
Submitted by:	Pavlin Radoslavov <[email protected]>
CVg:
2003-08-24 09:04:19 +00:00
Jeffrey Hsu 3c9ffa9f43 Merge from -current support for Protocol Independent Multicast.
Submitted by:   Pavlin Radoslavov <[email protected]>
2003-08-24 08:24:39 +00:00
Garance A Drosehn e9b2de647b MFC 1.9+1.10: Add a PCI ID for the Apollo Pro 133A. & Sort the list
of PCI ID's in numerical order and fix a whitespace bogon in one.

PR:		kern/46983
Submitted by:	David Holm for AP 133A
2003-08-24 06:16:53 +00:00
Garance A Drosehn a02f6cc0b7 MFC 1.6: Add pci id# for the sis648 2003-08-24 06:15:40 +00:00
Garance A Drosehn 728d5fe74e MFC 1.17: Add PCI IDs for the i82855 and i82875P AGP bridges.
PR:		i386/53136, i386/51802
Submitted by:	Kyunghwan Kim, Norikatsu Shigemura
2003-08-24 06:15:01 +00:00
Garance A Drosehn 6f1a334be5 MFC *: Minimal update to make it easier to recompile lpd so that it
will use a larger buffer-size for reading/writing spool files.  This
update doesn't change the size which is used, it only makes the size
easier to change for someone willing to recompile lpd.

[* = 1.61 printjob.c, 1.31 recvjob.c]

Submitted by:	John-Mark Gurney
2003-08-24 04:20:37 +00:00
Garance A Drosehn aa19ee96e9 MFC 1.72: Fix a bug in how the 'user:group' fields in newsyslog.conf
were checked.  FreeBSD's newsyslog was treating a username with leading
digits, such as '3com', as the uid matching those digits.

Obtained from:	OpenBSD
2003-08-24 04:04:45 +00:00
Kenneth D. Merry 403611e3cc MFC: Fix ATAPI/USB/Firewire CDROM drive handling in cd(4) and hopefully
fix a number of related problems along the way.

Files/revisions merged:

scsi_cd.c:	1.72, 1.77, 1.80
scsi_all.c:	1.39 (partial)
scsi_all.h:	1.22
scsi_cd.h:	1.7
scsi_da.c:	1.139
atapi-cam.c:	1.13
not merged:	umass.c rev 1.76 (doesn't apply to -stable)

Because of the differences between -current and -stable, some of these
changes are not identical to the ones in -current.

Most notably, cd(4) in -stable uses the slice code, whereas cd(4) in
-current has no disklabel support at all.  So there is extra code in the
-stable version of these patches to handle that.

 - Automatically detect CDROM drives that can't handle 6 byte mode
   sense and mode select, and adjust our command size accordingly.
   We have to handle this in the cd(4) driver (where the buffers are
   allocated), since the parameter list length is different for the
   6 and 10 byte mode sense commands.

 - Remove MODE_SENSE and MODE_SELECT translation in ATAPICAM, since
   there's no way for that to work properly.

 - Merge support for sending a path inquiry CCB to see if the SIM has set
   the PIM_NO_6_BYTE flag. (scsi_cd.c rev 1.80)

 - Add a quirk entry for CDROM drives that just hang when they get a 6
   byte mode sense or mode select.  The reason for the quirk must be
   documented in a PR, and all quirks must be approved by
   [email protected].  This is to make sure that we fully understand why
   each quirk is needed.  In most cases, the PIM_NO_6_BYTE flag set by the
   SIM driver should eliminate the need for a quirk.

 - Change the way the da(4) handles the no_6_byte sysctl.  There is
   now a per-drive sysctl to set the minimum command size for that
   particular disk.  (Since you could have multiple disks with
   multiple requirements in one system.)

 - Loader tunable support for all the sysctls in the da(4) and cd(4)
   drivers.

 - Add a CDIOCCLOSE ioctl for cd(4) (bde pointed this out a long
   time ago).

 - Add a media validation routine (cdcheckmedia()) to the cd(4)
   driver, to fix some problems bde pointed out a long time ago.  For
   -stable, open() will still fail if there is no media in the drive.  This
   is because of issues with the slice code handling media changing
   underneath it.  If bde and I can get those issues worked out, there is
   basic code in this set of patches to handle allowing the CDIOCCLOSE and
   CDIOCEJECT ioctls without media in the drive.

 - The media validation routine also reads the table of contents off
   the drive.  We use the table of contents to implement the
   CDIOCPLAYTRACKS ioctl using the PLAY AUDIO MSF command.  The
   PLAY AUDIO TRACK INDEX command that we previously used was
   deprecated after SCSI-2.  It works in every SCSI CDROM I've tried,
   but doesn't seem to work on ATAPI CDROM drives.  We still use the
   play audio track index command if we don't have a valid TOC, but
   I suppose it'll fail anyway in that case.

 - Add _len() versions of scsi_mode_sense() and scsi_mode_select() so
   that we can specify the minimum command length.

Approved by:	re
2003-08-24 03:26:38 +00:00
Tor Egge 455d423711 MFC: Use vm_page_hold() instead of vm_page_wire().
PR:		44950
2003-08-23 19:51:11 +00:00
John W. De Boskey 5806d6f704 MFC: 1.7 2003-08-23 16:19:36 +00:00
Hiroki Sato 2414aca445 Remove a redundant item. 2003-08-23 05:06:44 +00:00
Bruce A. Mah 2fcee39680 New release note: proatm driver.
MFC:  systat(1) IPv6, ACPI 20030228, pkg_create(1) -C.
2003-08-22 22:27:34 +00:00
Warner Losh eecc708586 MFC: Fixes to make leap seconds work better. Now leap seconds will
happen at the end of the day.  This is much better than we had before.
However, in reviewing the current code, it appears that some bugs in
extreme cases may exist in this version.  Unless you setting the time
of your system by a small amount in the actual leapsecond, or have an
extremely loaded machine, you are unlikely to encounter problems.  A
more complete fix may follow after the 4.9 release.
2003-08-22 22:11:36 +00:00
John Baldwin 885acba12c MFC: Build glue for the ACPI driver. To include this driver in a custom
kernel, add 'device acpica' to your kernel config.  Due to the way
config(8) works in -stable, I was unable to use 'device acpi' to enable
compilation of this driver.  Note that there is no kernel module, you
must compile ACPI into your kernel as a static driver.

Sponsored by:	The Weather Channel
2003-08-22 20:52:48 +00:00
John Baldwin 3cee71b58a MFC: FreeBSD OSPM ACPI driver. Note that this driver does not include
support for PCI interrupt routing or enumeration of ISA bridges or
Host to PCI bridges.  While functional on some machines, this driver
should be considered experimental and should be tested prior to being
deployed in a production environment.

Sponsored by:	The Weather Channel
2003-08-22 20:49:21 +00:00
John Baldwin 7668e2db31 MFC: Intel ACPI 20030228 distribution with local FreeBSD changes.
Sponsored by:	The Weather Channel
2003-08-22 20:46:13 +00:00
Hajimu UMEMOTO ba7533d4bc MFC:
- logged the fact to dump the status.
  - dump the content of route information options
  - set LOG_PERROR for openlog() when running foreground.
  - variable shared with signal handler needs to be "volatile sig_atomic_t".
  - use arc4random.
  - supported a string notation for xxflags.
  - deprecate routes#N, as it is hard to keep consistency with
    rtprefixN.  accept any number of "rtprefix", "rtrefix0",
    ..., "rtprefix99".
  - deprecate "addrs#N", as it is difficult for users to keep
    consistency with "addrN".
    accept 100 prefix info in maximum - like "addr", "addr0"
    ... "addr99".  WARNS=2 clean on netbsd.
    old configuration file should work just fine.
    behavior change:
    previously, we rejected "addrN" if there's "addr", and we rejected
    "addr" if there is "addrN".  now we accept both without problem.
  - when an advertised prefix configured from the kernel has been added
    or invalidated, notice the change in a short delay.
  - when invalidating a prefix, do not bark even if there is
    inconsistency about prefix lifetimes.
  - wrap more specific route info code into ROUTEINFO.

	usr.sbin/rtadvd/Makefile:	1.7, 1.8
	usr.sbin/rtadvd/config.c:	1.23
	usr.sbin/rtadvd/config.h:	1.6
	usr.sbin/rtadvd/dump.c:		1.10 - 1.12
	usr.sbin/rtadvd/rtadvd.8:	1.14
	usr.sbin/rtadvd/rtadvd.c:	1.20 - 1.23
	usr.sbin/rtadvd/rtadvd.conf.5:	1.12
	usr.sbin/rtadvd/rtadvd.conf:	1.4
	usr.sbin/rtadvd/rtadvd.h:	1.9
2003-08-22 18:54:22 +00:00
Bruce A. Mah 693c1e14ac New release note: sbsh(4).
Modified release note:  Fix up da(4) quirks note to match reality (as
told by nate and interpreted by myself, any errors are my fault).
2003-08-22 17:29:18 +00:00
Bruce A. Mah e3ae8572da Add (somewhat belated) entry for sbsh(4) devices. 2003-08-22 17:27:36 +00:00
Hartmut Brandt 47796f76d4 MFC 1.6 (partly): MFC the one functional change in that commit, that
allows more than two parameters to IP PVCs. This is needed to specify
traffic options.
2003-08-22 14:52:06 +00:00
Hartmut Brandt 3bfa939356 MFC: Implement CBR traffic shaping for the Fore adapters. This is controled
by the sysctl hw.fore.hfaN.shape, which can be set to 0 (don't shape),
1 (shape at most one channel) and 2 (try to shape all channels). This
works only with firmware version > 4, which is the default now.

Submitted by:	Vincent Jardin <[email protected]>
2003-08-22 14:49:24 +00:00
Hartmut Brandt 17ae688d8c For some reason the hfa driver behaves differently between current and
stable when loaded with 4.X.Y firmware. This difference manifests itself
in the card returning receive buffer chains that start with a large buffer
under certain circumstances. This uncovered an inherent bug in the
mbuf handling of the atm stack: the driver prefixes 8 bytes to the mbuf
that contain a function address to dispatch this buffer to and a cookie
for this function. When the driver finds, that it has no space at the
head of the mbuf chain, it allocates a new packet header mbuf and
prepends it to the chain and moves the header to the new mbuf.

atm_intr() strips the additional 8 bytes from the mbuf chain and, if it
finds the first mbuf to become empty, removes that mbuf from the chain, but
does not care to move the header to the next mbuf. Here the packet
header is lost.

Work around:

1. Allocate all large buffers for the Fore card with a packet header.
2. When prefixing the new mbuf to the chain, don't move the packet header,
   but initialize it with the correct values. This results in an mbuf
   chain with two packet headers. When atm_intr strips the first mbuf,
   everything is ok.

It would probably be better to fix the problem instead of working around it,
but this could break other drivers (hea and proatm).
2003-08-22 10:32:20 +00:00
Dag-Erling Smørgrav eabfae4914 MFC: (1.88) 125 and 150 are equally valid responses to RETR; accept both.
PR:		misc/42172
2003-08-22 09:22:50 +00:00
Hidetoshi Shimokawa 48ef3b1d83 Sync with -current:
- Allow access to phy registers via ioctl(2)(fwdev).
- Drop too short packets(if_fwe).
- Fill reserved fields of transmitting packet hear with zero(fwohci).
- Include order bit in sdev->type(sbp)
2003-08-22 07:46:58 +00:00
Nate Lawson bf87a59b02 MFC rev 1.133: Fix a panic on boot if FAST_IPSEC and crypto support
are enabled.  Original fix by iedowse@.

PR:	kern/49110
2003-08-22 06:59:11 +00:00
cvs2svn 19e6f659e1 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-08-22 06:06:17 +00:00
John-Mark Gurney b08280f6a2 MFC: add support for using kqueue to watch bpf sockets.
v1.33 lib/libc/sys/kqueue.2
v1.113 sys/net/bpf.c
v1.23 sys/net/bpfdesc.h

Submitted by:	Brian Buchanan of nCircle
2003-08-21 23:50:54 +00:00
Bruce A. Mah d6bf7a8534 New release note: rl(4) 8139C+ and 8169 support. 2003-08-21 17:52:37 +00:00
Mike Makonnen 853b3b5c63 Properly MFC amaharic locale mtree changes that oliver@ tried to
fix for me.
Pointy hat to myself for not doing a 'cvs status' on my tree-- again.
2003-08-21 17:34:43 +00:00
Hajimu UMEMOTO 36b4979fe0 MFC:
- decreased too-strong log levels.
  - avoid fd_set overrun.
  - signal handler must take "int" arg.
  - rename some variables.
  - remove unused block.
  - daemon() has to be called prior to file descriptor setups
    (otherwise file descriptors could be closed mistakenly)
  - support poll(2).

	src/sbin/rtsol/Makefile:	1.6
	src/usr.sbin/rtadvd/Makefile:	1.6
	src/usr.sbin/rtadvd/rtadvd.c:	1.15 - 1.19
	src/usr.sbin/rtsold/Makefile:	1.11
	src/usr.sbin/rtsold/rtsol.c:	1.9
	src/usr.sbin/rtsold/rtsold.c:	1.11 - 1.14
2003-08-21 17:01:40 +00:00
Murray Stokely 16c8aa7763 MFC: r1.71-1.73 - Add FreeBSD 5.1, BSD/OS 5.0, NetBSD 1.6.1, and
OpenBSD 3.3.
2003-08-21 16:56:47 +00:00
Ollivier Robert e3005e89a6 Fix makeworld, forgotten entry for the recently MFC'd locale change.
Submitted by:	mich
2003-08-21 15:08:05 +00:00
Simon L. B. Nielsen f64864099f MFC 1.17+1.18:
Add to the list of AMR cards.

Add the Dell PERC 3/DCL to the list of supported devices.
2003-08-21 13:41:22 +00:00
Mike Makonnen a3efe4c4af MFC: Support for the Amharic locale. 2003-08-20 23:37:49 +00:00
cvs2svn dea143cd6c This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-08-20 22:35:56 +00:00
Hartmut Brandt 65a54f0ccb MFC: Make firmware version 4.1.12 the default for download to PCA-200E
adapters. The old firmware (3.0.1) can still be used by specifying the
'-3' option to fore_dnld.

Document the -r option that resets the adapter before the download.

The newer firmware version allows traffic shaping.
2003-08-20 11:15:42 +00:00
Hartmut Brandt 48a4aa4d40 MFC fore_aali.h:1.4, fore_command.c:1.15, fore_init.c:1.14,
fore_intr.c:1.10, fore_var.h:1.8: Make the driver to work with
firmware version 4.1.12 (other 4.X.Y should also do it).
Three problems have been encountered:

1. The initialisation command does not work in interrupt mode. Whether this
   is a firmware bug or a feature is not clear. The original Fore drivers
   execute the initialize command always in polling mode, so it appears
   that this behaviour is expected. When we detect a 4.X.Y firmware do
   busy wait on the command status.

2. The command code of the GET_PROM has changed. This is an unofficial
   command anyway. What was GET_PROM in 3.X.Y is CLEAR_STATS in 4.X.Y
   (although unimplemented in the firmware). We need to use the correct
   code depending on the firmware.

3. The 4.X.Y can set the error flag in command status without also setting
   the completion flag (as the documentation says). Check both variants.

An additional field in the per-card structure fu_ft4 is TRUE when we have
detected a 4.X.Y firmware. Otherwise it is false. The behaviour of the
driver when using 3.X.Y should be identical to the previous behaviour .

This change will enable traffic shaping of CBR channels.
2003-08-20 11:05:28 +00:00
Hartmut Brandt d1a781decf MFC 1.9: Add the new arguments for the add pvc command to the help
information. Correct a comment.

Submitted by:	Vincent Jardin <[email protected]>
2003-08-20 10:53:58 +00:00
Warner Losh cf134de4a3 MFC: 1.52 properly increment time_tai as we flywheel through the leap
seconds.

# the other part of the leap second fix is harder to backport and will
# be done later, even though this was part of that fix in current.
2003-08-19 21:56:25 +00:00
Hajimu UMEMOTO d5755407ec MFC 1.22: malloc() may return NULL. 2003-08-19 14:36:10 +00:00
Hidetoshi Shimokawa 454f20498d Move firewire to MI section. 2003-08-19 09:05:47 +00:00
Mike Silbersack d689e5b3e9 Correct the calculation of mbutltop, it was way too large,
and could wrap and trip the mbuf junk pointer KASSERT.

Noticed by:	maxim
2003-08-19 06:13:13 +00:00
Murray Stokely 2459467f54 MFC: r1.45-46 : Add misc/bsdiff and security/freebsd-update to list of
desired packages for disc 1.
2003-08-19 05:49:19 +00:00
Yoshihiro Takahashi e4c87dde5e MFi386: revision 1.114.2.6 2003-08-19 05:15:42 +00:00
Yoshihiro Takahashi 4eff8168c7 MFi386: revision 1.1.4.1 2003-08-19 05:12:26 +00:00
Yoshihiro Takahashi e5b067a234 MFi386: revision 1.307.2.39 2003-08-19 05:10:15 +00:00
Orion Hodson 8f74c21551 Synchronize with HEAD revision 1.42. 2003-08-19 03:56:01 +00:00
John Baldwin 6c1f0852a7 MFC: Synch apm(4) code with current.
- Merge the power management subsystem for handling multiple power
  management drivers as well as power management events.
- Merge the pmtimer(4) driver to preserve the i386 clock chips across
  suspend and resume.
- Enhance the suspend and resume support for the AT PIC interrupt
  controller to match that of -current.
- Update the apm(4) driver to work with the above changes.

Discussed with:	re
2003-08-18 20:22:23 +00:00
Garance A Drosehn e4830289b8 MFC *: Use STDIN_FILENO, STDOUT_FILENO, and STDERR_FILENO in a few more
places (replacing constants 0, 1 & 2).

[* = 1.40 lpd.c, 1.60 printjob.c, 1.30 recvjob.c]

Noticed by:	David Hill
2003-08-18 18:27:45 +00:00
John Polstra 7f5d4ddc97 MFC 1.190: better device description strings. 2003-08-18 16:43:16 +00:00
Andrew Gallatin 7d60e1147d MFC: bus.h 1.11 and busdma_machdep 1.24 to get bus_dmamap_load_mbuf &
and bus_dmamap_load_uio into -stable.  Also MFC 1.20 while
     I'm here (teach bus_dmamem_free() about contigfree()).

The resulting kernel builds and boots, but I don't have any
if_xl or if_rl devices in my -stable alpha to test with.
The resulting code looks just like -current (which is well tested),
so I don't anticipate problems.
2003-08-18 16:07:51 +00:00
Orion Hodson 4036089973 MFC revision 1.32: ICH4 and ICH5 to operation in non-legacy mode.
MFC revision 1.31: ICH5 support.

MFC revision 1.30: Device name string sanitizations.
2003-08-18 15:41:01 +00:00
Orion Hodson f641225bea MFC revision 1.3: Switch from legacy to native mode for ICH4 and ICH5. 2003-08-18 15:39:19 +00:00
Hajimu UMEMOTO f5e3e38838 MFC:
- use int64_t instead of long long.
  - use strlcpy() and snprintf().
  - reduce #ifdef.

	usr.sbin/rtadvd/advcap.c:	1.9, 1.10
	usr.sbin/rtadvd/advcap.h:	1.5
	usr.sbin/rtadvd/config.c:	1.19 - 1.21
	usr.sbin/rtadvd/dump.c:		1.8, 1.9
	usr.sbin/rtadvd/if.c:		1.9
	usr.sbin/rtadvd/if.h:		1.5
	usr.sbin/rtadvd/rrenum.c:	1.8
	usr.sbin/rtadvd/timer.c:	1.8
	usr.sbin/rtsold/dump.c:		1.8
	usr.sbin/rtsold/if.c:		1.9
	usr.sbin/rtsold/probe.c:	1.8, 1.9
	usr.sbin/rtsold/rtsold.c:	1.10
2003-08-18 07:56:10 +00:00
John-Mark Gurney 12464add44 MFC src/sys/kern/sys_pipe.c:1.147
if we got this far, we definately don't have an EBADF.  Return a more
  sane result of EPIPE.

  Reported by:    nCircle dev team
  MFC after:      3 day
2003-08-18 07:10:22 +00:00
Hidetoshi Shimokawa a5a5e2429f Sync with -current:
- Improve DMA channel allocation
- Some workarounds to detect memory map failure.
- Change device name convention.
- Disable T_RBC faking (sbp)
2003-08-18 03:52:42 +00:00
Robert Watson 5805856429 MFC src/usr.sbin/sysinstall/config.c:1.209
Relocate a call to enable inetd so that it is set regardless of
  whether the user chooses to edit inetd.conf.

  PR:     39311
  Reported by:    Martin Faxer <[email protected]>
2003-08-17 22:02:12 +00:00
Paul Saab 7590063dcb MFC: BGE_HCC_TX_MAX_COAL_BDS_INT is at offset 0x3C24, not 0x3C34 2003-08-17 19:15:10 +00:00
David Greenman a6aa0fd331 MFC 1.33: Removed check for st_rdev changing in -F case. 2003-08-17 10:08:07 +00:00
Bill Paul c4b07c679e Undo small portion of MFC: revert the rl_rxeof() function to its old
use of m_devget(). The m_devget() function in -stable doesn't work
like it does in -current.
2003-08-17 05:30:01 +00:00
Tim J. Robbins ca202d47a3 MFC: -n maxrec option for compatibility with System V.
PR:		54661
2003-08-17 03:55:37 +00:00
Christian Brueffer 763966d246 MFC: 1.52
Markup, spelling and punctuation fixes
2003-08-16 18:46:31 +00:00
Tom Rhodes da60118c5f MFC: Add a '-M mask' option so that users can have different
masks for files and directories.

Remove an extra ')' in the manual page.
2003-08-16 18:43:21 +00:00
Christian Brueffer c378fda74f MFC: 1.19
Markup, wording and capitalization fixes
2003-08-16 18:38:56 +00:00
Christian Brueffer 39d2384ee5 MFC: 1.14
Grammar and spelling fixes
2003-08-16 18:33:09 +00:00
Christian Brueffer 9625a5d9c2 MFC: 1.6
Fix typo
2003-08-16 18:20:43 +00:00
Bill Paul 8dec3a743e MFC: port all the support for the 8139C+ and 8169 chips to -stable. 2003-08-15 22:52:34 +00:00
Bruce A. Mah 4fa64db364 MFC: Add DAC960PDU to list of supported cards
PR:		55534
Submitted by:	Lukas Ertl <[email protected]>
2003-08-15 22:39:26 +00:00
Robert Watson fe0bbc0a57 MFC: w.c:1.55
Fix warning when calling w(1) when logged in via xdm/kdm.  This is
  really a problem with utmp/wtmp, but takes the same approach as who(1).

  Reviewed by:    knu (mentor), mini, silence on -audit
  Approved by:    knu (mentor), mini

Spotted in RELENG_4 by:	Eric S <[email protected]>
2003-08-15 21:58:14 +00:00
Robert Watson 07e8438c71 MFC: lprint.c:1.24, sprintf.c:1.22, util.c:1.21
If stat() on the terminal specified in utmp fails due to ENOENT, don't
  print a warning, and set the idletime variable for the entry to -1;
  then pick up the -1 later in sprint() and lprint() and ignore those
  idle times by printing just whitespace.  When third party applications,
  such as kdm, insert utmp entries, they sometimes use strings like ":0",
  which can't be stat()'d and currently result in warnings that are
  not helpful to the user.

Requested by:		Jonathan Chen <[email protected]>
2003-08-15 21:56:09 +00:00
Garrett Wollman 3f23dcad95 MFC ISO 3166-1 Newsletter V-8.
Obtained from: ISO 3166 Maintenance Agency
2003-08-15 21:10:58 +00:00
Bruce A. Mah b51206dd9f MFC: Catch up aha(4) manpage with hardware notes, delete a stray
comma.

	aha.4	1.18->1.19

PR:		55527
Submitted by:	Lukas Ertl <[email protected]>
2003-08-15 18:32:22 +00:00
Bruce A. Mah 31cec0a3a1 MFC: Eliminate mid-line hard sentence breaks. No content changes.
aha.4	1.17->1.18
2003-08-15 18:26:53 +00:00
David Malone 68331ceb93 MFC: ip6 and icmp6 pages for systat. 2003-08-15 15:09:52 +00:00
Hajimu UMEMOTO 7fc229d2f1 MFC: add rtsol_flags.
etc/defaults/rc.conf:	1.183
	etc/network.subr:	1.152
2003-08-15 09:19:01 +00:00
Hajimu UMEMOTO 162d1b3f07 MFC:
- __FUNCTION__ --> __func__
  - Process the "O bit."
    If the value of OtherConfigFlag changes from FALSE to TRUE, the
    host should invoke the stateful autoconfiguration protocol,
    requesting information.
    [RFC 2462 Section 5.5.3]
  - stop use of register.
  - KNF, correct typos and cleanup spaces.
  - drop the code for the environment where getifaddrs(3) is not
    supported.
  - Drop MIP6 code.  We don't support MIP6 yet.

	usr.sbin/rtadvd/advcap.c:	1.6 - 1.8
	usr.sbin/rtadvd/config.c:	1.16 - 1.18
	usr.sbin/rtadvd/dump.c:		1.5 - 1.7
	usr.sbin/rtadvd/if.c:		1.7, 1.8
	usr.sbin/rtadvd/rrenum.c:	1.6, 1.7
	usr.sbin/rtadvd/rtadvd.c:	1.12 - 1.14
	usr.sbin/rtadvd/rtadvd.h:	1.7, 1.8
	usr.sbin/rtadvd/timer.c:	1.6, 1.7
	usr.sbin/rtadvd/timer.h:	1.6
	usr.sbin/rtsold/Makefile:	1.10
	usr.sbin/rtsold/dump.c:		1.5 - 1.7
	usr.sbin/rtsold/if.c:		1.6 - 1.8
	usr.sbin/rtsold/probe.c:	1.6, 1.7
	usr.sbin/rtsold/rtsock.c:	1.2
	usr.sbin/rtsold/rtsol.c:	1.6 - 1.8
	usr.sbin/rtsold/rtsold.8:	1.11
	usr.sbin/rtsold/rtsold.c:	1.6 - 1.9
	usr.sbin/rtsold/rtsold.h:	1.5, 1.6
2003-08-15 09:05:12 +00:00
Murray Stokely efc5ad383d MFC: r1.25 - Alfred Hitchcock's birthday. 2003-08-15 07:07:42 +00:00
Ruslan Ermilov f6ac755dec MFC: revs. 1.22-1.24 (except for lchflags(2)). 2003-08-14 14:07:13 +00:00
John Birrell 7047de0162 MFC: 1.31
Allow ports up to 0x1000 in the pccard.conf

Approved by:	imp
2003-08-14 03:46:22 +00:00
Josef Karthauser 14a7427a98 MFC: revision 1.15
Install a bandaid that allows us to synchronise, but at the expense
of speed.
2003-08-14 00:22:08 +00:00
Ceri Davies 4fbf633a2a Reduce diffs with -HEAD. 2003-08-13 21:40:36 +00:00
Luoqi Chen 8995d61367 Add opt_ddb.h to source list. It is included when DIAGNOSTICS is defined. 2003-08-13 20:44:51 +00:00
Jens Schweikhardt fc2e6b80b0 MFC rev. 1.76: Note the non-standard behavior of -gno 2003-08-13 09:22:52 +00:00
Simon L. B. Nielsen e0aaeff77d MFC: Makefile.inc 1.33, index(3) 1.8 + 1.9, rindex(3) 1.9,
strchr(3) 1.9 + 1.10, strrchr(3) 1.10

* Merge index(3) and rindex(3) to index(3) since the two functions are
  almost identical.
* Merge strchr(3) and strrchr(3) to strchr(3) since the two functions
  are almost identical.
* Make the wording of index(3) and strchr(3) more similar.
* mdoc(7) cleanup.
2003-08-12 21:03:38 +00:00
Tor Egge 069f06b072 MFC src/sys/kern/sys_process.c revisions 1.111 and 1.112:
Use kmem_alloc_nofault() rather than kmem_alloc_pageable() in procfs_rwmem().
Use vm_page_hold() in place of vm_page_wire() since the page can be freed.
Don't hold extra reference to the containing vm object while page is mapped.
2003-08-12 18:36:28 +00:00
Hajimu UMEMOTO 4b0818bfdd MFC: introduced a flag bit "ND6_IFF_ACCEPT_RTADV" in the nd_ifinfo
structure to control whether to accept RAs per-interface basis.
the new stuff ensures the backward compatibility;
- the kernel does not accept RAs on any interfaces by default.
- since the default value of the flag bit is on, the kernel accepts
  RAs on all interfaces when net.inet6.ip6.accept_rtadv is 1.

	sys/netinet6/nd6.c:	1.25
	sys/netinet6/nd6.h:	1.11
	sys/netinet6/nd6_rtr.c:	1.16
	usr.sbin/ndp/ndp.8:	1.10
	usr.sbin/ndp/ndp.c:	1.9
2003-08-12 16:27:57 +00:00
Yaroslav Tykhiy ef53730b22 MFC rev. 1.78: Indicate a block allocation failure
by exiting with a non-zero status in order to avoid
creating a corrupt file system.
2003-08-12 13:19:17 +00:00
Luoqi Chen 764f898b9b Add vm_paddr_t typedef. 2003-08-12 05:41:54 +00:00
Yoshihiro Takahashi a1d7157362 MFi386: revisions 1.385.2.31 and 1.385.2.32. 2003-08-12 02:23:34 +00:00
Yoshihiro Takahashi 7417bbbc9e MFi386: revision 1.219.2.3. 2003-08-12 02:21:17 +00:00
Yoshihiro Takahashi 55983e1c1f MFi386: revision 1.4.2.2. 2003-08-12 02:19:23 +00:00
Yoshihiro Takahashi a3c85b215b MFi386: revision 1.179.2.17. 2003-08-12 02:17:25 +00:00
Bruce A. Mah 6a83411c23 MFC: PAE, USB/Firewire quirks, twe(4) 3ware generic API. 2003-08-12 00:52:34 +00:00
Bruce A. Mah ec669e4552 Slightly rearrange some kernel items, but don't change their content. 2003-08-11 23:08:58 +00:00
Simon L. B. Nielsen bcb2756460 MFC revision 1.2:
- Correct the path to the dot.nsmbrc sample file.
- Add FreeBSD CVS tag.
2003-08-11 19:10:59 +00:00
Bruce A. Mah 5f35aa47dd New errata: SA-03:09, SA-03:10. 2003-08-11 16:01:02 +00:00
Bruce A. Mah 627d5a6633 MFC: SA-03:09, SA-03:10. 2003-08-11 15:59:52 +00:00
Max Khon e708b0d59a Correct typo in Matt's last name. 2003-08-11 13:39:48 +00:00
Max Khon 424cf290f7 MFC: /etc/syslogd.conf -> /etc/syslog.conf 2003-08-11 13:31:50 +00:00
Ruslan Ermilov 8e69f531dd MFC: the ``force-scripts'' option. 2003-08-11 09:35:51 +00:00
Kris Kennaway 7142bc3ae9 MFC: Add pkgwrap.c to unbreak build.
Pointy hat to:	kris
2003-08-11 09:22:04 +00:00
Hartmut Brandt 5a5a29a039 MFC: Add support for CBR and VBR PVCs for IP over ATM.
Submitted by:	Vincent Jardin <[email protected]>
2003-08-11 07:09:55 +00:00
Hartmut Brandt 4bd14476cb MFC: Add support for CBR and VBR PVCs for IP over ATM.
Submitted by:	Vincent Jardin <[email protected]>
2003-08-11 07:08:30 +00:00
Hartmut Brandt 7d8e2484e0 MFC (partial) 1.3: definitions for ABR and UBR. 2003-08-11 06:52:09 +00:00
Kris Kennaway 71504e9ece MFC: Support for pkg_add -C (conflicts) and pkg_info -P (pkg_tools version). 2003-08-11 01:13:44 +00:00
Kris Kennaway 1cd3fe8cef MFC: Remove {man,cat}n from /usr/share/man, which were originally added
as part of the tcl import in olden times.
2003-08-11 01:09:44 +00:00
Kris Kennaway 6eee7effd5 MFC: Remove bogus "temporary" gethostbyaddr_r implementation 2003-08-11 01:08:48 +00:00
Mark Peek 5f99cdde54 MFC: Add wrapper for kqueue() to keep track of the allocated fd and allow
it to be closed. This fixes a file descriptor leak when closing a
     kqueue() fd.
2003-08-10 23:52:59 +00:00
Jacques Vidrine 04c40a1cdb MFC 1.24: Validate the iBCS2 statfs(2) length parameter. 2003-08-10 23:35:21 +00:00
Jacques Vidrine 687918a41c MFC sys_process.c 1.113, spigot.c 1.60:
Add or correct range checking of signal numbers in system calls and
ioctls.
2003-08-10 23:09:28 +00:00
Mike Silbersack ec01f156a9 Mega MFC of the xl driver:
if_xl.c 1.149
if_xlreg.h 1.46

As few modifications as possible were made in this MFC, which includes
busdma support for PAE users, Vlan support for older pre-905B cards,
and other various cleanups.
2003-08-10 21:55:57 +00:00
Mike Silbersack b13a629e21 Add one more INVARIANTS check to the mbuf code which detects attempts
to free out of range pointers back to the freelist.
2003-08-10 21:51:41 +00:00
Paul Saab 3af6709942 Bump __FreeBSD_version for 3ware API 2003-08-10 20:27:00 +00:00
Paul Saab 7b8a8d5a77 MFC: Support for the 3ware API 2003-08-10 20:25:46 +00:00
Tor Egge f1d74e25d4 MFC rev 1.302:
Check the address provided to vm_map_stack() against the vm map's maximum,
returning an error if the address is too high.
2003-08-10 18:14:11 +00:00
Bill Paul 812930301e MFC: properly set mbuf space size for the BCM5704 NICs to fix watchdog
timeouts on Dell 1750 servers, and fix spurious 'gigabit link up'
messages due to not ignoring the 'MI_COMPLETE' bit in the MAC
status register. (I'm MFCing these fairly quickly since they're
fixes for pretty serious/annoying bugs.)
2003-08-10 18:08:49 +00:00
David Schultz 954c3b576d MFC:
v1.21	Don't overflow the block quota calculations for NFS mounts.
	v1.22	Remove redundant declarations.
2003-08-10 16:53:21 +00:00
cvs2svn 29d94a0479 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-08-10 11:36:43 +00:00
Tom Rhodes 060fec9a5c MFC: Revision 1.23: Document ENOSPC. 2003-08-10 05:30:42 +00:00
Luoqi Chen f025378496 MFC: PAE support, based on Jake Burkholder's work in current. Jake's
work was sponsored by DARPA, Network Associates Laboratories.

Major changes include:
- introduction of vm_paddr_t to represent physical address
- support for page directory pointer table
- removal of (recursive) alternative address space

Reviewed by:	jake
2003-08-09 16:21:21 +00:00
Christian Brueffer da38567637 MFC: 1.64
Clarify that the 'state' information consists of characters, not
only letters (e.g. IWs+)
2003-08-09 13:42:16 +00:00
Noriaki Mitsunaga 0c79aa1f4a [MFC]
We do not need `\n' for panic().

cam/scsi/scsi_low.c:	1.15 -> 1.16
dev/ct/ct.c:		1.5  -> 1.6
2003-08-09 06:18:30 +00:00
Bruce M Simpson 1e63d3f649 Add the AODV routing protocol.
Correct my previous omission of MFC details from cvs log.

PR:		conf/55125
Approved by:	jake (mentor)
MFC after:	2 days
2003-08-09 03:02:43 +00:00
Bruce M Simpson 498f383425 Add the AODV routing protocol.
Approved by:	jake (mentor)
2003-08-09 02:56:54 +00:00
Hartmut Brandt 0005b41161 MFC 1.26: The interface type for the nifs should be IFT_IPOVERATM as
per RFC.
2003-08-08 15:59:48 +00:00
Hartmut Brandt de00f1b0a8 MFC: Make the debugging variables that control printing of UNI messages
available as sysctls and move the debugging prints out of DIAGNOSTICS.

Submitted by:	Vincent Jardin <[email protected]>
2003-08-08 15:45:37 +00:00
Hartmut Brandt 85f3e7d259 MFC: Make the debugging variable that controls dumping of IP over ATM
packets accessible as a sysctl.

Submitted by:	Vincent Jardin <[email protected]>
2003-08-08 12:06:20 +00:00
Hartmut Brandt 420795c150 MFC: Create a sysctl that allows one to enable/disable printing of SPANS
messages.

Submitted by:	Vincent Jardin <[email protected]>
2003-08-08 11:24:46 +00:00
Hartmut Brandt 717015b4cc MFC: Now that we have if_detach() don't try to get rid of all the interface
stuff (routes, ...) by hand - simply use if_detach().

Submitted by:	Vincent Jardin <[email protected]>
2003-08-08 10:30:41 +00:00
Hartmut Brandt fdb8535c58 MFC: Create a sub-tree 'harp' of the net sysctl tree. This uses a fixed
OID as the other protocol family sub-trees do, that is equal to the
protocol-family identifier. Make the ATM layer debugging flags
available under this tree.

Submitted by:	Vincent Jardin <[email protected]>
2003-08-08 08:44:10 +00:00
Brooks Davis c71ec3af14 MFC: Allow diskless_remount files to contain path beginning with /
which will be mounted relative to the NFS root mountpoint.
2003-08-07 18:25:19 +00:00
Nate Lawson 1d75a7cae2 MFC 1.150: Remove unused cmd6workaround() calls. 2003-08-07 18:24:35 +00:00
Hartmut Brandt 9c053475c5 MFC: Constify the argument to several pdu_print functions. 2003-08-07 15:44:59 +00:00
Hartmut Brandt f69040f4ef MFC: Add BPF support to HARP network interfaces.
PR:		kern/51831
Submitted by:	Vincent Jardin <[email protected]>
2003-08-07 13:14:57 +00:00
Warner Losh 86dc84894d MFC: skip all devices whose header type is > 2. 0 is normal, 1 is pci
bridge and 2 is cardbus bridge.  Those are all pci 2.2 defines.
2003-08-07 06:19:26 +00:00
Warner Losh af145786d6 Kill trailing newline, file somewhat different in current 2003-08-07 06:17:43 +00:00
Nate Lawson 4fe29b2406 Note MFC of quirk disabling. 2003-08-07 04:34:46 +00:00
Nate Lawson 69f6b9ae66 Deprecate USB quirks. We should now never send 6 byte commands
to such devices.  If a device fails due to this commit, add:
   options DA_OLD_QUIRKS
to the kernel config and recompile.  Then send the output of "camcontrol
inquiry da0" to [email protected] so the quirk can be re-enabled.
2003-08-07 04:32:10 +00:00
Warner Losh 91214bc4f2 Remove tailing newlines 2003-08-07 04:31:51 +00:00
Warner Losh 23b6c6d1bc MFC: (well, from the old driver) All paths of deallocation do not tear
down the interrupt.  Move this code into the wi_free so that they do.
2003-08-07 04:31:14 +00:00
Garance A Drosehn 7d59889906 MFC 1.71: Fix an 'bad file descriptor' error which would come up when
using the 'C' flag for an entry that also specifies 'user:group' info.

Submitted by:	Riccardo Torrini <[email protected]>
2003-08-07 00:59:09 +00:00
Diomidis Spinellis d6f91dc8b9 MFC revision 1.24
Document EACCESS error return value on non-Unix domain sockets.

Reviewed by:	schweikh (mentor)
2003-08-06 22:09:44 +00:00
Hartmut Brandt 2110aa4bf0 MFC 1.11
Fix warnings: a variable that was unused, one that was unused unless
sun is defined, an unused function parameter and u_longs printed with
the wrong format.

PR:		bin/39818
Submitted by:	[email protected]
2003-08-06 07:42:38 +00:00
Bruce Evans db2b4691db MFC: 1.22 (support the Titan VScom PCI-200HV2 2 port serial card). 2003-08-05 12:50:00 +00:00
Hajimu UMEMOTO 3140600659 MFC 1.212: Always put an entry for ::1. It may avoid useless DNS lookup
for localhost.
2003-08-05 10:36:42 +00:00
Jens Schweikhardt a580619dae MFC the applicable part of 1.31. 2003-08-05 10:03:09 +00:00
Peter Pentchev 7e0b021b21 MFC ru's rev. 1.33 of src/sbin/fdisk/fdisk.8:
mdoc(7) police: tidy up the markup and some wording.

PR:		55250 (partially)
Reported by:	Dmitry Morozovsky <[email protected]>
Reviewed by:	ru
Approved by:	ru
2003-08-05 08:26:25 +00:00
Bruce Evans 18cc2c7c37 MFC: 1.94 and 1.125 (don't use hard newlines in string literals, and fix
some style bugs on the same lines).

This completes making some RELENG_4 kernels work when compiled by gcc-3.3.
I intended to make more than some work, but gave up on LINT.  GENERIC
compliles but has not been tested at runtime.
2003-08-05 07:05:39 +00:00
Wilko Bulte 056d9c3d51 Note which machine consoles support booting from KZPEA aka Adaptec 39160
U160 adapters.
2003-08-04 18:09:06 +00:00
Hideyuki KURASHINA b52418a4dc Merge the following from the English version:
1.1.2.105 -> 1.1.2.106 errata/article.sgml
2003-08-04 11:07:12 +00:00
Yaroslav Tykhiy 036be6bcda MFC rev. 1.18: A few grammar & punctuation corrections. 2003-08-04 09:13:30 +00:00
Bruce A. Mah 0e7c82ef1a MFC: SA-03:08. 2003-08-04 01:01:32 +00:00
Hajimu UMEMOTO 2457393a2a MFC 1.25, 1.26: ip6fw does not handle ESP correctly 2003-08-03 17:52:54 +00:00
Pierre Beyssac ec5510b93b MFC rev 1.141: remove test in pipe_write() which causes write(2)
to return EAGAIN on a non-blocking pipe in cases where select(2)
returns the file descriptor as ready for write. This in turns causes
libc_r, for one, to busy wait in such cases.
2003-08-03 13:04:57 +00:00
Wilko Bulte 16d7a096db Note that AS4100 needs DC adapter for RCM to function. 2003-08-03 11:49:25 +00:00
Martin Blapp b4d5e5642a MFC Rev. 1.21
Fix broken -a functionality.
2003-08-03 11:07:06 +00:00
Bruce Evans f5f6706d4e MFC 1.173 (don't hide the name of tmpstk); 1.172+1.174: (clear the bss
before using it, and use up to date comments about this).

Adjustments for RELENG_4 (n/a in -current).

locore.s:
Don't staticize tmpstk since it is needed in swtch.s.  Adjust comments
some more to cover the BDE_DEBUGEGR case.

swtch.s:
Don't hide the name of tmpstk here either.

This is part of making RELENG_4 kernels work when compiled by gcc-3.3.
Fixing bss clearing is the only nontrivial part.
2003-08-02 14:41:54 +00:00
Pierre Beyssac 46ae3ace38 MFC: rev 1.37, fix "write from stdin". 2003-08-02 11:02:53 +00:00
Diomidis Spinellis b259e0042f MFC version 1.30
Fixed .Nm element, updated HISTORY section, added AUTHORS section.

Approved by:	schweikh (mentor)
2003-08-01 21:10:37 +00:00
Diomidis Spinellis 559ca32781 MFC version 1.3
PR:		misc/25585
Submitted by:	Walter Briscoe <[email protected]>
Approved by:	schweikh (mentor)
2003-08-01 21:07:24 +00:00
Yaroslav Tykhiy 13f5493001 Invalidate the remote directory cache on commands
altering the remote directory contents.

Not applicable directly to CURRENT since the latter uses
the contributed lukemftp as the default ftp client.
Luke Mewburn has applied this fix to his ftp client, too,
so CURRENT's will get fixed upon the next import of lukemftp.

Submitted by:	demon
Reviewed by:	lukem (at) netbsd.org
2003-08-01 14:05:06 +00:00
Yaroslav Tykhiy cce5348905 Grammar: Add a missing article. 2003-08-01 13:48:12 +00:00
Yaroslav Tykhiy 33408897dc MFC: arp(8) -i. 2003-08-01 13:40:57 +00:00
Yaroslav Tykhiy 32b9d82f77 MFC: The "-i" option to limit the scope of operation
to the ARP entries on a particular interface.

arp.8	1.21
arp.c	1.46
2003-08-01 13:29:58 +00:00
Hiroki Sato 6be100521c Fix to keep consistent description. 2003-08-01 11:03:38 +00:00
Hideyuki KURASHINA a0c16af10a MFC noted: rue(4) 2003-08-01 10:02:58 +00:00
Garance A Drosehn 929e09fb44 MFC: all remaining changes for lpr/* to use __FBSDID(), and to
fix 'sccsid' lines so they consistently match style(9) guidelines.
2003-08-01 00:03:26 +00:00
Garance A Drosehn 0db949bf5d MFC: all changes to use __FBSDID(), and to fix 'sccsid' lines to
consistently match style(9) guidelines in lpr/filters* and lpr/lptest.
This include Makefile changes so these programs can find lp.cdefs.h in
lpr/common_source.
2003-07-31 21:34:36 +00:00
Maxim Konovalov 5b7c5efd92 MFC rev. 1.67 and 1.68: do not overwrite saved interrupt priority
level by alloc_hash(), use a separate variable.  Restore interrupt
priority level before return.
2003-07-31 10:36:36 +00:00
SUZUKI Shinsuke ce7ddbbe4f MFC 1.11: fixed wrong parameter descriptions 2003-07-31 08:34:36 +00:00
Garance A Drosehn 113c582f65 MFC: all lpr/lpc/* changes to use __FBSDID(), and to fix 'sccsid'
lines to consistently match style(9) guidelines.
2003-07-31 00:43:09 +00:00
Shunsuke Akiyama c0ca2ea491 MFC: Add RealTek RTL8150 USB to fast Ethernet controller driver. 2003-07-30 13:57:36 +00:00
Paul Saab a92f6b3204 MFC: rev 1.25-1.26
Quiet down ciss unless bootverbose is set.
Check the status of the user command and return the proper error
to the user.
2003-07-30 06:36:13 +00:00
Bruce A. Mah e481404be9 MFC: Grammar nits. 2003-07-29 21:21:55 +00:00
Garance A Drosehn 01dd87f5f5 MFC 1.28: Add section number to .Xr 2003-07-29 17:56:50 +00:00
Garance A Drosehn c3621eb134 MFC: all lpr/lpd/* changes to use __FBSDID(), and to fix 'sccsid'
lines to consistently match style(9) guidelines.
2003-07-29 17:52:24 +00:00
Bruce A. Mah f8f7f14533 Updated release notes: GNOME 2.2.2, KDE 3.1.3. 2003-07-29 15:49:00 +00:00
Maxim Konovalov 290f1e1384 MFC rev. 1.23 ping6.c, rev. 1.12 traceroute6.c: %g -> %.3f. 2003-07-29 12:21:14 +00:00
Bruce Evans dc19f35fcd MFC (1.72: fix some malformed macro concatenation that gcc-3 has
objections about).

This is part of making RELENG_4 kernels work when compiled by gcc-3.3.
2003-07-29 10:47:02 +00:00
Hiroki Sato a5e501c7e0 MFC: wi(4) suspent/resume bug fix. 2003-07-29 07:28:53 +00:00
Nate Lawson 065ab42faa MFC: Add PIM_NO_6_BYTE to hba_misc. USB, firewire, and ATAPI-CAM drivers
set this flag to indicate they do not wish to receive 6 byte commands.
The da(4) driver now honors this flag.  Note that the cd(4) portion of the
commit is not MFCd now because it depends on other code which needs to be
MFCd first.
2003-07-29 04:00:35 +00:00
Garance A Drosehn 22774c8621 MFC *: Change all lpr/common_source files to use __FBSDID(), and to
fix 'sccsid' lines to consistently match style(9) guidelines.  Note
that this means you will have to add '-a' to the 'strings' command
when searching for rcs ids, eg:
       strings -a /usr/sbin/lpd | grep '$FreeBSD'

[* = 1.32->1.33 common.c, 1.9 ctlinfo.c, 1.3 ctlinfo.h,
 1.24->1.25 display.c, 1.24 lp.h, 1.4 matchjobs.c, 1.2 matchjobs.h,
 1.8 net.c, 1.10->1.11 printcap.c, 1.4->1.5 request.c,
 1.18->1.19 rmjob.c, 1.11->1.12 startdaemon.c]
2003-07-29 01:02:08 +00:00
Garance A Drosehn 038a8b2f8e MFC 1.1: Add the new lp.cdefs.h file, which will be used to make
it somewhat easier to build this lpr on other operating systems.
Initial purpose is just so lpr can be changed to use __FBSDID().
2003-07-29 00:46:55 +00:00
Jens Schweikhardt b43e009e90 MFC rev. 1.55 (in -exec the semicolon may need to be quoted from the shell). 2003-07-28 16:47:57 +00:00
Luigi Rizzo 5c882701e7 MFC 1.131: comment that net.inet.ip.fw.autoinc_step is only
present in ipfw2
2003-07-28 07:15:13 +00:00
David Malone 17a5447362 MFC 1.120: Get the connections per minute calculation right. 2003-07-27 13:58:05 +00:00
John Polstra 1999c5610b MFC suspend/resume support for the wi driver:
if_wi.c             1.120
    if_wi_pci.c         1.11, 1.12 (relevant style fixes only), 1.18
    if_wivar.h          1.14
2003-07-26 21:03:55 +00:00
Bruce Evans d04891f63d MFC (1.32: translate to C: don't use hard newlines in a string literal;
1.41: use the correct function name in the string literal).

This is part of making some RELENG_4 kernels buildable by gcc-3.3.
2003-07-26 12:06:25 +00:00
Hajimu UMEMOTO 13dcb8e565 MFC 1.164: Disabling multicast on vlan interface caused kernel panic. 2003-07-26 11:43:37 +00:00
Hiroki Sato 05ae7338c5 New release notes: proatm driver.
MFC:  bge(4), safe(4).
2003-07-25 14:08:40 +00:00
Ruslan Ermilov 458e5a3502 Fixed broken -DNOSHARED build in secure/usr.sbin/sshd. 2003-07-25 10:35:56 +00:00
Bruce Evans 00eec47e27 MFC: 1.25 (use essentially the same formatting of the CPU stats percentages
as in vmstat so that they never coalesce).

PR:		41674
2003-07-25 08:50:39 +00:00
Maxim Konovalov e2da004b16 MFC rev. 1.38: initialize do_pipe before command parsing. 2003-07-25 08:23:07 +00:00
Hidetoshi Shimokawa bdc1d04ae6 Sync with -current. 2003-07-25 05:18:09 +00:00
Hidetoshi Shimokawa 2a7c593478 Sync with -current:
- Decode bus_info block.
- Allow retrieval of local Configuration ROM.
- Clear Configuration ROM buffer in advance for '-d' option.
- Manpage fix.
2003-07-25 05:16:21 +00:00
Hidetoshi Shimokawa 6adbf210a4 Sync with -current:
- Configuraiton ROM fix.
- Allow retrieval of local Configuration ROM.
- Add some debug messages.
- Include file clean up.
2003-07-25 05:07:59 +00:00
Hidetoshi Shimokawa 80ca8714ce Add KMODDEPS. 2003-07-25 05:01:39 +00:00
Stephen McKay 71176b6928 MFC:(ctm.h:1.18 ctm_input.c:1.10) Remove the maximum patch size limit.
(Missed that "MFC after" of 7 days by quite a bit eh? :-)  Sorry!)

Submitted by:	Stephen Montgomery-Smith <[email protected]>
PR:		50461
2003-07-25 00:37:08 +00:00
Paul Saab 974d49a69c MFC: rev 1.3
Null terminate the new argv[] array when converting 'tar zcf' to
'tar -z -c -f'
2003-07-25 00:30:45 +00:00
Hartmut Brandt 7550bd60a0 Fix the copyright.
Fix a problem with a board stopping. Add sanity checks for m_pkthdr.

Submitted by:	Vincent Jardin <[email protected]>
2003-07-23 08:18:26 +00:00
Mike Silbersack e8cf9e54a3 Improve the verbosity of the "freeing free cluster" KASSERT, and add a new
KASSERT that checks to see if a cluster's refcount is 0 in MCLALLOC.
2003-07-22 19:33:36 +00:00
Mike Silbersack 058c99bcd6 Fix up an error check in m_clreflimit and turn it into a KASSERT. 2003-07-22 19:12:17 +00:00
Sam Leffler d1fe426242 MFC: safenet driver stats program 2003-07-22 18:01:41 +00:00
Sam Leffler e58093c6e7 MFC: SafeNet crypto driver man page 2003-07-22 18:00:39 +00:00
Sam Leffler 16e513d3b1 MFC SafeNet crypto driver
Sponsored by:	Global Technology Associates, Inc.
2003-07-22 17:58:29 +00:00
Hartmut Brandt a8d8b00341 Handle the new device, API, vendor codes for the ProATM card.
Add printing of ProATM statistics.

Submitted by:	Vincent Jardin <[email protected]>
2003-07-22 15:04:50 +00:00
Hartmut Brandt 2bb8251eb5 Recognize the ProATM cards.
PR:		kern/46790
2003-07-22 13:46:24 +00:00
Hartmut Brandt f63d2244fd Connect the ProATM driver to the build.
PR:		kern/46790
2003-07-22 13:41:17 +00:00
Diomidis Spinellis cbcfad98b8 MFC: Changes following CScout analysis:
- Removed dead declarations
  - Made objects that should have been declared as static, static.

The changes use STATIC instead of static, following the existing
convention in the rest of the code.

alias.c:	1.17
cd.c:		1.33
exec.c:		1.23
exec.h:		1.11
expand.c:	1.44
input.c:	1.20
jobs.c:		1.64
memalloc.c:	1.25
nodes.c.pat:	1.14
output.c:	1.18
parser.c:	1.49
redir.c:	1.24
var.c:		1.25
2003-07-22 13:11:26 +00:00
Hartmut Brandt e10390dec6 This is a driver for ProSum's ProATM cards. These cards use the IDT77252
and the driver supports UBR, CBR and VBR. The driver will not be brought
over the current, because current has the patm driver (which uses new
ATM infrastructure and hence is hard to MFC). This driver is reported to be
very stable.

PR:		kern/46790
2003-07-22 11:53:20 +00:00
Hartmut Brandt 3a1195c4ad Define constants for the upcoming ProATM (IDT77252) driver. Make
sure that these constants are the same as in current. Handle the
new MEDIA definitions in the code.
2003-07-22 11:28:38 +00:00
Paul Richards 5de66f2d0e Fix the version matching regex to take account of local port
versioning.

PR:		bin/45484
2003-07-22 11:25:22 +00:00
Ruslan Ermilov 1f24e1cff4 MFC: 1.26: Fixed broken arithmetic expression parser.
PR:		bin/44750
2003-07-22 08:03:13 +00:00
Paul Saab 53a65f77e8 MFC: support for the Broadcom 5705 2003-07-22 02:12:55 +00:00
cvs2svn cc53573ce6 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-07-21 21:58:05 +00:00
Shunsuke Akiyama b4b61749f3 MFC: Fix 'bulk in' and 'bulk out' being reversed in a couple of error
messages.

ucom.c:	1.26
2003-07-21 13:10:57 +00:00
Shunsuke Akiyama 1b48a76501 MFC: Fix device freeze to reduce output packet size.
And make this value configurable by kernel config or sysctl.

options:	1.381
uvscom.c:	1.16
LINT:		1.1137 (from NOTES)
Makefile:	1.2
2003-07-21 12:19:23 +00:00
Shunsuke Akiyama 111ac20890 MFC: Fix page fault with FTDI's USB serial device.
Fix lost characters counting.
     Move setting receiver state to proper place on ucomstopread().

ucom.c:	1.29
2003-07-21 12:00:19 +00:00
Shunsuke Akiyama 96a5e2ada8 MFC: Fix duplicate sc_dying usage.
uftdi.c:	1.7
2003-07-21 11:50:06 +00:00
Shunsuke Akiyama 392f923856 MFC: The uftdi driver runs with multiple instances.
Remove a comment claiming the opposite.

uftdi.c:	1.4
2003-07-21 11:45:24 +00:00
Shunsuke Akiyama 7f309a4da5 Add KMODDEPS on ucom. MODULE_DEPENDS works only on CURRENT. 2003-07-21 11:39:21 +00:00
Shunsuke Akiyama 84401064c4 MFC: Add missing module dependency.
uvisor.c:	1.11
uvscom.c:	1.15
2003-07-21 11:35:06 +00:00
Shunsuke Akiyama 2d96669ca2 Forced commit to note that the previous commit.
Correct MFC revisions are:

uplcom.c:	1.9
uvscom.c:	1.10
2003-07-21 11:29:43 +00:00
Shunsuke Akiyama 6684e0d439 MFC: Apply some fixups in the driver_t's.
uvisor.c:	1.11
uvscom.c:	1.15
2003-07-21 11:04:06 +00:00
Mike Silbersack 179a1a495b Fix a mixup in the previous commit; the m_clreflimithits
variable / SYSCTL were not supposed to be under the
MBUF_STRESS_TEST section.

Noticed by:	Igor B. Bykhalo <[email protected]>
2003-07-21 07:04:00 +00:00
Mike Silbersack 29551520f9 Add in the promised cluster refcount limit hack. (Not applicable to
-current, which has int size refcounts.)

4.x uses char refcounts, which can be overflowed, causing neat panics.
This patch works around the problem by hooking into every m_* function
that increases the refcount and doing two things:

1.  Panicing if the refcount went negative (perhaps due to some external
function messing with the refcount.)

2.  Making a full copy of the resulting chain in order to keep the
refcount under a reasonable threshold if necessary.

The kern.ipc.m_clreflimithits sysctl has been made available so that
the number of times a copy had to be performed can be monitored.  Luckily,
this should not be a common occurance.
2003-07-21 03:12:06 +00:00
Christian Brueffer 02dc9924dd MFC: 1.30
Fix a grammar bogon and a typo
2003-07-20 09:14:15 +00:00
Warner Losh bda02c5540 MFC: merge ufm entry from current now moribund MAKEDEV file.
PR: 46413
2003-07-20 03:56:02 +00:00
Warner Losh 247c386672 MFC: Merge through 1.261 2003-07-20 03:45:28 +00:00
Mike Silbersack 40c1c79400 MFC rev 1.66:
Misc fixes for long mbuf chain handling.
2003-07-20 02:51:53 +00:00
Mike Silbersack 27cb055524 MFC rev 1.119 2003-07-20 02:36:05 +00:00
Robert Watson f8efe5a6c4 Add kpasswdd5_server and kpasswdd5_server_enable variables to
/etc/defaults/rc.conf and boot-time support to /etc/rc.network
in RELENG_4.  This permits the Heimdal password change daemon
to be automatically started when the system is booted; this
is present in -CURRENT but appears not to have been merged with
Heimdal support.
2003-07-19 20:44:45 +00:00
Warner Losh 2c8fab2392 MFC:
Merge all of OLDCARD stuff from current to stable.  This includes:

	o Improved CIS parsing
	o read from cis file
	o probe only and exit
	o doc fixes
	o Migrate manucactuer Id stuff into the kernel.
	o warnings improvements.
2003-07-19 19:37:19 +00:00
Warner Losh 71f55d7df4 s/^$/\n\/g inside of strings to make new gcc happy.
# This file appears not to be in current at all, so no commit to current first
# feel free to correct me if I'm mistaken.
2003-07-19 19:01:15 +00:00
Daniel Harris 6545ebb208 MFC 1.27, 1.28: mdoc and handling of interface names. 2003-07-19 16:52:16 +00:00
Hiroki Sato 3babbda0d2 MFC: a relnotes item (atkbd(4) bug fix) and relnotes headings. 2003-07-19 14:38:11 +00:00
Hidetoshi Shimokawa dc19d10c6a MFC: revision 1.40
Unregister the keyboard if FAIL_IF_NO_KBD is set and reset failed.
2003-07-19 12:48:35 +00:00
Hiroki Sato 06c0d4973b Merge the following from the English version:
1.22.2.357 -> 1.22.2.358	relnotes/common/new.sgml
2003-07-19 08:36:45 +00:00
Mike Silbersack 0f7330e403 Quick fix to previous commit, style was wrong on one
line, and m_length was forgotten.
2003-07-19 06:44:20 +00:00
Mike Silbersack 1e306453c4 MFC rev 1.190 2003-07-19 06:30:03 +00:00
Mike Silbersack 7a643eb706 MFC of a bunch of commits:
Move m_fixhdr from subr_mchain to uipc_mbuf, add the m_length
function, and update header files appropriately.
2003-07-19 06:27:29 +00:00
Hideyuki KURASHINA 20ad96450d MFC: revision 1.29
Fix a typo.
2003-07-18 23:46:04 +00:00
Yaroslav Tykhiy 4f470a3d93 MFC: Assorted getty(8) bugfixes.
gettytab.h:	1.14
init.c:		1.15
main.c:		1.39-1.45
2003-07-18 16:40:46 +00:00
Dag-Erling Smørgrav 5077355413 Display the number of CPUs at boot.
Submitted by:	<Edward Brocklesby> [email protected]
2003-07-17 20:31:44 +00:00
John Polstra 8bd618f0fc MFC 1.18: correct a couple of comments. 2003-07-17 19:04:31 +00:00
Hiroki Sato 72f7aa7220 MFC: ipfw(8) -n flag, comma-separeted address lists, ipfw(4) C++-style
comment, rules in set 31.
2003-07-17 17:22:07 +00:00
Yaroslav Tykhiy 177acc0f1b MFC rev. 1.53, 1.54: getline() improvements:
- do better error handling;
- block signals while reading from the control channel in order
  to prevent interruption by a SIGURG.
2003-07-17 13:59:11 +00:00
Yaroslav Tykhiy 1bf8c063d8 MFC rev. 1.145: Make a malloced copy of "chrootdir" even if it
points to an absolute pathname inside "residue" so "chrootdir" can
be simply freed later.
2003-07-17 13:52:18 +00:00
Christian Brueffer bb7589f26c MFC: 1.57
Capitalize an occurrence of 'ficl' for consistency.
2003-07-17 08:03:31 +00:00
Luigi Rizzo 4eb5891102 MFC: sync ipfw2 with the version in -current, including:
* implement a '-n' option to do a syntax-check only of ipfw2 rules;

 * allow spaces after commas in ipfw rules;

 * support for comma-separated address lists e.g.

    ipfw add allow ip from not 10.0.0.0/8, 192.168.0.0/16, 1.2.3.4 to me

   (note the possibility to put a 'not' in front of the entire list,
   which was not possible with "or blocks");

 * allow comments in ipfw rules which are stored together with rules and
   appear upon an 'ipfw show':

	ipfw add allow udp from any to any 53 // nameserver

 * allow set 31 to be used for ordinary (non-default) rules, but with
   the special feature that rules in set 31 cannot be disabled and
   are not affected by a 'flush' command (so they must be deleted
   explicitly). This permits a flexible form of "persistent" rules
   which should survive across firewall reloads.

 * allow ranges to be specified in the "ipfw show" and "ipfw list"
   commands (the same ought to be done for ""ipfw delete"):

	ipfw show 100-1000 2000 3000-5500

I believe the kernel side of these changes is entirely backward
compatible with the old /sbin/ipfw[2], though of course you need
to update the userland command to use the new features.
2003-07-17 06:03:39 +00:00
Tom Hukins d0f6453421 MFC rev 1.14: British hundredweight and computing terms 2003-07-16 15:53:52 +00:00
Murray Stokely f234338b24 MFC: Add missing DITEM_CONTINUE so that pressing 'Q' will exit to the
previous menu, as desired.
2003-07-15 08:17:15 +00:00
Murray Stokely d839d0bd64 MFC: Support mouse-buffer paste key definition. 2003-07-15 08:13:09 +00:00
Murray Stokely 2bf577ce35 MFC: PASTE definition. 2003-07-15 08:12:23 +00:00
Mike Silbersack 16badb5662 MFC rev 1.96:
Update if_dc to use m_defrag, removing the semi-duplicate dc_coal
function.

Also, use m_defrag where appropriate to defrag long mbuf chains
in the same fashion as was done in if_sis.c.  Before this change,
if_dc would blow up and take down the interface if fed a really long
mbuf chain.
2003-07-14 21:16:01 +00:00
Kris Kennaway 546cc014e6 Make the ucom0 device in 'MAKEDEV all' for consistency with all the other
flavours of USB device.

Submitted by:	Yoshihiko Sarumaru <[email protected]>
PR:		conf/48326
2003-07-14 11:07:21 +00:00
Maxim Konovalov 02bb7cec89 MFC rev. 1.30, 1.31: support for '--' to cancel options list processing. 2003-07-14 07:29:56 +00:00
Christian Brueffer 46d9c09473 MFC: 1.75
-l prints all permissions, not just owner and group
2003-07-14 07:22:24 +00:00
Murray Stokely 191919d62c msgDebug() messages should end in "\n".
PR:		43483
2003-07-13 07:05:54 +00:00
Murray Stokely 541ad81265 MFC: msgDebug() messages should end in "\n".
PR:		43483
2003-07-13 07:04:42 +00:00
Murray Stokely dc88dd0b0f MFC: msgDebug() messages should end with \n. 2003-07-13 06:59:32 +00:00
Murray Stokely fd92c79a7e MFC: r1.51: msgDebug() should end with \n
PR:		43483
2003-07-13 06:56:32 +00:00
Kris Kennaway 0483229d8d MFC: Correct buffer overflow in code that is unused in FreeBSD. 2003-07-13 06:18:30 +00:00
Kris Kennaway b9a1639234 MFC: Correct some typos 2003-07-13 03:56:24 +00:00
Gregory Neil Shapiro 88aa244d75 MFC (partial of rev 1.38): mdoc(7) police: fix a typo in rev. 1.36 2003-07-12 23:34:26 +00:00
Gregory Neil Shapiro 24e7e42ea5 MFC: Continue trying to build SENDMAIL_CF if the user uses SENDMAIL_CF
instead of SENDMAIL_MC but don't remove on it 'make clean' as the
     user may not have the original .mc file and removing it could be
     dangerous (e.g., make SENDMAIL_CF=/etc/mail/sendmail.cf clean).

     Revision  Changes    Path
     1.26      +5 -2      src/etc/sendmail/Makefile
2003-07-12 23:26:46 +00:00
Gregory Neil Shapiro 14f9b13902 MFC: Put back install/distribution dependency on the buildable .cf
files to get mergemaster working again.

     Revision  Changes    Path
     1.25      +1 -1      src/etc/sendmail/Makefile
2003-07-12 23:26:14 +00:00
Gregory Neil Shapiro 01244ced24 MFC: Use 'id' instead of 'grep' to detect the presence of the smmsp user/group.
This fixes the check for users with smmsp in NIS instead of their local
     files.

     Revision  Changes    Path
     1.376     +2 -2      src/Makefile.inc1
2003-07-12 23:25:29 +00:00
Gregory Neil Shapiro 89a14b6d50 MFC: Do not install sendmail example/infrastructure files if NO_SENDMAIL is
defined.  The only two files installed in this case are aliases (which
     I believe other MTAs may use) and mailer.conf (which isn't sendmail,
     it belongs to mailwrapper).

     Revision  Changes    Path
     1.315     +4 -0      src/etc/Makefile
2003-07-12 23:24:32 +00:00
Gregory Neil Shapiro d1003d9b3d MFC: Bow to popular demand and default SENDMAIL_SUBMIT_MC to
`hostname`.submit.mc which is templated from freebsd.submit.mc if the
     default file does not exist.  This makes the building of the submit.cf
     behavior identical to that of the the sendmail.cf.

     Revision  Changes    Path
     1.35      +13 -4     src/etc/mail/Makefile
2003-07-12 23:23:46 +00:00
Gregory Neil Shapiro 5fa30f2a9e MFC: Thanks to Ruslan's src/etc/sendmail/Makefile patch, it is now safe
(though probably not a good idea in general) to set the various
     SENDMAIL_*_MC variables to /etc/mail/sendmail.mc or /etc/mail/submit.mc.

     Revision  Changes    Path
     1.217     +0 -9      src/share/examples/etc/make.conf
     1.76      +0 -21     src/share/man/man5/make.conf.5
2003-07-12 23:22:51 +00:00
Gregory Neil Shapiro 711b3a076d MFC: Get rid of unneeded depend target
Revision  Changes    Path
     1.24      +0 -2      src/etc/sendmail/Makefile
2003-07-12 23:20:48 +00:00
Gregory Neil Shapiro 05fac8af45 MFC: - Prevent buildworld from trying to write to /etc/mail/
- Stop 'make clean' from removing SENDMAIL_CF
     - install and distribute targets should not attempt to build anything
     - SENDMAIL_ADDITIONAL_CF were not installed in the distribution case
     - If SENDMAIL_SET_USER_ID was defined, submit.cf was needlessly installed
       in the distribution case
     - Collapse install and distribution target into one to remove code
       duplication

     Revision  Changes    Path
     1.23      +47 -86    src/etc/sendmail/Makefile
2003-07-12 23:20:16 +00:00
Gregory Neil Shapiro 8b9c0d1012 MFC: Style fixes: tab after a dependency operator should be a single space
second level indent of tab should be four spaces

     Revision  Changes    Path
     1.34      +16 -16    src/etc/mail/Makefile
     1.22      +13 -13    src/etc/sendmail/Makefile
2003-07-12 23:19:16 +00:00
Bill Paul 5292ae2c54 MFC: try to distinguish PCS encoding error events from actual link state
change events.
2003-07-12 21:00:50 +00:00
Peter Wemm d4b872a5c1 Partial MFC: keep track of the last fd properly if its above 64K. 2003-07-11 23:01:49 +00:00
Christian Brueffer 56dd55c18d MFC: 1.32
Grammar fix
2003-07-11 21:08:59 +00:00
Maxime Henrion 3f7943ff5f MFC: Fix a bug that could cause dc_stop() to try to m_freem() something
that's not a valid mbuf pointer.

Relevant HEAD revision:	1.114
2003-07-10 16:37:41 +00:00
Murray Stokely 258093ee33 MFC: ache@'s change from March of 2001 to standardize the following :
Shift+Ins - paste buffer
Shift+PrintScr - prev. screen

Approved by:	ache@
2003-07-10 08:38:16 +00:00
Murray Stokely 96aaab75cf MFC: German syscons keymap with accent keys. 2003-07-10 08:33:21 +00:00
Murray Stokely 32b54bf9bf MFC: US syscons keymap with accent keys. 2003-07-10 08:29:57 +00:00
Murray Stokely 04fc99f90e MFC: r1.10 : add the -x option for special files. 2003-07-10 08:20:18 +00:00
Murray Stokely 08d7a6b29e MFC: r1.30 - don't randomize fortune datfiles at build time. 2003-07-10 08:14:00 +00:00
Tom Rhodes f6e6e3819d MFC msdosfs_denode.c revision 1.70:
- Fix a bug where a truncate operation involving truncate() or ftruncate() on
- an MSDOSFS file system either failed, silently corrupted the file, or
- sometimes corrupted the neighboring file.

MFC msdosfs_vnops.c revision 1.139:

- If bread() returns a zero-length buffer, as can happen after a
- failed write, return an error instead of looping forever.
2003-07-09 18:37:08 +00:00
Hiroki Sato e325f8f6af Catch up with the English version:
1.22.2.356 -> 1.22.2.357	relnotes/common/new.sgml
2003-07-09 08:58:16 +00:00
Maxim Konovalov abf00c6ff5 MFC rev. 1.9: strmode(3) returns void not 0. 2003-07-08 09:59:28 +00:00
Bruce A. Mah e01b764ca5 MFC: chroot(8) -u/-g/-G.
Reminded by:	mtm
2003-07-07 22:44:20 +00:00
Garrett Wollman 7076eed914 MFC rev. 1.45 and relevant parts of 1.47 to reflect rev. 1.7 of
daily/150.clean-hoststat.

Requested by: gshapiro
2003-07-07 19:18:08 +00:00
Garrett Wollman 86b4cd8b64 MFC rev. 1.7 of periodic/daily/150.clean-hoststat:
Do not do manually what sendmail(8) can do better automatically.
   Tell sendmail to clean up its own host status cache.
   The error condition handling could probably be done better.

Requested by: gshapiro
2003-07-07 19:11:09 +00:00
Tony Finch e590d32da4 MFC: fix text mode, improved debugging output, misc. code improvements. 2003-07-07 14:47:08 +00:00
Tor Egge a91c8b7fe6 Minimize layout change of struct proc relative to 4.8R. Some kernel
modules stop working when the layout changes and the source code isn't
always available.

Reviewed by:	imp
2003-07-06 16:35:47 +00:00
Ruslan Ermilov 068d60f9bc MFC: Sync with -CURRENT. 2003-07-05 23:08:30 +00:00
Ruslan Ermilov cafae47666 4.x still doesn't have locale(1). 2003-07-05 22:51:47 +00:00
Mike Makonnen dedf356acd MFC rev. 1.12
Allow the optional setting of a user, primary group, or grouplist
when chrooting.
2003-07-05 09:47:16 +00:00
Mike Makonnen a2c959a206 Reduce diffs to HEAD
MFC: rev. 1.5 Fix the type of the NULL arg to execl()
MFC: rev. 1.7 de-__P()
MFC: rev. 1.8 Use __FBSDID over rcsid[].  Protect copyright[] where needed.
MFC: rev. 1.9 Explicitly compare the values returned by chdir(2) and
	      chroot(2) to -1.
2003-07-05 09:25:17 +00:00
Jens Schweikhardt e8002dc3fc MFC: Fix grammar bogon. 2003-07-05 07:38:47 +00:00
Luigi Rizzo 81101b0031 MFC: Control-D erases the screen 2003-07-04 20:51:56 +00:00
Hiroki Sato 19ab984b0f Merge the following from the English version:
1.22.2.355 -> 1.22.2.356	relnotes/common/new.sgml
2003-07-04 15:39:42 +00:00
Sheldon Hearn ab7bbf6649 MFC rev 1.25: regen 2003-07-04 12:24:38 +00:00
Julian Elischer fbf3adccc8 fix a comment that was 180 degrees wrong.. (MFC)
Allow the data receiver method to return the error it gets when it hs
forwards the data.

Submitted by: Ian Dowse <[email protected]> (error return)
2003-07-03 22:17:03 +00:00
Marcel Moolenaar eb3976976d MFC rev 1.109:
Don't map LINUX_POSIX_VDISABLE to _POSIX_VDISABLE and vice versa for
the VMIN and VTIME members of the c_cc array.

PR: 23173
2003-07-03 07:43:50 +00:00
Sam Leffler 6d2c4e9d6f use new "callback immediate if sync" flag to eliminate context switch
when returning results from the software crypto driver
2003-07-02 17:06:55 +00:00
Sam Leffler c39532e5aa MFC: support to eliminate context switch when returning results from the
software crypto driver
2003-07-02 17:04:51 +00:00
Hidetoshi Shimokawa 7bba9ed5e1 MFC: Fix tsleep/wakup race. 2003-07-02 03:22:29 +00:00
Ian Dowse 495f687607 MFC: nfsserver/nfs_serv.c 1.136; fix a bug in the setting of the
"eof" flag in read operations that caused interoperability problems
with RedHat 9 NFSv3 clients for some file sizes.
2003-07-01 19:00:23 +00:00
Josef Karthauser b701b4e07a Regen. 2003-07-01 12:24:58 +00:00
Josef Karthauser 5b5de9ea7d MFC: Support the Mustek BearPaw scanner. 2003-07-01 12:22:36 +00:00
Josef Karthauser 2505102c9f Regen 2003-07-01 09:02:11 +00:00
Josef Karthauser 372f7f9129 MFC: Sychronise with -current. 2003-07-01 09:01:00 +00:00
Josef Karthauser 2fdf8781ac MFC: Update with the list of supported scanners. 2003-07-01 08:57:44 +00:00
Josef Karthauser 318f2e46fc MFC: Add support for Epson GT9300UF usb scanner. 2003-07-01 08:55:47 +00:00
Sam Leffler 62315d4d51 MFC: plug xform memory leaks 2003-07-01 01:38:13 +00:00
Sam Leffler b1e6034bcf MFC 1.7: correct transfer statistics 2003-07-01 01:30:02 +00:00
Maxim Konovalov 0410e1eb6b MFC rev. 1.5: BATTTIME and BATTPERCENT are 'int' not 'str'. 2003-06-30 12:04:17 +00:00
Hidetoshi Shimokawa 11108cb6c9 Sync with -current:
- use fwohci_poll() for the first bus reset.
- Fix suspend/resume problem.
- Include file clean up.
2003-06-30 06:35:56 +00:00
Luigi Rizzo bcc439a4d4 MFC: fix example of use of set enable/disable
PR: 53625
2003-06-29 16:43:24 +00:00
Christian Brueffer 05f6744da7 Use the correct module search path for 4.X 2003-06-29 13:08:30 +00:00
Luigi Rizzo fa5ea78421 MFC: sync ipfw2 (kernel, userland, manpage) with the version in -current.
Among other things, this includes the following:

 + pass to the preprocessor all command-line options after -p
   (except the last one, the ruleset file)
 + add the "verrevpath" option
 + support strong alignment architectures such as alpha and sparc64;
 + support multiple values and ranges for "iplen", "ipttl", "ipid" options.
 + support range notations such as 1.2.3.4/24{5,6,7,10-20,60-90}
   for sets of IP addresses

The changes (also those in sys/netinet/ip_dummynet.c) are all
IPFW2-specific, which is entirely optional in RELENG_4 so there
are no ABI issues for those using the standard ipfw[1].

Note, however, that ipfw2 users MUST REBUILD /sbin/ipfw
together with the new kernel.
2003-06-28 16:12:14 +00:00
Hajimu UMEMOTO 2eb733f10c fix build on 4-STABLE. 2003-06-28 15:10:23 +00:00
Hajimu UMEMOTO ab5e1ddc75 MFC 1.14: Though manpage says that 0.0.0.0 can be used as HISADDR
for gw in Framed-Route, it didn't work.  Since ncprange_aton()
treats 0.0.0.0 and :: as prefixlen=0, we need to care the case.
2003-06-28 14:57:07 +00:00
Hajimu UMEMOTO 31678e3239 MFC 1.305: Mention the use of Framed-IPv6-Prefix. 2003-06-28 14:55:46 +00:00
Hajimu UMEMOTO 27ae0fd943 MFC: IPV6PREFIX is set when Framed-IPv6-Prefix is defined, You
may want to pass the value to upper layer protocol such as DHCPv6
for prefix delegation.

	usr.sbin/ppp/command.c:	1.296
	usr.sbin/ppp/radius.c:	1.42
	usr.sbin/ppp/radius.h:	1.18
2003-06-28 14:54:33 +00:00
Hajimu UMEMOTO b5a9cde320 MFC 1.304: Mention the use of Framed-IPv6-Route. 2003-06-28 14:51:53 +00:00
Hajimu UMEMOTO 22233b4b10 MFC: Do RADIUS accounting on IPV6CP.
usr.sbin/ppp/bundle.h:	1.50
	usr.sbin/ppp/ipcp.c:	1.119
	usr.sbin/ppp/ipv6cp.c:	1.15
	usr.sbin/ppp/radius.c:	1.41
	usr.sbin/ppp/radius.h:	1.17
2003-06-28 14:50:25 +00:00
Hajimu UMEMOTO ee922d6353 MFC: Install routes specified by Framed-IPv6-Route. Since the format
of Framed-IPv6-Route is user defined, it follows Framed-IP-route.

	usr.sbin/ppp/ipv6cp.c:	1.14
	usr.sbin/ppp/radius.c:	1.40
	usr.sbin/ppp/radius.h:	1.15, 1.16
2003-06-28 14:47:32 +00:00
Justin T. Gibbs 06d0fb513b MFC: To version in -current. Fixes command completion before data arrival
race that caused false luns to be reported during bus scan.
2003-06-28 04:50:31 +00:00
Juli Mallett aff2afb850 Fix careless merge to 4.x.
Submitted by:	David Magda <[email protected]>
2003-06-27 18:43:49 +00:00
Ruslan Ermilov dbe4e38040 MFC: If the natd(8) -proxy_only option is used, the -alias_address/-interface
options are not required.
2003-06-27 10:05:32 +00:00
Ruslan Ermilov 013438e807 MFC: Non-functional changes for diff reduction. 2003-06-27 09:31:27 +00:00
Ruslan Ermilov c2dbf46544 MFC: 1.8: Handle snprintf() returning -1. 2003-06-27 09:20:54 +00:00
Ruslan Ermilov 165dc4e1a2 MFC: Made the PacketAliasSetAddress() function call optional,
added the new API function PacketAliasRedirectDynamic().
2003-06-27 09:15:16 +00:00
Ruslan Ermilov a0d0704bcd MFC: Fix for PR 24048 (first FTP command was ignored). 2003-06-27 09:06:34 +00:00
Ruslan Ermilov 15a12b3a09 MFC: Whitespace and other non-functional changes for diff reduction. 2003-06-27 08:37:23 +00:00
Bruce A. Mah 7fcb797396 MFC: groff 1.19, texinfo 4.6. 2003-06-26 21:02:05 +00:00
Stefan Eßer 111c28aa6c Fix URL of zlib home page: It's hosted at gzip.org now. 2003-06-26 20:05:47 +00:00
Ruslan Ermilov bc4d14ee58 MFC: GNU Groff 1.19. 2003-06-26 13:13:57 +00:00
Ruslan Ermilov 9573731127 MFC: GNU texinfo 4.6. 2003-06-26 09:05:55 +00:00
Mike Silbersack 7a64b0e184 MFC rev 1.203 (Modifications needed due to divergence of code.) 2003-06-26 04:15:10 +00:00
Josef Karthauser 6cb0c68f8f Regen. 2003-06-25 22:56:13 +00:00
Josef Karthauser d3bf1cf538 MFC: uscanner.c (1.38), usbdevs (1.126)
Allow the EPSON USB scanner 1250 to be recognised as a uscanner device.
2003-06-25 22:55:53 +00:00
Mike Silbersack a7f8be384d MFC rev 1.201 - 1.203 2003-06-25 21:23:58 +00:00
Mike Silbersack 3479b9d283 MFC the ratelimit and ppsratelimit functions. 2003-06-25 21:20:27 +00:00
Robert Watson 4826e117a6 MFC net.link.ether.inet.log_arp_movements sysctl to disable gratuitous
log entries when a non-permanent ethernet address of a host changes.

Requested by:	Georgi Hristov <[email protected]>
2003-06-25 16:56:05 +00:00
Hajimu UMEMOTO 98055f6d6e MFC 1.6: Add IPv6 related attributes defined in RFC3162. 2003-06-25 16:52:59 +00:00
David E. O'Brien f59781d976 MFC: rev 1.16 -- files in subdirectories of directories that have the
nodump flag set are sometimes incorrectly being dumped.
PR:		32414
2003-06-25 16:06:29 +00:00
Yoshihiro Takahashi fdd98f0b61 MFi386: revision 1.41.2.9. 2003-06-25 15:05:35 +00:00
Ruslan Ermilov ecf926a12c MFC: 1.56: Install files via FILES. 2003-06-24 08:06:57 +00:00
Luigi Rizzo 0d6761e0ee MFC: partial sync of the manpage with the one in -current. 2003-06-24 07:06:12 +00:00
Luigi Rizzo d8f6f1bde2 MFC:
1.20: correct a typo s/ a / an / in a comment.
1.24: pass correct arguments to printf()

and move a variable declaration and a couple of lines to match
more closely the version in -current.
2003-06-23 22:31:12 +00:00
Justin T. Gibbs 6b1f9aca0a MFC: Add missing parenthesis around assignment in if conditional. 2003-06-23 22:08:04 +00:00
Luigi Rizzo d16d3f0e7e MFC: add subsystem names in front of the messages generated by
ipfw[2] and dummynet.

There ought to be a better way to do this, something similar to
device_printf() which automatically generates the subsystem names!
2003-06-23 22:00:21 +00:00
Mike Silbersack c7bb571537 Fix a typo in previous commit.
Noticed by:	Pawel Jakub Dawidek <[email protected]>
2003-06-23 18:10:18 +00:00
Tom Rhodes f51bd50a66 MFC revision 1.21 2003-06-23 18:04:04 +00:00
Mike Silbersack 59ea8f6f73 MFC rev 1.239
Map icmp time exceeded responses to EHOSTUNREACH rather than 0 (no error);
  this makes connect act more sensibly in these cases.
2003-06-23 17:53:50 +00:00
Mike Silbersack 2785dd90be MFC rev 1.118
Hide the m_defrag* statistics under MBUF_STRESS_TEST, there seems
  to be no need to see them in the general case (and they aren't
  smp-safe anyway.)
2003-06-23 17:52:24 +00:00
Luigi Rizzo 84a8c264b0 (forced commit)
The previous logmessage was referring to another file :( It should have been:
comment out "grep" and "date", the image didn't fit into a 1.44 floppy anymore.
2003-06-23 17:26:16 +00:00
Luigi Rizzo 82c3e7f25b add a (commented out) line to show how to increase the image size.
Code is getting larger and we might need it in the near future.
2003-06-23 17:23:27 +00:00
Luigi Rizzo 30473c7f98 Add a (commented out) line to show how to increase the image size.
Code is getting larger and we might need it in the near future.
2003-06-23 17:20:59 +00:00
Hajimu UMEMOTO 9e905c0ac8 MFC 1.13: MYADDR6 in ppp.link{up,down} should match even when IPCP is enabled. 2003-06-23 15:58:18 +00:00
Andrey A. Chernov 3190f31a99 MFC: ordering fixes 2003-06-23 13:51:06 +00:00
Max Khon 3a96a85c70 MFC: Add ru_RU.CP1251 locale. 2003-06-23 13:17:47 +00:00
Max Khon fca95442cf MFC: Add Makefile to build if_ed.ko. 2003-06-23 11:55:17 +00:00
Peter Pentchev 3019103737 MFC rev 1.8: warn if there is no newline at the end of the group file. 2003-06-23 11:29:27 +00:00
Peter Pentchev 08c4388200 MFC rev. 1.23: remove duplicate 'of the'. 2003-06-23 11:19:28 +00:00
Yaroslav Tykhiy 27a592507d MFC rev. 1.51: Don't reveal host-specific info in the reply to SYST
when running with a `-h' (hide host info) option.
2003-06-23 09:44:59 +00:00
Maxim Konovalov 9984af3321 MFC rev. 1.32: correct usage example, fix a typo. 2003-06-23 07:29:26 +00:00
Paul Saab 523ffc72ca MFC: rev 1.20
Add support for the HP Smart Array 6400 EM

Change the interrupt mask for the Smart Array 6xxx controllers after
discussions w/ HP.
2003-06-23 07:24:17 +00:00
Mike Silbersack 4ecfc2e007 MFC rev 1.45 2003-06-22 18:51:10 +00:00
Mike Silbersack 98625ce19a MFC rev 1.21
Fix a coredump that would occur when fdopen was unable to
  return a valid fd.
2003-06-22 18:49:39 +00:00
Ian Dowse 324f3d4140 MFC: 1.56; if the device goes away during ulpt_reset(), make sure
not to call ulpt_status() afterwards.
2003-06-22 13:54:30 +00:00
Matthew N. Dodd 5229cafce1 MFC: Add ID for VT8233A.
PR:		 i386/38299
Submitted by:	 Rob Schulhof <[email protected]>
2003-06-22 06:52:42 +00:00
Matthew N. Dodd 3134e8271c Honor SIGTERM. Similar patch applied to -CURRENT.
PR:		 bin/30640
Submitted by:	 Ralf Meyer <[email protected]>
2003-06-22 06:01:17 +00:00
Garance A Drosehn 113f96e5d9 MFC 1.10: Remove MAINTAINER= lines. 2003-06-21 06:19:38 +00:00
Garance A Drosehn df6ddec48f MFC 1.2 - 1.3: Include stdlib.h for atoi(). Move the $FreeBSD$ line. 2003-06-21 06:15:03 +00:00
Garance A Drosehn d4661f5c98 MFC 1.2: Include stdlib.h for atoi declaration. Add $FreeBSD$ 2003-06-21 06:12:47 +00:00
Mike Silbersack 7c839c31b7 Remove the following message:
XXX: host encrypt not implemented for 802.3

Seeing this every time an IPX packet wandered into my wi bridge
was getting really, really annoying.
2003-06-21 03:49:30 +00:00
Garance A Drosehn 64c5598f10 MFC 1.8: Minor improvement to some debugging code that is probably
used by no one but me (it is usually #ifdef-ed out).
2003-06-20 21:30:59 +00:00
Garance A Drosehn 6a44ad2b82 MFC 1.7: Sanity-check the correct variable. 2003-06-20 21:25:14 +00:00
Hidetoshi Shimokawa e1b9c7773d Sync with -current:
* fwohci
  - Improve probe message for S800 chips.
* firewire
  - Enable support for building Configuration ROM.
  - Open fwmem device exclusively.
* sbp
  - Don't call sbp_do_attach() recursively after agent reset
    while device probing.
* if_fwe
  - Add tx_speed sysctl variable for if_fwe.
2003-06-20 08:25:27 +00:00
Ian Dowse e95221b120 MFC: sys/nfsclient/nfs_vnops.c 1.206; when removing a sillyrename
file, make sure that the directory vnode has not been cleaned.
2003-06-20 00:54:11 +00:00
Guido van Rooij e422da9357 MFC: Add Intel 85x/86x AGP support. 2003-06-19 13:59:27 +00:00
cvs2svn f460fe2e31 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-06-19 08:34:39 +00:00
Murray Stokely fb42c612ad MFC: r1.6 (from 2001) - Shit+Ins - past buffer, Shift+PrintScr -
prev. screen.

PR:		misc/42761
Requested by:	Pawel Jakub Dawidek <[email protected]>
2003-06-19 07:32:58 +00:00
David Schultz 456ecd92c7 MFC:
Fix memory leak
	union_subr.c,v 1.71
Add union_dircache_free()
	union.h,v 1.27
	union_subr.c,v 1.72
	union_vnops.c,v 1.98
Add malloc types M_UNDCACHE and M_UNPATH
	union_subr.c,v 1.73
Fix panic when unionfs is mounted atop another unionfs, style
	union_vnops.c,v 1.99
	union_vnops.c,v 1.100
2003-06-18 07:55:47 +00:00
Kelly Yancey 1b98bb317c MFC revision 1.29:
Account for packets processed at layer-2 (i.e. net.link.ether.ipfw=1).
2003-06-18 02:55:08 +00:00
Mike Heffner 4e56101c74 MFC: revs 1.7-1.9
ANSIfy and remove register
     Update with NetBSD changes
2003-06-17 19:03:22 +00:00
Max Khon 8cdcf0f99b MFC rev. 1.20:
Add two more Vendor ID's for Leadtek Winfast TV 2000.
2003-06-17 16:55:08 +00:00
Max Khon 082fdcf5c0 MFC rev 1.124:
Fix a bug which caused signals on YUV images to fail.

MFC rev 1.125:
Fix broken programming of VSCALE_HI registers in yuv422_prog().
2003-06-17 16:52:47 +00:00
Paul Saab 8cd476e9f8 MFC: rev 1.7 Add some HP cards to the supported list of cards. 2003-06-17 16:17:01 +00:00
Paul Saab 7878dbf098 MFC: rev 1.5, fix 10Mbit support 2003-06-17 16:07:31 +00:00
Maxim Konovalov 657e60bb82 o MFC a comment for SHMALL: it is in pages, not in bytes.
Spotted by:	Dmitry Afanasiev <[email protected]>
Reviewed by:	alfred
2003-06-17 15:39:19 +00:00
Tim J. Robbins ed0cfa3714 MFC rev. 1.2: Fix a typo in the -O parsing code that caused a crash when
the -O option is used without supplying "sowner:sgroup".

PR:		37171
2003-06-17 13:12:21 +00:00
Yaroslav Tykhiy c08ba48053 MFC rev. 1.37-1.40: Assorted manpage fixes. 2003-06-17 12:32:24 +00:00
Mike Heffner 5693f08efd MFC: r1.15: Check whether setmode() fails. 2003-06-17 04:37:52 +00:00
Mike Heffner 371eaf819a MFC: r1.3: Intialize sign to NULL. 2003-06-17 04:29:36 +00:00
Mike Heffner 4fb792acc8 MFC: r1.8: Return path is optional 2003-06-17 04:25:07 +00:00
Hiten Pandya 37d79a5bf3 MFC: rev. 1.31
Remove unwanted information about future changes to the packet
queueing discipline and remove the IF_ENQ_DROP macro from the
SYNOPSIS because it was nuked when jlemon did the locking work
on the interface queues.

The original commit to HEAD was ...

Approved by:		des (mentor)
2003-06-15 02:22:30 +00:00
Tom Rhodes 12aff5135d o MFC: if_aue.c 1.62. Add support for the Belkin USB2LAN USB 10/100 NIC.
o Regen.

PR:	53066
2003-06-14 15:56:48 +00:00
Jens Schweikhardt 8534bc787e MFC: rewrite from csh to sh so systems with NO_TCSH can make world. 2003-06-14 14:26:25 +00:00
Tom Rhodes 0b44149ec6 MFC:
refuse		1.9
refuse.README	1.8
2003-06-13 22:35:48 +00:00
Ruslan Ermilov e0ad4846dd MFC: 1.16: Range check "fd" before using it as an array index. 2003-06-13 16:04:59 +00:00
Tom Rhodes bd39ff93a7 Removed some unused variables. This is a basic MFC of revision 1.137
originally committed by phk.

Tested with:	make buildkernel
2003-06-13 15:05:47 +00:00
Tom Rhodes 49beae349b MFC: Revision 1.54:
Add an EXAMPLES section.

PR:		43899
Reviewed by:	des, ru
2003-06-13 14:36:58 +00:00
Yaroslav Tykhiy 0b5466dc39 MFC rev. 1.62: Move the nntp line to the section of optional services;
change path to nntpd; advise to run nntpd as "news".
2003-06-13 10:43:19 +00:00
Tony Finch 6e9aad3056 Sync with -CURRENT: s///g and s///N fixes and warning reduction. 2003-06-13 07:32:08 +00:00
Hiten Pandya 66bc0af016 MFC:
Bring in the pci(9) manual page, which documents some of the
vital functions of the PCI bus interface.

Written by:	Bruce M. Simpson <[email protected]>
Approved by:	des (mentor)
2003-06-13 01:04:17 +00:00
Bruce A. Mah e9efc6f864 MFC: Add Belkin USB 2.0 High Speed Host Controller. 2003-06-12 18:38:47 +00:00
Maxime Henrion b2ab790b92 MFC: Add a new device ID.
Relevant HEAD revision:
	if_fxp.c: 1.182
2003-06-12 16:47:05 +00:00
Hiroki Sato 97e45a72c7 Catch up with the English version:
1.1.2.104 -> 1.1.2.105		errata/article.sgml
	1.22.2.354 -> 1.22.2.355	relnotes/common/new.sgml
2003-06-11 21:09:25 +00:00
Hiroki Sato cad22a7865 MFC: Move ($create-refentry-xref-link$) to the language-neutral place
and add entities &release.manpath.*; for man.cgi's manpath=XXX.
2003-06-11 21:04:44 +00:00
cvs2svn 4bfb8f80fb This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-06-11 00:57:00 +00:00
Ceri Davies 70e74bf556 MFC revision 1.13:
Correct a typo.
2003-06-10 21:04:14 +00:00
Ceri Davies 36a671487d MFC revision 1.4:
Apply a couple of grammatical improvements.
2003-06-10 21:01:38 +00:00
Justin T. Gibbs 271a6442bb MFC: Update aic7xxx and aic79xx drivers as of today's -current. 2003-06-10 03:26:09 +00:00
Prafulla Deuskar c877838fac Fix the breakage in VLAN MTU caused by earlier commit. 2003-06-09 22:10:15 +00:00
Prafulla Deuskar d73b932e3a MFC:
Add support for Quad port adapter
  Add sysctl's to display statistics/debug_info
  Increment packet in/out statistics inline instead of every two seconds
2003-06-09 21:43:41 +00:00
Mario Sergio Fujikawa Ferreira 542ffa627f MFC: rev 1.15
"pkg_create incorrectly does not add trailing '\n' when it receives
either COMMENT or DESCR from the command line. When a port is
installed, one gets both +COMMENT and +DESCR files with a trailing
'\n' character. However, +COMMENT does not contain a trailing '\n'
when it is installed from a package due to this behavior of pkg_create.

 Therefore, make sure it behaves exactly the same regardless of
where it got its information; either command line or files. The
modified functions are used by pkg_create."

PR:		52097
2003-06-09 17:02:31 +00:00
Mario Sergio Fujikawa Ferreira 435ece28c2 MFC: rev 1.49
"pkg_create incorrectly does not add trailing '\n' when it receives
either COMMENT or DESCR from the command line. When a port is
installed, one gets both +COMMENT and +DESCR files with a trailing
'\n' character. However, +COMMENT does not contain a trailing '\n'
when it is installed from a package due to this behavior of pkg_create.

 Therefore, make sure it behaves exactly the same regardless of
where it got its information; either command line or files. The
modified functions are used by pkg_create."

PR:		52097
2003-06-09 17:01:26 +00:00
Mario Sergio Fujikawa Ferreira 3d68ebc794 MFC: rev 1.36. Add a trailing '\n' character if none is found in
the information obtained from a package. Patch show_file() [1] and
show_index() [2] functions.

PR:		52097
Obtained from:	NetBSD [1],
		OpenBSD [2]
2003-06-09 16:59:43 +00:00
Maxime Henrion 133e659fae MFC: Change a :
bzero(ptr, sizeof(DC_RXLEN * 5));
which should obviously be:
	bzero(ptr, DC_RXLEN * 5);

Looks like this bug may have reduced the effectiveness of the
workaround for the hardware bug in the PNIC chips.

Relevant HEAD revision:
	if_dc.c: 1.110
2003-06-08 14:31:53 +00:00
Martin Blapp 13c1649965 MFC Rev. 1.107
Only use a SIA/SYM media info block
if no MII block is detected.

Reviewed by:	phk
2003-06-07 21:36:48 +00:00
Martin Blapp 9f311aa488 MFC rev. 1.39
Define AFMT_S16_NE for "16-bit signed format in machine's
native endian convention. Needed by newer OSS ports.

Reviewed by:	phk
2003-06-07 21:31:56 +00:00
Martin Blapp aef2cf2387 MFC Rev 1.105
Use only a 64bit hash filter table for ADM-Centaur cards like the
Accton EN2242 and the ADMtek AN985 cards.

Reviewed by:	phk
2003-06-07 17:15:02 +00:00
Martin Blapp 6a744f5629 MFC rev. 1.106 (if_dc.c) and rev. 1.31 (if_dcreg.h)
Add support for 3Com OfficeConnect 10/100B.

Reviewed by:	phk
2003-06-07 16:55:35 +00:00
Tor Egge e30be66c88 MFC: Add tracking of process leaders sharing a file descriptor table and
allow a file descriptor table to be shared between multiple process
     leaders.

PR:		50923
2003-06-06 20:21:32 +00:00
Max Khon 7a36326b22 Explicitly enable interrupts on CMD64[89] controllers.
This fixes support for some AMI Hyperdisk 100 "MG80649"
(and probably AMI Hyperdisk 66 "MG80648") RAID controllers.

Approved by:	sos
2003-06-06 13:27:05 +00:00
Dag-Erling Smørgrav 71fd903060 MFC: netrc, ETA. 2003-06-06 06:48:42 +00:00
Dag-Erling Smørgrav c8f917b63a MFC: netrc, FETCH_BIND_ADDRESS, misc. bug fixes. 2003-06-06 06:45:25 +00:00
Greg Lehey 65650f2096 vinum_resetconfig: Make it a little more difficult for people to
ignore warnings and use resetconfig.

vinum_start: don't try to start md devices.
2003-06-06 05:13:29 +00:00
Sam Leffler 1a1e2bac5c update for MFC of rndtest support
Submitted by:	Barney Wolff
2003-06-05 04:13:48 +00:00
Sam Leffler c27e6ce57b MFC in-kernel RNG test facility support in ubsec+hifn crypto drivers 2003-06-04 17:56:59 +00:00
Sam Leffler 767d73f7f2 MFC in-kernel RNG testing facility 2003-06-04 17:10:30 +00:00
Sam Leffler 2abd32481b MFC support for additional cards: 5802-based cards and Sun 582x-based cards 2003-06-04 17:05:11 +00:00
Andrey A. Chernov 84c4451b97 MFC: fatal->warnx 2003-06-03 21:15:48 +00:00
Jens Schweikhardt 117e2fe6fb MFC: Fix grammar bogons. 2003-06-03 19:13:16 +00:00
Hiten Pandya 4b29dfda92 A little cleanup of cd(4) manual page:
- Document ``target'' and ``unit'' of cd(4)
	  for config.

PR:     	docs/35941
Submitted by:	Gary W. Swearingen <[email protected]>

	- Mdoc dept., nuke hard sentence breaks.

Approved by: des (mentor)
2003-06-03 14:32:09 +00:00
Ruslan Ermilov c03f6c77a6 MFC:
1.14: fix for a double close([0-2]) bug.
1.15: fix for a stale stdio descriptors flags bugs.
2003-06-03 14:09:01 +00:00
Sam Leffler 85497751ed MFC cryptotest improvements:
o add hash operations
o fixup AES operations
o add -c option to compare/verify operation result
o make multi-threaded reporting to be more meaningful
o fix default block size selection
2003-06-03 00:14:44 +00:00
Sam Leffler d0c449e7e1 MFC additional statistics reporting tools 2003-06-03 00:13:13 +00:00
Sam Leffler 68c96cc8f5 o add a ``done'' flag for crypto operations; this is set when the operation
completes and is intended for callers to check operations that may complete
  ``prematurely'' because of direct callbacks
o correct crypto_dispatch's handling of operations where the driver returns
  ERESTART: the return value must be zero and not ERESTART, otherwise the
  caller may free the crypto request prematurely (fixes panic for ops submitted
  through /dev/crypto)
2003-06-03 00:09:02 +00:00
Andrey A. Chernov 8e2cd0c844 Partial MFC: INVALID keyword warning, hardcoded encodings list 2003-06-02 20:00:28 +00:00
John Baldwin 7d9c11c57a MFC: Fix support for 256 MB apertures and add i865 chipset support. 2003-06-02 17:38:19 +00:00
cvs2svn 7394deba05 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-06-02 16:32:56 +00:00
Max Khon 401da56c0f MFC: rev. 1.20:
fix stripping last path component when only one path component left.

PR:		52686
2003-06-02 13:31:16 +00:00
Maxim Konovalov c6c1f70ac1 Fix several cases when vnconfig(8) fails but returns zero exit code.
PR:		bin/45754
Submitted by:	Eugene Grosbein <[email protected]>
Reviewed by:	OK'ed by phk, silence on -stable
2003-06-02 09:10:27 +00:00
Maxime Henrion b5938e81b6 MFC: -o flag.
Relevant HEAD revisions:
	xargs.c: 1.47, 1.48
	xargs.1: 1.29
2003-06-01 21:40:35 +00:00
Yoshihiro Takahashi 3a05495658 MFC: Force PnP devices to set SMIT mode. 2003-06-01 04:26:44 +00:00
Yoshihiro Takahashi 4e1a382503 MFC: Fix off-by-one bug. 2003-06-01 04:24:50 +00:00
Yoshihiro Takahashi 9ecf5e2073 Add (commented out) FireWire drivers. 2003-06-01 04:23:00 +00:00
Yoshihiro Takahashi 51405541f4 MFi386: revision 1.385.2.30 2003-06-01 04:21:06 +00:00
Mike Silbersack 5ceac047fa MFC rev 1.83:
Fix a panic in low memory situations.
2003-06-01 01:46:11 +00:00
Alan Cox 672db98d64 MFC (o)sendsig() changes from revisions 1.503 and 1.504
Eliminate grow_stack() and useracc() from (o)sendsig().  Both
 of these functions are handled transparently by copyout().
2003-05-31 08:48:05 +00:00
Alan Cox 2fe3a8c594 MFC
o Don't reinitialize fields that are already initialized by getpbuf().
 o Sufficient access checks are performed by vmapbuf() that calling
   useracc() is pointless (and costly).  Remove the call to useracc().
2003-05-29 06:15:35 +00:00
Hiten Pandya b5347100d7 Add MLINK for suser_xxx(9) function, which is documented in suser(9)
PR:		docs/50390
Submitted by:	Dmitry Sivachenko <[email protected]>
Approved by:	des (mentor)
2003-05-28 18:54:44 +00:00
Alan Cox 4f924a8dbd MFC changes to vmapbuf()
o Check the b_bufsize passed to vmapbuf() returning an error
   if it is invalid.
 o Remove an unnecessary trunc_page().
 o Remove a debugging printf().
2003-05-28 18:38:10 +00:00
Yaroslav Tykhiy 5614fd6868 Merge mbuf(9) page from CURRENT. This is particularly
important since there already exist references to mbuf(9)
from other manpages in STABLE.

PR:		docs/44337 docs/50463
2003-05-28 13:53:18 +00:00
Gregory Neil Shapiro d9282d4592 Complete the MFC started in revision 1.4.2.10. The dyn_keepalive keyword
was missing even though it was in the man page and the sysctl exists.
2003-05-27 22:21:11 +00:00
John Polstra 3adaa267af MFC: Add stub implementations of pthread_[gs]etconcurrency to
libc_r.  This merges the following revisions from the trunk:

    1.28        src/include/pthread.h
    1.20        src/lib/libc_r/man/Makefile.inc
    1.1, 1.2    src/lib/libc_r/man/pthread_getconcurrency.3
    1.36        src/lib/libc_r/uthread/Makefile.inc
    1.1         src/lib/libc_r/uthread/uthread_concurrency.c

PR:		standards/50848
2003-05-27 18:18:01 +00:00
Alan Cox 7488f7d9fd MFC
Make the reservation of KVA space for kernel map entries a function
 of the KVA space's size in addition to the amount of physical memory
 and reduce it by a factor of two.
2003-05-27 00:47:02 +00:00
Alan Cox 4c073ae0d9 MFC
Reduce the size of a vm object by converting its shadow list from a TAILQ
 to a LIST.
2003-05-26 19:17:56 +00:00
Andrey A. Chernov 4aa58163fe cons25w: remove ve,vi,vs mistakenly merged in 1.89.2.25 2003-05-26 18:52:13 +00:00
Hiten Pandya e060ab132a MFC rev. 1.16:
Update amr(4) to note that LSILogic MegaRAID 320-[1/2] cards work
with this driver.

PR:     	docs/50139
Submitted by:	Jeroen Ruigrok van der Werven (asmodai)
Approved by:	des (mentor)
2003-05-26 12:41:05 +00:00
Hiten Pandya 73df0bcd9b MFC rev. 1.23: Duplication "from"
PR:		docs/51724
Submitted by:	Christopher Nehren <[email protected]>
Approved by:	des (mentor)
2003-05-26 12:35:35 +00:00
Christian Brueffer 9d34e435e7 MFC 1.14
Clarify the describtion of the -A switch

PR:             51187
Submitted by:   Jeff Ito <[email protected]>
2003-05-25 20:06:57 +00:00
Hiten Pandya 72aa2e46c6 mdoc(7) and spelling fixes.
Approved by:	des (mentor)
2003-05-24 20:45:28 +00:00
cvs2svn 97e778ba56 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-05-24 19:53:09 +00:00
Giorgos Keramidas 2b49c5b096 MFC - Reduce diffs to current.
strftime.3	-> 1.30
strptime.3	-> 1.20

Use one line for each function argument to keep the line width
smaller than 80 columns.
2003-05-24 00:01:31 +00:00
Giorgos Keramidas c1e04daf9c MFC -- reduce diffs to current.
1.19: "The .Fn function".
     1.20: Fixed a few .Fa abuses.
2003-05-23 23:53:40 +00:00
Giorgos Keramidas f3da568aea Add MLINKS to the reentrant variants of:
asctime(), ctime(), gmtime(), and localtime().
2003-05-23 23:44:27 +00:00
Doug White d1058dfda7 Add man page for kernel.conf(5).
Submitted by:	Bruce M Simpson <[email protected]>
2003-05-23 22:20:24 +00:00
Bruce A. Mah 46f9875d3b MFC: tzdata2003a. 2003-05-23 15:05:23 +00:00
Christian Brueffer 83950c81bf MFC 1.5, 1.6
Sort references by section, add a reference to release(7)

PR:		52501
Submitted by:	Simon L.Nielsen <[email protected]>
2003-05-23 07:48:35 +00:00
Max Khon ba6abc3f85 bump __FreeBSD_version for thread-safe realpath(3) 2003-05-22 17:12:01 +00:00
Max Khon 2576de1191 MFC: make realpath thread-safe.
This commit also fixes PR 12244.
2003-05-22 17:11:44 +00:00
Sheldon Hearn 3eb9c78920 MFC rev 1.9: treat sbsize as a size, not a number 2003-05-22 09:26:57 +00:00
Ruslan Ermilov 98e3af581b MFC: 1.67: Fixed typo in a comment. 2003-05-21 13:00:46 +00:00
Thomas Quinot 2e792ae82f MFC rev. 1.16: In atapi_cam_reinit_bus, guard against null pointer dereference
(caused a panic in some configurations).

PR:		i386/51421
Reviewed by:	roberto
2003-05-21 09:24:55 +00:00
Crist J. Clark 904c35fcc1 MFC 1.188: Add the TCP flags to the log message when log_in_vain is 1,
and not just when set to 2.

PR:		kern/43348
2003-05-21 04:46:41 +00:00
Gregory Neil Shapiro 955bf14748 MFC: Avoid a corrupt timestamp on the console
Revision  Changes    Path
     1.116     +6 -2      src/usr.sbin/syslogd/syslogd.c
2003-05-20 17:13:53 +00:00
Gregory Neil Shapiro 0ee1787dc3 MFC: Avoid code duplication by using libutil's trimdomain() instead of
an incorrect re-implementation.

     Revision  Changes    Path
     1.11      +3 -0      src/usr.sbin/syslogd/Makefile
     1.115     +4 -10     src/usr.sbin/syslogd/syslogd.c
2003-05-19 16:23:03 +00:00
Christian Brueffer 5bbba3699b MFC 1.48, 1.49
Add information about setting sysctl variables via loader(8)

PR:		38426
Submitted by:	Phil Pennock <[email protected]>
2003-05-19 07:49:34 +00:00
Christian Brueffer cf5b41e6c0 Remove unmatched parenthesis (not present in -current)
PR:		52259
Submitted by:	Chris Pepper <[email protected]>
2003-05-18 17:05:55 +00:00
Murray Stokely 2f74fa84de Partial MFC of r1.171 - Add missing variable for 'my' module. 2003-05-18 09:09:25 +00:00
Murray Stokely 5d78ec5bb5 MFC: Add French and Norwegian dvorak-like keymaps. 2003-05-18 08:57:28 +00:00
Murray Stokely c708b09c25 MFC: sys/dev/sio/sio_isa.c r1.11 - add modem ID. 2003-05-18 08:51:15 +00:00
Murray Stokely 010182a540 MFC: r1.12 - Fix 'M' and '?' keys for Belgian users. 2003-05-18 08:47:08 +00:00
Nate Lawson d209f3f51f Quirk for OTi usb key. MFC of 1.143 2003-05-17 21:48:30 +00:00
Nate Lawson 570e2d4328 Generalize a quirk to match all Asahi Optical (i.e. Pentax) devices. This
is an MFC of 1.82
2003-05-17 21:45:27 +00:00
Bruce A. Mah 9a137c6eec Whitespace diff reduction with HEAD, no content changes. 2003-05-17 16:31:28 +00:00
Bruce A. Mah 9a6c449b1d Add manpage entity reference for sbni(4). 2003-05-17 16:28:46 +00:00
Bruce A. Mah 9254b67c84 MFC: Flesh out information on pointing devices and add some manpage
cross-references for keyboards.  Add a mention of VGA video cards, and
pointers to XFree86 where appropriate.

PR:		43410
2003-05-17 16:21:39 +00:00
Giorgos Keramidas d0ba8c0562 Partial MFC: 1.12: Note special meaning of operators in shells,
explain integer conversion and describe operator precedence.
2003-05-16 22:55:19 +00:00
Giorgos Keramidas 5c335d1555 MFC: 1.33: Fix a broken reference to locale(5) and xref re_format(7). 2003-05-16 22:45:18 +00:00
Giorgos Keramidas 508ebb4a25 Reduce diffs to current.
MFC: 1.23: The .Nm utility
2003-05-16 22:43:15 +00:00
David E. O'Brien 4fb2e5d3da MFC rev 1.239 - Fix long standing bug that prevents the PT_CONTINUE, PT_KILL
and PT_DETACH ptrace(2) requests from functioning as advertised in the manual
page.

RELENG_4 patch submitted by:	Mark Kettenis <[email protected]>
2003-05-16 16:34:34 +00:00
cvs2svn 82a34fea66 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-05-16 03:46:54 +00:00
Murray Stokely 498786aea9 MFC: r1.371 : add the dragon graphical screen saver as an option. 2003-05-15 02:05:31 +00:00
Murray Stokely 821966c7ac Connect dragon screen saver to the build. 2003-05-15 02:02:39 +00:00
Wilko Bulte b2d905a749 add support for NetMos 4S0P PCI: 4S, 0P
tested on -current: ceri
tested on -stable:  wilko

approved: re (scottl)

obtained from: NetBSD
2003-05-14 09:43:22 +00:00
Paul Saab f22c5a512d Opps. nuke duplicate definition for the 5703
Submitted by:	kbyanc
2003-05-13 21:21:33 +00:00
Tom Rhodes 70a8d84192 MFC revision 1.32:
Describe the pattern filenames must be in before they are added to the hints
file.

PR:	46271
2003-05-13 19:25:19 +00:00
Tom Rhodes ca8ca99a44 MFC:
- mount_nfs.8 revision 1.38: Remove remnants of the -p option.
- mount_nfs.c revision 1.61: Remove -p from getopt args.
2003-05-13 14:45:40 +00:00
Joerg Wunsch dd72e2699e Document the -v option for mfs(8), too.
Submitted by:	Gunther Nikl <[email protected]>
2003-05-13 12:16:08 +00:00
Joerg Wunsch 4e9d830505 For FreeBSD 4.x, if someone really has his swap on Vinum, he wants the -v
option also for mfs(8).
2003-05-13 12:03:55 +00:00
Maxim Konovalov 543e350453 MFC:
rev. 1.62 ip_dummynet.c

  o Protect set_fs_param() by splimp(9).
  o Flush accumulated credits for idle pipes.
  o Flush accumulated credits when change pipe characteristics.

rev. 1.26 ip_dummynet.h

  o Change dn_flow_queue.numbytes type to unsigned long.

rev. 1.63 ip_dummynet.c

  o Fix indentation.
2003-05-13 09:31:06 +00:00
Garance A Drosehn e87aa5669a MFC 1.68: Use __FBSDID over rcsid[]. 2003-05-12 23:41:29 +00:00
Garance A Drosehn 8e0d2a7e8d MFC 1.70: Fix age_old_log checking so that it will notice log files
which were rotated and then compressed with bzip2 instead of gzip.
Before this fix, any file which had a time-interval specified for
'when' and also specified the 'J' flag would be rotated every time
newsyslog was run.

PR:		bin/51519
2003-05-12 23:31:22 +00:00
Garance A Drosehn a8b379239d MFC 1.69: Slightly improve the checking of the 'size' field, so users
get a warning message if they switch the values for 'size' and 'when'.
2003-05-12 23:24:35 +00:00
Garance A Drosehn 601be8eb26 MFC 1.46: Add the 'N' flag to the entries for three log files
which are *not* written to by the syslogd process:
           /var/log/{daily.log,weekly.log,monthly.log}
2003-05-12 23:15:33 +00:00
Garance A Drosehn 5b0cc8073b MFC 1.45: Update the comments in this file to reflect the recent
changes to newsyslog.
2003-05-12 23:12:02 +00:00
Yaroslav Tykhiy bd38060e5f MFC rev. 1.24: Don't log ``authpriv'' to /var/log/messages
since it's intended to be seen by sysadmins only.
2003-05-12 13:59:23 +00:00
Hidetoshi Shimokawa fe77189ab3 Sync with -current:
- Don't panic for FWXF_START state in fw_xfer_unload().
- Try RESET_START for sbp time.
- Use moderate gap counts.
- Imporove bus manager.
2003-05-12 04:16:30 +00:00
Paul Saab 9d367d2363 MFC:
if_bge.c:
- Support for the 5704
- Write twice to send producer index workaround
- Leave LED set to hardware default
- ONEDMA_AT_ONCE workaround
- Disable AUTOPOLL when accessing the PHY
- Check the UPDATED bit in the status block

brgphy.c:
- Support for the 5704
- Loop the phy when changing media types
- For 1000BaseT operation, autonegotiation must be enabled
- DSP patches
2003-05-11 18:00:55 +00:00
Jens Schweikhardt 39f75a3f68 MFC: Note that -n and \c are implementation-defined as per TC1 to POSIX 2001. 2003-05-11 08:48:04 +00:00
Orion Hodson 441f20770f MFC deltas between revisions 1.21 and 1.24 which relate to codec
initialization refinements and handling of mix_init failure.
2003-05-11 01:45:53 +00:00
Orion Hodson ded2c0c54b MFC deltas between revisions 1.4 and 1.6 which relate to codec
initialization refinements.
2003-05-11 01:45:49 +00:00
Murray Stokely 63aa5380a2 MFC: another graphical screen saver. This was never merged from
-CURRENT, though it was clearly written for 4.X.
2003-05-11 01:17:02 +00:00
Murray Stokely 0fe67c34bc Regenerate. 2003-05-11 00:14:19 +00:00
Murray Stokely d30cde2b2b MFC: r1.116-r1.122 - More IDs. 2003-05-11 00:12:29 +00:00
Murray Stokely f7528d8bf4 MFC: r1.123 - add ids. 2003-05-11 00:01:27 +00:00
Murray Stokely b95cde7d6c MFC: r1.20 - grammar cleanup. 2003-05-10 23:45:44 +00:00
Murray Stokely be48320d91 MFC: r1.55 - Improve grammar. 2003-05-10 23:40:09 +00:00
Murray Stokely 591874e914 MFC: r1.47 - Document login-backoff and login-retries capabilities. 2003-05-10 23:30:54 +00:00
Murray Stokely 501662e9a2 MFC: r1.17 - update information about gated. 2003-05-10 23:22:48 +00:00
Murray Stokely 43b6609ede Note that 'idletime' is unused on -STABLE.
PR:		docs/40952
2003-05-10 23:16:05 +00:00
Murray Stokely 5a88298d20 MFC: r1.11-1.12 - Add 3 medical words, remove one typo and one archaic
spelling.
2003-05-10 23:07:07 +00:00
Murray Stokely f1df00b709 MFC: r1.773 - set BOOTABLE flag in all !NOCDROM cases. 2003-05-10 23:01:29 +00:00
Gregory Neil Shapiro 720b077444 MFC: Cleanup hostname matching in syslogd:
1. Hostnames were not treated case insensitively in all cases.

     2. The method for stripping hostnames when reading the syslog.conf
        differed from that when finding the hostname of an incoming
        request.  This lead to a broken match check.  In my case, it
        meant I had to have '@scooter.smi.example.com.example.com'
        to have 'logger.example.com' properly save messages from
        'scooter.smi.sendmail.com'.

     3. Add paranoia to cfline() such that it doesn't try to access
        memory outside of the bounds of the f_host string.

     4. While I am here, get rid of an outdated comment, argv[{0,1,2}]
        are now checked for NULL after the strdup() calls.

     Revision  Changes    Path
     1.114     +24 -17    src/usr.sbin/syslogd/syslogd.c
2003-05-10 17:34:31 +00:00
Gregory Neil Shapiro b68839900b MFC: Prevent a 'make SHARED=symlinks install' followed by 'make install' from
failing by removing the symlink before trying to install the actual files.

     Revision  Changes    Path
     1.7       +1 -0      src/share/sendmail/Makefile
2003-05-10 17:24:25 +00:00
Tom Rhodes 826f6db35a MFC 1.33:
Add information about the log file.

PR:		35575
Submitted by:	"Simon L. Nielsen" <[email protected]> (original version)
2003-05-08 15:01:44 +00:00
Tom Rhodes 8b679c7dd9 MFC revision 1.12:
- Add a description of b0 / b1 fields.
- Do not use 'entry' to refer to both 'entry' and 'field'.
- Do not confuse people with heading 'Name' and entry 'Name'.

PR:		48104
Submitted by:	Gary W. Swearingen <[email protected]> (original version)
2003-05-08 14:57:04 +00:00
Maxim Konovalov 0ed1f9dc5a MFC:
rev. 1.7 jail.c

  o Add missing includes and sort includes.

rev. 1.9 Makefile
rev. 1.42 jail.8
rev. 1.9 - 1.11 jail.c

  o Add -u <username> flag to jail(8): set user context before exec.
2003-05-08 13:04:24 +00:00
Kelly Yancey 38ab2b3264 MFC kern_event.c:1.58:
Fix race between a process registering a NOTE_EXIT EVFILT_PROC event
    and the target process exiting which causes attempts to register the
    kevent to randomly fail depending on whether the target runs to
    completion before the parent can call kevent(2).

Sponsored by:	NTT Multimedia Communications Labs
2003-05-08 07:47:16 +00:00
Tom Rhodes 0a5ab200f6 MFC: df(1) and ls(1) print units in 'four or fewer' not 'three or less'.
PR:		35523
Submitted by:	Tomas Svensson <[email protected]>
2003-05-07 23:56:14 +00:00
Garance A Drosehn 29010a779a MFC *: Add a -C (create) option for newsyslog, and a 'C' flag for
entries in the config file.  If the -C option is specified once,
then newsyslog will create any entries which specify the 'C' flag.
If -C is given twice, then newsyslog will create all missing log
files.

[* = 1.67 newsyslog.c, 1.42 newsyslog.8]
2003-05-07 20:42:56 +00:00
Anton Berezin 0de1eaf10b MFC 1.24 of compare.c:
Fix two minor mismatch reporting output errors.

MFC 1.22 of mtree.c:

	The -s option should not assume -U.
2003-05-07 17:55:17 +00:00
Anton Berezin db8520818f MFC 1.25:
The -t flag in the retired apmconf.8 is the same as "-h false" in the
apm.8.  Since the -t flag in the apm.8 is something different entirely,
the reference to -t was quite confusing.  Fix that.
2003-05-07 17:42:02 +00:00
David E. O'Brien d5d9400b9a We goofed a little when we overrode the DBX_FUNCTION_FIRST logic so that
we could control the use of dbxout_really_begin_function() based on if the
target format is a.out or ELF.  The goof resulted in our target logic never
being used and thus we always called dbxout_really_begin_function() twice
in the ELF case and never in the a.out case.

PR:		41671
Submitted by:	Mark Kettenis <[email protected]>
2003-05-07 16:47:53 +00:00
John Baldwin 10c2640ffb MFC: Add PCI ID's for the Intel ICH5 controller.
Sponsored by:	The Weather Channel
2003-05-07 16:46:55 +00:00
John Baldwin a5a9dfbd04 MFC: Add PCI ID's for Intel's ICH5 controller (I82801EB).
Sponsored by:	The Weather Channel
2003-05-07 16:46:11 +00:00
John Baldwin 23d59436a4 MFC: Add isprint(). 2003-05-07 15:25:26 +00:00
Tim J. Robbins f7c686951d MFC rev. 1.15: Remove reference to libcompat, ftok() was moved into libc. 2003-05-07 00:30:26 +00:00
Tom Rhodes fe69f1fe29 MFC 1.13 && 1.14:
1.13: State the fact that the range is twice the traditional RAND_MAX.
      Add an EXAMPLES section.

1.14: Use the .Dl macro.
2003-05-06 21:40:19 +00:00
SUZUKI Shinsuke 2d5c790211 MFC: panic() doesn't need \n
Obtained from: KAME
2003-05-06 06:46:58 +00:00
Wilko Bulte a34b45c556 correct CPU speeds for Rawhide 2003-05-05 17:45:19 +00:00
Hidetoshi Shimokawa edd541944c Disable FireWire on alpha because bus_dmamap_load_mbuf() is not supported. 2003-05-05 15:03:03 +00:00
Murray Stokely c42d75e84e Prevent use of uninialized value in printf.
PR:		bin/50603
Submitted by:	Jacques <[email protected]>
2003-05-05 06:44:26 +00:00
Murray Stokely ec4cc479c4 MFC: r1.728 - Allow a person to specify NOCDROM to skip the cdrom.1
target during a release build.
2003-05-05 05:08:37 +00:00
Garance A Drosehn 1e693a7dde MFC 1.66: Fix interactions between entries for a specific file vs
entries for a filename pattern, and also wrt filenames given on
the command line.  Now if a file is listed as a specific entry, it
will not *also* be processed by an entry that specifies a pattern.
Also, filename-pattern entries will now only match existing files
(ignoring directories, etc).
2003-05-05 04:09:12 +00:00
Garance A Drosehn 27c46e2232 MFC *: Add a config-file flag of 'U' or 'u' to indicate that the
pid-file will contain the pid for a process group.  This means the
file must contain a negative value (as would be needed in the 'kill'
commmand).   Parts of this change are from OpenBSD, even though
OpenBSD does not actually have a 'U' flag.

[* = 1.64 newsyslog.c, 1.41 newsyslog.8]

PR:		bin/28435
2003-05-05 04:01:13 +00:00
Murray Stokely 86469e5c76 Add missing #include <math.h> to synopsis. Not needed on -CURRENT as
these functions are now macros there and the man page is no longer.

PR:		docs/48083
2003-05-04 22:25:22 +00:00
Wilko Bulte afeec5510f Add more detail on CPUs to AS4100 section based on some experimentation.
Minor misc. wordsmithing
2003-05-04 20:25:53 +00:00
Murray Stokely 37cd7e22c5 MFC: More technical terms used by the documentation. 2003-05-04 06:21:17 +00:00
Murray Stokely 4c54b52ad4 MFC: Add missing required doc ports. 2003-05-04 04:13:19 +00:00
Garance A Drosehn a3bd09b0a3 MFC *: Add a command-line option of '-s', which indicates that newsyslog
should not send a signal to any processes.  Also add a config-file flag
of 'N' or 'n', which indicates that the given logfile has no process which
needs a signal when it is rotated.  Both of these are based on changes
NetBSD has made, although the implementation is somewhat different.

Also add a command-line option of '-R somename', which indicates that
newsyslog should rotate all files given on the command, even if they
don't seem to need to be rotated.

This also brings in some other minor improvements, such as improving the
interactions between specific log files given on the command line, and
config-file entries which specify a filename-pattern (flag 'G').

[* = 1.40 newsyslog.8, 1.55->1.63 & 1.65 newsyslog.c]

PR:		bin/36553 (2nd half),  29363 (a small part of)
Obtained from:	NetBSD (for option -s and flag 'N')
2003-05-04 03:39:11 +00:00
Giorgos Keramidas 33984c47d4 MFC: 1.38: There are 5 not 4 securelevels. 2003-05-03 22:19:20 +00:00
Giorgos Keramidas 8bb8138e65 MFC: 1.179: Document mountd_flags. 2003-05-03 22:15:27 +00:00
Giorgos Keramidas 47c0a66fef MFC: 1.43: Document the undocumented -l option (lowercase `el'). 2003-05-03 22:10:02 +00:00
Giorgos Keramidas 6ad5deaa0f MFC: 1.15: Document the MAIL_AGENT environment var. 2003-05-03 22:02:49 +00:00
Giorgos Keramidas 9492768b51 MFC: 1.34: Explain the format of the at.allow and at.deny files in detail. 2003-05-03 21:55:26 +00:00
Giorgos Keramidas f60e4c4a52 MFC: Quote authname and authkey. Some ISPs allow (or even require)
non-alphanumeric characters in these and this will be a hint to the
users that quotes can and should be used in such cases.
2003-05-03 21:35:06 +00:00
Tom Rhodes 293517b613 Bring the oid description functionality (-d) into STABLE.
PR:		51201
Submitted by:	Andy Gilligan <[email protected]>
2003-05-01 22:48:09 +00:00
Eric Anholt 72bbbb7989 MFC: linux-compatibility DRM ioctl handler, removing the need for DRM_LINUX
option in building the DRM.
2003-05-01 20:16:09 +00:00
Tom Rhodes 9ea13d94f5 MFC: majordomo to Mailman changes. 2003-05-01 15:09:53 +00:00
Hidetoshi Shimokawa 4194beac7b sync with -current. 2003-05-01 06:35:00 +00:00
Hidetoshi Shimokawa 7056c4453e Sync with -current:
Add support for link-on and reset_start packets.
2003-05-01 06:26:35 +00:00
Hidetoshi Shimokawa 6f22555b51 Sync with -current:
- header file clean up.
- improve bus explore for broken device.
- minor sbp related fix.
2003-05-01 06:24:37 +00:00
Paul Saab aa613b2545 MFC: rev 1.35. Update the mbuf watermark settings. 2003-04-29 18:40:44 +00:00
Nate Lawson 011509d2a1 MFC: 1.138 Various quirks 2003-04-29 18:13:16 +00:00
Hajimu UMEMOTO f617e19a84 MFC 1.12: When session is over, IPv6 default route to tun should be
removed, too.
2003-04-29 16:05:55 +00:00
Hajimu UMEMOTO a6c88e9d16 MFC: Set link-local address of tun interface with prefixlen = 64
instead of 128.  It makes RA happy.

	usr.sbin/ppp/iface.c:	1.36
	usr.sbin/ppp/ipv6cp.c:	1.11
2003-04-29 16:04:41 +00:00
Hidetoshi Shimokawa 66aeae23e0 Fix typo.
cf.  http://www.clave.gr.jp/ml/bsd-nomads/200005/msg00218.html
2003-04-29 15:55:06 +00:00
Tom Rhodes f1f58d36a9 MFC revision 1.15: Add vmemoryuse to the list. 2003-04-29 14:40:07 +00:00
Tom Rhodes 642c5c0f29 MFC: revision 1.14: Add sys/usr.h to the list of includes. 2003-04-29 14:37:04 +00:00
Dag-Erling Smørgrav 66b26638e5 MFC: (rev 1.96) rename the login.conf variable controlling the login prompt
PR:		docs/51396
2003-04-29 14:10:41 +00:00
Jens Schweikhardt 2130046bcd MFC: mostly xterm changes (no more need for xterm-color, which is now an
alias for xterm); removal of some two character names.

PR:		bin/41143
2003-04-29 12:01:57 +00:00
Maxim Konovalov 6965854dec MFC rev. 1.23: fix Aristotle's date of death. 2003-04-29 08:58:57 +00:00
Maxim Konovalov 8f887fb187 MFC rev. 1.30: fix a typo. 2003-04-29 08:53:04 +00:00
SUZUKI Shinsuke 153668fc7b MFC rev 1.7: sync with the latest KAME (just a cosmetic change) 2003-04-29 08:33:50 +00:00
Christian Brueffer 40d3c1dde1 MFC: Mbits -> Mbits/s
band width -> bandwidth

PR:		39822
Submitted by:	Chris Pepper <[email protected]>
2003-04-29 07:57:22 +00:00
Archie Cobbs 1a664805d9 MFC: (rev. 1.35) Add missing braces. 2003-04-28 20:41:09 +00:00
Wilko Bulte 6acc78d07f Triggered by obtaining a Rawhide for my machine farm add some more detail
to it's section. More to come later.
2003-04-28 20:06:58 +00:00
Garrett Wollman c9b0216845 Merge from vendor branch:
- No more DST in Pakistan
- Update some historical information
- New zone for Rothera station in the Antarctic.

PR:		misc/51495
2003-04-28 18:57:25 +00:00
Archie Cobbs 493fb332d8 MFC: (1.144, 1.145): Check the return value from m_copy() for NULL. 2003-04-28 15:45:53 +00:00
Prafulla Deuskar 3b35c979c1 Tell the upper layer(s) that we support long frames.
Not doing this caused the vlan mtu to be reduced by 4 bytes.

Submitted by:	Doug Ambrisko (ambrisko)
2003-04-28 15:31:39 +00:00
Søren Schmidt c77f892ed4 Add yet another HPT chip id.
Spell Sil right.
2003-04-28 10:41:34 +00:00
Christian Brueffer 5298eead90 MFC: Grammar and punctuation fixes
PR:		40910 (most of them)
Submitted by:	Chris Pepper <[email protected]>
2003-04-28 08:34:04 +00:00
Hidetoshi Shimokawa daf0b16ba1 MFC: Fix bogus maxsegsz parameter for bus_dma_tag_create(). 2003-04-28 03:59:03 +00:00
Hidetoshi Shimokawa 00222ec6dd MFC: Add FireWire drivers to GENERIC and drivers.conf. 2003-04-28 03:41:46 +00:00
Hidetoshi Shimokawa 79a585c99c Sync with -current:
- Busdma conversion.
- Use natural byte order for IEEE1394 packet headers.

SBP related:
- Fix for multiple unit directories in a configuration ROM.
- Increase size of tagged queue.

and many changes and cleanups.
2003-04-28 03:29:19 +00:00
Garance A Drosehn d5931f9ddc MFC 1.51->1.53: Fix so -a honors the -n ("do nothing") option, and a
few other minor fixes.

PR:		bin/46974 and bin/30654 (part of it)
2003-04-27 23:45:52 +00:00
Garance A Drosehn e9c176cb88 MFC *: Add the idea of a "default rotate action", which will be used if a
file is specified on the command line, but that filename is not listed in
the newsyslog.conf file.  This action is set by having a rule in the
config file with a filename of "<default>".

[* = 1.50 + 1.54 newsyslog.c, 1.39 newsyslog.8]
2003-04-27 22:51:45 +00:00
Nate Lawson 50051d75f4 Add a quirk for the Sony Memory Stick adapter for the CLIE series. This
has been in -current for a while but was never MFCd.
2003-04-27 20:05:11 +00:00
Hiroki Sato b267619406 Catch up with the English version:
1.1.2.100 -> 1.1.2.104	errata/article.sgml
2003-04-27 19:36:43 +00:00
David Malone 778b629a74 MFC 1.7: Fix a bug where you couldn't start top in a very small window.
PR:		21075
2003-04-27 15:32:26 +00:00
Hiroki Sato a5c494a796 Catch up with the English version:
1.22.2.346 -> 1.22.2.354	relnotes/common/new.sgml
2003-04-27 09:53:38 +00:00
Garance A Drosehn 5c4fe9e980 Cosmetic change, just so the order of defines in -stable matches -current. 2003-04-27 04:11:22 +00:00
Garance A Drosehn 727f1fc1f8 MFC 1.30->1.31: Instead of giving an example of rotating logs at the end
of the month, give an example of how to rotate logs at the beginning of
the month.       Also, Note the equivalence of certain time formats.
(mfc-ing two updates done July 2001)
2003-04-27 04:07:37 +00:00
Munechika SUMIKAWA f3fd416e27 MFC: make character buffer size bigger. 2003-04-27 00:03:36 +00:00
Munechika SUMIKAWA af89d4cd1e MFC: Use NI_xxx macros. 2003-04-26 23:53:54 +00:00
Jens Schweikhardt 773feadd5a MFC: typo: s/esycmd/esyscmd 2003-04-26 14:29:55 +00:00
Eric Anholt 160eb59efd Add DRM modules, but leave them disconnected from the build until all
previously reported problems are confirmed to be resolved.
2003-04-26 07:31:06 +00:00
Eric Anholt 73fdafa915 Hook the DRM up to the kernel build. 2003-04-26 07:25:37 +00:00
Eric Anholt a108bdec9b MFC: The code for the DRM. This the current code from DRI CVS, which I have
tested on -stable with a Rage 128 so far.  Hooking it up for building into the
kernel will follow, but modules won't be built by default until it is confirmed
to be stable by the people who had reported problems so far.
2003-04-26 07:05:30 +00:00
cvs2svn 67e7bb296a This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-04-26 06:59:39 +00:00
Bruce A. Mah 3540148827 New errata item: Possibly-corrupted patch filename.
Inspired by:	marcus
2003-04-26 00:26:08 +00:00
Bruce A. Mah 7a8d04a925 New errata note: Mention the recent appearance of /etc/login.conf.db
in release media.

I'm not 100% satisfied with the wording of this...wordsmithing
encouraged.

PR:		51345
Pointed out by:	Toni Pisjak <[email protected]>
2003-04-25 21:51:06 +00:00
Christian Brueffer 0b56ef707b MFC: Grammar and spelling fixes, improved wording
PR:		38815
Submitted by:	Chris Pepper <[email protected]>
2003-04-25 21:21:36 +00:00
Jacques Vidrine f873df2da8 Don't redefine OPENSSL_DES_LIBDES_COMPATIBILITY if it is already
defined.

Submitted by:	Love <[email protected]>
2003-04-24 21:31:13 +00:00
Jacques Vidrine d5b6d4f66a MFC 1.7 src/crypto/telnet/libtelnet/kerberos5.c
1.17 src/kerberos5/lib/libtelnet/Makefile
    1.16 src/kerberos5/libexec/telnetd/Makefile
    1.17 src/kerberos5/usr.bin/telnet/Makefile:
Unbreak Kerberos 5 authentication in telnet.

Requested by:   Tim Kientzle <[email protected]>
2003-04-24 19:14:00 +00:00
Gregory Neil Shapiro ef8332d9e3 MFC: The sendmail binary now has a reasonable default for MaxMimeHeaderLength
built in.  No need to set it here.

     Revision  Changes    Path
     1.28      +0 -1      src/etc/sendmail/freebsd.mc
2003-04-24 16:57:30 +00:00
Doug Ambrisko 40841aaf71 MFC:
Add TAG_VENDOR_INDENTIFIER (option 60) to our DHCP request done by the
  kernel BOOTP option.  The format will be:
	FreeBSD:<MACHINE>:<osrelease>
  this way people can tune their DHCP server to server up root file systems
  via the OS, machine type and version.

PR:		50249 (since MFC reminder seemed to be broken)
2003-04-24 16:51:08 +00:00
Christian Brueffer 92e887cb12 MFC: Grammar fix
PR:		51164
Submitted by:	Jeff Ito <[email protected]>
2003-04-23 07:32:39 +00:00
Ruslan Ermilov 752bd4fd3c MFC: 1.28: Permit the argument to the -s option to be a hostname. 2003-04-23 07:16:32 +00:00
Tom Rhodes 4d0555751d MFC: ntp_adjtime(2) and ntp_gettime(2) manual pages.
PR:	32674
2003-04-22 17:31:18 +00:00
Max Khon 873d1ba76c MFC: rev. 1.11 2003-04-22 10:27:44 +00:00
Bruce Evans 108f4fec21 MFC (fs/miscfs/fifo_vnops.c 1.79+1.85: don't loop in fifo_open() waiting
for another reader or writer if one arrived and departed while we were
waiting (or a little earlier).  This should fix some races, but it is
reported to not actually fix the original problem with sendmail.
2003-04-22 10:11:24 +00:00
SUZUKI Shinsuke f40192b35d MFC rev 1.15
- fixed byte order of route lifetimes in route info options.
  - corrected wording in a log message.

Obtained from: KAME
2003-04-22 09:40:57 +00:00
Andreas Klemm 90e2c08221 Revert last MFC, there is no csplit in the base system of RELENG_4.
Reviewed by:	Ruslan Ermilov <[email protected]>
Approved by:	Ruslan Ermilov <[email protected]>
2003-04-21 21:16:25 +00:00
Anton Berezin dffb944b7a Patch Safe.pm (see
http://use.perl.org/articles/02/10/06/1118222.shtml?tid=5).

Reported by:	kuriyama
2003-04-21 15:06:03 +00:00
Bruce A. Mah 0deab8aab8 MFC: Update for puc(4) devices.
PR:		50928
Submitted by:	Gavin Atkinson <[email protected]>
2003-04-20 05:01:54 +00:00
cvs2svn 134bc5c4cb This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-04-20 01:53:14 +00:00
Bruce A. Mah 8776c42965 MFC: uudecode(1)/b64decode(1) -r. 2003-04-18 00:31:48 +00:00
Tom Rhodes 972241b4fd Reduce diffs to CURRENT. 2003-04-17 17:56:34 +00:00
Ruslan Ermilov e46cb3dc8f Create the whatis(1) database in /usr/share/openssl/man. 2003-04-16 11:28:45 +00:00
Ruslan Ermilov b5d0309dfb MFC: If NO_MAILWRAPPER is set, and sendmail is still enabled,
then install a direct symlink from mailwrapper to sendmail.

PR:		conf/29699
2003-04-16 11:01:51 +00:00
Ruslan Ermilov 8b26e36136 MFC: 1.44: Further fix the syntax by ignoring empty and whitespace-only lines. 2003-04-16 10:02:37 +00:00
Ruslan Ermilov bd6783d60c MFC: 1.278: Don't make buildworld and buildkernel in parallel. 2003-04-16 09:59:40 +00:00
Tom Rhodes c3174f8e9c MFC: disc.4 2003-04-15 18:24:28 +00:00
Max Khon a27b8b2de9 MFC: Driver for Granch SBNI16 SHDSL modem 2003-04-15 18:15:08 +00:00
Max Khon d3469daa3e MFC: if_printf() 2003-04-15 18:11:19 +00:00
cvs2svn b76a843f60 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-04-15 17:26:29 +00:00
Max Khon e2ccd03e16 MFC: add manpage for sbni device driver 2003-04-15 17:23:32 +00:00
cvs2svn 3989fefffa This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-04-15 15:42:11 +00:00
Ruslan Ermilov 7ab87fbcf1 Fixed spelling of automatic snapshots' names to be 4.8-STABLE.
Submitted by:	"Igor B. Bykhalo" <[email protected]>
2003-04-15 14:40:55 +00:00
Ruslan Ermilov 21c03e835a Finish the MFC of the -C option, as it is currently in HEAD.
The -C option's behavior still has an issue of not affecting
the value of .CURDIR and .OBJDIR variables, as it should be.
This will be addressed later.

PR:		bin/47149, bin/50981
2003-04-15 14:37:35 +00:00
Mike Silbersack c94b7da19c MFC MBUF_STRESS_TEST option m_defragrandomfailure
revision 1.116
2003-04-15 06:59:29 +00:00
Mike Silbersack a321f6cea5 MFC the MBUF_STRESS_TEST code relating to net.inet.ip.mbuf_frag_size
revisions 1.187, 1.180, 1.179
2003-04-15 06:44:45 +00:00
Mike Silbersack 2290e97e0e MFC the MBUF_STRESS_TEST option. 2003-04-15 06:33:07 +00:00
Mike Silbersack a52da994fe MFC m_defrag
uipc_mbuf.c rev 1.112
mbuf.h rev 1.117
2003-04-15 06:15:02 +00:00
Mike Silbersack 45a64be64b MFC rev 1.111; allow m_dup_pkthdr to accept mbufs w/clusters. 2003-04-15 05:58:14 +00:00
Bruce A. Mah 1e550ef094 New errata: 80386 booting problem. 2003-04-15 03:46:23 +00:00
Hidetoshi Shimokawa 84b85c7bc8 MFC
- Set PCIM_CMD_SERRESPEN and PCIM_CMD_PERRESPEN.
- Fix byte order problem.
- Initialize ATRetries register.
- Panic if bus_dmamap_load() doesn't respect maxsegsz.
2003-04-15 03:41:54 +00:00
Bruce A. Mah a7d6ca34a3 New release note: 80386 kernel fix. 2003-04-15 03:29:21 +00:00
Johan Karlsson 4498dceb5e MFC part of rev 1.20
disk is a char * not an integer.

PR:		39868
Submitted by:	Dan Lukes <[email protected]>
Reviewed by:	iedowse
2003-04-14 20:10:35 +00:00
Matthew N. Dodd c1969d8ec9 Range check arguments to get_struct() to avoid crashing.
PR:		misc/42135
Submitted by:	Randy Zach <[email protected]>
2003-04-14 18:24:38 +00:00
John Hay 2f2b69f5a3 MFC: Add another backslash ('\'). (rev 1.20).
PR:	49119
2003-04-14 18:12:05 +00:00
Maxim Konovalov 776d093d62 MFC rev. 1.22: fix 'ipfw show' formatting. 2003-04-14 12:41:37 +00:00
Maxim Konovalov ff713dbce6 MFC revs. 1.3, 1.5, 1.6:
o mdoc(7) tidy up.
o Typos and whitespace cleanup.
o Add em(4) to the list of supported drivers.
2003-04-14 08:58:02 +00:00
Murray Stokely 21770660e7 MFC: r1.46 - Add Kawasaki LSI ID. 2003-04-13 02:39:25 +00:00
Murray Stokely 3641b4257a MFC: r1.117 - Add ID for new Kawasaki LSI Inc. adapter and regen. 2003-04-13 01:34:31 +00:00
Yoshihiro Takahashi 742d7bb76c MFi386: revision 1.385.2.29. 2003-04-13 01:26:30 +00:00
Murray Stokely b852569144 MFC: r1.27 - Note that the Sitecom CN-300 MultiFlash adapter works,
and provide example of using multiple slots.
2003-04-12 20:54:33 +00:00
Murray Stokely a588799b3a MFC: r1.24-1.26 - add caveats about kern.securelevel and release docs. 2003-04-12 20:42:30 +00:00
Murray Stokely 93c1b7af13 MFC: r1.2 - Fix typo. 2003-04-12 20:38:37 +00:00
Murray Stokely 11915dce55 MFC: r1.19 - Correct typos. 2003-04-12 20:37:21 +00:00
Jean-Marc Zucconi 21208e6793 MFC: rev. 1.9
In src/lib/libz/gzio.c the function gzprintf does not check if the
amount of bytes (supposed to be) written by vsnprintf exceeds the
size of the buffer.
2003-04-12 20:23:25 +00:00
Bruce A. Mah 648562da8f MFC: DIRECTIO. 2003-04-12 16:45:11 +00:00
Bruce A. Mah a1485da95c MFC: Mention GNOME 2.2.1 and KDE 3.1.1a. 2003-04-12 15:43:14 +00:00
Bruce A. Mah 11cb888d5a Whitespace. Translation teams can ignore this. 2003-04-12 15:42:26 +00:00
Bruce A. Mah 19932b9b79 MFC: Add id attributes for all sections (intended to be analogous to
rev. 1.536, but some other sections didn't have id attributes either,
so this commit adds those as well).
2003-04-12 15:40:49 +00:00
Bruce A. Mah ecc2b5afdf MFC: Slight reorganization of release notes (analogous to rev 1.535). 2003-04-12 15:35:16 +00:00
John Baldwin d905a92625 Revert one part of the last change so that cpu_class has a default value
again.  Apparently some code in pmap reads the value of this variable
before it is properly initialized.  That is a bug (!) but not a critical
one and it is easier to make this change than hunt down that bug.  This
fixes booting on 80386 machines.

Submitted by:	Erik Trulsson <[email protected]>
Pointy hat to:	jhb
2003-04-11 17:06:41 +00:00
Max Khon 79204c8742 MFC: rev. 1.97
Clear the target hardware address field when generating an ARP request.
2003-04-11 07:23:15 +00:00
Ruslan Ermilov 8f14690313 MFC: 1.95: Directories for Russian manpages. 2003-04-10 18:10:28 +00:00
Johan Karlsson 1bd1ffcd8d MFC rev 1.16 (bin/chflags/chflags.1):
Document how to clear flags with negative-logic, currently only
	the nodump flag.
2003-04-08 19:16:16 +00:00
Scott Long ad15c55bc9 MFC: Check firmware capabilities and PCI ID's to make sure that command
structures are allocated below the 2GB memory mark on cards that
     cannot support the full 4GB address space.
2003-04-08 13:22:08 +00:00
Maxim Sobolev d327329b86 MFC: allow the admin to specify a different NAS identifier than the hostname.
Approved by:	des
2003-04-08 13:20:23 +00:00
Tim J. Robbins fb3d9f5958 MFC: The descriptions of the -C and -M options were around the wrong way;
fix this.

PR:		49968
2003-04-08 11:07:51 +00:00
Tim J. Robbins f7b3aea66b MFC rev. 1.21: Add -M, -Q, -S, and -T to the usage message.
PR:		49968
2003-04-08 11:01:34 +00:00
Maxim Konovalov ac69a9dd8f MFC rev. 1.26: make socheckuid() consistent across branches. 2003-04-08 10:42:32 +00:00
Maxim Konovalov 04a01d6fc8 o Respect 'IPFW2' compile time flag.
PR:		kern/48729
Submitted by:	Pawel Malachowski <[email protected]>
Reviewed by:	luigi
2003-04-08 10:18:00 +00:00
Tony Finch 180084ff6c MFC: uudecode raw mode documentation and other improvements. 2003-04-07 20:11:46 +00:00
Tony Finch 2d8f2bbc4a MFC: decode raw/damaged files with -r, plus code improvements 2003-04-07 20:10:33 +00:00
Dag-Erling Smørgrav 53ac3f7d44 MFC: release resources after abandoning challenge-response authentication 2003-04-07 09:56:46 +00:00
Murray Stokely f4b8418f7f MFC: r1.69,1.70 - Add FreeBSD 4.8 & 5.0 to the family tree. 2003-04-07 05:22:13 +00:00
David Malone d17c6004e7 Sync with -current.
1) "Friday" option to tell calendar which is the day before the weekend, so
   it knows when to show you the events for the start of next week.
2) Make sure directories exist before installing the calendar files.
3) Misc datafile updates, additions and corrections.
2003-04-06 20:04:58 +00:00
David Malone 6218a1296b Grab a copy of mkdir for doing the installworld. The calendar MFC needs
this.

Reviewed by:	ru
2003-04-06 19:54:00 +00:00
David Malone 49702b4b24 Sync with current.
1) Favour "utility" in man page.
2) ANSIify, warns and other minor cleanup.
3) Support transfer size and timeout options.
4) Set group aswell as user.
2003-04-06 19:42:56 +00:00
John Polstra 999bb9e938 MFC ru_SU.KOI8-R 1.4 and ru_SU.KOI8-R.base 1.3: Fixes for the
Russian translations of the messages.

PR:		bin/48035, bin/48036
2003-04-05 19:11:40 +00:00
John Polstra ba6ccf8079 MFC 1.151: Correct names for fxp devices. Sort data by devid in
fxp_ident_table.

PR:		kern/48699
2003-04-05 19:03:23 +00:00
Ceri Davies a8aefe4758 MFC r1.23:
[1]	- Document EHOSTUNREACH as a possible error

	[2]	- Remove a contraction

	PR:		docs/50401
	Submitted by:	[1] Slaven Rezic <[email protected]>
2003-04-05 16:59:01 +00:00
Tom Rhodes 771267dc7a MFC: Add/fix the accents in the Italian weekday names. 2003-04-05 16:10:09 +00:00
David Malone faf78f32c8 MFC 1.3: Document the fact that hdestory calls free on the keys added with
hsearch(.., ENTER). Make the example reflect this.
2003-04-05 13:53:05 +00:00
David Malone 5699ea99e7 MFC 1.44: Extend CPU_ATHLON_SSE_HACK to cover a few more revisions of Athlons. 2003-04-05 13:47:19 +00:00
David Malone e29cb24c89 MFC:
1.108   Clear up a few warnings.
1.113   When printing the wait status, break it into a signal and a exit status.
1.118   Call login_close so that we don't leak memory.
1.119   Use close-on-exec rather than closing the discriptors manually.
2003-04-05 13:39:18 +00:00
Hajimu UMEMOTO 0da90c5b55 MFC 1.12: Make -N option work. 2003-04-05 10:54:51 +00:00
Hajimu UMEMOTO 0bb3693fd4 MFC 1.30: If IPCP is disabled, susccess of IPV6CP negotiation is
sufficient to communicate by IPv6.  So, the prompt should be `PPP'
rather than `PPp'.
2003-04-05 10:51:39 +00:00
Hajimu UMEMOTO 426524015e MFC: Don't install wrong IPv6 route by add command.
usr.sbin/ppp/command.c:	1.295
	usr.sbin/ppp/ncpaddr.c:	1.11
2003-04-05 10:48:09 +00:00
Hajimu UMEMOTO 936feee30e MFC 1.10: Once ppp session is over, the route to ff02::tun0/32
was deleted, and never came back.  Now, the route to
ff02::tun0/32 is installed at the end of IPV6CP negotiaton.
2003-04-05 10:41:53 +00:00
Hajimu UMEMOTO c1eaf44bf3 MFC 1.91: We need filling scopeid to install routes for link-local
scope addresses.
2003-04-05 10:39:05 +00:00
Hajimu UMEMOTO f5ee3c4b83 MFC 1.9: Since ppp.link{up,down} is invoked at the end of IPCP
negotiation, if we need ppp.link{up,down}, we couldn't disable
IPCP.  Now, if IPCP is disabled, ppp.link{up,down} is invoked
at the end of IPV6CP negotiation.
2003-04-05 10:37:07 +00:00
Hajimu UMEMOTO b98fbe3931 MFC 1.11: tightened check for the length of ND options. 2003-04-05 10:31:58 +00:00
Hajimu UMEMOTO b7efaaec67 MFC 1.15: made sure to keep the current stored lifetime when it was
not updated by an RA.
(a detailed description of this issue is found at the following URL.)
http://www.tahi.org/report/freebsd/freebsd48-rc2-20030316/host/lcna-stateless-addrconf/38.html
2003-04-05 10:28:53 +00:00
Tim J. Robbins f1dd065fb1 MFC wcstombs.c 1.1-1.5, mbstowcs.c 1.1-1.6: Implement the XSI extension
that allows the destination string to be NULL, and returns the number of
bytes (wcstombs) or wide characters (mbstowcs) that would be required to
store the result of the conversion without storing anything.

PR:		17694
2003-04-05 08:28:24 +00:00
Murray Stokely 66f85c3f32 Bump for 4.8-STABLE. 2003-04-05 08:05:55 +00:00
Hideyuki KURASHINA 4caebbd0ae Merge the following from the English version:
1.1.2.98 -> 1.1.2.100	errata/article.sgml
2003-04-05 01:13:10 +00:00
Tor Egge 767f182a2d MFC: Support for bypassing buffer cache for O_DIRECT reads. 2003-04-04 22:21:30 +00:00
Ruslan Ermilov 2ca7cbb14e MFC: revision 1.27 (libtelnet depends on OpenSSL). 2003-04-04 21:33:15 +00:00
Tor Egge 362b018fb6 MFC: Sleep in getnewvnode() if max number of vnodes has been reached.
Adjust the number of vnodes scanned by vlrureclaim() according to the
     size of the vnode list.
2003-04-04 20:35:58 +00:00
Bruce A. Mah 0ac36dd3c6 New errata: Document pruneage for alpha kern.flp. 2003-04-04 18:45:55 +00:00
Prafulla Deuskar b4a0197a88 MFC:
Add support for 82541 and 82547 based adapters
 - These have Intel gigabit PHY
 - 82547 uses CSA interface
Add support for DEVICE_POLLING
2003-04-04 18:39:28 +00:00
Tor Egge 9693dbdf22 MFC: Avoid file lock leakage when linuxthreads port or rfork is used:
- Mark the process leader as having an advisory lock
       - Check if process leader is marked as having advisory lock when
         closing file
       - Check that file is still open after lock has been obtained
       - Don't allow file descriptor table sharing between processes
         with different leaders

PR:		10265
2003-04-04 17:24:44 +00:00
Tor Egge c8a11f3c9f MFC: Sync new socket nonblocking/async state with file flags in accept().
PR:		1775
2003-04-04 17:11:16 +00:00
Ruslan Ermilov 0026ca4b5a MFC: Removed redundant lines. 2003-04-04 17:10:31 +00:00
Tor Egge 518e52ddf2 MFC: Track type change (file flags extended to 32 bits) 2003-04-04 17:04:04 +00:00
Ruslan Ermilov 72ca8ac3d5 MFC: Strip the .comment section out from crunch binaries and MFSROOT kernel. 2003-04-04 15:48:17 +00:00
Bruce A. Mah fa272fceb0 MFC: Floppy drives use fdc(4), not fd(4). 2003-04-04 15:13:23 +00:00
Ruslan Ermilov 448bd6543c MFC: 1.44: Don't reserve free space so as to not confuse people about >100%. 2003-04-04 11:58:05 +00:00
Ruslan Ermilov 0ace6e0902 Removed the ICMP_BANDLIM option. This saves 311 bytes of gzipped kernel
without the awi(4), and 860 bytes with awi(4) back.  That would be enough
to put awi(4) back, but would leave only 6K of free space on kern.flp to
be useful.
2003-04-04 11:51:11 +00:00
Tim J. Robbins 29fe99f7ec Back out previous. ifaddr reference counts begin at 0 in RELENG_4.
Pointed out by:	hsu
2003-04-04 09:35:43 +00:00
Tim J. Robbins ce25fed130 MFC rev. 1.33: Do not call smbfs_attr_cacheremove() in the EXDEV case in
smbfs_rename(). One of the vnodes is on different mount and is possibly on
a different kind of filesystem; treating it as an smbfs vnode then writing
to it will probably corrupt it.

PR:		48381
2003-04-04 08:57:23 +00:00
Tim J. Robbins 18370e844f MFC rev. 1.25: Allocate struct ipx_ifaddrs with an initial reference count
of 1, not 0. The wrong reference count was causing them to get freed too
early and have their contents scrambled.

PR:		48666
2003-04-04 08:47:50 +00:00
Maxim Sobolev 3c4a14f03d MFC: add support for IC Book 16x Lite and Pro multiport serial cards.
Sponsored by:	IC Book Labs
2003-04-04 08:42:17 +00:00
Tim J. Robbins f70104b538 MFC rev 1.63: Flush the output buffers before forking a child process to
avoid the child process writing data that the parent should have written.

PR:		50051
2003-04-04 08:16:26 +00:00
Bruce A. Mah 88b8346ae5 In an attempt to head off confusion stemming from the re-upload of
4.8/i386, add the MD5 checksums for the IOS images.

Minor grammar/style fixups in GNOME item.
2003-04-04 07:39:47 +00:00
Murray Stokely f8c85f9e66 This is 4.8-STABLE. 2003-04-04 07:02:46 +00:00
Bruce A. Mah 44dfb267ae Reset errata for 4.8-STABLE, seed with some new items.
Approved by:	re (implicitly)
2003-04-04 06:51:06 +00:00
Bruce A. Mah 97953c3f3c Reset release notes for 4.8-STABLE.
Move security advisories section to the top, rather than having it
sandwiched between kernel and userland.

New release notes:  SA-03:07, sendmail-8.12.9.

Approved by:	re (implicitly)
2003-04-04 06:49:20 +00:00
Bruce A. Mah daf8bcd650 Version number bumps for 4.8-STABLE release documentation.
Approved by:	re (implicitly)
2003-04-04 06:47:07 +00:00
Murray Stokely 179ecf8a0e FreeBSD 4.8 was released April 3, 2003. 2003-04-04 06:25:18 +00:00
Gregory Neil Shapiro 1fb104c141 MFC: Fix formatting (spaces -> tab)
Revision  Changes    Path
     1.17      +1 -1      src/etc/mail/aliases
2003-04-04 06:15:55 +00:00
Wilko Bulte e782eac982 We ran out of floppy space again. Remove atapifd and TurboLaser
support from the bootfloppy.

Approved by: re
2003-04-03 17:12:36 +00:00
Murray Stokely f056f4691c MFR48: Remove awi driver from boot kernel -- we are short of space.
Approved by:	re
2003-04-03 04:39:44 +00:00
Alexander Langer 0756a4c0b9 Remove 3 "&merged;" that slipped in. 2003-03-30 00:51:49 +00:00
Alexander Langer 28858cefd5 MFbed: Translation updates:
errata/article.sgml:			1.1.2.93   --> 1.1.2.98
hardware/alpha/proc-alpha.sgml		1.13.2.30  --> 1.13.2.33
hardware/common/dev.sgml		1.13.2.75  --> 1.13.2.79
installation/common/install.sgml 	1.2.2.11   --> 1.1.2.13
relnotes/common/new.sgml		1.22.2.321 --> 1.22.2.346

Work done by:	ue
Approved by:	re (bmah, murray)
2003-03-30 00:44:07 +00:00
Gregory Neil Shapiro de519b7b2a MFC: sendmail 8.12.9 import
Approved by:	re (bmah)
2003-03-29 19:33:18 +00:00
Scott Long 9682675b95 Revert the removal of AAC_COMPAT_LINUX. Keeping it in doesn't hurt anything
and preserves canned configurations that people might have.

Requested by:	alfred
Approved by:	re (murray)
2003-03-28 21:25:31 +00:00
Sam Leffler fbf19ed570 MFC: add copyright notices
Noticed by:	Robert Watson
Approved by:	re (murray)
2003-03-28 20:32:53 +00:00
Scott Long ec1ba041f9 Move aac back onto the MFSROOT floppy and but amr and mly back into the kernel
so that CAM will probe them correctly.

Approved by: re (murray)
2003-03-28 20:19:59 +00:00
Scott Long 6c69b8290a Late MFC: Remove AAC_COMPAT_LINUX and replace it with a separate aac_linux
module.

Approved by: re(murray)
2003-03-28 20:05:39 +00:00
Scott Long 52db592ffe Late MFC: Remove AAC_COMPAT_LINUX and replace it with a separate aac_linux
module.

Approved by: re(murray)
2003-03-28 19:51:37 +00:00
Scott Long 3c9b429b0c Late MFC: Remove AAC_COMPAT_LINUX and replace it with a separate aac_linux
module.

Approved by:	re (murray)
2003-03-28 19:50:17 +00:00
Matthew N. Dodd 36c1aa86b1 - Back out COMPAT_ISA_DRIVER(). 2003-03-27 21:02:31 +00:00
Matthew N. Dodd e0803d4a04 - Add missing COMPAT_ISA_DRIVER.
- Set ifq_maxlen.
Approved by:	 re (murray)
2003-03-27 20:50:17 +00:00
cvs2svn 0f27b8c160 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2003-03-27 20:48:35 +00:00
Murray Stokely 637e3ef55e MFC: GNOME 1 -> GNOME 2
Approved by: re, marcus
2003-03-27 18:18:14 +00:00
Murray Stokely ca8a171632 MFC: Move to GNOME 2 2003-03-27 18:17:17 +00:00
Alfred Perlstein 766995e4e5 req can't be NULL or we'd die.
Sponsored by: RED
2003-03-26 01:44:46 +00:00
John Baldwin e516dfaa13 Add a commented-out HTT option to GENERIC similar to SMP and APIC_IO.
Requested by:	John Cagle <[email protected]>
Approved by:	re (murray)
2003-03-25 23:33:44 +00:00
Scott Long e2a1f4371c aic79xx.reg:
Correct default precompensation value for RevA hardware.

Approved by:	re (murray)
2003-03-25 22:17:01 +00:00
Matthew N. Dodd eee924698a Mark ISA network drivers with destructive probes disabled; they can
be enabled by the user should they be needed.

Approved by:	 re (murray)
2003-03-25 19:45:14 +00:00
Hidetoshi Shimokawa ac4088b33d Safe PCI configuration.
- Clear PCIM_CMD_MWRICEN:
	some chips seem to have problem with write invalidate.
	clearing this bit fixes SBP timeout problem.
Tested by: Michael Reifenberger <[email protected]>

- Moderate value for latency timer.

Approved by: re (jhb)
2003-03-25 10:21:09 +00:00
Murray Stokely e7f9a0d3b5 Bump version number. 2003-03-25 10:20:12 +00:00
Robert Watson 4812454bff When the p1003_1b support for monitoring with and interfering with
the system scheduler was committed, access to these facilities was
limited to the root user (for unclear reasons, perhaps lack of
understanding about the potential impact of the interfacs on
system operation, or due to bugs).  However, the JDK requires the
ability to monitor scheduler parameters and selection for
linux-threaded processes; a return of EPERM causes some applications
to fail as a result (in particular, the JDK).  In 5.x-CURRENT,
we've replaced the access control with centralized access control
primitives, giving these interfaces controls similar to those
applied for rtprio(), setpriority(), etc, resulting in uniform
enforcement.

In order to enable proper JDK operation for 4.8-RELEASE, work around
the lack of proper access control by permitting the use of two
system calls: sched_getparam() and sched_getscheduler(), for non-root
processes when the call is made on the current process (either using
a 0 pid argument, or curproc->p_pid).  While we're here, fix a
bug that caused the result of the call to be returned in the
target process, not in the subject process (ouch!), but that
previously only affected root-owned processes.  These fixes are
deemed to be the lowest impact approachin the release; a backport
of the 5.x-CURRENT access control primitives might also be appropriate
in a non-release scenario.  This fix doesn't permit the calls to
succeed on other linuxthreads in the same linuxthread process, but
despite those failures the JDK appears to operate properly, so
we've opted not to broaden the scope to permit the p->p_leader ==
targetp->p_leader case at this point.

The "wrong process" return value may apply to other system calls
due to overloading of the subject process pointer with the target
process, but doesn't currently affect non-root processes (and is
fairly uncommon as usually processes are interested in frobbing their
own scheduler details, not other processes, hence it not really
showing up before).  This should be fixed in the post 4.8-RELEASE
time frame.  These bugs should not be present in 5.x due to
process-locking and security-related changes made in that branch
well prior to 5.0-RELEASE.

Submitted by:			mbr (collaborative)
Approved by:			re (murray)
2003-03-25 06:13:35 +00:00
Sam Leffler e24b452e5c Synchronize access to the zones from which crypto requests are allocated.
This corrects problems encountered when FAST_IPSEC is used together
/dev/crypto.

Reviewed by:	Jonathan Stone <[email protected]>
Approved by:	re (murray, jb)
2003-03-25 03:36:32 +00:00
Martin Blapp 452166c213 MFC rev. 1.25
We don't have cat(1) and kill(1) on the miniroot disks.

This fix will be committed to the ISC repo later, but for now
take this file out of the vendor tree.

Reviewed by:	phk
Approved by:	re (murray)
2003-03-23 23:33:59 +00:00
4201 changed files with 551401 additions and 144816 deletions

No files matched your search

+26
View File
@@ -1,6 +1,32 @@
# $FreeBSD$
# @(#)COPYRIGHT 8.2 (Berkeley) 3/21/94
The compilation of software known as FreeBSD is distributed under the
following terms:
Copyright (C) 1992-2007 The FreeBSD Project. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
are met:
1. Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright
notice, this list of conditions and the following disclaimer in the
documentation and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY AUTHOR AND CONTRIBUTORS ``AS IS'' AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL AUTHOR OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
All of the documentation and software included in the 4.4BSD and 4.4BSD-Lite
Releases is copyrighted by The Regents of the University of California.
+1
View File
@@ -107,6 +107,7 @@ BITGTS:=${BITGTS} ${BITGTS:S/^/build/} ${BITGTS:S/^/install/}
.ORDER: buildworld installworld
.ORDER: buildworld distributeworld
.ORDER: buildworld buildkernel
.ORDER: buildkernel installkernel
.ORDER: buildkernel reinstallkernel
+44 -21
View File
@@ -9,7 +9,6 @@
# -DNOCRYPT will prevent building of crypt versions
# -DNOMAN do not build the manual pages
# -DNOPROFILE do not build profiled libraries
# -DNOSECURE do not go into secure subdir
# -DNOGAMES do not go into games subdir
# -DNOSHARE do not go into share subdir
# -DNOINFO do not make or install info files
@@ -77,7 +76,7 @@ SUBDIR+= libexec
.if exists(${.CURDIR}/sbin)
SUBDIR+= sbin
.endif
.if exists(${.CURDIR}/secure) && !defined(NOCRYPT) && !defined(NOSECURE)
.if exists(${.CURDIR}/secure) && !defined(NOCRYPT)
SUBDIR+= secure
.endif
.if exists(${.CURDIR}/share) && !defined(NOSHARE)
@@ -178,11 +177,14 @@ CROSSENV= MAKEOBJDIRPREFIX=${OBJTREE} \
MACHINE_ARCH=${TARGET_ARCH} \
MACHINE=${TARGET} \
OBJFORMAT_PATH=${WORLDTMP}/usr/libexec \
PERL5LIB=${WORLDTMP}/usr/libdata/perl/5.00503 \
GROFF_BIN_PATH=${WORLDTMP}/usr/bin \
GROFF_FONT_PATH=${WORLDTMP}/usr/share/groff_font \
GROFF_TMAC_PATH=${WORLDTMP}/usr/share/tmac
.if !defined(NOPERL)
CROSSENV+= PERL5LIB=${WORLDTMP}/usr/libdata/perl/5.00503
.endif
# bootstrap-tool stage
BMAKEENV= MAKEOBJDIRPREFIX=${WORLDTMP} \
DESTDIR= \
@@ -339,17 +341,25 @@ buildworld: ${WMAKE_TGTS}
#
# Checks to be sure system is ready for installworld
#
installcheck:
CHECK_UIDS=
CHECK_GIDS=
.if !defined(NO_SENDMAIL)
@if ! `grep -q '^smmsp:' /etc/passwd`; then \
echo "ERROR: Required smmsp user is missing, see /usr/src/UPDATING."; \
false; \
fi
@if ! `grep -q '^smmsp:' /etc/group`; then \
echo "ERROR: Required smmsp group is missing, see /usr/src/UPDATING."; \
false; \
fi
CHECK_UIDS+= smmsp
CHECK_GIDS+= smmsp
.endif
installcheck:
.for uid in ${CHECK_UIDS}
@if ! `id -u ${uid} >/dev/null 2>&1`; then \
echo "ERROR: Required ${uid} user is missing, see /usr/src/UPDATING."; \
false; \
fi
.endfor
.for gid in ${CHECK_GIDS}
@if ! `find / -prune -group ${gid} >/dev/null 2>&1`; then \
echo "ERROR: Required ${gid} group is missing, see /usr/src/UPDATING."; \
false; \
fi
.endfor
#
# distributeworld
@@ -364,7 +374,7 @@ distributeworld installworld: installcheck
mkdir -p ${INSTALLTMP}
for prog in [ awk cap_mkdb cat chflags chmod chown \
date echo egrep find grep \
ln make makewhatis mtree mv perl pwd_mkdb rm sed sh sysctl \
ln make makewhatis mkdir mtree mv pwd_mkdb rm sed sh sysctl \
test true uname wc zic; do \
cp `which $$prog` ${INSTALLTMP}; \
done
@@ -497,8 +507,21 @@ buildkernel:
# Install the kernel defined by INSTALLKERNEL
#
installkernel reinstallkernel:
.if !defined(MODULES_WITH_WORLD) && !defined(NO_MODULES) && exists(${KRNLSRCDIR}/modules)
@echo
@echo "--------------------------------------------------------------"
@echo ">>> Making hierarchy"
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; \
${CROSSENV} PATH=${TMPPATH} ${MAKE} -f Makefile.inc1 hierarchy
.endif
@echo
@echo "--------------------------------------------------------------"
@echo ">>> Installing kernel"
@echo "--------------------------------------------------------------"
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
${CROSSENV} ${MAKE} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel$//}
${CROSSENV} PATH=${TMPPATH} \
${MAKE} KERNEL=${INSTKERNNAME} ${.TARGET:S/kernel$//}
#
# update
@@ -531,7 +554,7 @@ update:
@echo "--------------------------------------------------------------"
@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; cvs -q update -rRELENG_4 -P -d
cd ${.CURDIR}; cvs -R -q update -rRELENG_4 -P -d
.endif
#
@@ -581,7 +604,7 @@ _strfile= games/fortune/strfile
bootstrap-tools:
.for _tool in ${_strfile} usr.bin/yacc usr.bin/colldef \
usr.bin/uudecode usr.bin/xinstall \
usr.bin/makewhatis usr.bin/uudecode usr.bin/xinstall \
usr.sbin/config \
gnu/usr.bin/gperf gnu/usr.bin/groff gnu/usr.bin/texinfo
${ECHODIR} "===> ${_tool}"; \
@@ -612,12 +635,12 @@ _perl= gnu/usr.bin/perl/miniperl
.endif
.if exists(${.CURDIR}/kerberosIV) && exists(${.CURDIR}/crypto) && \
!defined(NOCRYPT) && defined(MAKE_KERBEROS4)
!defined(NOCRYPT) && !defined(NO_OPENSSL) && defined(MAKE_KERBEROS4)
_libroken4= kerberosIV/lib/libroken
.endif
.if exists(${.CURDIR}/kerberos5) && exists(${.CURDIR}/crypto) && \
!defined(NOCRYPT) && defined(MAKE_KERBEROS5)
!defined(NOCRYPT) && !defined(NO_OPENSSL) && defined(MAKE_KERBEROS5)
_libkrb5= kerberos5/lib/libroken kerberos5/lib/libvers \
kerberos5/lib/libasn1 kerberos5/lib/libhdb kerberos5/lib/libsl
.endif
@@ -698,7 +721,7 @@ _generic_libs= gnu/lib
_generic_libs+= gnu/usr.bin/perl/libperl
.endif
.if !defined(NOCRYPT) && defined(MAKE_KERBEROS5)
.if !defined(NOCRYPT) && !defined(NO_OPENSSL) && defined(MAKE_KERBEROS5)
_prebuild_libs+= kerberos5/lib/libasn1
_prebuild_libs+= kerberos5/lib/libgssapi
_prebuild_libs+= kerberos5/lib/libkrb5
@@ -706,7 +729,7 @@ _prebuild_libs+= kerberos5/lib/libroken
_generic_libs+= kerberos5/lib
.endif
.if !defined(NOCRYPT) && defined(MAKE_KERBEROS4)
.if !defined(NOCRYPT) && !defined(NO_OPENSSL) && defined(MAKE_KERBEROS4)
_prebuild_libs+= kerberosIV/lib/libkrb
kerberosIV/lib/libkrb__L: lib/libcrypt__L
_generic_libs+= kerberosIV/lib
@@ -722,7 +745,7 @@ lib/libskey__L: lib/libcrypt__L lib/libmd__L
_generic_libs+= lib
.if !defined(NOCRYPT) && !defined(NOSECURE)
.if !defined(NOCRYPT)
.if !defined(NO_OPENSSL)
_prebuild_libs+= secure/lib/libcrypto secure/lib/libssl
.if !defined(NO_OPENSSH)
+64 -1
View File
@@ -8,6 +8,69 @@ A reverse chronology since 4.0 was released is included, followed by
the common items quick how-tos, followed by entries for versions of
-current prior to 4.0 Release.
20070426:
The ABI breakage in sendmail(8)'s libmilter has been repaired
so it is no longer necessary to recompile mail filters (aka,
milters). If you recompiled mail filters after the 20070411
note, it is not necessary to recompile them again.
20070411:
sendmail(8) has been updated to version 8.14.1. Mail filters
(aka, milters) compiled against the libmilter included in the
base operating system should be recompiled.
20050513:
Intel Hyper-Threading is now disabled by default due to a
security issue, but can be re-enabled by setting the
machdep.hyperthreading_allowed tunable in /boot/loader.conf.
20050124:
FreeBSD 4.11-RELEASE.
20040527:
FreeBSD 4.10-RELEASE.
20031028:
FreeBSD 4.9-RELEASE.
20031022:
Support for HyperThread logical CPUs has now been enabled by
default. As a result, the HTT kernel option no longer exists.
Instead, the logical CPUs are always started so that they can
handle interrupts. However, the extra logical CPUs are prevented
from executing user processes by default. To enable the logical
CPUs, change the value of the machdep.hlt_logical_cpus from 1 to
0. This value can also be set from the loader as a tunable of
the same name.
20030923:
Fix a bug in arplookup(), whereby a hostile party on a locally
attached network could exhaust kernel memory, and cause a system
panic, by sending a flood of spoofed ARP requests. See
FreeBSD-SA-03:14.arp.
20030904:
If you get errors regarding sendmail.cf files while trying
to run mergemaster, you should either install the new version,
or run /usr/src/usr.sbin/mergemaster/mergemaster.sh. This is
a one-time issue to fix a Makefile compatibility problem.
20030904:
Between August 9th and August 30th, a bug existed in the i386
virtual memory system which could cause panics under load.
Anyone running a kernel built between those dates is advised
to update at the earliest possible convenience.
20030806:
All current USB quirks in da(4) have been deprecated and will be
removed for 4.9. If this causes failure for your umass(4) devices,
enable "options DA_OLD_QUIRKS" in your kernel and send the output of
"camcontrol inquiry da0" to [email protected] so the quirk can be
re-enabled.
20030403:
FreeBSD 4.8-RELEASE.
20030214:
OpenSSL 0.97 has been imported, and the libcrypto/libssl
library versions have been bumped.
@@ -807,7 +870,7 @@ versions of -stable/-current.
Changes to the pccardd kernel interface require that you recompile
pccardd for new kernel.
19980725:
19990725:
The ipfw interface to the kernel has changed. You will need to
recompile ipfw programs for the new kernel.
+3 -2
View File
@@ -47,9 +47,10 @@
.Ar arg2
.Op Ar arg3 Op ...
.Sh DESCRIPTION
The
.Nm
is used to control the operation of medium changers, such as those found
in tape and optical disk jukeboxes.
utility is used to control the operation of medium changers, such as those
found in tape and optical disk jukeboxes.
.Pp
The options are as follows:
.Bl -tag -width indent
+4 -21
View File
@@ -68,16 +68,13 @@ main(argc, argv)
FTS *ftsp;
FTSENT *p;
mode_t *set;
long val;
int oct, omode;
int Hflag, Lflag, Pflag, Rflag, ch, fflag, fts_options, hflag, rval;
int vflag;
char *ep, *mode;
char *mode;
int newmode;
int (*change_mode) __P((const char *, mode_t));
set = NULL;
omode = 0;
Hflag = Lflag = Pflag = Rflag = fflag = hflag = vflag = 0;
while ((ch = getopt(argc, argv, "HLPRXfghorstuvwx")) != -1)
switch (ch) {
@@ -155,22 +152,8 @@ done: argv += optind;
change_mode = chmod;
mode = *argv;
if (*mode >= '0' && *mode <= '7') {
errno = 0;
val = strtol(mode, &ep, 8);
if (val > INT_MAX || val < 0)
errno = ERANGE;
if (errno)
err(1, "invalid file mode: %s", mode);
if (*ep)
errx(1, "invalid file mode: %s", mode);
omode = val;
oct = 1;
} else {
if ((set = setmode(mode)) == NULL)
errx(1, "invalid file mode: %s", mode);
oct = 0;
}
if ((set = setmode(mode)) == NULL)
errx(1, "invalid file mode: %s", mode);
if ((ftsp = fts_open(++argv, fts_options, 0)) == NULL)
err(1, NULL);
@@ -203,7 +186,7 @@ done: argv += optind;
default:
break;
}
newmode = oct ? omode : getmode(set, p->fts_statp->st_mode);
newmode = getmode(set, p->fts_statp->st_mode);
if ((newmode & ALLPERMS) == (p->fts_statp->st_mode & ALLPERMS))
continue;
if ((*change_mode)(p->fts_accpath, newmode) && !fflag) {
+1 -1
View File
@@ -351,7 +351,7 @@ copy(argv, type, fts_options)
* normally want to preserve them on directories.
*/
if (pflag) {
if (setfile(curr->fts_statp, 0))
if (setfile(curr->fts_statp, -1))
rval = 1;
} else {
mode = curr->fts_statp->st_mode;
+22 -14
View File
@@ -132,7 +132,8 @@ copy_file(entp, dne)
* wins some CPU back.
*/
#ifdef VM_AND_BUFFER_CACHE_SYNCHRONIZED
if (S_ISREG(fs->st_mode) && fs->st_size <= 8 * 1048576) {
if (S_ISREG(fs->st_mode) && fs->st_size > 0 &&
fs->st_size <= 8 * 1048576) {
if ((p = mmap(NULL, (size_t)fs->st_size, PROT_READ,
MAP_SHARED, from_fd, (off_t)0)) == MAP_FAILED) {
warn("%s", entp->fts_path);
@@ -214,7 +215,7 @@ copy_link(p, exists)
warn("symlink: %s", link);
return (1);
}
return (0);
return (pflag ? setfile(p->fts_statp, -1) : 0);
}
int
@@ -230,7 +231,7 @@ copy_fifo(from_stat, exists)
warn("mkfifo: %s", to.p_path);
return (1);
}
return (pflag ? setfile(from_stat, 0) : 0);
return (pflag ? setfile(from_stat, -1) : 0);
}
int
@@ -246,7 +247,7 @@ copy_special(from_stat, exists)
warn("mknod: %s", to.p_path);
return (1);
}
return (pflag ? setfile(from_stat, 0) : 0);
return (pflag ? setfile(from_stat, -1) : 0);
}
#define RETAINBITS \
@@ -259,20 +260,22 @@ setfile(fs, fd)
{
static struct timeval tv[2];
struct stat ts;
int rval;
int gotstat;
int rval, gotstat, islink, fdval;
rval = 0;
fdval = fd != -1;
islink = !fdval && S_ISLNK(fs->st_mode);
fs->st_mode &= S_ISUID | S_ISGID | S_ISVTX |
S_IRWXU | S_IRWXG | S_IRWXO;
TIMESPEC_TO_TIMEVAL(&tv[0], &fs->st_atimespec);
TIMESPEC_TO_TIMEVAL(&tv[1], &fs->st_mtimespec);
if (utimes(to.p_path, tv)) {
warn("utimes: %s", to.p_path);
if (islink ? lutimes(to.p_path, tv) : utimes(to.p_path, tv)) {
warn("%sutimes: %s", islink ? "l" : "", to.p_path);
rval = 1;
}
if (fd ? fstat(fd, &ts) : stat(to.p_path, &ts))
if (fdval ? fstat(fd, &ts) :
(islink ? lstat(to.p_path, &ts) : stat(to.p_path, &ts)))
gotstat = 0;
else {
gotstat = 1;
@@ -286,8 +289,9 @@ setfile(fs, fd)
* chown. If chown fails, lose setuid/setgid bits.
*/
if (!gotstat || fs->st_uid != ts.st_uid || fs->st_gid != ts.st_gid)
if (fd ? fchown(fd, fs->st_uid, fs->st_gid) :
chown(to.p_path, fs->st_uid, fs->st_gid)) {
if (fdval ? fchown(fd, fs->st_uid, fs->st_gid) :
(islink ? lchown(to.p_path, fs->st_uid, fs->st_gid) :
chown(to.p_path, fs->st_uid, fs->st_gid))) {
if (errno != EPERM) {
warn("chown: %s", to.p_path);
rval = 1;
@@ -296,14 +300,18 @@ setfile(fs, fd)
}
if (!gotstat || fs->st_mode != ts.st_mode)
if (fd ? fchmod(fd, fs->st_mode) : chmod(to.p_path, fs->st_mode)) {
if (fdval ? fchmod(fd, fs->st_mode) :
(islink ? lchmod(to.p_path, fs->st_mode) :
chmod(to.p_path, fs->st_mode))) {
warn("chmod: %s", to.p_path);
rval = 1;
}
if (!gotstat || fs->st_flags != ts.st_flags)
if (fd ?
fchflags(fd, fs->st_flags) : chflags(to.p_path, fs->st_flags)) {
if (fdval ?
fchflags(fd, fs->st_flags) :
(islink ? (errno = ENOSYS) :
chflags(to.p_path, fs->st_flags))) {
warn("chflags: %s", to.p_path);
rval = 1;
}
+2
View File
@@ -130,6 +130,8 @@
/* we want to use the system malloc when we install as /bin/csh */
#define SYSMALLOC
#define BSD_STYLE_COLORLS
/* Use LC_MESSAGES locale category to open the message catalog */
#define MCLoadBySet NL_CAT_LOCALE
#endif
#if defined(__bsdi__)
+23 -1
View File
@@ -35,7 +35,7 @@
.\" @(#)date.1 8.3 (Berkeley) 4/28/95
.\" $FreeBSD$
.\"
.Dd November 17, 1993
.Dd August 9, 2004
.Dt DATE 1
.Os
.Sh NAME
@@ -219,6 +219,22 @@ When the date is adjusted to a specific value that occurs twice
the resulting timezone will be set so that the date matches the earlier of
the two times.
.Pp
Adjusting the date by months is inherently ambiguous because
a month is a unit of variable length depending on the current date.
This kind of date adjustment is applied in the most intuitive way.
First of all,
.Nm
tries to preserve the day of the month.
If it is impossible because the target month is shorter than the present one,
the last day of the target month will be the result.
For example, using
.Fl v No +1m
on May 31 will adjust the date to June 30, while using the same option
on January 30 will result in the date adjusted to the last day of February.
This approach is also believed to make the most sense for shell scripting.
Nevertheless, be aware that going forth and back by the same number of
months may take you to a different date.
.Pp
Refer to the examples below for further details.
.El
.Pp
@@ -295,6 +311,12 @@ will display the last day of February in the year 2000:
.Pp
.Dl "Tue Feb 29 03:18:00 GMT 2000"
.Pp
So will do the command:
.Pp
.Dl "date -v30d -v3m -v0y -v-1m"
.Pp
because there is no such date as the 30th of February.
.Pp
The command:
.Pp
.Dl "date -v1d -v+1m -v-1d -v-fri"
+7
View File
@@ -150,6 +150,8 @@ adjyear(struct tm *t, char type, int val, int mk)
static int
adjmon(struct tm *t, char type, int val, int istext, int mk)
{
int lmdays;
if (val < 0)
return 0;
@@ -197,6 +199,11 @@ adjmon(struct tm *t, char type, int val, int istext, int mk)
t->tm_mon = --val;
}
/* e.g., -v-1m on March, 31 is the last day of February in common sense */
lmdays = daysinmonth(t);
if (t->tm_mday > lmdays)
t->tm_mday = lmdays;
return !mk || domktime(t, type) != -1;
}
+3 -3
View File
@@ -41,7 +41,7 @@
.Sh SYNOPSIS
.Nm
.Oo
.Fl b | h | H | k |
.Fl b | g | h | H | k |
.Fl m | P
.Oc
.Op Fl ailn
@@ -81,11 +81,11 @@ specification from the environment.
.It Fl H
"Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte,
Gigabyte, Terabyte and Petabyte in order to reduce the number of
digits to three or less using base 10 for sizes.
digits to four or fewer using base 10 for sizes.
.It Fl h
"Human-readable" output. Use unit suffixes: Byte, Kilobyte, Megabyte,
Gigabyte, Terabyte and Petabyte in order to reduce the number of
digits to three or less using base 2 for sizes.
digits to four or fewer using base 2 for sizes.
.It Fl i
Include statistics on the number of free inodes.
.It Fl k
+23 -16
View File
@@ -112,7 +112,7 @@ unit_t unitp [] = { NONE, KILO, MEGA, GIGA, TERA, PETA };
int bread(off_t, void *, int);
int checkvfsname(const char *, char **);
char *getmntpt(char *);
int longwidth(long);
int int64width(int64_t);
char *makenetvfslist(void);
char **makevfslist(char *);
void prthuman(struct statfs *, long);
@@ -376,9 +376,15 @@ prthumanval(double bytes)
* Convert statfs returned filesystem size into BLOCKSIZE units.
* Attempts to avoid overflow for large filesystems.
*/
#define fsbtoblk(num, fsbs, bs) \
(((fsbs) != 0 && (fsbs) < (bs)) ? \
(num) / ((bs) / (fsbs)) : (num) * ((fsbs) / (bs)))
static int64_t
fsbtoblk(int64_t num, uint64_t fsbs, u_long bs)
{
if (fsbs != 0 && fsbs < bs)
return (num / (int64_t)(bs / fsbs));
else
return (num * (int64_t)(fsbs / bs));
}
/*
* Print out status about a filesystem.
@@ -420,11 +426,12 @@ prtstat(struct statfs *sfsp, struct maxwidths *mwp)
if (hflag) {
prthuman(sfsp, used);
} else {
(void)printf(" %*ld %*ld %*ld", mwp->total,
fsbtoblk(sfsp->f_blocks, sfsp->f_bsize, blocksize),
mwp->used, fsbtoblk(used, sfsp->f_bsize, blocksize),
mwp->avail, fsbtoblk(sfsp->f_bavail, sfsp->f_bsize,
blocksize));
(void)printf(" %*lld %*lld %*lld", mwp->total,
(long long)fsbtoblk(sfsp->f_blocks, sfsp->f_bsize,
blocksize), mwp->used,
(long long)fsbtoblk(used, sfsp->f_bsize, blocksize),
mwp->avail, (long long)fsbtoblk(sfsp->f_bavail,
sfsp->f_bsize, blocksize));
}
(void)printf(" %5.0f%%",
availblks == 0 ? 100.0 : (double)used / (double)availblks * 100.0);
@@ -453,20 +460,20 @@ update_maxwidths(struct maxwidths *mwp, struct statfs *sfsp)
getbsize(&dummy, &blocksize);
mwp->mntfrom = imax(mwp->mntfrom, strlen(sfsp->f_mntfromname));
mwp->total = imax(mwp->total, longwidth(fsbtoblk(sfsp->f_blocks,
mwp->total = imax(mwp->total, int64width(fsbtoblk(sfsp->f_blocks,
sfsp->f_bsize, blocksize)));
mwp->used = imax(mwp->used, longwidth(fsbtoblk(sfsp->f_blocks -
mwp->used = imax(mwp->used, int64width(fsbtoblk(sfsp->f_blocks -
sfsp->f_bfree, sfsp->f_bsize, blocksize)));
mwp->avail = imax(mwp->avail, longwidth(fsbtoblk(sfsp->f_bavail,
mwp->avail = imax(mwp->avail, int64width(fsbtoblk(sfsp->f_bavail,
sfsp->f_bsize, blocksize)));
mwp->iused = imax(mwp->iused, longwidth(sfsp->f_files -
mwp->iused = imax(mwp->iused, int64width(sfsp->f_files -
sfsp->f_ffree));
mwp->ifree = imax(mwp->ifree, longwidth(sfsp->f_ffree));
mwp->ifree = imax(mwp->ifree, int64width(sfsp->f_ffree));
}
/* Return the width in characters of the specified long. */
int
longwidth(long val)
int64width(int64_t val)
{
int len;
@@ -560,7 +567,7 @@ usage(void)
{
(void)fprintf(stderr,
"usage: df [-b | -H | -h | -k | -m | -P] [-ailn] [-t type] [file | filesystem ...]\n");
"usage: df [-b | -g | -H | -h | -k | -m | -P] [-ailn] [-t type] [file | filesystem ...]\n");
exit(EX_USAGE);
}
+15 -6
View File
@@ -35,7 +35,7 @@
.\" @(#)echo.1 8.1 (Berkeley) 7/22/93
.\" $FreeBSD$
.\"
.Dd July 22, 1993
.Dd April 12, 2003
.Dt ECHO 1
.Os
.Sh NAME
@@ -58,11 +58,20 @@ output.
The following option is available:
.Bl -tag -width flag
.It Fl n
Do not print the trailing newline character. This may also be
achieved by appending
Do not print the trailing newline character.
This may also be achieved by appending
.Ql \ec
to the end of the string, as is done
by iBCS2 compatible systems.
Note that this option as well as the effect of
.Ql \ec
are implementation-defined in
.St -p1003.1-2001
as amended by Cor. 1-2002.
Applications aiming for maximum
portability are strongly encouraged to use
.Xr printf 1
to suppress the newline character.
.El
.Pp
Some shells may provide a builtin
@@ -81,6 +90,6 @@ manual page.
.Sh STANDARDS
The
.Nm
utility is expected to be
.St -p1003.2
compatible.
utility conforms to
.St -p1003.1-2001
as amended by Cor. 1-2002.
+1 -1
View File
@@ -5,7 +5,7 @@ SRCS= buf.c cbc.c glbl.c io.c main.c re.c sub.c undo.c
LINKS= ${BINDIR}/ed ${BINDIR}/red
MLINKS= ed.1 red.1
.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT) && !defined(NOSECURE)
.if exists(${.CURDIR}/../../secure) && !defined(NOCRYPT)
DISTRIBUTION=crypto
CFLAGS+=-DDES
DPADD= ${LIBCIPHER}
+3 -2
View File
@@ -394,11 +394,12 @@ where
.Ar col-elm
is a
.Em collating element
are interpreted according to
.Xr locale 5
are interpreted according to the current locale settings
(not currently supported).
See
.Xr regex 3
and
.Xr re_format 7
for an explanation of these constructs.
.It Op ^char-class
Match any single character, other than newline, not in
+9 -6
View File
@@ -30,7 +30,7 @@
.\"
.\" $FreeBSD$
.\"
.Dd July 3, 1993
.Dd May 10, 2002
.Dt EXPR 1
.Os
.Sh NAME
@@ -46,12 +46,15 @@ utility evaluates
.Ar expression
and writes the result on standard output.
.Pp
All operators are separate arguments to the
.Nm
utility.
Characters special to the command interpreter must be escaped.
All operators and operands must be passed as separate arguments.
Several of the operators have special meaning to command interpreters
and must therefore be quoted appropriately.
All integer operands are interpreted in base 10.
.Pp
Operators are listed below in order of increasing precedence.
Arithmetic operations are performed using signed integer math.
.Pp
Operators are listed below in order of increasing precedence; all
are left-associative.
Operators with equal precedence are grouped within { } symbols.
.Bl -tag -width indent
.It Ar expr1 Li | Ar expr2
+16 -13
View File
@@ -106,11 +106,13 @@ the system call
would return a file descriptor to the file
.Dq afile .
.Pp
There are six system calls that do not follow links, and which operate
There are eight system calls that do not follow links, and which operate
on the symbolic link itself.
They are:
.Xr lchmod 2 ,
.Xr lchown 2 ,
.Xr lstat 2 ,
.Xr lutimes 2 ,
.Xr readlink 2 ,
.Xr rename 2 ,
.Xr rmdir 2 ,
@@ -130,8 +132,16 @@ The owner and group of an existing symbolic link can be changed by
means of the
.Xr lchown 2
system call.
The other file attributes, such as the modification time and access
permissions, are not used by the system and cannot be changed.
The access permissions, owner/group and modification time of
an existing symbolic link can be changed by means of the
.Xr lchmod 2 ,
.Xr lchown 2 ,
and
.Xr lutimes 2
system calls, respectively.
The flags cannot be changed.
Of these, only the flags are used by the system;
the access permissions and ownership are ignored.
.Pp
The
.Bx 4.4
@@ -271,13 +281,6 @@ not of type directory.
Operations that apply to symbolic links are performed on the links
themselves, but otherwise the links are ignored.
.Pp
For example, the command
.Dq Li "chown -R user slink directory"
will ignore
.Dq Li slink ,
because symbolic links in this system do not have owners.
Any symbolic links encountered during the tree traversal will also be
ignored.
The command
.Dq Li "rm -r slink directory"
will remove
@@ -285,9 +288,7 @@ will remove
as well as any symbolic links encountered in the tree traversal of
.Dq Li directory ,
because symbolic links may be removed.
In no case will either
.Nm chown
or
In no case will
.Nm rm
affect the file which
.Dq Li slink
@@ -441,8 +442,10 @@ whether specified on the command line or encountered in the tree walk.
.Xr pax 1 ,
.Xr rm 1 ,
.Xr tar 1 ,
.Xr lchmod 2 ,
.Xr lchown 2 ,
.Xr lstat 2 ,
.Xr lutimes 2 ,
.Xr readlink 2 ,
.Xr rename 2 ,
.Xr symlink 2 ,
+50 -10
View File
@@ -13,10 +13,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -55,47 +51,91 @@ __FBSDID("$FreeBSD$");
int
namecmp(const FTSENT *a, const FTSENT *b)
{
return (strcoll(a->fts_name, b->fts_name));
}
int
revnamecmp(const FTSENT *a, const FTSENT *b)
{
return (strcoll(b->fts_name, a->fts_name));
}
int
modcmp(const FTSENT *a, const FTSENT *b)
{
return (b->fts_statp->st_mtime - a->fts_statp->st_mtime);
if (b->fts_statp->st_mtimespec.tv_sec >
a->fts_statp->st_mtimespec.tv_sec)
return (1);
if (b->fts_statp->st_mtimespec.tv_sec <
a->fts_statp->st_mtimespec.tv_sec)
return (-1);
if (b->fts_statp->st_mtimespec.tv_nsec >
a->fts_statp->st_mtimespec.tv_nsec)
return (1);
if (b->fts_statp->st_mtimespec.tv_nsec <
a->fts_statp->st_mtimespec.tv_nsec)
return (-1);
return (strcoll(a->fts_name, b->fts_name));
}
int
revmodcmp(const FTSENT *a, const FTSENT *b)
{
return (a->fts_statp->st_mtime - b->fts_statp->st_mtime);
return (modcmp(b, a));
}
int
acccmp(const FTSENT *a, const FTSENT *b)
{
return (b->fts_statp->st_atime - a->fts_statp->st_atime);
if (b->fts_statp->st_atimespec.tv_sec >
a->fts_statp->st_atimespec.tv_sec)
return (1);
if (b->fts_statp->st_atimespec.tv_sec <
a->fts_statp->st_atimespec.tv_sec)
return (-1);
if (b->fts_statp->st_atimespec.tv_nsec >
a->fts_statp->st_atimespec.tv_nsec)
return (1);
if (b->fts_statp->st_atimespec.tv_nsec <
a->fts_statp->st_atimespec.tv_nsec)
return (-1);
return (strcoll(a->fts_name, b->fts_name));
}
int
revacccmp(const FTSENT *a, const FTSENT *b)
{
return (a->fts_statp->st_atime - b->fts_statp->st_atime);
return (acccmp(b, a));
}
int
statcmp(const FTSENT *a, const FTSENT *b)
{
return (b->fts_statp->st_ctime - a->fts_statp->st_ctime);
if (b->fts_statp->st_ctimespec.tv_sec >
a->fts_statp->st_ctimespec.tv_sec)
return (1);
if (b->fts_statp->st_ctimespec.tv_sec <
a->fts_statp->st_ctimespec.tv_sec)
return (-1);
if (b->fts_statp->st_ctimespec.tv_nsec >
a->fts_statp->st_ctimespec.tv_nsec)
return (1);
if (b->fts_statp->st_ctimespec.tv_nsec <
a->fts_statp->st_ctimespec.tv_nsec)
return (-1);
return (strcoll(a->fts_name, b->fts_name));
}
int
revstatcmp(const FTSENT *a, const FTSENT *b)
{
return (a->fts_statp->st_ctime - b->fts_statp->st_ctime);
return (statcmp(b, a));
}
+13 -6
View File
@@ -35,7 +35,7 @@
.\" @(#)ls.1 8.7 (Berkeley) 7/29/94
.\" $FreeBSD$
.\"
.Dd July 8, 2002
.Dd January 11, 2005
.Dt LS 1
.Os
.Sh NAME
@@ -172,7 +172,7 @@ format output.
When used with the
.Fl l
option, use unit suffixes: Byte, Kilobyte, Megabyte, Gigabyte, Terabyte
and Petabyte in order to reduce the number of digits to three or less
and Petabyte in order to reduce the number of digits to four or fewer
using base 2 for sizes.
.It Fl i
For each file, print the file's file serial number (inode number).
@@ -188,7 +188,9 @@ This option overrides the environment variable
.Dq ell . )
List in long format.
(See below.)
If the output is to a terminal, a total sum for all the file
A total sum (in blocks, see the
.Fl s
option for the block size unit) for all the file
sizes is output on a line before the long listing.
.It Fl m
Stream output format; list files across the page, separated by commas.
@@ -216,7 +218,7 @@ lexicographical order or the oldest entries first.
.It Fl s
Display the number of file system blocks actually used by each file, in units
of 512 bytes, where partial units are rounded up to the next integer value.
If the output is to a terminal, a total sum for all the file
A total sum for all the file
sizes is output on a line before the listing.
The environment variable
.Ev BLOCKSIZE
@@ -330,7 +332,7 @@ linked-to file is preceded by
The file mode printed under the
.Fl l
option consists of the
entry type, owner permissions, and group permissions.
entry type and the permissions.
The entry type character describes the type of file, as
follows:
.Pp
@@ -624,7 +626,12 @@ specification.
.Xr symlink 7 ,
.Xr sticky 8
.Sh STANDARDS
The
With the exception of options
.Fl g ,
.Fl n
and
.Fl o ,
the
.Nm
utility conforms to
.St -p1003.1-2001 .
+1
View File
@@ -597,6 +597,7 @@ display(FTSENT *p, FTSENT *list)
maxblock = makenines(maxblock);
maxnlink = makenines(maxnlink);
maxsize = makenines(maxsize);
free(jinitmax);
}
bcfile = 0;
flags = NULL;
+2 -2
View File
@@ -156,9 +156,9 @@ usage(void)
{
(void)fprintf(stderr,
#ifdef COLORLS
"usage: ls [-ABCFGHLPRTWabcdfghiklnoqrstu1]"
"usage: ls [-ABCFGHLPRTWabcdfghiklmnoqrstuwx1]"
#else
"usage: ls [-ABCFHLPRTWabcdfghiklnoqrstu1]"
"usage: ls [-ABCFHLPRTWabcdfghiklmnoqrstuwx1]"
#endif
" [file ...]\n");
exit(1);
+17 -6
View File
@@ -212,14 +212,25 @@ do_move(from, to)
struct statfs sfs;
char path[PATH_MAX];
/* Can't mv(1) a mount point. */
if (realpath(from, path) == NULL) {
warnx("cannot resolve %s: %s", from, path);
/*
* If the source is a symbolic link and is on another
* filesystem, it can be recreated at the destination.
*/
if (lstat(from, &sb) == -1) {
warn("%s", from);
return (1);
}
if (!statfs(path, &sfs) && !strcmp(path, sfs.f_mntonname)) {
warnx("cannot rename a mount point");
return (1);
if (!S_ISLNK(sb.st_mode)) {
/* Can't mv(1) a mount point. */
if (realpath(from, path) == NULL) {
warnx("cannot resolve %s: %s", from, path);
return (1);
}
if (!statfs(path, &sfs) &&
!strcmp(path, sfs.f_mntonname)) {
warnx("cannot rename a mount point");
return (1);
}
}
} else {
warn("rename %s to %s", from, to);
+2 -2
View File
@@ -230,7 +230,7 @@ name_uid(uid, frc)
++pwopn;
}
if (ptr == NULL)
ptr = (UIDC *)malloc(sizeof(UIDC));
ptr = uidtb[uid % UID_SZ] = (UIDC *)malloc(sizeof(UIDC));
if ((pw = getpwuid(uid)) == NULL) {
/*
@@ -308,7 +308,7 @@ name_gid(gid, frc)
++gropn;
}
if (ptr == NULL)
ptr = (GIDC *)malloc(sizeof(GIDC));
ptr = gidtb[gid % GID_SZ] = (GIDC *)malloc(sizeof(GIDC));
if ((gr = getgrgid(gid)) == NULL) {
/*
+30 -18
View File
@@ -453,7 +453,13 @@ tar_rd(arcn, buf)
* copy out the name and values in the stat buffer
*/
hd = (HD_TAR *)buf;
arcn->nlen = l_strncpy(arcn->name, hd->name, sizeof(arcn->name) - 1);
/*
* old tar format specifies the name always be null-terminated,
* but let's be robust to broken archives.
* the same applies to handling links below.
*/
arcn->nlen = l_strncpy(arcn->name, hd->name,
MIN(sizeof(hd->name), sizeof(arcn->name)) - 1);
arcn->name[arcn->nlen] = '\0';
arcn->sb.st_mode = (mode_t)(asc_ul(hd->mode,sizeof(hd->mode),OCT) &
0xfff);
@@ -482,7 +488,7 @@ tar_rd(arcn, buf)
*/
arcn->type = PAX_SLK;
arcn->ln_nlen = l_strncpy(arcn->ln_name, hd->linkname,
sizeof(arcn->ln_name) - 1);
MIN(sizeof(hd->linkname), sizeof(arcn->ln_name)) - 1);
arcn->ln_name[arcn->ln_nlen] = '\0';
arcn->sb.st_mode |= S_IFLNK;
break;
@@ -494,7 +500,7 @@ tar_rd(arcn, buf)
arcn->type = PAX_HLK;
arcn->sb.st_nlink = 2;
arcn->ln_nlen = l_strncpy(arcn->ln_name, hd->linkname,
sizeof(arcn->ln_name) - 1);
MIN(sizeof(hd->linkname), sizeof(arcn->ln_name)) - 1);
arcn->ln_name[arcn->ln_nlen] = '\0';
/*
@@ -604,7 +610,7 @@ tar_wr(arcn)
case PAX_SLK:
case PAX_HLK:
case PAX_HRG:
if (arcn->ln_nlen > sizeof(hd->linkname)) {
if (arcn->ln_nlen >= sizeof(hd->linkname)) {
paxwarn(1,"Link name too long for tar %s", arcn->ln_name);
return(1);
}
@@ -844,12 +850,19 @@ ustar_rd(arcn, buf)
*/
dest = arcn->name;
if (*(hd->prefix) != '\0') {
cnt = l_strncpy(dest, hd->prefix, sizeof(arcn->name) - 2);
cnt = l_strncpy(dest, hd->prefix,
MIN(sizeof(hd->prefix), sizeof(arcn->name) - 2));
dest += cnt;
*dest++ = '/';
cnt++;
}
arcn->nlen = cnt + l_strncpy(dest, hd->name, sizeof(arcn->name) - cnt);
/*
* ustar format specifies the name may be unterminated
* if it fills the entire field. this also applies to
* the prefix and the linkname.
*/
arcn->nlen = cnt + l_strncpy(dest, hd->name,
MIN(sizeof(hd->name), sizeof(arcn->name) - cnt - 1));
arcn->name[arcn->nlen] = '\0';
/*
@@ -942,7 +955,7 @@ ustar_rd(arcn, buf)
* copy the link name
*/
arcn->ln_nlen = l_strncpy(arcn->ln_name, hd->linkname,
sizeof(arcn->ln_name) - 1);
MIN(sizeof(hd->linkname), sizeof(arcn->ln_name) - 1));
arcn->ln_name[arcn->ln_nlen] = '\0';
break;
case CONTTYPE:
@@ -999,7 +1012,7 @@ ustar_wr(arcn)
* check the length of the linkname
*/
if (((arcn->type == PAX_SLK) || (arcn->type == PAX_HLK) ||
(arcn->type == PAX_HRG)) && (arcn->ln_nlen >= sizeof(hd->linkname))){
(arcn->type == PAX_HRG)) && (arcn->ln_nlen > sizeof(hd->linkname))){
paxwarn(1, "Link name too long for ustar %s", arcn->ln_name);
return(1);
}
@@ -1024,17 +1037,16 @@ ustar_wr(arcn)
* occur, we remove the / and copy the first part to the prefix
*/
*pt = '\0';
l_strncpy(hd->prefix, arcn->name, sizeof(hd->prefix) - 1);
l_strncpy(hd->prefix, arcn->name, sizeof(hd->prefix));
*pt++ = '/';
} else
memset(hd->prefix, 0, sizeof(hd->prefix));
/*
* copy the name part. this may be the whole path or the part after
* the prefix
* the prefix. both the name and prefix may fill the entire field.
*/
l_strncpy(hd->name, pt, sizeof(hd->name) - 1);
hd->name[sizeof(hd->name) - 1] = '\0';
l_strncpy(hd->name, pt, sizeof(hd->name));
/*
* set the fields in the header that are type dependent
@@ -1077,8 +1089,8 @@ ustar_wr(arcn)
hd->typeflag = SYMTYPE;
else
hd->typeflag = LNKTYPE;
l_strncpy(hd->linkname,arcn->ln_name, sizeof(hd->linkname) - 1);
hd->linkname[sizeof(hd->linkname) - 1] = '\0';
/* the link name may occupy the entire field in ustar */
l_strncpy(hd->linkname,arcn->ln_name, sizeof(hd->linkname));
memset(hd->devmajor, 0, sizeof(hd->devmajor));
memset(hd->devminor, 0, sizeof(hd->devminor));
if (ul_oct((u_long)0L, hd->size, sizeof(hd->size), 3))
@@ -1178,9 +1190,9 @@ name_split(name, len)
* check to see if the file name is small enough to fit in the name
* field. if so just return a pointer to the name.
*/
if (len < TNMSZ)
if (len <= TNMSZ)
return(name);
if (len > (TPFSZ + TNMSZ))
if (len > (TPFSZ + TNMSZ + 1))
return(NULL);
/*
@@ -1189,7 +1201,7 @@ name_split(name, len)
* to find the biggest piece to fit in the name field (or the smallest
* prefix we can find)
*/
start = name + len - TNMSZ;
start = name + len - TNMSZ - 1;
while ((*start != '\0') && (*start != '/'))
++start;
@@ -1207,7 +1219,7 @@ name_split(name, len)
* the file would then expand on extract to //str. The len == 0 below
* makes this special case follow the spec to the letter.
*/
if ((len >= TPFSZ) || (len == 0))
if ((len > TPFSZ) || (len == 0))
return(NULL);
/*
+38 -38
View File
@@ -41,46 +41,46 @@ struct varent;
extern fixpt_t ccpu;
extern int eval, fscale, mempages, nlistread, rawcpu, cflag;
extern time_t now;
extern int sumrusage, termwidth, totwidth;
extern VAR var[];
extern VARENT *vhead;
__BEGIN_DECLS
void command __P((KINFO *, VARENT *));
void cputime __P((KINFO *, VARENT *));
int donlist __P((void));
void evar __P((KINFO *, VARENT *));
char *fmt_argv __P((char **, char *, int));
double getpcpu __P((KINFO *));
double getpmem __P((KINFO *));
void logname __P((KINFO *, VARENT *));
void longtname __P((KINFO *, VARENT *));
void lstarted __P((KINFO *, VARENT *));
void maxrss __P((KINFO *, VARENT *));
void nlisterr __P((struct nlist *));
void p_rssize __P((KINFO *, VARENT *));
void pagein __P((KINFO *, VARENT *));
void parsefmt __P((char *));
void pcpu __P((KINFO *, VARENT *));
void pmem __P((KINFO *, VARENT *));
void pri __P((KINFO *, VARENT *));
void rtprior __P((KINFO *, VARENT *));
void printheader __P((void));
void pvar __P((KINFO *, VARENT *));
void rssize __P((KINFO *, VARENT *));
void runame __P((KINFO *, VARENT *));
int s_runame __P((KINFO *));
void rvar __P((KINFO *, VARENT *));
void showkey __P((void));
void started __P((KINFO *, VARENT *));
void state __P((KINFO *, VARENT *));
void tdev __P((KINFO *, VARENT *));
void tname __P((KINFO *, VARENT *));
void tsize __P((KINFO *, VARENT *));
void ucomm __P((KINFO *, VARENT *));
void uname __P((KINFO *, VARENT *));
int s_uname __P((KINFO *));
void uvar __P((KINFO *, VARENT *));
void vsize __P((KINFO *, VARENT *));
void wchan __P((KINFO *, VARENT *));
void command(KINFO *, VARENT *);
void cputime(KINFO *, VARENT *);
int donlist(void);
void evar(KINFO *, VARENT *);
VARENT *find_varentry(VAR *);
const char *fmt_argv(char **, char *, size_t);
double getpcpu(const KINFO *);
void logname(KINFO *, VARENT *);
void longtname(KINFO *, VARENT *);
void lstarted(KINFO *, VARENT *);
void maxrss(KINFO *, VARENT *);
void nlisterr(struct nlist *);
void p_rssize(KINFO *, VARENT *);
void pagein(KINFO *, VARENT *);
void parsefmt(const char *, int);
void pcpu(KINFO *, VARENT *);
void pmem(KINFO *, VARENT *);
void pri(KINFO *, VARENT *);
void rtprior(KINFO *, VARENT *);
void printheader(void);
void pvar(KINFO *, VARENT *);
void rssize(KINFO *, VARENT *);
void runame(KINFO *, VARENT *);
void rvar(KINFO *, VARENT *);
int s_runame(KINFO *);
int s_uname(KINFO *);
void showkey(void);
void started(KINFO *, VARENT *);
void state(KINFO *, VARENT *);
void tdev(KINFO *, VARENT *);
void tname(KINFO *, VARENT *);
void tsize(KINFO *, VARENT *);
void ucomm(KINFO *, VARENT *);
void uname(KINFO *, VARENT *);
void uvar(KINFO *, VARENT *);
void vsize(KINFO *, VARENT *);
void wchan(KINFO *, VARENT *);
__END_DECLS
+26 -27
View File
@@ -31,38 +31,40 @@
* SUCH DAMAGE.
*/
#ifndef lint
#if 0
#ifndef lint
static char sccsid[] = "@(#)fmt.c 8.4 (Berkeley) 4/15/94";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <err.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <vis.h>
#include "ps.h"
static char *cmdpart __P((char *));
static char *shquote __P((char **));
static char *cmdpart(char *);
static char *shquote(char **);
/*
* XXX
* This is a stub until marc does the real one.
*/
static char *
shquote(argv)
char **argv;
shquote(char **argv)
{
static long arg_max = -1;
long len;
size_t len;
char **p, *dst, *src;
static char *buf = NULL;
@@ -73,18 +75,18 @@ shquote(argv)
errx(1, "malloc failed");
}
if (*argv == 0) {
buf[0] = 0;
if (*argv == NULL) {
buf[0] = '\0';
return (buf);
}
dst = buf;
for (p = argv; (src = *p++) != 0; ) {
if (*src == 0)
for (p = argv; (src = *p++) != NULL; ) {
if (*src == '\0')
continue;
len = (4 * arg_max - (dst - buf)) / 4;
strvisx(dst, src, strlen(src) < len ? strlen(src) : len,
VIS_NL | VIS_CSTYLE);
while (*dst)
while (*dst != '\0')
dst++;
if ((4 * arg_max - (dst - buf)) / 4 > 0)
*dst++ = ' ';
@@ -97,24 +99,20 @@ shquote(argv)
}
static char *
cmdpart(arg0)
char *arg0;
cmdpart(char *arg0)
{
char *cp;
return ((cp = strrchr(arg0, '/')) != NULL ? cp + 1 : arg0);
}
char *
fmt_argv(argv, cmd, maxlen)
char **argv;
char *cmd;
int maxlen;
const char *
fmt_argv(char **argv, char *cmd, size_t maxlen)
{
int len;
size_t len;
char *ap, *cp;
if (argv == 0 || argv[0] == 0) {
if (argv == NULL || argv[0] == NULL) {
if (cmd == NULL)
return ("");
ap = NULL;
@@ -123,12 +121,13 @@ fmt_argv(argv, cmd, maxlen)
ap = shquote(argv);
len = strlen(ap) + maxlen + 4;
}
if ((cp = malloc(len)) == NULL)
return (NULL);
cp = malloc(len);
if (cp == NULL)
errx(1, "malloc failed");
if (ap == NULL)
sprintf(cp, " (%.*s)", maxlen, cmd);
sprintf(cp, " (%.*s)", (int)maxlen, cmd);
else if (strncmp(cmdpart(argv[0]), cmd, maxlen) != 0)
sprintf(cp, "%s (%.*s)", ap, maxlen, cmd);
sprintf(cp, "%s (%.*s)", ap, (int)maxlen, cmd);
else
(void) strcpy(cp, ap);
return (cp);
+46 -29
View File
@@ -31,14 +31,13 @@
* SUCH DAMAGE.
*/
#ifndef lint
#if 0
#ifndef lint
static char sccsid[] = "@(#)keyword.c 8.5 (Berkeley) 4/2/94";
#else
static const char rcsid[] =
"$FreeBSD$";
#endif
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/time.h>
@@ -49,17 +48,15 @@ static const char rcsid[] =
#include <sys/user.h>
#include <err.h>
#include <errno.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <utmp.h>
#include "ps.h"
static VAR *findvar __P((char *));
static int vcmp __P((const void *, const void *));
static VAR *findvar(char *, int, char **header);
static int vcmp(const void *, const void *);
#ifdef NOTINUSE
int utime(), stime(), ixrss(), idrss(), isrss();
@@ -80,9 +77,9 @@ int utime(), stime(), ixrss(), idrss(), isrss();
#define UIDLEN 5
#define PIDFMT "d"
#define PIDLEN 5
#define USERLEN UT_NAMESIZE
#define USERLEN (MAXLOGNAME - 1)
VAR var[] = {
static VAR var[] = {
{"%cpu", "%CPU", NULL, 0, pcpu, NULL, 4},
{"%mem", "%MEM", NULL, 0, pmem, NULL, 4},
{"acflag", "ACFLG",
@@ -193,11 +190,11 @@ VAR var[] = {
};
void
showkey()
showkey(void)
{
VAR *v;
int i;
char *p, *sep;
const char *p, *sep;
i = 0;
sep = "";
@@ -214,23 +211,45 @@ showkey()
}
void
parsefmt(p)
char *p;
parsefmt(const char *p, int user)
{
static struct varent *vtail;
char *tempstr, *tempstr1;
#define FMTSEP " \t,\n"
while (p && *p) {
char *cp;
#define SKIP_5x_USERCHGS 1
#if SKIP_5x_USERCHGS
/*
* XXX - For now in 4.x-stable, always act as if the user
* explicitly requested this format string. This is
* done to reduce the code-differences with 5.x,
* without making any user-visible changes.
*/
user = 1;
#endif
#define FMTSEP " \t,\n"
tempstr1 = tempstr = strdup(p);
while (tempstr && *tempstr) {
char *cp, *hp;
VAR *v;
struct varent *vent;
while ((cp = strsep(&p, FMTSEP)) != NULL && *cp == '\0')
while ((cp = strsep(&tempstr, FMTSEP)) != NULL && *cp == '\0')
/* void */;
if (cp == NULL || !(v = findvar(cp)))
if (cp == NULL || !(v = findvar(cp, user, &hp)))
continue;
if (!user) {
/*
* If the user is NOT adding this field manually,
* get on with our lives if this VAR is already
* represented in the list.
*/
vent = find_varentry(v);
if (vent != NULL)
continue;
}
if ((vent = malloc(sizeof(struct varent))) == NULL)
err(1, NULL);
errx(1, "malloc failed");
vent->var = v;
vent->next = NULL;
if (vhead == NULL)
@@ -240,6 +259,7 @@ parsefmt(p)
vtail = vent;
}
}
free(tempstr1);
if (!vhead) {
warnx("no valid keywords; valid keywords:");
showkey();
@@ -248,12 +268,10 @@ parsefmt(p)
}
static VAR *
findvar(p)
char *p;
findvar(char *p, int user, char **header __unused)
{
VAR *v, key;
char *hp;
int vcmp();
hp = strchr(p, '=');
if (hp)
@@ -267,20 +285,19 @@ findvar(p)
warnx("%s: illegal keyword specification", p);
eval = 1;
}
parsefmt(v->alias);
parsefmt(v->alias, user);
return ((VAR *)NULL);
}
if (!v) {
warnx("%s: keyword not found", p);
eval = 1;
} else if (hp)
v->header = hp;
v->header = strdup(hp);
return (v);
}
static int
vcmp(a, b)
const void *a, *b;
vcmp(const void *a, const void *b)
{
return (strcmp(((VAR *)a)->name, ((VAR *)b)->name));
return (strcmp(((const VAR *)a)->name, ((const VAR *)b)->name));
}
+8 -5
View File
@@ -31,26 +31,29 @@
* SUCH DAMAGE.
*/
#ifndef lint
#if 0
#ifndef lint
static char sccsid[] = "@(#)nlist.c 8.4 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/types.h>
#include <sys/sysctl.h>
#include <stddef.h>
int donlist(void); /* should come from extern.h via ps.h */
fixpt_t ccpu; /* kernel _ccpu variable */
int nlistread; /* if nlist already read. */
int mempages; /* number of pages of phys. memory */
int fscale; /* kernel _fscale variable */
int
donlist()
donlist(void)
{
size_t oldlen;
+18 -28
View File
@@ -31,13 +31,14 @@
* SUCH DAMAGE.
*/
#ifndef lint
#if 0
#ifndef lint
static char sccsid[] = "@(#)print.c 8.6 (Berkeley) 4/16/94";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/time.h>
@@ -58,8 +59,8 @@ static const char rcsid[] =
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <unistd.h>
#include <vis.h>
#include "ps.h"
@@ -348,36 +349,29 @@ longtname(k, ve)
}
void
started(k, ve)
KINFO *k;
VARENT *ve;
started(KINFO *k, VARENT *ve)
{
VAR *v;
static time_t now;
time_t then;
struct tm *tp;
static int use_ampm = -1;
char buf[100];
static int use_ampm = -1;
v = ve->var;
if (!k->ki_u.u_valid) {
(void)printf("%-*s", v->width, "-");
return;
}
if (use_ampm < 0)
use_ampm = (*nl_langinfo(T_FMT_AMPM) != '\0');
then = k->ki_u.u_start.tv_sec;
tp = localtime(&then);
if (!now)
(void)time(&now);
if (now - k->ki_u.u_start.tv_sec < 24 * 3600) {
(void)strftime(buf, sizeof(buf) - 1,
use_ampm ? "%l:%M%p" : "%k:%M ", tp);
use_ampm ? "%l:%M%p" : "%k:%M ", tp);
} else if (now - k->ki_u.u_start.tv_sec < 7 * 86400) {
(void)strftime(buf, sizeof(buf) - 1,
use_ampm ? "%a%I%p" : "%a%H ", tp);
use_ampm ? "%a%I%p" : "%a%H ", tp);
} else
(void)strftime(buf, sizeof(buf) - 1, "%e%b%y", tp);
(void)printf("%-*s", v->width, buf);
@@ -505,8 +499,7 @@ cputime(k, ve)
}
double
getpcpu(k)
KINFO *k;
getpcpu(const KINFO *k)
{
struct proc *p;
static int failure;
@@ -539,9 +532,8 @@ pcpu(k, ve)
(void)printf("%*.1f", v->width, getpcpu(k));
}
double
getpmem(k)
KINFO *k;
static double
getpmem(KINFO *k)
{
static int failure;
struct proc *p;
@@ -588,10 +580,9 @@ pagein(k, ve)
k->ki_u.u_valid ? k->ki_u.u_ru.ru_majflt : 0);
}
/* ARGSUSED */
void
maxrss(k, ve)
KINFO *k;
VARENT *ve;
maxrss(KINFO *k __unused, VARENT *ve)
{
VAR *v;
@@ -648,12 +639,11 @@ rtprior(k, ve)
* structures.
*/
static void
printval(bp, v)
char *bp;
VAR *v;
printval(void *bp, VAR *v)
{
static char ofmt[32] = "%";
char *fcp, *cp;
const char *fcp;
char *cp;
cp = ofmt + 1;
fcp = v->fmt;
+122 -51
View File
@@ -32,7 +32,7 @@
.\" @(#)ps.1 8.3 (Berkeley) 4/18/94
.\" $FreeBSD$
.\"
.Dd April 18, 1994
.Dd March 27, 2004
.Dt PS 1
.Os
.Sh NAME
@@ -40,26 +40,64 @@
.Nd process status
.Sh SYNOPSIS
.Nm
.Op Fl aCcefhjlmrSTuvwx
.Op Fl aCcefhjlmrSTuvwXx
.Oo Fl G Ar gid Ns Xo
.Op , Ns Ar gid Ns No ...
.Xc
.Oc
.Op Fl M Ar core
.Op Fl N Ar system
.Op Fl O Ar fmt
.Op Fl o Ar fmt
.Op Fl p Ar pid
.Op Fl t Ar tty
.Op Fl U Ar username
.Oo Fl p Ar pid Ns Xo
.Op , Ns Ar pid Ns No ...
.Xc
.Oc
.Oo Fl t Ar tty Ns Xo
.Op , Ns Ar tty Ns No ...
.Xc
.Oc
.Oo Fl U Ar username Ns Xo
.Op , Ns Ar username Ns No ...
.Xc
.Oc
.Nm
.Op Fl L
.Sh DESCRIPTION
The
.Nm
utility
displays a header line followed by lines containing information about your
displays a header line, followed by lines containing information about
all of your
processes that have controlling terminals.
This information is sorted by controlling terminal, then by process
.Tn ID .
.Pp
The information displayed is selected based on a set of keywords (see the
A different set of processes can be selected for display by using any
combination of the
.Fl a , G , p , T , t
and
.Fl U
options.
If more than one of these options are given, then
.Nm
will select all processes which are matched by at least one of the
given options.
.Pp
For the processes which have been selected for display,
.Nm
will display one line per process.
By default all of these output lines are sorted first by controlling
terminal, then by process
.Tn ID .
The
.Fl m , r , u ,
and
.Fl v
options will change the sort order.
If more than one sorting option was given, then the selected processes
will be sorted by the last sorting option which was specified.
.Pp
For the processes which have been selected for display, the information
to display is selected based on a set of keywords (see the
.Fl L
.Fl O
and
@@ -80,6 +118,10 @@ The options are as follows:
.Bl -tag -width indent
.It Fl a
Display information about other users' processes as well as your own.
This will skip any processes which do not have a controlling teminal,
unless the
.Fl x
option is also specified.
This can be disabled by setting the
.Va kern.ps_showallprocs
sysctl to zero.
@@ -95,6 +137,10 @@ Display the environment as well.
.It Fl f
Show commandline and environment information about swapped out processes.
This option is honored only if the uid of the user is 0.
.It Fl G
Display information about processes which are running with the specified
real group
.Tn ID(s) .
.It Fl h
Repeat the information header as often as necessary to guarantee one
header per page of information.
@@ -102,17 +148,21 @@ header per page of information.
Print information associated with the following keywords:
user, pid, ppid, pgid, sess, jobc, state, tt, time and command.
.It Fl L
List the set of available keywords.
List the set of keywords available for the
.Fl O
and
.Fl o
options.
.It Fl l
Display information associated with the following keywords:
uid, pid, ppid, cpu, pri, nice, vsz, rss, wchan, state, tt, time
and command.
.It Fl M
Extract values associated with the name list from the specified core
instead of the default
.Pa /dev/kmem .
instead of the currently running system.
.It Fl m
Sort by memory usage, instead of by process
Sort by memory usage, instead of the combination of controlling
terminal and process
.Tn ID .
.It Fl N
Extract the name list from the specified system instead of the default
@@ -127,16 +177,20 @@ Keywords may be appended with an equals (``='') sign and a string.
This causes the printed header to use the specified string instead of
the standard header.
.It Fl o
Display information associated with the space or comma separated list
of keywords specified.
Display information associated with the space or comma separated
list of keywords specified.
Multiple keywords may also be given in the form of more than one
.Fl o
option.
Keywords may be appended with an equals (``='') sign and a string.
This causes the printed header to use the specified string instead of
the standard header.
.It Fl p
Display information associated with the specified process
.Tn ID .
Display information about processes which match the specified process
.Tn ID(s) .
.It Fl r
Sort by current cpu usage, instead of by process
Sort by current cpu usage, instead of the combination of controlling
terminal and process
.Tn ID .
.It Fl S
Change the way the process time is calculated by summing all exited
@@ -146,10 +200,10 @@ Display information about processes attached to the device associated
with the standard input.
.It Fl t
Display information about processes attached to the specified terminal
device.
device(s).
.It Fl U
Display the processes belonging to the specified
.Ar username .
.Ar username Ns (s) .
.It Fl u
Display information associated with the following keywords:
user, pid, %cpu, %mem, vsz, rss, tt, state, start, time and command.
@@ -175,8 +229,22 @@ If the
option is specified more than once,
.Nm
will use as many columns as necessary without regard for your window size.
.It Fl X
When displaying processes matched by other options, skip any processes
which do not have a controlling terminal.
.It Fl x
Display information about processes without controlling terminals.
When displaying processes matched by other options, include processes
which do not have a controlling terminal.
This is the opposite of the
.Fl X
option.
If both
.Fl X
and
.Fl x
are specified in the same command, then
.Nm
will use the one which was specified last.
.El
.Pp
A complete list of the available keywords are listed below.
@@ -199,7 +267,6 @@ the include file
.It Dv "P_ADVLOCK" Ta No "0x00001 Process may hold a POSIX advisory lock"
.It Dv "P_CONTROLT" Ta No "0x00002 Has a controlling terminal"
.It Dv "P_INMEM" Ta No "0x00004 Loaded into memory"
.It Dv "P_NOCLDSTOP" Ta No "0x00008 No SIGCHLD when children stop"
.It Dv "P_PPWAIT" Ta No "0x00010 Parent is waiting for child to exec/exit"
.It Dv "P_PROFIL" Ta No "0x00020 Has started profiling"
.It Dv "P_SELECT" Ta No "0x00040 Selecting; wakeup/waiting danger"
@@ -213,6 +280,13 @@ the include file
.It Dv "P_EXEC" Ta No "0x04000 Process called exec"
.It Dv "P_OWEUPC" Ta No "0x20000 Owe process an addupc() call at next ast"
.It Dv "P_SWAPPING" Ta No "0x40000 Process is being swapped"
.It Dv "P_SWAPINREQ" Ta No "0x80000 Swapin request due to wakeup"
.It Dv "P_KTHREADP" Ta No "0x200000 Process is really a kernel thread"
.It Dv "P_DEADLKTREAT" Ta No "0x800000 Lock acquisition - deadlock treatment"
.It Dv "P_JAILED" Ta No "0x1000000 Process is in jail"
.It Dv "P_OLDMASK" Ta No "0x2000000 Need to restore mask before pause"
.It Dv "P_ALTSTACK" Ta No "0x4000000 Have alternate signal stack"
.It Dv "P_INEXEC" Ta No "0x8000000 Process is in execve()"
.El
.It lim
The soft limit on memory used, specified via a call to
@@ -234,20 +308,15 @@ If the command started less than 7 days ago, the start time is
displayed using the ``%a6.15p'' format.
Otherwise, the start time is displayed using the ``%e%b%y'' format.
.It state
The state is given by a sequence of letters, for example,
The state is given by a sequence of characters, for example,
.Dq Tn RWNA .
The first letter indicates the run state of the process:
The first character indicates the run state of the process:
.Pp
.Bl -tag -width indent -compact
.It D
Marks a process in disk (or other short term, uninterruptible) wait.
.It I
Marks a process that is idle (sleeping for longer than about 20 seconds).
.It J
Marks a process which is in
.Xr jail 2 .
The hostname of the prison can be found in
.Ql Li /proc/<pid>/status .
.It R
Marks a runnable process.
.It S
@@ -268,20 +337,13 @@ The process is in the foreground process group of its control terminal.
The process has raised
.Tn CPU
scheduling priority.
.It >
The process has specified a soft limit on memory requirements and is
currently exceeding that limit; such a process is (necessarily) not
swapped.
.It A
the process has asked for random page replacement
.Pf ( Dv MADV_RANDOM ,
from
.Xr madvise 2 ,
for example,
.Xr lisp 1
in a garbage collect).
.It E
The process is trying to exit.
.It J
Marks a process which is in
.Xr jail 2 .
The hostname of the prison can be found in
.Ql Li /proc/<pid>/status .
.It L
The process has pages locked in core (for example, for raw
.Tn I/O ) .
@@ -290,20 +352,11 @@ The process has reduced
.Tn CPU
scheduling priority (see
.Xr setpriority 2 ) .
.It S
The process has asked for
.Tn FIFO
page replacement
.Pf ( Dv MADV_SEQUENTIAL ,
from
.Xr madvise 2 ,
for example, a large image processing program using virtual memory to
sequentially address voluminous data).
.It s
The process is a session leader.
.It V
The process is suspended during a
.Xr vfork .
.Xr vfork 2 .
.It W
The process is swapped out.
.It X
@@ -503,8 +556,26 @@ the mount point of
.Xr procfs 5 ,
.Xr pstat 8 ,
.Xr sysctl 8
.Sh STANDARDS
For historical reasons,
.Nm
utility under
.Fx
supports a different set of options from what is described by
.St -p1003.2 ,
and what is supported on non-BSD operating systems.
.Sh HISTORY
The
.Nm
command appeared in
.At v4 .
.Sh BUGS
Since
.Nm
cannot run faster than the system and is run as any other scheduled
process, the information it displays can never be exact.
.Pp
The
.Nm
utility does not correctly display argument lists containing multibyte
characters.
+770 -265
View File
File diff suppressed because it is too large. Load diff
+11 -7
View File
@@ -48,6 +48,10 @@ struct usave {
#define KI_PROC(ki) (&(ki)->ki_p->kp_proc)
#define KI_EPROC(ki) (&(ki)->ki_p->kp_eproc)
/* These two make it easier to MFC some changes from 5.x. */
#define KI_PROC2(ki) (&(ki)->kp_proc)
#define KI_EPROC2(ki) (&(ki)->kp_eproc)
typedef struct kinfo {
struct kinfo_proc *ki_p; /* proc structure */
struct usave ki_u; /* interesting parts of user */
@@ -62,27 +66,27 @@ typedef struct varent {
} VARENT;
typedef struct var {
char *name; /* name(s) of variable */
char *header; /* default header */
char *alias; /* aliases */
const char *name; /* name(s) of variable */
const char *header; /* default header */
const char *alias; /* aliases */
#define COMM 0x01 /* needs exec arguments and environment (XXX) */
#define LJUST 0x02 /* left adjust on output (trailing blanks) */
#define USER 0x04 /* needs user structure */
#define DSIZ 0x08 /* field size is dynamic*/
u_int flag;
/* output routine */
void (*oproc) __P((struct kinfo *, struct varent *));
void (*oproc)(struct kinfo *, struct varent *);
/* sizing routine*/
int (*sproc) __P((struct kinfo *));
int (*sproc)(struct kinfo *);
short width; /* printing width */
/*
* The following (optional) elements are hooks for passing information
* to the generic output routines: pvar, evar, uvar (those which print
* simple elements from well known structures: proc, eproc, usave)
*/
int off; /* offset in structure */
size_t off; /* offset in structure */
enum type type; /* type of element */
char *fmt; /* printf format */
const char *fmt; /* printf format */
char *time; /* time format */
short dwidth; /* dynamic printing width */
/*
+11 -16
View File
@@ -44,11 +44,12 @@ static char const copyright[] =
The Regents of the University of California. All rights reserved.\n";
#endif /* not lint */
#ifndef lint
#if 0
#ifndef lint
static char sccsid[] = "@(#)rcp.c 8.2 (Berkeley) 4/2/94";
#endif
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
@@ -589,7 +590,7 @@ sink(int argc, char *argv[])
off_t i, j, size;
int amt, count, exists, first, mask, mode, ofd, omode;
int setimes, targisdir, wrerrno = 0;
char ch, *cp, *np, *targ, *why, *vect[1], buf[BUFSIZ];
char ch, *cp, *np, *targ, *why, *vect[1], buf[BUFSIZ], path[PATH_MAX];
#define atime tv[0]
#define mtime tv[1]
@@ -686,21 +687,15 @@ sink(int argc, char *argv[])
if (*cp++ != ' ')
SCREWUP("size not delimited");
if (targisdir) {
static char *namebuf = NULL;
static size_t cursize;
size_t need;
need = strlen(targ) + strlen(cp) + 250;
if (need > cursize) {
if (namebuf != NULL)
free(namebuf);
if (!(namebuf = malloc(need)))
run_err("%s", strerror(errno));
cursize = need;
if (strlen(targ) + (*targ ? 1 : 0) + strlen(cp)
>= sizeof(path)) {
run_err("%s%s%s: name too long", targ,
*targ ? "/" : "", cp);
exit(1);
}
(void)snprintf(namebuf, need, "%s%s%s", targ,
(void)snprintf(path, sizeof(path), "%s%s%s", targ,
*targ ? "/" : "", cp);
np = namebuf;
np = path;
} else
np = targ;
exists = stat(np, &stb) == 0;
-2
View File
@@ -2,8 +2,6 @@
# $FreeBSD$
PROG= rm
WARNS?= 2
SRCS= rm.c
LINKS= ${BINDIR}/rm ${BINDIR}/unlink
MLINKS= rm.1 unlink.1
+37 -26
View File
@@ -1,3 +1,4 @@
.\"-
.\" Copyright (c) 1990, 1993, 1994
.\" The Regents of the University of California. All rights reserved.
.\"
@@ -12,10 +13,6 @@
.\" 2. Redistributions in binary form must reproduce the above copyright
.\" notice, this list of conditions and the following disclaimer in the
.\" documentation and/or other materials provided with the distribution.
.\" 3. All advertising materials mentioning features or use of this software
.\" must display the following acknowledgement:
.\" This product includes software developed by the University of
.\" California, Berkeley and its contributors.
.\" 4. Neither the name of the University nor the names of its contributors
.\" may be used to endorse or promote products derived from this software
.\" without specific prior written permission.
@@ -35,7 +32,7 @@
.\" @(#)rm.1 8.5 (Berkeley) 12/5/94
.\" $FreeBSD$
.\"
.Dd January 28, 1999
.Dd September 29, 2005
.Dt RM 1
.Os
.Sh NAME
@@ -44,7 +41,8 @@
.Nd remove directory entries
.Sh SYNOPSIS
.Nm
.Op Fl dfiPRrvW
.Op Fl f | i
.Op Fl dIPRrvW
.Ar
.Nm unlink
.Ar file
@@ -80,10 +78,20 @@ The
option overrides any previous
.Fl f
options.
.It Fl I
Request confirmation once if more than three files are being removed or if a
directory is being recursively removed.
This is a far less intrusive option than
.Fl i
yet provides almost the same level of protection against mistakes.
.It Fl P
Overwrite regular files before deleting them.
Files are overwritten three times, first with the byte pattern 0xff,
then 0x00, and then 0xff again, before they are deleted.
Specifying this flag for a read only file will cause
.Nm
to generate an error message and exit.
The file wil not be removed or overwritten.
.It Fl R
Attempt to remove the file hierarchy rooted in each file argument.
The
@@ -115,9 +123,10 @@ The
utility removes symbolic links, not the files referenced by the links.
.Pp
It is an error to attempt to remove the files
.Dq .\&
.Pa / ,
.Pa .\&
or
.Dq .. .
.Pa .. .
.Pp
When the utility is called as
.Nm unlink ,
@@ -148,31 +157,17 @@ to parse its arguments, which allows it to accept
the
.Sq Li --
option which will cause it to stop processing flag options at that
point. This will allow the removal of file names that begin
point.
This will allow the removal of file names that begin
with a dash
.Pq Sq - .
For example:
.Dl rm -- -filename
The same behavior can be obtained by using an absolute or relative
path reference. For example:
path reference.
For example:
.Dl rm /home/user/-filename
.Dl rm ./-filename
.Sh SEE ALSO
.Xr chflags 1 ,
.Xr rmdir 1 ,
.Xr undelete 2 ,
.Xr unlink 2 ,
.Xr fts 3 ,
.Xr getopt 3 ,
.Xr symlink 7
.Sh BUGS
The
.Fl P
option assumes that the underlying file system is a fixed-block file
system.
UFS is a fixed-block file system, LFS is not.
In addition, only regular files are overwritten, other types of files
are not.
.Sh COMPATIBILITY
The
.Nm
@@ -188,6 +183,14 @@ Also, historical
.Bx
implementations prompted on the standard output,
not the standard error output.
.Sh SEE ALSO
.Xr chflags 1 ,
.Xr rmdir 1 ,
.Xr undelete 2 ,
.Xr unlink 2 ,
.Xr fts 3 ,
.Xr getopt 3 ,
.Xr symlink 7
.Sh STANDARDS
The
.Nm
@@ -203,3 +206,11 @@ A
.Nm
command appeared in
.At v1 .
.Sh BUGS
The
.Fl P
option assumes that the underlying file system is a fixed-block file
system.
UFS is a fixed-block file system, LFS is not.
In addition, only regular files are overwritten, other types of files
are not.
+129 -28
View File
@@ -10,10 +10,6 @@
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
@@ -31,6 +27,7 @@
* SUCH DAMAGE.
*/
#if 0
#ifndef lint
static const char copyright[] =
"@(#) Copyright (c) 1990, 1993, 1994\n\
@@ -38,10 +35,9 @@ static const char copyright[] =
#endif /* not lint */
#ifndef lint
#if 0
static char sccsid[] = "@(#)rm.c 8.5 (Berkeley) 4/18/94";
#endif
#endif /* not lint */
#endif
#include <sys/cdefs.h>
__FBSDID("$FreeBSD$");
@@ -53,6 +49,8 @@ __FBSDID("$FreeBSD$");
#include <errno.h>
#include <fcntl.h>
#include <fts.h>
#include <grp.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -60,26 +58,29 @@ __FBSDID("$FreeBSD$");
#include <unistd.h>
int dflag, eval, fflag, iflag, Pflag, vflag, Wflag, stdin_ok;
int rflag, Iflag;
uid_t uid;
int check(char *, char *, struct stat *);
int check2(char **);
void checkdot(char **);
void checkslash(char **);
void rm_file(char **);
void rm_overwrite(char *, struct stat *);
int rm_overwrite(char *, struct stat *);
void rm_tree(char **);
void usage(void);
/*
* rm --
* This rm is different from historic rm's, but is expected to match
* POSIX 1003.2 behavior. The most visible difference is that -f
* POSIX 1003.2 behavior. The most visible difference is that -f
* has two specific effects now, ignore non-existent files and force
* file removal.
* file removal.
*/
int
main(int argc, char *argv[])
{
int ch, rflag;
int ch;
char *p;
/*
@@ -103,7 +104,7 @@ main(int argc, char *argv[])
}
Pflag = rflag = 0;
while ((ch = getopt(argc, argv, "dfiPRrvW")) != -1)
while ((ch = getopt(argc, argv, "dfiIPRrvW")) != -1)
switch(ch) {
case 'd':
dflag = 1;
@@ -116,6 +117,9 @@ main(int argc, char *argv[])
fflag = 0;
iflag = 1;
break;
case 'I':
Iflag = 1;
break;
case 'P':
Pflag = 1;
break;
@@ -137,16 +141,22 @@ main(int argc, char *argv[])
if (argc < 1) {
if (fflag)
return 0;
return (0);
usage();
}
checkdot(argv);
if (getenv("POSIXLY_CORRECT") == NULL)
checkslash(argv);
uid = geteuid();
if (*argv) {
stdin_ok = isatty(STDIN_FILENO);
if (Iflag) {
if (check2(argv) == 0)
exit (1);
}
if (rflag)
rm_tree(argv);
else
@@ -182,8 +192,11 @@ rm_tree(char **argv)
flags |= FTS_NOSTAT;
if (Wflag)
flags |= FTS_WHITEOUT;
if (!(fts = fts_open(argv, flags, NULL)))
err(1, NULL);
if (!(fts = fts_open(argv, flags, NULL))) {
if (fflag && errno == ENOENT)
return;
err(1, "fts_open");
}
while ((p = fts_read(fts)) != NULL) {
switch (p->fts_info) {
case FTS_DNR:
@@ -197,8 +210,8 @@ rm_tree(char **argv)
errx(1, "%s: %s", p->fts_path, strerror(p->fts_errno));
case FTS_NS:
/*
* FTS_NS: assume that if can't stat the file, it
* can't be unlinked.
* Assume that since fts_read() couldn't stat the
* file, it can't be unlinked.
*/
if (!needstat)
break;
@@ -267,9 +280,18 @@ rm_tree(char **argv)
}
break;
case FTS_NS:
/*
* Assume that since fts_read() couldn't stat
* the file, it can't be unlinked.
*/
if (fflag)
continue;
/* FALLTHROUGH */
default:
if (Pflag)
rm_overwrite(p->fts_accpath, NULL);
if (!rm_overwrite(p->fts_accpath, NULL))
continue;
rval = unlink(p->fts_accpath);
if (rval == 0 || (fflag && errno == ENOENT)) {
if (rval == 0 && vflag)
@@ -335,7 +357,8 @@ rm_file(char **argv)
rval = rmdir(f);
else {
if (Pflag)
rm_overwrite(f, &sb);
if (!rm_overwrite(f, &sb))
continue;
rval = unlink(f);
}
}
@@ -355,11 +378,11 @@ rm_file(char **argv)
* XXX
* This is a cheap way to *really* delete files. Note that only regular
* files are deleted, directories (and therefore names) will remain.
* Also, this assumes a fixed-block filesystem (like FFS, or a V7 or a
* System V filesystem). In a logging filesystem, you'll have to have
* Also, this assumes a fixed-block file system (like FFS, or a V7 or a
* System V file system). In a logging file system, you'll have to have
* kernel support.
*/
void
int
rm_overwrite(char *file, struct stat *sbp)
{
struct stat sb;
@@ -375,14 +398,14 @@ rm_overwrite(char *file, struct stat *sbp)
sbp = &sb;
}
if (!S_ISREG(sbp->st_mode))
return;
return (1);
if ((fd = open(file, O_WRONLY, 0)) == -1)
goto err;
if (fstatfs(fd, &fsb) == -1)
goto err;
bsize = MAX(fsb.f_iosize, 1024);
if ((buf = malloc(bsize)) == NULL)
err(1, "malloc");
err(1, "%s: malloc", file);
#define PASS(byte) { \
memset(buf, byte, bsize); \
@@ -401,13 +424,16 @@ rm_overwrite(char *file, struct stat *sbp)
PASS(0xff);
if (!fsync(fd) && !close(fd)) {
free(buf);
return;
return (1);
}
err: eval = 1;
if (buf)
free(buf);
if (fd != -1)
close(fd);
warn("%s", file);
return (0);
}
@@ -423,7 +449,7 @@ check(char *path, char *name, struct stat *sp)
else {
/*
* If it's not a symbolic link and it's unwritable and we're
* talking to a terminal, ask. Symbolic links are excluded
* talking to a terminal, ask. Symbolic links are excluded
* because their permissions are meaningless. Check stdin_ok
* first because we may not have stat'ed the file.
*/
@@ -434,12 +460,16 @@ check(char *path, char *name, struct stat *sp)
return (1);
strmode(sp->st_mode, modep);
if ((flagsp = fflagstostr(sp->st_flags)) == NULL)
err(1, NULL);
err(1, "fflagstostr");
if (Pflag)
errx(1,
"%s: -P was specified, but file is not writable",
path);
(void)fprintf(stderr, "override %s%s%s/%s %s%sfor %s? ",
modep + 1, modep[9] == ' ' ? "" : " ",
user_from_uid(sp->st_uid, 0),
group_from_gid(sp->st_gid, 0),
*flagsp ? flagsp : "", *flagsp ? " " : "",
*flagsp ? flagsp : "", *flagsp ? " " : "",
path);
free(flagsp);
}
@@ -451,6 +481,77 @@ check(char *path, char *name, struct stat *sp)
return (first == 'y' || first == 'Y');
}
#define ISSLASH(a) ((a)[0] == '/' && (a)[1] == '\0')
void
checkslash(char **argv)
{
char **t, **u;
int complained;
complained = 0;
for (t = argv; *t;) {
if (ISSLASH(*t)) {
if (!complained++)
warnx("\"/\" may not be removed");
eval = 1;
for (u = t; u[0] != NULL; ++u)
u[0] = u[1];
} else {
++t;
}
}
}
int
check2(char **argv)
{
struct stat st;
int first;
int ch;
int fcount = 0;
int dcount = 0;
int i;
const char *dname = NULL;
for (i = 0; argv[i]; ++i) {
if (lstat(argv[i], &st) == 0) {
if (S_ISDIR(st.st_mode)) {
++dcount;
dname = argv[i]; /* only used if 1 dir */
} else {
++fcount;
}
}
}
first = 0;
while (first != 'n' && first != 'N' && first != 'y' && first != 'Y') {
if (dcount && rflag) {
fprintf(stderr, "recursively remove");
if (dcount == 1)
fprintf(stderr, " %s", dname);
else
fprintf(stderr, " %d dirs", dcount);
if (fcount == 1)
fprintf(stderr, " and 1 file");
else if (fcount > 1)
fprintf(stderr, " and %d files", fcount);
} else if (dcount + fcount > 3) {
fprintf(stderr, "remove %d files", dcount + fcount);
} else {
return(1);
}
fprintf(stderr, "? ");
fflush(stderr);
first = ch = getchar();
while (ch != '\n' && ch != EOF)
ch = getchar();
if (ch == EOF)
break;
}
return (first == 'y' || first == 'Y');
}
#define ISDOT(a) ((a)[0] == '.' && (!(a)[1] || ((a)[1] == '.' && !(a)[2])))
void
checkdot(char **argv)
@@ -481,7 +582,7 @@ usage(void)
{
(void)fprintf(stderr, "%s\n%s\n",
"usage: rm [-f | -i] [-dPRrvW] file ...",
"usage: rm [-f | -i] [-dIPRrvW] file ...",
" unlink file");
exit(EX_USAGE);
}
+1
View File
@@ -2,6 +2,7 @@
# $FreeBSD$
PROG= sh
INSTALLFLAGS= -S
SHSRCS= alias.c arith.y arith_lex.l cd.c echo.c error.c eval.c exec.c expand.c \
histedit.c input.c jobs.c mail.c main.c memalloc.c miscbltin.c \
mystring.c options.c output.c parser.c printf.c redir.c show.c \
+1 -1
View File
@@ -54,7 +54,7 @@ __FBSDID("$FreeBSD$");
#define ATABSIZE 39
struct alias *atab[ATABSIZE];
STATIC struct alias *atab[ATABSIZE];
STATIC void setalias(char *, char *);
STATIC int unalias(char *);
+2 -2
View File
@@ -74,8 +74,8 @@ STATIC int docd(char *, int, int);
STATIC char *getcomponent(void);
STATIC int updatepwd(char *);
char *curdir = NULL; /* current working directory */
char *prevdir; /* previous working directory */
STATIC char *curdir = NULL; /* current working directory */
STATIC char *prevdir; /* previous working directory */
STATIC char *cdcomppath;
int
+1 -1
View File
@@ -710,7 +710,7 @@ evalcommand(union node *cmd, int flags, struct backcmd *backcmd)
* the command runs. Partly deleting like
* changepatch() does doesn't seem worth the
* bookinging effort, since most such runs add
* diretories in front of the new PATH.
* directories in front of the new PATH.
*/
clearcmdentry(0);
do_clearcmdentry = 1;
+2 -2
View File
@@ -593,7 +593,7 @@ deletefuncs(void)
* entry.
*/
struct tblentry **lastcmdentry;
STATIC struct tblentry **lastcmdentry;
STATIC struct tblentry *
@@ -699,7 +699,7 @@ unsetfunc(char *name)
delete_cmd_entry();
return (0);
}
return (1);
return (0);
}
/*
-1
View File
@@ -64,7 +64,6 @@ int find_builtin(char *);
void hashcd(void);
void changepath(const char *);
void deletefuncs(void);
void getcmdentry(char *, struct cmdentry *);
void addcmdentry(char *, struct cmdentry *);
void defun(char *, union node *);
int unsetfunc(char *);
+7 -7
View File
@@ -89,11 +89,11 @@ struct ifsregion {
};
char *expdest; /* output of current string */
struct nodelist *argbackq; /* list of back quote expressions */
struct ifsregion ifsfirst; /* first struct in list of ifs regions */
struct ifsregion *ifslastp; /* last struct in list */
struct arglist exparg; /* holds expanded arg list */
STATIC char *expdest; /* output of current string */
STATIC struct nodelist *argbackq; /* list of back quote expressions */
STATIC struct ifsregion ifsfirst; /* first struct in list of ifs regions */
STATIC struct ifsregion *ifslastp; /* last struct in list */
STATIC struct arglist exparg; /* holds expanded arg list */
STATIC void argstr(char *, int);
STATIC char *exptilde(char *, int);
@@ -1046,7 +1046,7 @@ ifsbreakup(char *string, struct arglist *arglist)
* should be escapes. The results are stored in the list exparg.
*/
char *expdir;
STATIC char *expdir;
STATIC void
@@ -1164,7 +1164,7 @@ expmeta(char *enddir, char *name)
if (*p == '\0')
break;
}
if (metaflag == 0 || stat(expdir, &statb) >= 0)
if (metaflag == 0 || lstat(expdir, &statb) >= 0)
addfname(expdir);
return;
}
+1 -1
View File
@@ -102,7 +102,7 @@ MKINIT int parselleft; /* copy of parsefile->lleft */
char *parsenextc; /* copy of parsefile->nextc */
MKINIT struct parsefile basepf; /* top level input file */
char basebuf[BUFSIZ]; /* buffer for top level input file */
struct parsefile *parsefile = &basepf; /* current input file */
STATIC struct parsefile *parsefile = &basepf; /* current input file */
int init_editline = 0; /* editline library initialized? */
int whichprompt; /* 1 == PS1, 2 == PS2 */
+7 -5
View File
@@ -76,12 +76,12 @@ __FBSDID("$FreeBSD$");
#include "mystring.h"
struct job *jobtab; /* array of jobs */
int njobs; /* size of array */
STATIC struct job *jobtab; /* array of jobs */
STATIC int njobs; /* size of array */
MKINIT pid_t backgndpid = -1; /* pid of last background process */
#if JOBS
struct job *jobmru; /* most recently used job list */
pid_t initialpgrp; /* pgrp of shell on invocation */
STATIC struct job *jobmru; /* most recently used job list */
STATIC pid_t initialpgrp; /* pgrp of shell on invocation */
#endif
int in_waitcmd = 0; /* are we in waitcmd()? */
int in_dowait = 0; /* are we in dowait()? */
@@ -740,6 +740,7 @@ forkshell(struct job *jp, union node *n, int mode)
TRACE(("forkshell(%%%d, 0x%lx, %d) called\n", jp - jobtab, (long)n,
mode));
INTOFF;
flushall();
pid = fork();
if (pid == -1) {
TRACE(("Fork failed, errno=%d\n", errno));
@@ -929,7 +930,8 @@ dowait(int block, struct job *job)
in_dowait--;
if (breakwaitcmd != 0) {
breakwaitcmd = 0;
return -1;
if (pid <= 0)
return -1;
}
if (pid <= 0)
return pid;
+3 -3
View File
@@ -112,9 +112,9 @@ struct stack_block {
char space[MINSIZE];
};
struct stack_block stackbase;
struct stack_block *stackp = &stackbase;
struct stackmark *markp;
STATIC struct stack_block stackbase;
STATIC struct stack_block *stackp = &stackbase;
STATIC struct stackmark *markp;
char *stacknxt = stackbase.space;
int stacknleft = MINSIZE;
int sstrnleft;
+4 -4
View File
@@ -49,10 +49,10 @@
#include "mystring.h"
int funcblocksize; /* size of structures in function */
int funcstringsize; /* size of strings in node */
pointer funcblock; /* block to allocate function from */
char *funcstring; /* block to allocate strings from */
STATIC int funcblocksize; /* size of structures in function */
STATIC int funcstringsize; /* size of strings in node */
STATIC pointer funcblock; /* block to allocate function from */
STATIC char *funcstring; /* block to allocate strings from */
%SIZES
+1 -1
View File
@@ -164,7 +164,7 @@ outqstr(const char *p, struct output *file)
out1c('\'');
}
char out_junk[16];
STATIC char out_junk[16];
void
emptyoutbuf(struct output *dest)
+12 -11
View File
@@ -84,19 +84,19 @@ struct heredoc {
struct heredoc *heredoclist; /* list of here documents to read */
int parsebackquote; /* nonzero if we are inside backquotes */
int doprompt; /* if set, prompt the user */
int needprompt; /* true if interactive and at start of line */
int lasttoken; /* last token read */
STATIC struct heredoc *heredoclist; /* list of here documents to read */
STATIC int parsebackquote; /* nonzero if we are inside backquotes */
STATIC int doprompt; /* if set, prompt the user */
STATIC int needprompt; /* true if interactive and at start of line */
STATIC int lasttoken; /* last token read */
MKINIT int tokpushback; /* last token pushed back */
char *wordtext; /* text of last word returned by readtoken */
STATIC char *wordtext; /* text of last word returned by readtoken */
MKINIT int checkkwd; /* 1 == check for kwds, 2 == also eat newlines */
struct nodelist *backquotelist;
union node *redirnode;
struct heredoc *heredoc;
int quoteflag; /* set if (part of) last token was quoted */
int startlinno; /* line # where last token started */
STATIC struct nodelist *backquotelist;
STATIC union node *redirnode;
STATIC struct heredoc *heredoc;
STATIC int quoteflag; /* set if (part of) last token was quoted */
STATIC int startlinno; /* line # where last token started */
/* XXX When 'noaliases' is set to one, no alias expansion takes place. */
static int noaliases = 0;
@@ -969,6 +969,7 @@ readtoken1(int firstc, char const *syntax, char *eofmark, int striptabs)
USTPUTC('\\', out);
pungetc();
} else if (c == '\n') {
plinno++;
if (doprompt)
setprompt(2);
else
+1 -1
View File
@@ -84,7 +84,7 @@ MKINIT struct redirtab *redirlist;
* background commands, where we want to redirect fd0 to /dev/null only
* if it hasn't already been redirected.
*/
int fd0_redirected = 0;
STATIC int fd0_redirected = 0;
STATIC void openredirect(union node *, char[10 ]);
STATIC int openhere(union node *);
+1 -1
View File
@@ -262,7 +262,7 @@ When waiting for a child, execute traps immediately.
If this option is not set,
traps are executed after the child exits,
as specified in
.St -p1003.2
.St -p1003.2 .
This nonstandard option is useful for putting guarding shells around
children that block signals. The surrounding shell may kill the child
or it may just return control to the tty and leave the child alone,
+5 -5
View File
@@ -96,11 +96,11 @@ struct var vps1;
struct var vps2;
struct var vvers;
#if ATTY
struct var vterm;
STATIC struct var vterm;
#endif
struct var voptind;
STATIC struct var voptind;
const struct varinit varinit[] = {
STATIC const struct varinit varinit[] = {
#if ATTY
{ &vatty, VSTRFIXED|VTEXTFIXED|VUNSET, "ATTY=",
NULL },
@@ -134,7 +134,7 @@ const struct varinit varinit[] = {
NULL }
};
struct var *vartab[VTABSIZE];
STATIC struct var *vartab[VTABSIZE];
STATIC struct var **hashvar(char *);
STATIC int varequal(char *, char *);
@@ -778,7 +778,7 @@ unsetvar(char *s)
}
}
return (1);
return (0);
}
+13 -6
View File
@@ -214,11 +214,6 @@ True if string
comes after
.Ar \&s\&2
based on the ASCII value of their characters.
.It Ar \&s\&1
True if
.Ar \&s\&1
is not the null
string.
.It Ar \&n\&1 Fl \&eq Ar \&n\&2
True if the integers
.Ar \&n\&1
@@ -259,6 +254,17 @@ than or equal to the integer
.Ar \&n\&2 .
.El
.Pp
If
.Ar file
is a symbolic link,
.Nm
will fully dereference it and then evaluate the expression
against the file referenced, except for the
.Fl h
and
.Fl L
primaries.
.Pp
These primaries can be combined with the following operators:
.Bl -tag -width Ar
.It Cm \&! Ar expression
@@ -319,7 +325,8 @@ An error occurred.
.Sh SEE ALSO
.Xr builtin 1 ,
.Xr expr 1 ,
.Xr sh 1
.Xr sh 1 ,
.Xr symlink 7
.Sh STANDARDS
The
.Nm
+521 -268
View File
File diff suppressed because it is too large. Load diff
+9
View File
@@ -10,6 +10,15 @@ artifacts including BIND, INN, and DHCP.
Note that BIND 8 is in "end-of-life", having been replaced by BIND 9. See
http://www.isc.org/ for more details.
BIND 8.3.7 Highlights
Security release.
BIND 8.3.6 Highlights
Maintenance release.
BIND 8.3.5 Highlights
Maintenance release.
BIND 8.3.4 Highlights
Security Fix DoS and buffer overrun.
+1 -1
View File
@@ -1 +1 @@
8.3.4-REL
8.3.7-REL
+46 -62
View File
@@ -1,5 +1,5 @@
#ifndef lint
static const char rcsid[] = "$Id: dig.c,v 8.57 2002/06/18 02:26:49 marka Exp $";
static const char rcsid[] = "$Id: dig.c,v 8.62.6.3 2003/06/02 10:06:30 marka Exp $";
#endif
/*
@@ -177,6 +177,7 @@ static const char rcsid[] = "$Id: dig.c,v 8.57 2002/06/18 02:26:49 marka Exp $";
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <time.h> /* time(2), ctime(3) */
#include "port_after.h"
@@ -206,15 +207,23 @@ static const char rcsid[] = "$Id: dig.c,v 8.57 2002/06/18 02:26:49 marka Exp $";
#define SAVEENV "DiG.env"
#define DIG_MAXARGS 30
#ifndef DIG_PING
#define DIG_PING "ping"
#endif
#ifndef DIG_TAIL
#define DIG_TAIL "tail"
#endif
#ifndef DIG_PINGFMT
#define DIG_PINGFMT "%s -s %s 56 3 | %s -3"
#endif
static int eecode = 0;
static FILE * qfp;
static char *defsrv, *srvmsg;
static char defbuf[40] = "default -- ";
static char srvbuf[1024];
static char myhostname[MAXHOSTNAMELEN];
static struct sockaddr_in myaddress;
static struct sockaddr_in6 myaddress6;
static u_int32_t ixfr_serial;
static char ubuf[sizeof("ffff:ffff:ffff:ffff:ffff:ffff:123.123.123.123")];
/* stuff for nslookup modules */
struct __res_state res;
@@ -260,7 +269,7 @@ main(int argc, char **argv) {
} packet_;
#define header (packet_.header_)
#define packet (packet_.packet_)
u_char answer[64*1024];
u_char answer[NS_MAXMSG];
int n;
char doping[90];
char pingstr[50];
@@ -295,6 +304,7 @@ main(int argc, char **argv) {
ns_tsig_key key;
char *keyfile = NULL, *keyname = NULL;
const char *pingfmt = NULL;
res_ninit(&res);
res.pfcode = PRF_DEF;
@@ -315,7 +325,6 @@ main(int argc, char **argv) {
myaddress6.sin6_addr = in6addr_any;
myaddress6.sin6_port = 0; /*INPORT_ANY*/;
defsrv = strcat(defbuf, inet_ntoa(res.nsaddr.sin_addr));
res_x = res;
/*
@@ -363,7 +372,6 @@ main(int argc, char **argv) {
vtmp++;
}
res.id = 1;
gettimeofday(&tv1, NULL);
/*
@@ -408,6 +416,11 @@ main(int argc, char **argv) {
* deal with ....
*/
while (*(++argv) != NULL && **argv != '\0') {
if (strlen(cmd) + strlen(*argv) + 2 > sizeof (cmd)) {
fprintf(stderr,
"Argument too large for input buffer\n");
exit(1);
}
strcat(cmd, *argv);
strcat(cmd, " ");
if (**argv == '@') {
@@ -523,10 +536,14 @@ main(int argc, char **argv) {
port = htons(atoi(*argv));
break;
case 'P':
if (argv[0][2] != '\0')
if (argv[0][2] != '\0') {
strcpy(pingstr, argv[0]+2);
else
strcpy(pingstr, "ping -s");
pingfmt =
"%s %s 56 3 | %s -3";
} else {
strcpy(pingstr, DIG_PING);
pingfmt = DIG_PINGFMT;
}
break;
case 'n':
if (argv[0][2] != '\0')
@@ -769,8 +786,6 @@ main(int argc, char **argv) {
* able to "put the resolver to work".
*/
srvbuf[0] = 0;
srvmsg = defsrv;
if (srv != NULL) {
int nscount = 0;
union res_sockaddr_union u[MAXNS];
@@ -803,31 +818,13 @@ main(int argc, char **argv) {
case AF_INET:
u[nscount].sin =
*(struct sockaddr_in*)cur->ai_addr;
u[nscount++].sin6.sin6_port =
u[nscount++].sin.sin_port =
port;
break;
}
}
if (nscount != 0) {
char buf[80];
if (nscount != 0)
res_setservers(&res, u, nscount);
srvmsg = strcat(srvbuf, srv);
strcat(srvbuf, " ");
buf[0] = '\0';
switch (u[0].sin.sin_family) {
case AF_INET:
inet_ntop(AF_INET,
&u[0].sin.sin_addr,
buf, sizeof(buf));
break;
case AF_INET6:
inet_ntop(AF_INET6,
&u[0].sin6.sin6_addr,
buf, sizeof(buf));
break;
}
strcat(srvbuf, buf);
}
freeaddrinfo(answer);
} else {
res = res_t;
@@ -836,7 +833,6 @@ main(int argc, char **argv) {
"; Bad server: %s -- using default server and timer opts\n",
srv);
fflush(stderr);
srvmsg = defsrv;
srv = NULL;
}
printf("; (%d server%s found)\n",
@@ -849,7 +845,7 @@ main(int argc, char **argv) {
int nscount;
union res_sockaddr_union u[MAXNS];
nscount = res_getservers(&res, u, MAXNS);
for (i = 0; i < res.nscount; i++) {
for (i = 0; i < nscount; i++) {
int x;
if (keyfile)
@@ -861,24 +857,11 @@ main(int argc, char **argv) {
&u[i].sin,
NULL);
if (res.pfcode & RES_PRF_STATS) {
char buf[80];
exectime = time(NULL);
buf[0] = '\0';
switch (u[i].sin.sin_family) {
case AF_INET:
inet_ntop(AF_INET,
&u[i].sin.sin_addr,
buf, sizeof(buf));
break;
case AF_INET6:
inet_ntop(AF_INET6,
&u[i].sin6.sin6_addr,
buf, sizeof(buf));
break;
}
printf(";; FROM: %s to SERVER: %s\n",
myhostname,
buf);
p_sockun(u[RES_GETLAST(res)],
ubuf, sizeof(ubuf)));
printf(";; WHEN: %s", ctime(&exectime));
}
if (!x)
@@ -944,12 +927,10 @@ main(int argc, char **argv) {
if ((bytes_in = n) < 0) {
fflush(stdout);
n = 0 - n;
msg[0]=0;
if (keyfile)
strcat(msg,";; res_nsendsigned to server ");
strcpy(msg, ";; res_nsendsigned");
else
strcat(msg,";; res_nsend to server ");
strcat(msg,srvmsg);
strcat(msg, ";; res_nsend");
perror(msg);
fflush(stderr);
@@ -963,13 +944,17 @@ main(int argc, char **argv) {
(void) gettimeofday(&end_time, NULL);
if (res.pfcode & RES_PRF_STATS) {
union res_sockaddr_union u[MAXNS];
(void) res_getservers(&res, u, MAXNS);
query_time = difftv(start_time, end_time);
printf(";; Total query time: ");
prnttime(query_time);
putchar('\n');
exectime = time(NULL);
printf(";; FROM: %s to SERVER: %s\n",
myhostname, srvmsg);
printf(";; FROM: %s to SERVER: %s\n", myhostname,
p_sockun(u[RES_GETLAST(res)],
ubuf, sizeof(ubuf)));
printf(";; WHEN: %s", ctime(&exectime));
printf(";; MSG SIZE sent: %d rcvd: %d\n",
bytes_out, bytes_in);
@@ -980,9 +965,8 @@ main(int argc, char **argv) {
* Argh ... not particularly elegant. Should put in *real* ping code.
* Would necessitate root priviledges for icmp port though!
*/
if (*pingstr) {
sprintf(doping,"%s %s 56 3 | tail -3",pingstr,
(srv==NULL)?(defsrv+10):srv);
if (*pingstr && srv != NULL) {
sprintf(doping, pingfmt, pingstr, srv, DIG_TAIL);
system(doping);
}
putchar('\n');
@@ -1038,7 +1022,7 @@ where: server,\n\
fputs("\
notes: defname and search don't work; use fully-qualified names.\n\
this is DiG version " VSTRING "\n\
$Id: dig.c,v 8.57 2002/06/18 02:26:49 marka Exp $\n\
$Id: dig.c,v 8.62.6.3 2003/06/02 10:06:30 marka Exp $\n\
", stderr);
}
@@ -1383,7 +1367,7 @@ printZone(ns_type xfr, const char *zone, const struct sockaddr_in *sin,
sizeof myaddress) < 0){
int e = errno;
fprintf(stderr, ";; bind(%s:%u): %s\n",
fprintf(stderr, ";; bind(%s port %u): %s\n",
inet_ntoa(myaddress.sin_addr),
ntohs(myaddress.sin_port),
strerror(e));
@@ -1407,7 +1391,7 @@ printZone(ns_type xfr, const char *zone, const struct sockaddr_in *sin,
int e = errno;
char buf[80];
fprintf(stderr, ";; bind(%s:%u): %s\n",
fprintf(stderr, ";; bind(%s port %u): %s\n",
inet_ntop(AF_INET6, &myaddress6.sin6_addr,
buf, sizeof(buf)),
ntohs(myaddress6.sin6_port),
@@ -1799,7 +1783,7 @@ reverse6(char *domain, struct in6_addr *in6) {
in6->s6_addr[6] & 0x0f, (in6->s6_addr[6] >> 4) & 0x0f,
in6->s6_addr[5] & 0x0f, (in6->s6_addr[5] >> 4) & 0x0f,
in6->s6_addr[4] & 0x0f, (in6->s6_addr[4] >> 4) & 0x0f,
in6->s6_addr[6] & 0x0f, (in6->s6_addr[3] >> 4) & 0x0f,
in6->s6_addr[3] & 0x0f, (in6->s6_addr[3] >> 4) & 0x0f,
in6->s6_addr[2] & 0x0f, (in6->s6_addr[2] >> 4) & 0x0f,
in6->s6_addr[1] & 0x0f, (in6->s6_addr[1] >> 4) & 0x0f,
in6->s6_addr[0] & 0x0f, (in6->s6_addr[0] >> 4) & 0x0f);
+2 -2
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: dnsquery.c,v 8.19 2002/04/12 03:03:48 marka Exp $";
static const char rcsid[] = "$Id: dnsquery.c,v 8.19.10.1 2003/06/02 09:15:45 marka Exp $";
#endif /* not lint */
/*
@@ -85,7 +85,7 @@ main(int argc, char *argv[]) {
int c, n;
int nameservers = 0, class, type, len;
union res_sockaddr_union q_nsaddr[MAXNS];
extern int optind, opterr;
extern int optind;
extern char *optarg;
int stream = 0, debug = 0;
+24 -28
View File
@@ -1,5 +1,5 @@
#ifndef lint
static const char rcsid[] = "$Id: host.c,v 8.53 2002/06/18 02:34:02 marka Exp $";
static const char rcsid[] = "$Id: host.c,v 8.55.8.1 2003/06/02 09:24:38 marka Exp $";
#endif /* not lint */
/*
@@ -136,7 +136,7 @@ static const char copyright[] =
#define ERROR -3
#define NONAUTH -4
#define MY_PACKETSZ 64*1024 /* need this to hold tcp answers */
#define MY_PACKETSZ NS_MAXMSG
typedef union {
HEADER qb1;
@@ -226,7 +226,7 @@ Usage: %s [-adlrwv] [-t querytype] [-c class] host [server]\n\
int
main(int argc, char **argv) {
struct sockaddr_storage addr;
struct hostent *hp;
int ok = 0;
char *s;
int waitmode = 0;
int ncnames, ch;
@@ -383,7 +383,6 @@ main(int argc, char **argv) {
}
freeaddrinfo(answer);
}
hp = NULL;
res.res_h_errno = TRY_AGAIN;
/*
* We handle default domains ourselves, thank you.
@@ -393,10 +392,10 @@ main(int argc, char **argv) {
if (list)
exit(ListHosts(getdomain, querytype ? querytype : ns_t_a));
ncnames = 5; nkeychains = 18;
while (hp == NULL && res.res_h_errno == TRY_AGAIN) {
while (ok == 0 && res.res_h_errno == TRY_AGAIN) {
if (!ip) {
cname = NULL;
hp = (struct hostent *)gethostinfo(getdomain);
ok = gethostinfo(getdomain);
getdomain[0] = 0; /* clear this query */
if (sigchase && (chase_step & SD_RR)) {
if (nkeychains-- == 0) {
@@ -413,7 +412,7 @@ main(int argc, char **argv) {
strcpy (getdomain, chase_domain);
strcat (getdomain, ".");
querytype = ns_t_sig;
} else if (hp && !(chase_step & SD_SIG) &&
} else if (ok != 0 && !(chase_step & SD_SIG) &&
(chase_step & SD_BADSIG)) {
printf ("%s for %s not found, last verified key %s\n",
chase_step & SD_SIG ? "Key" : "Signature",
@@ -437,21 +436,17 @@ main(int argc, char **argv) {
sym_ntos(__p_type_syms, chase_type, NULL),
getdomain);
}
hp = NULL;
ok = 0;
res.res_h_errno = TRY_AGAIN;
continue;
}
} else {
if (addrinfo(&addr) == 0)
hp = NULL;
else
hp = (struct hostent *)1; /* XXX */
}
} else
ok = addrinfo(&addr);
if (!waitmode)
break;
}
if (hp == NULL) {
if (ok == 0) {
hperror(res.res_h_errno);
exit(1);
}
@@ -749,14 +744,14 @@ printinfo(const querybuf *answer, const u_char *eom, int filter, int isls,
case SERVFAIL:
res.res_h_errno = TRY_AGAIN;
return (0);
case NOERROR:
res.res_h_errno = NO_DATA;
return (0);
case FORMERR:
case NOTIMP:
case REFUSED:
res.res_h_errno = NO_RECOVERY;
return (0);
case NOERROR:
res.res_h_errno = NO_DATA;
return (0);
case FORMERR:
case NOTIMP:
case REFUSED:
res.res_h_errno = NO_RECOVERY;
return (0);
}
return (0);
}
@@ -1053,7 +1048,7 @@ pr_rr(const u_char *cp, const u_char *msg, FILE *file, int filter) {
}
if (doprint)
fprintf(file, "(\n\t\t\t%lu\t;serial (version)",
fprintf(file, " (\n\t\t\t%lu\t;serial (version)",
ns_get32(cp));
cp += INT32SZ;
if (doprint)
@@ -1321,15 +1316,15 @@ pr_rr(const u_char *cp, const u_char *msg, FILE *file, int filter) {
/* original ttl */
origttl = cp;
if (doprint && verbose)
fprintf(file, " %ld", ns_get32(cp));
fprintf(file, " %lu", ns_get32(cp));
cp += INT32SZ;
/* signature expiration */
if (doprint && verbose)
fprintf(file, " %ld", ns_get32(cp));
fprintf(file, " %lu", ns_get32(cp));
cp += INT32SZ;
/* time signed */
if (doprint && verbose)
fprintf(file, " %ld", ns_get32(cp));
fprintf(file, " %lu", ns_get32(cp));
cp += INT32SZ;
/* key footprint */
if (doprint && verbose)
@@ -1415,7 +1410,8 @@ pr_rr(const u_char *cp, const u_char *msg, FILE *file, int filter) {
}
default:
fprintf (stderr, "Unknown algorithm %d\n", n);
if (doprint && verbose)
fprintf (stderr, "Unknown algorithm %d\n", n);
cp = cp1 + dlen;
break;
}
+44 -41
View File
@@ -131,7 +131,7 @@ char copyright[] =
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)named-xfer.c 4.18 (Berkeley) 3/7/91";
static const char rcsid[] = "$Id: named-xfer.c,v 8.121 2002/06/26 03:27:22 marka Exp $";
static const char rcsid[] = "$Id: named-xfer.c,v 8.122.8.2 2003/06/02 05:59:56 marka Exp $";
#endif /* not lint */
#include "port_before.h"
@@ -243,8 +243,9 @@ LIST(tsig_node) tsig_list;
/*
* Debugging printf.
*/
void
dprintf(int level, const char *format, ...) {
static void lprintf(int level, const char *format, ...) ISC_FORMAT_PRINTF(2, 3);
static void
lprintf(int level, const char *format, ...) {
va_list ap;
va_start(ap, format);
@@ -597,15 +598,15 @@ main(int argc, char *argv[]) {
#endif /* SIGUSR1&&SIGUSR2 */
if (dbfile)
dprintf(1, "domain `%s'; file `%s'; serial %u\n",
lprintf(1, "domain `%s'; file `%s'; serial %u\n",
domain, dbfile, serial_no);
if (ixfrfile)
dprintf(1, "domain `%s'; ixfrfile `%s'; serial %u\n",
lprintf(1, "domain `%s'; ixfrfile `%s'; serial %u\n",
domain, ixfrfile, serial_no);
if (tsigfile)
dprintf(1, "tsigfile `%s'\n", tsigfile);
lprintf(1, "tsigfile `%s'\n", tsigfile);
buildservicelist();
buildprotolist();
@@ -627,7 +628,7 @@ main(int argc, char *argv[]) {
zp->z_source = dbfile;
zp->z_axfr_src = axfr_src;
zp->z_addrcnt = 0;
dprintf(1, "zone found (%d): \"%s\", source = %s\n",
lprintf(1, "zone found (%d): \"%s\", source = %s\n",
zp->z_type,
(zp->z_origin[0] == '\0') ? "." : zp->z_origin,
zp->z_source);
@@ -671,15 +672,15 @@ main(int argc, char *argv[]) {
memcpy(&zp->z_addr[zp->z_addrcnt],
hp->h_addr,
INADDRSZ);
dprintf(1, "Arg: \"%s\" %s\n", tm,((tmpsupportixfr) ? "IXFR":"AXFR"));
lprintf(1, "Arg: \"%s\" %s\n", tm,((tmpsupportixfr) ? "IXFR":"AXFR"));
}
if (++zp->z_addrcnt >= NSMAX) {
zp->z_addrcnt = NSMAX;
dprintf(1, "NSMAX reached\n");
lprintf(1, "NSMAX reached\n");
break;
}
}
dprintf(1, "addrcnt = %d\n", zp->z_addrcnt);
lprintf(1, "addrcnt = %d\n", zp->z_addrcnt);
res_ninit(&res);
res.options &= ~(RES_DEFNAMES | RES_DNSRCH | RES_RECURSE);
@@ -891,7 +892,7 @@ make_query(int fd, struct zoneinfo *zp, int type, u_int32_t serial_no,
if (type == T_IXFR) {
hp = (HEADER *) buf;
cp = buf;
dprintf(1, "len = %d\n", n);
lprintf(1, "len = %d\n", n);
hp->nscount = htons(1+ntohs(hp->nscount));
cp += n;
n = dn_comp(zp->z_origin, cp, bufsize - (cp - buf), NULL, NULL);
@@ -912,7 +913,7 @@ make_query(int fd, struct zoneinfo *zp, int type, u_int32_t serial_no,
PUTLONG(0xABCD, cp); /* Expire */
PUTLONG(0x1776, cp); /* Min TTL */
n = cp - buf;
dprintf(1, "len = %d\n", cp-buf);
lprintf(1, "len = %d\n", cp-buf);
}
tsig_signed = 0;
@@ -1117,7 +1118,7 @@ getzone(struct zoneinfo *zp, u_int32_t serial_no, int port) {
for (cnt = 0; cnt < zp->z_addrcnt; cnt++) {
methode = servermethode[cnt];
sin.sin_addr = zp->z_addr[cnt];
dprintf(3, "address [%s] %s\n",
lprintf(3, "address [%s] %s\n",
inet_ntoa(sin.sin_addr),
(methode == ISIXFR) ? "IXFR":"AXFR");
}
@@ -1157,7 +1158,7 @@ getzone(struct zoneinfo *zp, u_int32_t serial_no, int port) {
sin.sin_family = AF_INET;
sin.sin_port = 0; /* "ANY" */
sin.sin_addr = z_axfr_src;
dprintf(2, "binding to address [%s]\n",
lprintf(2, "binding to address [%s]\n",
inet_ntoa(sin.sin_addr));
if (bind(s, (struct sockaddr *)&sin, sizeof sin) < 0)
syslog(LOG_INFO, "warning: bind(%s) failed",
@@ -1167,11 +1168,11 @@ getzone(struct zoneinfo *zp, u_int32_t serial_no, int port) {
sin.sin_family = AF_INET;
sin.sin_port = port;
sin.sin_addr = zp->z_addr[cnt];
dprintf(2, "connecting to server #%d [%s].%d\n",
lprintf(2, "connecting to server #%d [%s].%d\n",
cnt + 1, inet_ntoa(sin.sin_addr), ntohs(sin.sin_port));
if (connect(s, (struct sockaddr *)&sin, sizeof(sin)) < 0) {
if (z_axfr_src.s_addr != 0) {
dprintf(2, "connect failed, trying w/o -x");
lprintf(2, "connect failed, trying w/o -x");
z_axfr_src.s_addr = 0;
(void) my_close(s);
goto try_again;
@@ -1370,7 +1371,7 @@ getzone(struct zoneinfo *zp, u_int32_t serial_no, int port) {
}
}
if ((loop_cnt >= 1) && (soa_cnt < 2)) {
dprintf(1,
lprintf(1,
"server %s %d rejected IXFR and responded with AXFR\n",
inet_ntoa(sin.sin_addr), soa_cnt);
methode = ISNOTIXFR;
@@ -1380,7 +1381,7 @@ getzone(struct zoneinfo *zp, u_int32_t serial_no, int port) {
break;
}
/* Skip to next record, if any. */
dprintf(1, "skipping %s %s RR in response\n",
lprintf(1, "skipping %s %s RR in response\n",
name2, p_type(type));
tmp = cp4 + dlen;
loop_cnt++;
@@ -1392,7 +1393,7 @@ getzone(struct zoneinfo *zp, u_int32_t serial_no, int port) {
if (check_serial &&
!SEQ_GT(zp_start.z_serial, query_serial)) {
(void) my_close(s);
dprintf(1,
lprintf(1,
"zone up-to-date, serial %u\n",
zp_start.z_serial);
if (ixfp) {
@@ -1541,7 +1542,7 @@ getzone(struct zoneinfo *zp, u_int32_t serial_no, int port) {
soa_cnt = 0;
goto axfr_response;
}
dprintf(1, "need update, serial %u\n",
lprintf(1, "need update, serial %u\n",
zp_start.z_serial);
soa_cnt = 0;
hp = (HEADER *) buf;
@@ -1565,14 +1566,16 @@ getzone(struct zoneinfo *zp, u_int32_t serial_no, int port) {
serial_no, tsig_key,
buf, bufsize);
syslog(LOG_INFO,
"send %s query %d to %s",
p_type(query_type),
cnt, inet_ntoa(sin.sin_addr));
dprintf(1,
"send %s query %d to %s for %s",
p_type(query_type),
cnt, inet_ntoa(sin.sin_addr),
(*zp->z_origin != '\0') ?
zp->z_origin : ".");
lprintf(1,
"send %s query to %s\n",
p_type(query_type),
inet_ntoa(sin.sin_addr));
dprintf(1,"bufsize = %d\n", bufsize);
lprintf(1,"bufsize = %d\n", bufsize);
if (n < 0) {
if (!quiet) {
if (zp->z_type == Z_STUB)
@@ -1646,7 +1649,7 @@ receive:
axfr_response:
if (query_type == T_IXFR)
if (hp->rcode != NOERROR) {
dprintf(1,
lprintf(1,
"server %s did not support IXFR\n",
inet_ntoa(sin.sin_addr));
methode = ISNOTIXFR;
@@ -1656,7 +1659,7 @@ axfr_response:
if (ntohs(hp->qdcount) == 1) {
if ((query_type == T_IXFR) &&
(methode == ISIXFR)) {
dprintf(1,
lprintf(1,
"server %s rejected IXFR and responded with AXFR\n",
inet_ntoa(sin.sin_addr));
methode = ISNOTIXFR;
@@ -1806,10 +1809,10 @@ axfr_response:
(void) fclose(ixfp);
ixfp = NULL;
}
dprintf(2, "error receiving zone transfer\n");
lprintf(2, "error receiving zone transfer\n");
} else if (zp_start.z_serial == serial_no) {
(void) my_close(s);
dprintf(1, "zone up-to-date, serial %u\n",
lprintf(1, "zone up-to-date, serial %u\n",
zp_start.z_serial);
if (ixfp) {
(void) fclose(ixfp);
@@ -1829,7 +1832,7 @@ axfr_response:
} else {
if (zp_finish.z_serial == query_serial) {
(void) my_close(s);
dprintf(1, "zone up-to-date, serial %u\n",
lprintf(1, "zone up-to-date, serial %u\n",
zp_start.z_serial);
if (ixfp) {
(void) fclose(ixfp);
@@ -1844,7 +1847,7 @@ axfr_response:
"serial from [%s], zone %s: %u lower than current: %u\n",
inet_ntoa(sin.sin_addr), zp->z_origin,
zp_finish.z_serial, query_serial);
dprintf(1,
lprintf(1,
"serial from [%s], zone %s: %u lower than current: %u\n",
inet_ntoa(sin.sin_addr), zp->z_origin,
zp_finish.z_serial, query_serial);
@@ -1884,7 +1887,7 @@ axfr_response:
soa_cnt = 0;
goto axfr_response;
}
dprintf(1, "We have an IXFR\n");
lprintf(1, "We have an IXFR\n");
loop_cnt = 0;
while (SEQ_GT(zp_finish.z_serial, serial_no)) {
/*
@@ -2056,7 +2059,7 @@ writemsg(int rfd, const u_char *msg, int msglen) {
u_char len[INT16SZ];
int ret;
__putshort(msglen, len);
ns_put16(msglen, len);
iov[0].iov_base = (char *)len;
iov[0].iov_len = INT16SZ;
DE_CONST(msg, iov[1].iov_base);
@@ -2172,7 +2175,7 @@ print_output(struct zoneinfo *zp, u_int32_t serial_no, u_char *msg,
}
escaped = (*origin++ == '\\') && !escaped;
}
dprintf(3, "print_output: dname %s type %d class %d ttl %u\n",
lprintf(3, "print_output: dname %s type %d class %d ttl %u\n",
dname, type, class, ttl);
/*
* Convert the resource record data into the internal database format.
@@ -2431,13 +2434,13 @@ print_output(struct zoneinfo *zp, u_int32_t serial_no, u_char *msg,
}
if (n > MAXDATA) {
dprintf(1, "update type %d: %d bytes is too much data\n",
lprintf(1, "update type %d: %d bytes is too much data\n",
type, n);
hp->rcode = FORMERR;
return (-1);
}
if (cp != rdatap + dlen) {
dprintf(1,
lprintf(1,
"encoded rdata length is %u, but actual length was %u\n",
dlen, (u_int)(cp - rdatap));
hp->rcode = FORMERR;
@@ -2518,10 +2521,10 @@ print_output(struct zoneinfo *zp, u_int32_t serial_no, u_char *msg,
} else
soa_cnt++;
} else {
dprintf(2, "SOA, serial %u\n",
lprintf(2, "SOA, serial %u\n",
zp_finish.z_serial);
if (zp_start.z_serial != zp_finish.z_serial) {
dprintf(1, "serial changed, restart\n");
lprintf(1, "serial changed, restart\n");
restarts++;
if (restarts > MAX_XFER_RESTARTS) {
syslog(LOG_INFO,
@@ -3191,13 +3194,13 @@ ixfr_log(const u_char *msg, int len, int *delete, FILE *file,
ns_rr rr;
if ((_res.options & RES_INIT) == 0 && res_init() == -1) {
dprintf(1, "ixfr_log() failed\n");
lprintf(1, "ixfr_log() failed\n");
return (-1);
}
if (ns_initparse(msg, len, &handle) < 0) {
fprintf(file, ";; ns_initparse: %s\n", strerror(errno));
dprintf(1, "ixfr_log() failed\n");
lprintf(1, "ixfr_log() failed\n");
return (-1);
}
opcode = (ns_opcode) ns_msg_getflag(handle, ns_f_opcode);
@@ -3208,7 +3211,7 @@ ixfr_log(const u_char *msg, int len, int *delete, FILE *file,
{
(void) fprintf(file,"ns_parserr() failed");
dprintf(1, "ixfr_log() failed\n");
lprintf(1, "ixfr_log() failed\n");
return (-1);
}
type = (ns_type)rr.type;
+1 -1
View File
@@ -1,6 +1,6 @@
/*
* from db.h 4.16 (Berkeley) 6/1/90
* $Id: db_defs.h,v 8.47.4.1 2002/11/14 13:22:24 marka Exp $
* $Id: db_defs.h,v 8.48 2002/11/17 14:51:50 marka Exp $
*/
/*
+4 -3
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static char rcsid[] = "$Id: db_ixfr.c,v 8.31 2002/01/02 04:47:10 marka Exp $";
static char rcsid[] = "$Id: db_ixfr.c,v 8.32 2002/07/08 06:26:04 marka Exp $";
#endif
/*
@@ -857,8 +857,9 @@ ixfr_getdelta(struct zoneinfo *zp, FILE *fp, const char *filename, char *origin,
err++;
break;
}
n = strtoul(buf, &cp, 10);
if (n > 0xffff || *cp != '\0') {
errno = 0;
n = strtoul(buf, &cp, 10);
if (errno != 0 || n > 0xffff || *cp != '\0') {
err++;
break;
}
+6 -8
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)db_load.c 4.38 (Berkeley) 3/2/91";
static const char rcsid[] = "$Id: db_load.c,v 8.121 2001/11/12 21:22:22 marka Exp $";
static const char rcsid[] = "$Id: db_load.c,v 8.123 2002/08/20 04:27:23 marka Exp $";
#endif /* not lint */
/*
@@ -1097,8 +1097,9 @@ db_load(const char *filename, const char *in_origin,
if (!getword(buf, sizeof buf, fp, 0) ||
!isdigit((unsigned char)buf[0]))
ERRTO("opaque length");
errno = 0;
n = strtoul(buf, &cp, 10);
if (n > 0xffff || *cp != '\0')
if (errno != 0 || n > 0xffff || *cp != '\0')
ERRTO("opaque length");
multiline = 0;
i = isc_gethexstring(data, sizeof(data), n, fp,
@@ -1190,10 +1191,8 @@ db_load(const char *filename, const char *in_origin,
zp->z_origin, filename, msg);
}
}
errs += purge_nonglue(zp->z_origin,
(dataflags & DB_F_HINT) ? fcachetab :
hashtab, zp->z_class,
zp->z_type == z_master);
errs += purge_nonglue(zp, (dataflags & DB_F_HINT) ? fcachetab :
hashtab, zp->z_type == z_master);
cleanup:
while (filenames) {
fn = filenames;
@@ -1210,8 +1209,7 @@ db_load(const char *filename, const char *in_origin,
p_class(zp->z_class), zp->z_serial);
if ((zp->z_flags & Z_NOTIFY) != 0)
ns_stopnotify(zp->z_origin, zp->z_class);
do_reload(zp->z_origin, zp->z_type, zp->z_class,
loading);
do_reload(zp, loading);
} else
ns_info(ns_log_load,
"%s zone \"%s\" (%s) loaded (serial %u)",
+1 -1
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: db_sec.c,v 8.35.4.2 2002/11/14 13:24:44 marka Exp $";
static const char rcsid[] = "$Id: db_sec.c,v 8.36 2002/11/17 14:51:50 marka Exp $";
#endif /* not lint */
/*
+4 -4
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: ns_config.c,v 8.135 2002/05/24 03:04:59 marka Exp $";
static const char rcsid[] = "$Id: ns_config.c,v 8.136.8.1 2003/06/02 09:56:34 marka Exp $";
#endif /* not lint */
/*
@@ -562,7 +562,7 @@ update_zone_info(struct zoneinfo *zp, struct zoneinfo *new_zp) {
if (zp->z_source) {
zp->z_source = freestr(zp->z_source);
ns_stopxfrs(zp);
purge_zone(zp->z_origin, fcachetab, zp->z_class);
purge_zone(zp, fcachetab);
}
zp->z_source = new_zp->z_source;
new_zp->z_source = NULL;
@@ -669,8 +669,7 @@ update_zone_info(struct zoneinfo *zp, struct zoneinfo *new_zp) {
* reloading so that NS records are present
* during the zone transfer.
*/
do_reload(zp->z_origin, zp->z_type,
zp->z_class, 1);
do_reload(zp, 1);
}
}
if (zp->z_source == NULL) {
@@ -1150,6 +1149,7 @@ new_options() {
#ifdef BIND_NOTIFY
op->notify = notify_yes;
#endif
op->edns_udp_size = EDNS_MESSAGE_SZ;
return (op);
}
+2 -2
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: ns_ctl.c,v 8.47 2002/06/24 07:11:07 marka Exp $";
static const char rcsid[] = "$Id: ns_ctl.c,v 8.48 2002/07/29 02:06:56 marka Exp $";
#endif /* not lint */
/*
@@ -1126,7 +1126,7 @@ verb_args(struct ctl_sctx *ctl, struct ctl_sess *sess,
*/
cp = saved_argv[pvt->argc++];
tp = pvt->text;
while (cp && *cp != NULL)
while (cp && *cp != '\0')
if (*cp == '%' || *cp == ' ' ||
!isprint((unsigned char)*cp)) {
if (tp >= pvt->text + sizeof(pvt->text) - 4)
+5 -2
View File
@@ -1,6 +1,6 @@
/*
* from ns.h 4.33 (Berkeley) 8/23/90
* $Id: ns_defs.h,v 8.121.2.1 2002/11/14 13:28:12 marka Exp $
* $Id: ns_defs.h,v 8.124.6.1 2003/06/02 09:56:34 marka Exp $
*/
/*
@@ -450,7 +450,8 @@ struct qserv {
struct timeval stime; /* time first query started */
unsigned int forwarder:1; /* this entry is for a forwarder */
unsigned int noedns:1; /* don't try edns */
unsigned int nretry:30; /* # of times addr retried */
unsigned int lame:1; /* this server was lame, try it last */
unsigned int nretry:29; /* # of times addr retried */
u_int32_t serial; /* valid if Q_ZSERIAL */
};
@@ -793,6 +794,7 @@ typedef struct options {
u_int lame_ttl;
int minroots;
u_int16_t preferred_glue;
u_int16_t edns_udp_size;
enum notify notify;
} *options;
@@ -886,6 +888,7 @@ typedef enum ns_logging_categories {
ns_log_load,
ns_log_resp_checks,
ns_log_control,
ns_log_update_security,
ns_log_max_category
} ns_logging_categories;
+37 -20
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)ns_forw.c 4.32 (Berkeley) 3/3/91";
static const char rcsid[] = "$Id: ns_forw.c,v 8.91 2002/05/24 03:04:57 marka Exp $";
static const char rcsid[] = "$Id: ns_forw.c,v 8.92.6.1 2003/06/02 09:56:34 marka Exp $";
#endif /* not lint */
/*
@@ -240,7 +240,8 @@ ns_forw(struct databuf *nsp[], u_char *msg, int msglen,
if (!qp->q_addr[0].noedns)
smsglen += ns_add_opt(smsg, smsg + smsglen, smsgsize, 0, 0,
EDNS_MESSAGE_SZ, 0, NULL, 0);
server_options->edns_udp_size,
0, NULL, 0);
if (key != NULL) {
n = ns_sign(smsg, &smsglen, smsgsize, NOERROR, key, NULL, 0,
@@ -465,14 +466,14 @@ nslookup(struct databuf *nsp[], struct qinfo *qp,
struct hashbuf *tmphtp;
char *dname;
const char *fname;
int oldn, naddr, class, found_arr, potential_ns, lame_ns;
int oldn, naddr, class, found_arr, potential_ns;
time_t curtime;
int found_auth6;
ns_debug(ns_log_default, 3, "nslookup(nsp=%p, qp=%p, \"%s\", d=%d)",
nsp, qp, syslogdname, qp->q_distance);
lame_ns = potential_ns = 0;
potential_ns = 0;
naddr = n = qp->q_naddr;
curtime = (u_long) tt.tv_sec;
while ((nsdp = *nsp++) != NULL && n < NSMAX) {
@@ -492,18 +493,6 @@ nslookup(struct databuf *nsp[], struct qinfo *qp,
}
}
/* skip lame servers */
if ((nsdp->d_flags & DB_F_LAME) != 0) {
time_t when;
when = db_lame_find(qp->q_domain, nsdp);
if (when != 0 && when > tt.tv_sec) {
ns_debug(ns_log_default, 3,
"skipping lame NS");
lame_ns++;
goto skipserver;
}
}
found_arr = 0;
found_auth6 = 0;
tmphtp = ((nsdp->d_flags & DB_F_HINT) ?fcachetab :hashtab);
@@ -617,6 +606,13 @@ nslookup(struct databuf *nsp[], struct qinfo *qp,
if (si && (si->flags & SERVER_INFO_EDNS) == 0)
qs->noedns = 1;
}
qs->lame = 0;
if ((nsdp->d_flags & DB_F_LAME) != 0) {
time_t when;
when = db_lame_find(qp->q_domain, nsdp);
if (when != 0 && when > tt.tv_sec)
qs->lame = 1;
}
qs->nretry = 0;
/*
* If this A RR has no RTT, initialize its RTT to a
@@ -708,15 +704,13 @@ nslookup(struct databuf *nsp[], struct qinfo *qp,
qp->q_naddr = n;
if (n == 0 && potential_ns == 0 && !NS_ZFWDTAB(qp->q_fzone)) {
static const char *complaint = "No possible A RRs";
if (lame_ns != 0)
complaint = "All possible A RR's lame";
if (sysloginfo && syslogdname &&
!haveComplained((u_long)syslogdname, (u_long)complaint))
{
ns_info(ns_log_default, "%s: query(%s) %s",
sysloginfo, syslogdname, complaint);
}
return ((lame_ns == 0) ? -1 : -2);
return (-1);
}
/* Update the refcounts before the sort. */
for (i = naddr; i < (u_int)n; i++) {
@@ -792,6 +786,11 @@ int
qcomp(struct qserv *qs1, struct qserv *qs2) {
u_int rtt1, rtt2, rttr1, rttr2;
/* sort lame servers to last */
if (qs1->lame != qs2->lame)
return (qs1->lame - qs2->lame);
/* sort by rtt */
if (qs1->nsdata == NULL) {
rtt1 = 0;
rttr1 = 0;
@@ -968,6 +967,23 @@ retry(struct qinfo *qp, int samehost) {
if (qp->q_naddr > 0) {
qp->q_addr[n].noedns = 1;
++qp->q_addr[n].nretry;
/*
* Look for a non-lame server.
*/
do {
if (++n >= (int)qp->q_naddr)
n = 0;
if ((qp->q_flags & Q_ZSERIAL) != 0 &&
qp->q_addr[n].serial != 0)
continue;
if (qp->q_addr[n].lame)
continue;
if (qp->q_addr[n].nretry < MAXRETRY)
goto found;
} while (n != qp->q_curaddr);
/*
* Look for any server including lame servers.
*/
do {
if (++n >= (int)qp->q_naddr)
n = 0;
@@ -1071,7 +1087,8 @@ retry(struct qinfo *qp, int samehost) {
if (!qp->q_addr[n].noedns)
smsglen += ns_add_opt(smsg, smsg + smsglen, smsgsize, 0, 0,
EDNS_MESSAGE_SZ, 0, NULL, 0);
server_options->edns_udp_size,
0, NULL, 0);
if (key != NULL) {
n = ns_sign(smsg, &smsglen, smsgsize, NOERROR, key, NULL, 0,
+6 -8
View File
@@ -90,7 +90,7 @@
/* ns_func.h - declarations for ns_*.c's externally visible functions
*
* $Id: ns_func.h,v 8.117 2002/04/25 05:27:07 marka Exp $
* $Id: ns_func.h,v 8.120.8.1 2003/06/02 05:19:56 marka Exp $
*/
/* ++from ns_glue.c++ */
@@ -122,7 +122,6 @@ char * __newstr_record(size_t, int, const char *, int);
char * __savestr_record(const char *, int, const char *, int);
u_char * ina_put(struct in_addr ina, u_char *data);
u_char * savebuf(const u_char *, size_t, int);
void dprintf(int level, const char *format, ...) ISC_FORMAT_PRINTF(2, 3);
#ifdef DEBUG_STRINGS
char * debug_newstr(size_t, int, const char *, int);
char * debug_savestr(const char *, int, const char *, int);
@@ -167,7 +166,7 @@ int send_msg(u_char *, int, struct qinfo *);
int findns(struct namebuf **, int,
struct databuf **, int *, int);
int finddata(struct namebuf *, int, int, HEADER *,
char **, int *, int *);
char **, int *, int *, int, int);
int add_data(struct namebuf *,
struct databuf **,
u_char *, int, int *);
@@ -304,7 +303,7 @@ void ns_cleancache(evContext ctx, void *uap,
struct timespec inter);
void clean_cache_from(char *dname, struct hashbuf *htp);
void remove_zone(struct zoneinfo *, const char *);
void purge_zone(const char *, struct hashbuf *, int);
void purge_zone(struct zoneinfo *, struct hashbuf *);
void loadxfer(void);
void qserial_retrytime(struct zoneinfo *, time_t);
void qserial_query(struct zoneinfo *);
@@ -334,8 +333,8 @@ void ns_heartbeat(evContext ctx, void *uap,
void make_new_zones(void);
void free_zone(struct zoneinfo *);
struct zoneinfo * find_auth_zone(const char *, ns_class);
int purge_nonglue(const char *dname, struct hashbuf *htp,
int class, int log);
int purge_nonglue(struct zoneinfo *, struct hashbuf *htp,
int log);
/* --from ns_maint.c-- */
/* ++from ns_sort.c++ */
@@ -347,7 +346,6 @@ void sort_response(u_char *, u_char *, int,
void ns_refreshtime(struct zoneinfo *, time_t);
void ns_retrytime(struct zoneinfo *, time_t);
time_t ns_init(const char *);
void purgeandload(struct zoneinfo *zp);
enum context ns_ptrcontext(const char *owner);
enum context ns_ownercontext(int type, enum transport);
int ns_nameok(const struct qinfo *qry, const char *name,
@@ -357,7 +355,7 @@ int ns_nameok(const struct qinfo *qry, const char *name,
struct in_addr source);
int ns_wildcard(const char *name);
void zoneinit(struct zoneinfo *);
void do_reload(const char *, int, int, int);
void do_reload(struct zoneinfo *, int);
void ns_shutdown(void);
/* --from ns_init.c-- */
+2 -1
View File
@@ -1,6 +1,6 @@
/*
* from ns.h 4.33 (Berkeley) 8/23/90
* $Id: ns_glob.h,v 8.58 2002/06/05 04:53:50 marka Exp $
* $Id: ns_glob.h,v 8.59 2002/07/19 22:44:08 marka Exp $
*/
/*
@@ -309,6 +309,7 @@ DECL const struct ns_sym category_constants[]
{ ns_log_load, "load" },
{ ns_log_resp_checks, "response-checks" },
{ ns_log_control, "control" },
{ ns_log_update_security, "update-security" },
{ 0, NULL }
}
#endif
+15 -12
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)ns_init.c 4.38 (Berkeley) 3/21/91";
static const char rcsid[] = "$Id: ns_init.c,v 8.76 2001/12/19 01:41:51 marka Exp $";
static const char rcsid[] = "$Id: ns_init.c,v 8.77.8.2 2003/09/04 04:09:09 marka Exp $";
#endif /* not lint */
/*
@@ -107,6 +107,7 @@ static const char rcsid[] = "$Id: ns_init.c,v 8.76 2001/12/19 01:41:51 marka Exp
#ifdef DEBUG
static void content_zone(int, int);
#endif
static void purgeandload(struct zoneinfo *zp);
/*
* Set new refresh time for zone. Use a random number in the last half of
@@ -237,7 +238,7 @@ zoneinit(struct zoneinfo *zp) {
result = stat(zp->z_source, &sb);
if (result != -1) {
ns_stopxfrs(zp);
purge_zone(zp->z_origin, hashtab, zp->z_class);
purge_zone(zp, hashtab);
}
if (result == -1 ||
db_load(zp->z_source, zp->z_origin, zp, NULL, ISNOTIXFR))
@@ -265,8 +266,11 @@ zoneinit(struct zoneinfo *zp) {
* delegation to that child when it was first loaded.
*/
void
do_reload(const char *domain, int type, int class, int mark) {
do_reload(struct zoneinfo *ozp, int mark) {
struct zoneinfo *zp;
const char *domain = ozp->z_origin;
int type = ozp->z_type;
int class = ozp->z_class;
ns_debug(ns_log_config, 1, "do_reload: %s %d %d %d",
*domain ? domain : ".", type, class, mark);
@@ -295,9 +299,9 @@ do_reload(const char *domain, int type, int class, int mark) {
*/
ns_stopxfrs(zp);
if (type == z_hint || (type == z_stub && *domain == 0))
purge_zone(domain, fcachetab, class);
purge_zone(ozp, fcachetab);
else
purge_zone(domain, hashtab, class);
purge_zone(ozp, hashtab);
/*
* Reload
@@ -326,7 +330,7 @@ do_reload(const char *domain, int type, int class, int mark) {
domain = ""; /* root zone */
zp = find_zone(domain, class);
if (zp != NULL) {
if (zp != NULL && zp->z_type != Z_HINT) {
ns_debug(ns_log_config, 1, "do_reload: matched %s",
*domain ? domain : ".");
if (mark)
@@ -338,7 +342,7 @@ do_reload(const char *domain, int type, int class, int mark) {
}
}
void
static void
purgeandload(struct zoneinfo *zp) {
#ifdef BIND_UPDATE
@@ -355,9 +359,9 @@ purgeandload(struct zoneinfo *zp) {
ns_stopxfrs(zp);
if (zp->z_type == Z_HINT)
purge_zone(zp->z_origin, fcachetab, zp->z_class);
purge_zone(zp, fcachetab);
else
purge_zone(zp->z_origin, hashtab, zp->z_class);
purge_zone(zp, hashtab);
zp->z_flags &= ~Z_AUTH;
@@ -563,10 +567,9 @@ ns_shutdown() {
if (zp->z_type) {
if (zp->z_type != z_hint && zp->z_type != z_cache) {
ns_stopxfrs(zp);
purge_zone(zp->z_origin, hashtab, zp->z_class);
purge_zone(zp, hashtab);
} else if (zp->z_type == z_hint)
purge_zone(zp->z_origin, fcachetab,
zp->z_class);
purge_zone(zp, fcachetab);
free_zone_contents(zp, 1);
}
}
+9 -15
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: ns_ixfr.c,v 8.32 2002/05/18 01:02:57 marka Exp $";
static const char rcsid[] = "$Id: ns_ixfr.c,v 8.33 2003/02/24 23:36:01 marka Exp $";
#endif /* not lint */
/*
@@ -408,6 +408,7 @@ ixfr_log_maint(struct zoneinfo *zp) {
int len;
struct stat db_sb;
struct stat sb;
size_t check_size;
static char buf[MAXBSIZE];
ns_debug(ns_log_default, 3, "ixfr_log_maint(%s)", zp->z_origin);
@@ -443,20 +444,13 @@ ixfr_log_maint(struct zoneinfo *zp) {
}
ns_debug(ns_log_default, 3, "%s, size %ld max %ld\n", zp->z_ixfr_base,
(long)sb.st_size, (long)zp->z_max_log_size_ixfr);
if (zp->z_max_log_size_ixfr) {
if (sb.st_size > zp->z_max_log_size_ixfr)
seek = sb.st_size -
(size_t)(zp->z_max_log_size_ixfr +
(zp->z_max_log_size_ixfr * 0.10) );
else
seek = 0;
} else {
if (sb.st_size > (db_sb.st_size * 0.50))
seek = sb.st_size - (size_t)((db_sb.st_size * 0.50)
+ ((db_sb.st_size * zp->z_max_log_size_ixfr) * 0.10));
else
seek = 0;
}
check_size = zp->z_max_log_size_ixfr;
if (!check_size)
check_size = db_sb.st_size / 2;
if (sb.st_size > check_size)
seek = (sb.st_size - check_size) + (check_size / 10);
else
seek = 0;
ns_debug(ns_log_default, 3, "seek: %ld", (long)seek);
if (seek < 1) {
ns_debug(ns_log_default, 3, "%s does not need to be reduced",
+2 -1
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: ns_lexer.c,v 8.31 2002/05/24 03:05:03 marka Exp $";
static const char rcsid[] = "$Id: ns_lexer.c,v 8.31.10.1 2003/06/02 09:56:35 marka Exp $";
#endif /* not lint */
/*
@@ -252,6 +252,7 @@ static struct keyword keywords[] = {
{"dump-file", T_DUMP_FILE},
{"dynamic", T_DYNAMIC},
{"edns", T_EDNS},
{"edns-udp-size", T_EDNS_UDP_SIZE},
{"explicit", T_EXPLICIT},
{"fail", T_FAIL},
{"fake-iquery", T_FAKE_IQUERY},
+73 -20
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)ns_main.c 4.55 (Berkeley) 7/1/91";
static const char rcsid[] = "$Id: ns_main.c,v 8.160 2002/06/24 07:06:55 marka Exp $";
static const char rcsid[] = "$Id: ns_main.c,v 8.162.6.2 2003/06/08 22:08:02 marka Exp $";
#endif /* not lint */
/*
@@ -141,6 +141,10 @@ char copyright[] =
#include "named.h"
#undef MAIN_PROGRAM
#ifdef TRUCLUSTER5
# include <clua/clua.h>
#endif
typedef void (*handler)(void);
typedef struct _savedg {
@@ -193,7 +197,8 @@ static int sq_dowrite(struct qstream *);
static void use_desired_debug(void);
static void stream_write(evContext, void *, int, int);
static interface * if_find(struct in_addr, u_int16_t port);
static interface * if_find(struct in_addr, u_int16_t port,
int anyport);
static void deallocate_everything(void),
stream_accept(evContext, void *, int,
@@ -825,8 +830,12 @@ stream_accept(evContext lev, void *uap, int rfd,
sp->s_ifp = ifp;
INSIST(sizeof sp->s_temp >= INT16SZ);
iov = evConsIovec(sp->s_temp, INT16SZ);
INSIST_ERR(evRead(lev, rfd, &iov, 1, stream_getlen, sp, &sp->evID_r)
!= -1);
if (evRead(lev, rfd, &iov, 1, stream_getlen, sp, &sp->evID_r) == -1) {
ns_error(ns_log_default, "evRead(fd %d): %s",
rfd, strerror(errno));
sq_remove(sp);
return;
}
sp->flags |= STREAM_READ_EV;
ns_debug(ns_log_default, 1, "IP/TCP connection from %s (fd %d)",
sin_ntoa(sp->s_from), rfd);
@@ -968,8 +977,12 @@ stream_write(evContext ctx, void *uap, int fd, int evmask) {
sp->flags &= ~STREAM_WRITE_EV;
sp->s_refcnt = 0;
iov = evConsIovec(sp->s_temp, INT16SZ);
INSIST_ERR(evRead(ctx, fd, &iov, 1, stream_getlen, sp, &sp->evID_r) !=
-1);
if (evRead(ctx, fd, &iov, 1, stream_getlen, sp, &sp->evID_r) == -1) {
ns_error(ns_log_default, "evRead(fd %d): %s",
fd, strerror(errno));
sq_remove(sp);
return;
}
sp->flags |= STREAM_READ_EV;
}
@@ -1034,9 +1047,12 @@ stream_getlen(evContext lev, void *uap, int fd, int bytes) {
iov = evConsIovec(sp->s_buf, (sp->s_size <= sp->s_bufsize) ?
sp->s_size : sp->s_bufsize);
if (evRead(lev, sp->s_rfd, &iov, 1, stream_getmsg, sp, &sp->evID_r)
== -1)
ns_panic(ns_log_default, 1, "evRead(fd %d): %s",
== -1) {
ns_error(ns_log_default, "evRead(fd %d): %s",
sp->s_rfd, strerror(errno));
sq_remove(sp);
return;
}
sp->flags |= STREAM_READ_EV;
}
@@ -1258,6 +1274,11 @@ getnetconf(int periodic_scan) {
ip_match_element ime;
u_char *mask_ptr;
struct in_addr mask;
#ifdef TRUCLUSTER5
struct sockaddr clua_addr;
int clua_cnt, clua_tot;
#endif
int clua_buf;
if (iflist_initialized) {
if (iflist_dont_rescan)
@@ -1287,8 +1308,19 @@ getnetconf(int periodic_scan) {
free_ip_match_list(local_networks);
local_networks = new_ip_match_list();
#ifdef TRUCLUSTER5
/* Find out how many cluster aliases there are */
clua_cnt = 0;
clua_tot = 0;
while (clua_getaliasaddress(&clua_addr, &clua_cnt) == CLUA_SUCCESS)
clua_tot ++;
clua_buf = clua_tot * sizeof(ifreq);
#else
clua_buf = 0;
#endif
for (;;) {
buf = memget(bufsiz);
buf = memget(bufsiz + clua_buf);
if (!buf)
ns_panic(ns_log_default, 1, "memget(interface)");
ifc.ifc_len = bufsiz;
@@ -1323,10 +1355,29 @@ getnetconf(int periodic_scan) {
if (bufsiz > 1000000)
ns_panic(ns_log_default, 1,
"get interface configuration: maximum buffer size exceeded");
memput(buf, bufsiz);
memput(buf, bufsiz + clua_buf);
bufsiz += 4096;
}
#ifdef TRUCLUSTER5
/* Get the cluster aliases and create interface entries for them */
clua_cnt = 0;
while (clua_tot--) {
memset(&ifreq, 0, sizeof (ifreq));
if (clua_getaliasaddress(&ifreq.ifr_addr, &clua_cnt) !=
CLUA_SUCCESS)
/*
* It is possible the count of aliases has changed; if
* it has increased, they won't be found this pass.
* If has decreased, stop the loop early. */
break;
strcpy(ifreq.ifr_name, "lo0");
memcpy(ifc.ifc_buf + ifc.ifc_len, &ifreq, sizeof (ifreq));
ifc.ifc_len += sizeof (ifreq);
bufsiz += sizeof (ifreq);
}
#endif
ns_debug(ns_log_default, 2, "getnetconf: SIOCGIFCONF: ifc_len = %d",
ifc.ifc_len);
@@ -1398,7 +1449,7 @@ getnetconf(int periodic_scan) {
* point interfaces, then the local address
* may appear more than once.
*/
ifp = if_find(ina, li->port);
ifp = if_find(ina, li->port, 0);
if (ifp != NULL) {
ns_debug(ns_log_default, 1,
"dup interface addr [%s].%u (%s)",
@@ -1835,7 +1886,7 @@ opensocket_f() {
* we'll notice we're in trouble if it goes away.
*/
ifp = if_find(server_options->query_source.sin_addr,
server_options->query_source.sin_port);
server_options->query_source.sin_port, 0);
if (ifp != NULL) {
ifp->flags |= INTERFACE_FORWARDING;
prev_ifp = ifp;
@@ -2155,7 +2206,7 @@ sq_write(struct qstream *qs, const u_char *buf, int len) {
return (-1);
}
}
__putshort(len, qs->s_wbuf_free);
ns_put16(len, qs->s_wbuf_free);
qs->s_wbuf_free += NS_INT16SZ;
memcpy(qs->s_wbuf_free, buf, len);
qs->s_wbuf_free += len;
@@ -2196,9 +2247,12 @@ sq_done(struct qstream *sp) {
}
iov = evConsIovec(sp->s_temp, INT16SZ);
if (evRead(ev, sp->s_rfd, &iov, 1, stream_getlen, sp, &sp->evID_r) ==
-1)
ns_panic(ns_log_default, 1, "evRead(fd %d): %s",
-1) {
ns_error(ns_log_default, "evRead(fd %d): %s",
sp->s_rfd, strerror(errno));
sq_remove(sp);
return;
}
sp->flags |= STREAM_READ_EV;
}
@@ -2302,26 +2356,25 @@ net_mask(struct in_addr ina) {
int
aIsUs(struct in_addr addr) {
if (ina_hlong(addr) == INADDR_ANY || if_find(addr, 0) != NULL)
if (ina_hlong(addr) == INADDR_ANY || if_find(addr, 0, 1) != NULL)
return (1);
return (0);
}
/* interface *
* if_find(addr, port)
* if_find(addr, port, anyport)
* scan our list of interface addresses for "addr" and port.
* port == 0 means match any port
* returns:
* pointer to interface with this address/port, or NULL if there isn't
* one.
*/
static interface *
if_find(struct in_addr addr, u_int16_t port) {
if_find(struct in_addr addr, u_int16_t port, int anyport) {
interface *ifp;
for (ifp = HEAD(iflist); ifp != NULL; ifp = NEXT(ifp, link))
if (ina_equal(addr, ifp->addr))
if (port == 0 || ifp->port == port)
if (anyport || ifp->port == port)
break;
return (ifp);
}
+65 -46
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)ns_maint.c 4.39 (Berkeley) 3/2/91";
static const char rcsid[] = "$Id: ns_maint.c,v 8.136 2002/06/26 03:27:20 marka Exp $";
static const char rcsid[] = "$Id: ns_maint.c,v 8.137.8.1 2003/06/02 05:34:25 marka Exp $";
#endif /* not lint */
/*
@@ -134,7 +134,7 @@ static void startxfer(struct zoneinfo *),
abortxfer(struct zoneinfo *),
purge_z_2(struct hashbuf *, int);
static int purge_nonglue_2(const char *, struct hashbuf *,
int, int, int);
int, int, int, int);
#ifndef HAVE_SPAWNXFER
static pid_t spawnxfer(char **, struct zoneinfo *);
@@ -181,7 +181,7 @@ zone_maint(struct zoneinfo *zp) {
if ((zp->z_flags & Z_NOTIFY) != 0)
ns_stopnotify(zp->z_origin, zp->z_class);
/* calls purge_zone */
do_reload(zp->z_origin, zp->z_type, zp->z_class, 0);
do_reload(zp, 0);
/* reset zone state */
if (!haveComplained((u_long)zp, (u_long)stale)) {
ns_notice(ns_log_default,
@@ -906,7 +906,7 @@ startxfer(struct zoneinfo *zp) {
last = &buffer[sizeof buffer - 1]; /* leave room for \0 */
for (i = 0; i < argc; i++) {
len = strlen(argv[i]);
if (curr + len + 1 >= last) {
if (len + 1 >= last - curr) {
ns_debug(ns_log_xfer_in, 1,
"xfer args debug printout truncated");
break;
@@ -1215,7 +1215,7 @@ remove_zone(struct zoneinfo *zp, const char *verb) {
zp->z_xferpid = 0;
ns_need(main_need_tryxfer);
}
do_reload(zp->z_origin, zp->z_type, zp->z_class, 1);
do_reload(zp, 1);
ns_notice(ns_log_config, "%s zone \"%s\" (%s) %s",
zoneTypeString(zp->z_type), zp->z_origin,
p_class(zp->z_class), verb);
@@ -1228,17 +1228,30 @@ remove_zone(struct zoneinfo *zp, const char *verb) {
}
int
purge_nonglue(const char *dname, struct hashbuf *htp, int class, int log) {
purge_nonglue(struct zoneinfo *zp, struct hashbuf *htp, int log) {
const char *dname = zp->z_origin;
const char *fname;
struct namebuf *np;
struct hashbuf *phtp = htp;
int root_zone = 0;
int errs = 0;
int zone = zp - zones;
struct databuf *pdp, *dp;
int class = zp->z_class;
ns_debug(ns_log_default, 1, "purge_zone(%s,%d)", dname, class);
ns_debug(ns_log_default, 1, "purge_nonglue(%s/%d)", dname, class);
if ((np = nlookup(dname, &phtp, &fname, 0)) && dname == fname &&
!ns_wildcard(NAME(*np))) {
for (pdp = NULL, dp = np->n_data; dp != NULL; (void)NULL) {
if (dp->d_class == class && dp->d_zone != zone)
dp = rm_datum(dp, np, pdp, NULL);
else {
pdp = dp;
dp = dp->d_next;
}
}
if (*dname == '\0')
root_zone = 1;
@@ -1249,7 +1262,7 @@ purge_nonglue(const char *dname, struct hashbuf *htp, int class, int log) {
h = htp;
else
h = np->n_hash;
errs += purge_nonglue_2(dname, h, class, 0, log);
errs += purge_nonglue_2(dname, h, class, 0, log, zone);
if (h->h_cnt == 0 && !root_zone) {
rm_hash(np->n_hash);
np->n_hash = NULL;
@@ -1290,7 +1303,7 @@ valid_glue(struct databuf *dp, char *name, int belowcut) {
static int
purge_nonglue_2(const char *dname, struct hashbuf *htp, int class,
int belowcut, int log)
int belowcut, int log, int zone)
{
struct databuf *dp, *pdp;
struct namebuf *np, *pnp, *npn;
@@ -1315,10 +1328,16 @@ purge_nonglue_2(const char *dname, struct hashbuf *htp, int class,
for (pdp = NULL, dp = np->n_data;
dp != NULL;
(void)NULL) {
if (dp->d_class == class &&
zonecut &&
int delete = 0;
if (!zonecut &&
dp->d_class == class &&
dp->d_zone != zone)
delete = 1;
if (zonecut &&
dp->d_class == class &&
!valid_glue(dp, name, belowcut)) {
if (log)
if (log &&
dp->d_zone == zone) {
ns_error(ns_log_load,
"zone: %s/%s: non-glue record %s bottom of zone: %s/%s",
*dname ? dname : ".",
@@ -1327,11 +1346,14 @@ purge_nonglue_2(const char *dname, struct hashbuf *htp, int class,
"at",
*name ? name : ".",
p_type(dp->d_type));
errs++;
}
delete = 1;
}
if (delete)
dp = rm_datum(dp, np, pdp,
NULL);
if (log)
errs++;
} else {
else {
pdp = dp;
dp = dp->d_next;
}
@@ -1346,7 +1368,7 @@ purge_nonglue_2(const char *dname, struct hashbuf *htp, int class,
class,
zonecut ||
belowcut,
log);
log, zone);
/* if now empty, free it */
if (np->n_hash->h_cnt == 0) {
@@ -1369,18 +1391,20 @@ purge_nonglue_2(const char *dname, struct hashbuf *htp, int class,
}
void
purge_zone(const char *dname, struct hashbuf *htp, int class) {
purge_zone(struct zoneinfo *zp, struct hashbuf *htp) {
const char *fname;
struct databuf *dp, *pdp;
struct namebuf *np;
struct hashbuf *phtp = htp;
int root_zone = 0;
int zone = zp - zones;
char *dname = zp->z_origin;
ns_debug(ns_log_default, 1, "purge_zone(%s,%d)", dname, class);
ns_debug(ns_log_default, 1, "purge_zone(%s)", dname);
if ((np = nlookup(dname, &phtp, &fname, 0)) && dname == fname &&
!ns_wildcard(NAME(*np))) {
for (pdp = NULL, dp = np->n_data; dp != NULL; (void)NULL) {
if (dp->d_class == class)
if (dp->d_zone == zone)
dp = rm_datum(dp, np, pdp, NULL);
else {
pdp = dp;
@@ -1398,7 +1422,7 @@ purge_zone(const char *dname, struct hashbuf *htp, int class) {
h = htp;
else
h = np->n_hash;
purge_z_2(h, class);
purge_z_2(h, zone);
if (h->h_cnt == 0 && !root_zone) {
rm_hash(np->n_hash);
np->n_hash = NULL;
@@ -1411,10 +1435,7 @@ purge_zone(const char *dname, struct hashbuf *htp, int class) {
}
static void
purge_z_2(htp, class)
struct hashbuf *htp;
int class;
{
purge_z_2(struct hashbuf *htp, int zone) {
struct databuf *dp, *pdp;
struct namebuf *np, *pnp, *npn;
struct namebuf **npp, **nppend;
@@ -1422,27 +1443,25 @@ purge_z_2(htp, class)
nppend = htp->h_tab + htp->h_size;
for (npp = htp->h_tab; npp < nppend; npp++) {
for (pnp = NULL, np = *npp; np != NULL; np = npn) {
if (!bottom_of_zone(np->n_data, class)) {
for (pdp = NULL, dp = np->n_data;
dp != NULL;
(void)NULL) {
if (dp->d_class == class)
dp = rm_datum(dp, np, pdp,
NULL);
else {
pdp = dp;
dp = dp->d_next;
}
for (pdp = NULL, dp = np->n_data;
dp != NULL;
(void)NULL) {
if (dp->d_zone == zone)
dp = rm_datum(dp, np, pdp,
NULL);
else {
pdp = dp;
dp = dp->d_next;
}
if (np->n_hash) {
/* call recursively to rm subdomains */
purge_z_2(np->n_hash, class);
}
if (np->n_hash) {
/* call recursively to rm subdomains */
purge_z_2(np->n_hash, zone);
/* if now empty, free it */
if (np->n_hash->h_cnt == 0) {
rm_hash(np->n_hash);
np->n_hash = NULL;
}
/* if now empty, free it */
if (np->n_hash->h_cnt == 0) {
rm_hash(np->n_hash);
np->n_hash = NULL;
}
}
@@ -1804,12 +1823,12 @@ loadxfer(void) {
isixfr = ISIXFR;
} else {
tmpnom = zp->z_source;
purge_zone(zp->z_origin, hashtab, zp->z_class);
purge_zone(zp, hashtab);
isixfr = ISNOTIXFR;
}
if (zp->z_xferpid == XFER_ISAXFRIXFR) {
tmpnom= zp->z_source;
purge_zone(zp->z_origin, hashtab, zp->z_class);
purge_zone(zp, hashtab);
isixfr = ISNOTIXFR;
}
@@ -1892,7 +1911,7 @@ reload_master(struct zoneinfo *zp) {
(zp->z_flags & Z_NEED_DUMP) != 0))
(void) zonedump(zp, ISNOTIXFR);
#endif
purge_zone(zp->z_origin, hashtab, zp->z_class);
purge_zone(zp, hashtab);
ns_debug(ns_log_config, 1, "reloading zone");
#ifdef BIND_UPDATE
if ((zp->z_flags & Z_DYNAMIC) != 0) {
+1 -1
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: ns_ncache.c,v 8.29.4.1 2002/11/14 13:41:31 marka Exp $";
static const char rcsid[] = "$Id: ns_ncache.c,v 8.30 2002/11/17 14:51:51 marka Exp $";
#endif /* not lint */
/*
+16 -4
View File
@@ -1,6 +1,6 @@
%{
#if !defined(lint) && !defined(SABER)
static char rcsid[] = "$Id: ns_parser.y,v 8.80 2002/05/24 03:05:01 marka Exp $";
static char rcsid[] = "$Id: ns_parser.y,v 8.81.8.1 2003/06/02 09:56:35 marka Exp $";
#endif /* not lint */
/*
@@ -158,6 +158,7 @@ int yyparse();
%token T_MAX_NCACHE_TTL T_HAS_OLD_CLIENTS T_RFC2308_TYPE1
%token T_LAME_TTL T_MIN_ROOTS
%token T_TREAT_CR_AS_SPACE
%token T_EDNS_UDP_SIZE
/* Items used for the "logging" statement: */
%token T_LOGGING T_CATEGORY T_CHANNEL T_SEVERITY T_DYNAMIC
@@ -609,6 +610,16 @@ option: /* Empty */
if ($2 >= 1)
current_options->minroots = $2;
}
|
| T_EDNS_UDP_SIZE L_NUMBER
{
if ($2 < 512)
current_options->edns_udp_size = 512;
else if ($2 > EDNS_MESSAGE_SZ)
current_options->edns_udp_size = EDNS_MESSAGE_SZ;
else
current_options->edns_udp_size = $2;
}
| error
;
@@ -711,6 +722,7 @@ ordering_type: /* nothing */
}
(void)freestr($2);
}
;
ordering_name: /* nothing */
{
@@ -726,7 +738,7 @@ ordering_name: /* nothing */
}
/* XXX Should do any more name validation here? */
}
;
rrset_ordering_element: ordering_class ordering_type ordering_name T_ORDER L_STRING
{
@@ -749,7 +761,7 @@ rrset_ordering_element: ordering_class ordering_type ordering_name T_ORDER L_STR
$$ = new_rrset_order_element($1, $2, $3, o);
}
}
;
transfer_format: T_ONE_ANSWER
{
@@ -1434,7 +1446,7 @@ key_list: key_list_element L_EOS
| error
;
dummy_key_list_element: key_ref;
dummy_key_list_element: key_ref { /* empty */ } ;
dummy_key_list: dummy_key_list_element L_EOS
| dummy_key_list dummy_key_list_element L_EOS
+44 -29
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)ns_req.c 4.47 (Berkeley) 7/1/91";
static const char rcsid[] = "$Id: ns_req.c,v 8.169.2.1 2002/11/14 13:02:48 marka Exp $";
static const char rcsid[] = "$Id: ns_req.c,v 8.175.6.2 2003/06/02 09:56:35 marka Exp $";
#endif /* not lint */
/*
@@ -563,8 +563,9 @@ ns_req(u_char *msg, int msglen, int buflen, struct qstream *qsp,
ns_name_rollback(cp, (const u_char **)dnptrs,
(const u_char **)dnptrs_end);
if (opt > 0) {
n = ns_add_opt(msg, cp, buflen_orig, 0,
rcode, EDNS_MESSAGE_SZ, 0, NULL, 0);
n = ns_add_opt(msg, cp, buflen_orig, 0, rcode,
server_options->edns_udp_size,
0, NULL, 0);
if (n < 0) {
hp->qdcount = htons(0);
goto sign_again;
@@ -604,8 +605,9 @@ ns_req(u_char *msg, int msglen, int buflen, struct qstream *qsp,
msglen += n;
if (opt > 0) {
buflen += opt_size;
n = ns_add_opt(msg, cp, msglen + buflen, 0,
rcode, EDNS_MESSAGE_SZ, 0, NULL, 0);
n = ns_add_opt(msg, cp, msglen + buflen, 0, rcode,
server_options->edns_udp_size,
0, NULL, 0);
INSIST(n > 0);
cp += n;
buflen -= n;
@@ -856,6 +858,9 @@ req_query(HEADER *hp, u_char **cpp, u_char *eom, struct qstream *qsp,
DST_KEY *in_key = (in_tsig != NULL) ? in_tsig->key : NULL;
int access_class;
int adjustlen = 0;
int pass = 0;
char tsig_keyname_mesg[15+MAXDNAME] = "";
int glueok;
nameserIncr(from.sin_addr, nssRcvdQ);
@@ -900,7 +905,6 @@ req_query(HEADER *hp, u_char **cpp, u_char *eom, struct qstream *qsp,
return (Finish);
}
*cpp += n;
answers = *cpp;
if (*cpp + 2 * INT16SZ > eom) {
ns_debug(ns_log_default, 1,
"FORMERR Query message length short");
@@ -1017,6 +1021,7 @@ req_query(HEADER *hp, u_char **cpp, u_char *eom, struct qstream *qsp,
#endif /*QRYLOG*/
try_again:
pass++;
foundname = 0;
ns_debug(ns_log_default, 1, "req: nlookup(%s) id %d type=%d class=%d",
dname, ntohs(hp->id), type, class);
@@ -1303,13 +1308,19 @@ req_query(HEADER *hp, u_char **cpp, u_char *eom, struct qstream *qsp,
return (Refuse);
}
if (type == ns_t_ixfr) {
ns_info(ns_log_security, "approved %s from %s for \"%s\"",
(ixfr_found) ? p_type(type) : "IXFR/AXFR",
sin_ntoa(from), *dname ? dname : ".");
} else
ns_info(ns_log_security, "approved %s from %s for \"%s\"",
p_type(type), sin_ntoa(from), *dname ? dname : ".");
if (in_key != NULL)
sprintf(tsig_keyname_mesg, " (TSIG key \"%s\")",
in_key->dk_key_name);
if (type == ns_t_ixfr)
ns_info(ns_log_security, "approved %s from %s for \"%s\"%s",
(ixfr_found) ? p_type(type) : "IXFR/AXFR",
sin_ntoa(from), *dname ? dname : ".",
tsig_keyname_mesg);
else
ns_info(ns_log_security, "approved %s from %s for \"%s\"%s",
p_type(type), sin_ntoa(from), *dname ? dname : ".",
tsig_keyname_mesg);
}
/*
@@ -1354,7 +1365,7 @@ req_query(HEADER *hp, u_char **cpp, u_char *eom, struct qstream *qsp,
(dp->d_class == class)) {
#ifdef RETURNSOA
n = finddata(np, class, T_SOA, hp, &dname,
buflenp, &count);
buflenp, &count, pass, 1);
if (n != 0) {
if (count) {
*cpp += n;
@@ -1392,8 +1403,9 @@ req_query(HEADER *hp, u_char **cpp, u_char *eom, struct qstream *qsp,
* If not NXDOMAIN, the NOERROR_NODATA record might be
* anywhere in the chain. Have to go through the grind.
*/
n = finddata(np, class, type, hp, &dname, buflenp, &count);
glueok = !NS_OPTION_P(OPTION_NORECURSE);
n = finddata(np, class, type, hp, &dname, buflenp, &count, pass,
glueok);
if (n == 0) {
/*
* NO data available. Refuse transfer requests, or
@@ -1509,7 +1521,8 @@ req_query(HEADER *hp, u_char **cpp, u_char *eom, struct qstream *qsp,
ns_debug(ns_log_default, 3, "req: leaving (%s, rcode %d)",
dname, hp->rcode);
if (class != C_ANY) {
hp->aa = 1;
if (!cname)
hp->aa = 1;
if (np && (!foundname || !founddata)) {
n = doaddauth(hp, *cpp, *buflenp, np, nsp[0]);
*cpp += n;
@@ -2323,9 +2336,9 @@ doaddinfo(HEADER *hp, u_char *msg, int msglen) {
loop:
for (ap = addinfo, i = 0; i < addcount; ap++, i++) {
int auth = 0,
drop = 0,
founda = 0,
foundaaaa = 0,
founda6 = 0,
foundcname = 0,
save_count = count,
save_msglen = msglen;
@@ -2353,12 +2366,11 @@ loop:
if (dp->d_class != ap->a_class)
continue;
if (dp->d_rcode == NXDOMAIN) {
founda = founda6 = foundaaaa = 1;
founda = foundaaaa = 1;
continue;
}
switch (dp->d_type) {
case ns_t_a: founda = 1; break;
case ns_t_a6: founda6 = 1; break;
case ns_t_aaaa: foundaaaa = 1; break;
}
if (!dp->d_rcode && dp->d_type == T_CNAME) {
@@ -2366,8 +2378,7 @@ loop:
break;
}
if (auth == 0 && ap->a_type == T_A &&
(dp->d_type == ns_t_a || dp->d_type == ns_t_a6 ||
dp->d_type == ns_t_aaaa) &&
(dp->d_type == ns_t_a || dp->d_type == ns_t_aaaa) &&
(zones[dp->d_zone].z_type == z_master ||
zones[dp->d_zone].z_type == z_slave))
auth = 1;
@@ -2385,8 +2396,7 @@ loop:
}
if (ap->a_type == T_A &&
!match(dp, (int)ap->a_class, T_A) &&
!match(dp, (int)ap->a_class, T_AAAA) &&
!match(dp, (int)ap->a_class, ns_t_a6)) {
!match(dp, (int)ap->a_class, T_AAAA)) {
continue;
}
if (ap->a_type == T_KEY &&
@@ -2397,6 +2407,8 @@ loop:
continue;
if (dp->d_rcode)
continue;
if (drop)
continue;
/*
* Should be smart and eliminate duplicate
* data here. XXX
@@ -2426,7 +2438,14 @@ loop:
cp = save_cp;
msglen = save_msglen;
count = save_count;
break;
/*
* Continue processing list to prevent
* unnecessary fetches for glue.
* Prevent partial RRsets being sent by
* setting drop.
*/
drop = 1;
continue;
}
ns_debug(ns_log_default, 5,
"addinfo: adding address data n = %d", n);
@@ -2446,10 +2465,6 @@ loop:
(void) sysquery(ap->a_dname, (int)ap->a_class,
ns_t_aaaa, NULL, NULL, 0,
ns_port, QUERY, 0);
if (!founda6 && !auth)
(void) sysquery(ap->a_dname, (int)ap->a_class,
ns_t_a6, NULL, NULL, 0, ns_port,
QUERY, 0);
}
if (foundcname) {
if (!haveComplained(nhash(ap->a_dname),
+69 -64
View File
@@ -1,6 +1,6 @@
#if !defined(lint) && !defined(SABER)
static const char sccsid[] = "@(#)ns_resp.c 4.65 (Berkeley) 3/3/91";
static const char rcsid[] = "$Id: ns_resp.c,v 8.178.2.2 2002/11/14 13:39:13 marka Exp $";
static const char rcsid[] = "$Id: ns_resp.c,v 8.186.6.5 2003/09/04 03:03:18 marka Exp $";
#endif /* not lint */
/*
@@ -270,9 +270,8 @@ ns_resp(u_char *msg, int msglen, struct sockaddr_in from, struct qstream *qsp)
int i, c, n, qdcount, ancount, aucount, nscount, arcount, arfirst;
int soacount;
u_int qtype, qclass;
int restart; /* flag for processing cname response */
int validanswer, dbflags;
int cname, lastwascname, externalcname;
int cname, lastwascname, externalcname, cachenegative;
int count, founddata, foundname;
int buflen;
int newmsglen;
@@ -281,7 +280,7 @@ ns_resp(u_char *msg, int msglen, struct sockaddr_in from, struct qstream *qsp)
char *dname, tmpdomain[MAXDNAME];
const char *fname;
const char *formerrmsg = "brain damage";
u_char newmsg[EDNS_MESSAGE_SZ];
u_char newmsg[NS_MAXMSG];
u_char **dpp, *tp;
time_t rtrip;
struct hashbuf *htp;
@@ -298,6 +297,7 @@ ns_resp(u_char *msg, int msglen, struct sockaddr_in from, struct qstream *qsp)
time_t tsig_time;
DST_KEY *key;
int expect_cname;
int pass = 0;
nameserIncr(from.sin_addr, nssRcvdR);
nsp[0] = NULL;
@@ -905,13 +905,13 @@ tcp_retry:
tp = cp;
restart = 0;
validanswer = -1;
nscount = 0;
soacount = 0;
cname = 0;
lastwascname = 0;
externalcname = 0;
cachenegative = 1;
strcpy(aname, qname);
if (count) {
@@ -981,6 +981,7 @@ tcp_retry:
name);
db_detach(&dp);
validanswer = 0;
cachenegative = 0;
continue;
}
if (type == T_CNAME &&
@@ -1001,6 +1002,10 @@ tcp_retry:
tname = NULL;
}
/* Cache for current tick. */
if (type == T_SOA)
dp->d_ttl = tt.tv_sec;
dp->d_cred = (hp->aa && ns_samename(name, qname) == 1)
? DB_C_AUTH
: DB_C_ANSWER;
@@ -1011,6 +1016,7 @@ tcp_retry:
"last was cname, ignoring auth. and add.");
db_detach(&dp);
validanswer = 0;
cachenegative = 0;
break;
}
if (i < arfirst) {
@@ -1026,6 +1032,7 @@ tcp_retry:
sin_ntoa(from));
db_detach(&dp);
validanswer = 0;
cachenegative = 0;
continue;
} else if (!ns_samedomain(name,
qp->q_domain)) {
@@ -1039,6 +1046,7 @@ tcp_retry:
sin_ntoa(from));
db_detach(&dp);
validanswer = 0;
cachenegative = 0;
continue;
}
if (type == T_NS) {
@@ -1048,6 +1056,9 @@ tcp_retry:
}
if (type == T_SOA) {
soacount++;
/* -ve caching only. */
db_detach(&dp);
continue;
}
break;
case T_NXT:
@@ -1182,38 +1193,6 @@ tcp_retry:
return;
}
if (ancount && count && validanswer != 1) {
/*
* Everything passed validation but we didn't get the
* final answer. The response must have contained
* a dangling CNAME. Force a restart of the query.
*
* Don't set restart if count==0, since this means
* the response was truncated in the answer section,
* causing us to set count to 0 which will cause
* validanswer to be 0 as well even though the answer
* section probably contained valid RRs (just not
* a complete set).
* XXX - this works right if we can just forward this
* response to the client, but not if we found a CNAME
* in a prior response and restarted the query.
*/
restart = 1;
}
if (!restart && !qp->q_cmsglen && ancount > 1 && qtype == T_A)
sort_response(tp, eom, ancount, &qp->q_from);
/*
* An answer to a T_ANY query or a successful answer to a
* regular query with no indirection, then just return answer.
*/
if (!restart && ancount && (qtype == T_ANY || !qp->q_cmsglen)) {
ns_debug(ns_log_default, 3,
"resp: got as much answer as there is");
goto return_msg;
}
/*
* We might want to cache this negative answer.
*
@@ -1231,8 +1210,9 @@ tcp_retry:
)
)
{
cache_n_resp(msg, msglen, from, qp->q_name,
qp->q_class, qp->q_type);
if (cachenegative)
cache_n_resp(msg, msglen, from, qp->q_name,
qp->q_class, qp->q_type);
if (!qp->q_cmsglen && validanswer) {
ns_debug(ns_log_default, 3,
@@ -1289,11 +1269,20 @@ tcp_retry:
goto servfail;
}
cp += n + QFIXEDSZ;
buflen = sizeof(newmsg) - (cp - newmsg);
buflen = (qp->q_stream != NULL) ? NS_MAXMSG :
MIN(EDNS_MESSAGE_SZ, qp->q_udpsize);
buflen -= (cp - newmsg);
/*
* Reserve space for TSIG / EDNS
*/
if (qp->q_tsig != NULL)
buflen -= qp->q_tsig->tsig_size;
if ((qp->q_flags & Q_EDNS) != 0)
buflen -= 11;
cname = 0;
try_again:
pass++;
ns_debug(ns_log_default, 1, "resp: nlookup(%s) qtype=%d", dname,
qtype);
foundname = 0;
@@ -1316,7 +1305,7 @@ tcp_retry:
(dp->d_class == (int)qclass)) {
#ifdef RETURNSOA
n = finddata(np, qclass, T_SOA, hp, &dname,
&buflen, &count);
&buflen, &count, pass, 1);
if ( n != 0) {
if (count) {
cp += n;
@@ -1348,7 +1337,7 @@ tcp_retry:
goto fetch_ns;
}
}
n = finddata(np, qclass, qtype, hp, &dname, &buflen, &count);
n = finddata(np, qclass, qtype, hp, &dname, &buflen, &count, pass, 1);
if (n == 0)
goto fetch_ns; /* NO data available */
if (hp->rcode) {
@@ -1399,7 +1388,8 @@ tcp_retry:
if (!foundname)
hp->rcode = NXDOMAIN;
if (qclass != C_ANY) {
hp->aa = 1;
if (!cname)
hp->aa = 1;
if (np && (!foundname || !founddata)) {
n = doaddauth(hp, cp, buflen, np, nsp[0]);
cp += n;
@@ -1553,7 +1543,8 @@ tcp_retry:
if (!qp->q_addr[0].noedns)
smsglen += ns_add_opt(smsg, smsg + smsglen, smsgsize, 0, 0,
EDNS_MESSAGE_SZ, 0, NULL, 0);
server_options->edns_udp_size,
0, NULL, 0);
if (key != NULL) {
n = ns_sign(smsg, &smsglen, smsgsize, NOERROR, key, NULL, 0,
sig, &siglen, 0);
@@ -2239,7 +2230,7 @@ send_msg(u_char *msg, int msglen, struct qinfo *qp) {
if (qp->q_flags & Q_SYSTEM)
return (1);
trunc = (qp->q_stream != NULL) ? 65535 : qp->q_udpsize;
trunc = (qp->q_stream != NULL) ? NS_MAXMSG : qp->q_udpsize;
if (qp->q_tsig != NULL)
adjust += qp->q_tsig->tsig_size;
if ((qp->q_flags & Q_EDNS) != 0)
@@ -2283,8 +2274,9 @@ send_msg(u_char *msg, int msglen, struct qinfo *qp) {
msgsize = msglen; /* silence compiler */
if ((qp->q_flags & Q_EDNS) != 0)
msglen += ns_add_opt(msg, msg + msglen, msgsize, 0,
hp->rcode, EDNS_MESSAGE_SZ, 0, NULL, 0);
msglen += ns_add_opt(msg, msg + msglen, msgsize, 0, hp->rcode,
server_options->edns_udp_size,
0, NULL, 0);
if (qp->q_tsig != NULL) {
u_char sig[TSIG_SIG_SIZE];
@@ -2492,6 +2484,7 @@ sysquery(const char *dname, int class, int type,
qs->stime = tt;
qs->forwarder = 0;
qs->noedns = 1; /* XXXMPA */
qs->lame = 0;
qs->nretry = 0;
}
qp->q_naddr = nsc;
@@ -2581,7 +2574,8 @@ sysquery(const char *dname, int class, int type,
if (!qp->q_addr[0].noedns)
smsglen += ns_add_opt(smsg, smsg + smsglen, smsgsize, 0, 0,
EDNS_MESSAGE_SZ, 0, NULL, 0);
server_options->edns_udp_size,
0, NULL, 0);
if (key != NULL) {
n = ns_sign(smsg, &smsglen, smsgsize, NOERROR, key, NULL, 0,
@@ -2908,7 +2902,8 @@ findns(struct namebuf **npp, int class,
}
ns_debug(ns_log_default, 1,
"findns: No root nameservers for class %s?", p_class(class));
if ((unsigned)class < MAXCLASS && norootlogged[class] == 0) {
if (!NS_OPTION_P(OPTION_FORWARD_ONLY) &&
(unsigned)class < MAXCLASS && norootlogged[class] == 0) {
norootlogged[class] = 1;
ns_info(ns_log_default, "No root nameservers for class %s",
p_class(class));
@@ -2924,7 +2919,8 @@ findns(struct namebuf **npp, int class,
*/
int
finddata(struct namebuf *np, int class, int type,
HEADER *hp, char **dnamep, int *lenp, int *countp)
HEADER *hp, char **dnamep, int *lenp, int *countp, int pass,
int glueok)
{
struct databuf *dp;
char *cp;
@@ -2962,18 +2958,8 @@ finddata(struct namebuf *np, int class, int type,
cp = ((char *)hp) + *countp;
foundcname = 0;
for (dp = np->n_data; dp != NULL; dp = dp->d_next) {
if (!wanted(dp, class, type)) {
if (type == T_CNAME && class == dp->d_class) {
/* any data means no CNAME exists */
if (dp->d_type != T_NXT &&
dp->d_type != T_KEY &&
dp->d_type != T_SIG) {
ret = 0;
goto done;
}
}
if (!wanted(dp, class, type))
continue;
}
if (dp->d_cred == DB_C_ADDITIONAL) {
#ifdef NOADDITIONAL
continue;
@@ -3003,7 +2989,7 @@ finddata(struct namebuf *np, int class, int type,
*dnamep, type, class);
continue;
}
if (type == T_ANY)
if (type == T_ANY && dp->d_type != T_ANY)
continue;
hp->rcode = NOERROR_NODATA;
if (dp->d_size == 0) { /* !RETURNSOA */
@@ -3038,6 +3024,10 @@ finddata(struct namebuf *np, int class, int type,
(!((dp->d_type == T_SIG) || (dp->d_type == T_KEY))) )
continue;
/* Don't return glue (NS/A/AAAA) */
if (!glueok && findMyZone(np, class) == DB_Z_CACHE)
continue;
if (!defer) {
if (foundcname != 0 && dp->d_type == T_CNAME)
continue;
@@ -3056,6 +3046,16 @@ finddata(struct namebuf *np, int class, int type,
if (dp->d_type == T_CNAME) {
foundcname = 1;
#define SETAA(pass, class, dp) \
(pass == 1 && class != C_ANY && dp->d_zone != DB_Z_CACHE && \
(zones[dp->d_zone].z_type == z_master || \
zones[dp->d_zone].z_type == z_slave) && \
(zones[dp->d_zone].z_flags & Z_AUTH) != 0)
if (SETAA(pass, class, dp))
hp->aa = 1;
#define FOLLOWCNAME(type) \
(type != T_KEY) && (type != T_SIG) && (type != T_NXT) && (type != T_ANY)
/* don't alias if querying for key, sig, nxt, or any */
@@ -3064,8 +3064,13 @@ finddata(struct namebuf *np, int class, int type,
new_dnamep = (char *)dp->d_data;
}
} else {
if (dp->d_type == T_CNAME)
if (dp->d_type == T_CNAME) {
foundcname = 1;
if (SETAA(pass, class, dp))
hp->aa = 1;
}
found[found_count++] = dp;
}
}
+5 -3
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: ns_update.c,v 8.104 2002/05/18 01:02:59 marka Exp $";
static const char rcsid[] = "$Id: ns_update.c,v 8.106 2002/07/19 22:44:07 marka Exp $";
#endif /* not lint */
/*
@@ -1211,7 +1211,7 @@ req_update_private(HEADER *hp, u_char *cp, u_char *eom, u_char *msg,
*/
if (!ip_addr_or_key_allowed(zp->z_update_acl, from.sin_addr, in_key)) {
ns_notice(ns_log_security,
ns_notice(ns_log_update_security,
"denied update from %s for \"%s\" %s",
sin_ntoa(from), *dname ? dname : ".", p_class(class));
nameserIncr(from.sin_addr, nssRcvdUUpd);
@@ -2638,8 +2638,10 @@ merge_logs(struct zoneinfo *zp, char *logname) {
err++;
break;
}
errno = 0;
n = strtoul(buf, &cp, 10);
if (n > 0xffff || *cp != '\0') {
if (errno != 0 || n > 0xffff ||
*cp != '\0') {
err++;
break;
}
+8 -5
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: ndc.c,v 1.22 2002/06/24 07:28:55 marka Exp $";
static const char rcsid[] = "$Id: ndc.c,v 1.25 2003/04/03 05:42:10 marka Exp $";
#endif /* not lint */
/*
@@ -88,7 +88,7 @@ static void start_named(const char *, int);
static int fgetpid(const char *, pid_t *);
static int get_sockaddr(const char *, sockaddr_t *);
static size_t impute_addrlen(const struct sockaddr *);
static void vtrace(const char *, va_list);
static void vtrace(const char *, va_list) ISC_FORMAT_PRINTF(1, 0);
static void trace(const char *, ...) ISC_FORMAT_PRINTF(1, 2);
static void result(const char *, ...) ISC_FORMAT_PRINTF(1, 2);
static void fatal(const char *, ...) ISC_FORMAT_PRINTF(1, 2);
@@ -283,7 +283,7 @@ getargs_closure(void *arg, const char *msg, int flags) {
}
len = 0;
cp = msg + 4;
while (*cp != NULL) {
while (*cp != '\0') {
c = *cp;
if (c == '%') {
cp2 = strchr(hexdigits, cp[1]);
@@ -325,7 +325,7 @@ getargs_closure(void *arg, const char *msg, int flags) {
}
cp = msg + 4;
tp = argv->argv[i];
while (*cp != NULL) {
while (*cp != '\0') {
c = *cp;
if (c == '%') {
cp2 = strchr(hexdigits, cp[1]);
@@ -374,6 +374,8 @@ get_args(char **restp) {
len = 0;
for (i = 1 ; i < argv.argc && argv.argv[i] != NULL; i++)
len += strlen(argv.argv[i]) + 1;
if (len == 0)
len = 1;
rest = malloc(len);
if (rest == NULL) {
result = 0;
@@ -386,7 +388,8 @@ get_args(char **restp) {
*p++ = ' ';
}
if (p != rest)
p[-1] = '\0';
p--;
p[0] = '\0';
*restp = rest;
err:
-2
View File
@@ -77,7 +77,6 @@ static char sccsid[] = "@(#)commands.l 5.13 (Berkeley) 7/24/90";
* exit - exit the program
* root - set default server to the root
* ls NAME - list the domain NAME
* view FILE - sorts and view the file with more
* set OPTION - set an option
* help - print help information
* ? - print help information
@@ -103,7 +102,6 @@ static char sccsid[] = "@(#)commands.l 5.13 (Berkeley) 7/24/90";
extern char rootServerName[];
extern void PrintHelp();
extern void ViewList(char *);
#define YY_INPUT(buf, result, max_size) \
{ \
+16 -17
View File
@@ -54,7 +54,7 @@
#ifndef lint
static const char sccsid[] = "@(#)getinfo.c 5.26 (Berkeley) 3/21/91";
static const char rcsid[] = "$Id: getinfo.c,v 8.27 2002/05/22 04:06:57 marka Exp $";
static const char rcsid[] = "$Id: getinfo.c,v 8.29.8.2 2003/06/02 09:24:39 marka Exp $";
#endif /* not lint */
/*
@@ -112,7 +112,7 @@ ServerTable server[MAXSERVERS];
typedef union {
HEADER qb1;
u_char qb2[64*1024];
u_char qb2[NS_MAXMSG];
} querybuf;
typedef union {
@@ -150,14 +150,14 @@ GetAnswer(union res_sockaddr_union *nsAddrPtr, int queryType,
register const u_char *cp;
querybuf answer;
char **aliasPtr;
u_char *eom, *bp;
u_char *eom, *bp, *ep;
char **addrPtr;
int *lenPtr;
int *typePtr;
char *namePtr;
char *dnamePtr;
int type, class;
int qdcount, ancount, arcount, nscount, buflen;
int qdcount, ancount, arcount, nscount;
int origClass = 0;
int numAliases = 0;
int numAddresses = 0;
@@ -212,9 +212,9 @@ GetAnswer(union res_sockaddr_union *nsAddrPtr, int queryType,
}
bp = hostbuf;
buflen = sizeof(hostbuf);
cp = (u_char *) &answer + HFIXEDSZ;
bp = hostbuf;
ep = hostbuf + sizeof(hostbuf);
cp = (u_char *) &answer + HFIXEDSZ;
/* Skip over question section. */
while (qdcount-- > 0) {
@@ -257,7 +257,7 @@ GetAnswer(union res_sockaddr_union *nsAddrPtr, int queryType,
printedAnswers = TRUE;
} else {
while (--ancount >= 0 && cp < eom) {
n = dn_expand(answer.qb2, eom, cp, (char *)bp, buflen);
n = dn_expand(answer.qb2, eom, cp, (char *)bp, ep - bp);
if (n < 0)
return(ERROR);
cp += n;
@@ -282,13 +282,12 @@ GetAnswer(union res_sockaddr_union *nsAddrPtr, int queryType,
host_aliases_len[numAliases] = s;
numAliases++;
bp += s;
buflen -= s;
continue;
} else if (type == T_PTR) {
/*
* Found a "pointer" to the real name.
*/
n = dn_expand(answer.qb2, eom, cp, (char *)bp, buflen);
n = dn_expand(answer.qb2, eom, cp, (char *)bp, ep - bp);
if (n < 0) {
cp += n;
continue;
@@ -328,7 +327,7 @@ GetAnswer(union res_sockaddr_union *nsAddrPtr, int queryType,
memcpy(hostPtr->name, bp, s);
}
}
bp += (((u_long)bp) % sizeof(align));
bp += (((size_t)bp) % sizeof(align));
if (bp + dlen >= &hostbuf[sizeof(hostbuf)]) {
if (res.options & RES_DEBUG) {
@@ -468,7 +467,7 @@ GetAnswer(union res_sockaddr_union *nsAddrPtr, int queryType,
* that serve the requested domain.
*/
n = dn_expand(answer.qb2, eom, cp, (char *)bp, buflen);
n = dn_expand(answer.qb2, eom, cp, (char *)bp, ep - bp);
if (n < 0) {
return(ERROR);
}
@@ -491,7 +490,7 @@ GetAnswer(union res_sockaddr_union *nsAddrPtr, int queryType,
} else {
Boolean found;
n = dn_expand(answer.qb2, eom, cp, (char *)bp, buflen);
n = dn_expand(answer.qb2, eom, cp, (char *)bp, ep - bp);
if (n < 0) {
return(ERROR);
}
@@ -547,7 +546,7 @@ GetAnswer(union res_sockaddr_union *nsAddrPtr, int queryType,
}
} else {
while (--arcount >= 0 && cp < eom) {
n = dn_expand(answer.qb2, eom, cp, (char *)bp, buflen);
n = dn_expand(answer.qb2, eom, cp, (char *)bp, ep - bp);
if (n < 0) {
break;
}
@@ -945,7 +944,7 @@ GetHostInfoByAddr(union res_sockaddr_union *nsAddrPtr,
p[9] & 0xf, (p[9] >> 4) & 0xf,
p[8] & 0xf, (p[8] >> 4) & 0xf,
p[7] & 0xf, (p[7] >> 4) & 0xf,
p[6] & 0xf, (p[4] >> 4) & 0xf,
p[6] & 0xf, (p[6] >> 4) & 0xf,
p[5] & 0xf, (p[5] >> 4) & 0xf,
p[4] & 0xf, (p[4] >> 4) & 0xf,
p[3] & 0xf, (p[3] >> 4) & 0xf,
@@ -965,7 +964,7 @@ GetHostInfoByAddr(union res_sockaddr_union *nsAddrPtr,
p[9] & 0xf, (p[9] >> 4) & 0xf,
p[8] & 0xf, (p[8] >> 4) & 0xf,
p[7] & 0xf, (p[7] >> 4) & 0xf,
p[6] & 0xf, (p[4] >> 4) & 0xf,
p[6] & 0xf, (p[6] >> 4) & 0xf,
p[5] & 0xf, (p[5] >> 4) & 0xf,
p[4] & 0xf, (p[4] >> 4) & 0xf,
p[3] & 0xf, (p[3] >> 4) & 0xf,
@@ -1018,7 +1017,7 @@ GetHostInfoByAddr(union res_sockaddr_union *nsAddrPtr,
n = GetAnswer(nsAddrPtr, T_PTR, (char *) &buf, n, 1, hostPtr, 1, 0);
if (n == SUCCESS) {
hostPtr->addrList = (AddrInfo **)Calloc(2, sizeof(AddrInfo *));
hostPtr->addrList[0] = (AddrInfo *)Calloc(1, sizeof(AddrInfo *));
hostPtr->addrList[0] = (AddrInfo *)Calloc(1, sizeof(AddrInfo));
hostPtr->addrList[0]->addr = Calloc(16, sizeof(char));
memcpy(hostPtr->addrList[0]->addr, p, 16);
hostPtr->addrList[0]->addrType = AF_INET6;
+2 -2
View File
@@ -78,7 +78,7 @@ char copyright[] =
#ifndef lint
static const char sccsid[] = "@(#)main.c 5.42 (Berkeley) 3/3/91";
static const char rcsid[] = "$Id: main.c,v 8.24 2002/05/26 03:12:20 marka Exp $";
static const char rcsid[] = "$Id: main.c,v 8.25 2003/01/26 11:38:56 marka Exp $";
#endif /* not lint */
/*
@@ -607,7 +607,7 @@ SetDefaultServer(string, local)
UnionFromAddr(&servAddr, defaultPtr->addrList[0]->addrType,
defaultPtr->addrList[0]->addr);
} else {
UnionFromAddr(&servAddr, defaultPtr->addrList[0]->addrType,
UnionFromAddr(&servAddr, defaultPtr->servers[0]->addrList[0]->addrType,
defaultPtr->servers[0]->addrList[0]->addr);
}
+2 -2
View File
@@ -53,7 +53,7 @@
#ifndef lint
static const char sccsid[] = "@(#)send.c 5.18 (Berkeley) 3/2/91";
static const char rcsid[] = "$Id: send.c,v 8.14 2002/05/10 04:35:09 marka Exp $";
static const char rcsid[] = "$Id: send.c,v 8.14.10.1 2003/06/02 05:59:56 marka Exp $";
#endif /* not lint */
/*
@@ -181,7 +181,7 @@ SendRequest(union res_sockaddr_union *nsAddrPtr, const u_char *buf,
/*
* Send length & message
*/
__putshort(buflen, (u_char *)&len);
ns_put16(buflen, (u_char *)&len);
iov[0].iov_base = (caddr_t)&len;
iov[0].iov_len = INT16SZ;
DE_CONST(buf, iov[1].iov_base);
+7 -6
View File
@@ -1,5 +1,5 @@
#if !defined(lint) && !defined(SABER)
static const char rcsid[] = "$Id: nsupdate.c,v 8.27 2001/06/18 14:43:46 marka Exp $";
static const char rcsid[] = "$Id: nsupdate.c,v 8.30 2003/04/03 05:51:07 marka Exp $";
#endif /* not lint */
/*
@@ -155,9 +155,6 @@ main(int argc, char **argv) {
struct map *mp;
ns_updrec *rrecp;
ns_updque listuprec;
extern int getopt();
extern char *optarg;
extern int optind, opterr, optopt;
ns_tsig_key key;
char *keyfile=NULL, *keyname=NULL;
@@ -398,11 +395,15 @@ main(int argc, char **argv) {
(void) getword_str(buf2, sizeof buf2, &startp, endp);
if (isdigit(buf2[0])) { /* ttl */
r_ttl = strtoul(buf2, 0, 10);
if (errno == ERANGE && r_ttl == ULONG_MAX) {
u_long tmp_ttl;
errno = 0;
tmp_ttl = strtoul(buf2, 0, 10);
if ((errno == ERANGE && tmp_ttl == ULONG_MAX) ||
tmp_ttl > 0x7fffffffUL) {
fprintf(stderr, "oversized ttl: %s\n", buf2);
exit (1);
}
r_ttl = tmp_ttl;
(void) getword_str(buf2, sizeof buf2, &startp, endp);
}
+12 -1
View File
@@ -70,6 +70,7 @@ options {
[ <A HREF="#sortlist">sortlist</A> { <VAR>address_match_list</VAR> }; ]
[ rrset-order { <VAR>order_spec</VAR> ; [ <VAR>order_spec</VAR> ; ... ] }; ]
[ preferred-glue ( A | AAAA ); ]
[ edns-udp-size <VAR>number</VAR>; ]
};
</PRE>
<HR>
@@ -819,6 +820,16 @@ the answer to a priming query. This can be achieved by setting
<CODE>preferred-glue A;</CODE> which will add A records before other types
in the additional section.
<H4>EDNS</H4>
Some firewalls fail to pass EDNS/UDP messages that are larger than
certain size, 512 or the UDP reassembly buffer. To allow EDNS to
work across such firewalls it is necessary to advertise a EDNS
buffer size that is small enough to not trigger failures.
<CODE>edns-udp-size</CODE> can be use to adjust the advertised size.
Values less than 512 will be increased to 512 and values greater than
4096 will be truncated to 4096.
<H4>Tuning</H4>
<DL>
@@ -847,7 +858,7 @@ request for the root servers to be accepted. Default 2.
<HR>
<ADDRESS>
Last Updated: $Id: options.html,v 1.49 2002/09/09 00:19:17 marka Exp $
Last Updated: $Id: options.html,v 1.49.6.1 2003/06/02 09:56:33 marka Exp $
</ADDRESS>
</BODY>
</HTML>
+3 -3
View File
@@ -1,5 +1,5 @@
.\" $FreeBSD$
.\" $Id: dig.1,v 8.9 2002/06/18 01:53:43 marka Exp $
.\" $Id: dig.1,v 8.11 2003/04/03 05:52:34 marka Exp $
.\"
.\" ++Copyright++ 1993
.\" -
@@ -246,7 +246,7 @@ one can simply
.It Fl x Ar IPv6-address
Convenient form to specify inverse address mapping.
Instead of
.Dq Ic dig 1.0.0.0.0.0.0.0.0.0.0.0. 0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa ,
.Dq Ic dig 1.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.0.ip6.arpa ,
one can simply
.Dq Ic dig -x ::1 .
.It Fl f Ar file
@@ -685,7 +685,7 @@ authored by Andrew Cherenson.
.Sh BUGS
.Ic Dig
has a serious case of "creeping featurism" -- the result of
considering several potential uses during it's development. It would
considering several potential uses during its development. It would
probably benefit from a rigorous diet. Similarly, the print flags
and granularity of the items they specify make evident their
rather ad hoc genesis.
+28 -1
View File
@@ -61,7 +61,7 @@
.\" THE SOFTWARE IS PROVIDED "AS IS" AND CHECK POINT SOFTWARE TECHNOLOGIES
.\" INCORPORATED DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
.\" INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
.\" IN NO EVENT SHALL CHECK POINT SOFTWARE TECHNOLOGIES INCORPRATED
.\" IN NO EVENT SHALL CHECK POINT SOFTWARE TECHNOLOGIES INCORPORATED
.\" BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR
.\" ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT
@@ -87,7 +87,11 @@
.Op Fl i Ar ixfr_file
.Op Fl t Ar trace_file
.Op Fl p Ar port#
.Op Fl C Ar class
.Op Fl S
.Op Fl q
.Op Fl x Ar src_address
.Op Fl T Ar tsig_file
.Ar nameserver
.Op Sy axfr | ixfr
.Sh DESCRIPTION
@@ -144,6 +148,9 @@ as returned by
.Xr getservbyname @LIB_NETWORK_EXT@
for the service
.Dq Li domain .
.It Fl C Ar class
Defines which class to use.
Defaults to 'IN'.
.It Fl S
Perform a restricted transfer of only the SOA, NS records and glue A records
for the zone. The SOA record will not be loaded by
@@ -154,6 +161,26 @@ determine when to verify the NS records. See the
directive in
.Xr @INDOT@named @SYS_OPS_EXT@
for more information.
.It Fl q
Tells @INDOT@named-xfer to be quiet.
.It Fl x Ar src_address
Specifies the source address to use for this query.
.It Fl T Ar tsig_file
Specifies a file to transfer TSIG information to @INDOT@named-xfer.
Multiple entries of the following format:
.Pp
.Bl -hang -width "IP address" -compact
.It IP address
When connecting to this address use this TSIG key.
.It key name
.It algorithm
157 (HMAC-MD5) is the only algorithm supported.
.It key data
base64
.El
.Pp
@INDOT@named-xfer expects this file to be temporary in nature and
will explicitly delete this file after its use.
.El
.Pp
Additional arguments are taken as name server addresses in so-called
+1 -1
View File
@@ -205,7 +205,7 @@ specified may be either a groupname or a numeric group id.
.Pp
.It Fl t Ar directory
Specifies the directory the server should chroot() into as soon as it is
finshed processing command line arguments.
finished processing command line arguments.
.Pp
.It Fl w Ar directory
Sets the working directory of the server. The
+15 -4
View File
@@ -767,6 +767,7 @@ options {
[ sortlist { \fIaddress_match_list\fR }; ]
[ rrset-order { \fIorder_spec\fR ; [ \fIorder_spec\fR ; ... ] }; ]
[ preferred-glue ( A | AAAA ); ]
[ edns-udp-size \fInumber\fR; ]
};
.Ed
.Ss Definition and Usage
@@ -954,7 +955,7 @@ with
.Ic maintain-ixfr-base ,
and
.Ic rfc2308-type1
is order dependant.
is order dependent.
.It Ic host-statistics
If
.Li yes ,
@@ -968,7 +969,7 @@ can consume huge amounts of memory.
.It Ic maintain-ixfr-base
If
.Li yes ,
a IXFR database file is kept for all dynamicaly updated zones.
a IXFR database file is kept for all dynamically updated zones.
This enables the server to answer IXFR queries which can speed up
zone transfers enormously.
The default is
@@ -1285,7 +1286,7 @@ address must appear in the remote end's
.Nm allow-transfer
option for the zones being transferred, if one is specified. This statement sets the
.Nm transfer-source
for all zones, but can be overriden on a per-zone basis by includinga
for all zones, but can be overridden on a per-zone basis by including a
.Nm transfer-source
statement within the zone block in the configuration file.
.El
@@ -1552,6 +1553,16 @@ in the answer to a priming query.
This can be achieved by setting
.Ic preferred-glue A;
which will add A records before other types in the additional section.
.Ss EDNS
Some firewalls fail to pass EDNS/UDP messages that are larger than
certain size, 512 or the UDP reassembly buffer.
To allow EDNS to
work across such firewalls it is necessary to advertise a EDNS
buffer size that is small enough to not trigger failures.
.Ic edns-udp-size
can be use to adjust the advertised size.
Values less than 512 will be increased to 512 and values greater than
4096 will be truncated to 4096.
.Ss Tuning
.Bl -tag -width 0n
.It Ic lame-ttl
@@ -1971,7 +1982,7 @@ statement, to be used for transaction security when talking to the
remote server.
The
.Ic key
statememnt must come before the
statement must come before the
.Ic server
statement that references it.
.Pp
+47 -2
View File
@@ -16,7 +16,7 @@
.\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
.\"
.\" @(#)resolver.3 6.5 (Berkeley) 6/23/90
.\" $Id: resolver.3,v 8.17 2002/08/07 03:47:33 marka Exp $
.\" $Id: resolver.3,v 8.17.6.1 2003/06/02 09:11:27 marka Exp $
.\"
.Dd July 4, 2000
.Dt RESOLVER @LIB_NETWORK_EXT_U@
@@ -37,6 +37,8 @@
.Nm res_nclose ,
.Nm res_nsendsigned ,
.Nm res_findzonecut ,
.Nm res_getservers ,
.Nm res_setservers ,
.Nm dn_comp ,
.Nm dn_expand ,
.Nm hstrerror ,
@@ -59,16 +61,26 @@
.Fd #include <netinet/in.h>
.Fd #include <arpa/nameser.h>
.Fd #include <resolv.h>
.Fd #include <res_update.h>
.Vt typedef struct __res_state *res_state ;
.Pp
.Ft int
.Fn res_ninit "res_state statp"
.Ft int
.Fn res_ourserver_p "const res_state statp" "const struct sockaddr_in *addr"
.Ft void
.Fn fp_resstat "const res_state statp" "FILE *fp"
.Ft "const char *"
.Fn res_hostalias "const res_state statp" "const char *name" "char *buf" "size_t buflen"
.Ft int
.Fn res_pquery "const res_state statp" "const u_char *msg" "int msglen" "FILE *fp"
.Ft int
.Fn res_nquery "res_state statp" "const char *dname" "int class" "int type" "u_char *answer" "int anslen"
.Ft int
.Fn res_nsearch "res_state statp" "const char *dname" "int class" "int type" "u_char * answer" "int anslen"
.Ft int
.Fn res_nquerydomain "res_state statp" "const char *name" "const char *domain" "int class" "int type" "u_char *answer" "int anslen"
.Ft int
.Fo res_nmkquery
.Fa "res_state statp"
.Fa "int op"
@@ -81,28 +93,51 @@
.Fa "u_char *buf"
.Fa "int buflen"
.Fc
.Ft int
.Fn res_nsend "res_state statp" "const u_char *msg" "int msglen" "u_char *answer" "int anslen"
.Ft int
.Fn res_nupdate "res_state statp" "ns_updrec *rrecp_in"
.Ft int
.Fn res_nmkupdate "res_state statp" "ns_updrec *rrecp_in" "u_char *buf" "int buflen"
.Ft void
.Fn res_nclose "res_state statp"
.Ft int
.Fn res_nsendsigned "res_state statp" "const u_char *msg" "int msglen" "ns_tsig_key *key" "u_char *answer" "int anslen"
.Ft int
.Fn res_findzonecut "res_state statp" "const char *dname" "ns_class class" "int options" "char *zname" "size_t zsize" "struct in_addr *addrs" "int naddrs"
.Ft int
.Fn res_getservers "res_state statp" "union res_sockaddr_union *set" "int cnt"
.Ft void
.Fn res_setservers "res_state statp" "const union res_sockaddr_union *set" "int cnt"
.Ft int
.Fn dn_comp "const char *exp_dn" "u_char *comp_dn" "int length" "u_char **dnptrs" "u_char **lastdnptr"
.Ft int
.Fn dn_expand "const u_char *msg" "const u_char *eomorig" "const u_char *comp_dn" "char *exp_dn" "int length"
.Ft "const char *"
.Fn hstrerror "int err"
.Ss DEPRECATED
.Fd #include <sys/types.h>
.Fd #include <netinet/in.h>
.Fd #include <arpa/nameser.h>
.Fd #include <resolv.h>
.Fd #include <res_update.h>
.Ft int
.Fn res_init "void"
.Ft int
.Fn res_isourserver "const struct sockaddr_in *addr"
.Ft int
.Fn fp_nquery "const u_char *msg" "int msglen" "FILE *fp"
.Ft void
.Fn p_query "const u_char *msg" "FILE *fp"
.Ft "const char *"
.Fn hostalias "const char *name"
.Ft int
.Fn res_query "const char *dname" "int class" "int type" "u_char *answer" "int anslen"
.Ft int
.Fn res_search "const char *dname" "int class" "int type" "u_char *answer" "int anslen"
.Ft int
.Fn res_querydomain "const char *name" "const char *domain" "int class" "int type" "u_char *answer" "int anslen"
.Ft int
.Fo res_mkquery
.Fa "int op"
.Fa "const char *dname"
@@ -114,9 +149,13 @@
.Fa "u_char *buf"
.Fa "int buflen"
.Fc
.Ft int
.Fn res_send "const u_char *msg" "int msglen" "u_char *answer" "int anslen"
.Ft int
.Fn res_update "ns_updrec *rrecp_in"
.Ft void
.Fn res_close "void"
.Ft void
.Fn herror "const char *s"
.Sh DESCRIPTION
These routines are used for making, sending and interpreting
@@ -452,6 +491,12 @@ to store the result in,
uses a static buffer.
.Pp
The functions
.Fn res_getservers
and
.Fn res_setservers
are used to get and set the list of server to be queried.
.Pp
The functions
.Fn res_nupdate
/
.Fn res_update
@@ -605,4 +650,4 @@ See
.Xr resolver @FORMAT_EXT@ ;
RFC1032, RFC1033, RFC1034, RFC1035, RFC974;
SMM:11,
.Dq Name Server Operations Guide for Sy BIND
.Dq Name Server Operations Guide for BIND
+5 -3
View File
@@ -49,7 +49,7 @@
*/
/*
* $Id: nameser.h,v 8.47 2002/04/30 03:43:53 marka Exp $
* $Id: nameser.h,v 8.48.8.2 2003/06/02 09:24:40 marka Exp $
*/
#ifndef _ARPA_NAMESER_H_
@@ -78,8 +78,9 @@
/*
* Define constants based on RFC 883, RFC 1034, RFC 1035
*/
#define NS_PACKETSZ 512 /* maximum packet size */
#define NS_PACKETSZ 512 /* default UDP packet size */
#define NS_MAXDNAME 1025 /* maximum domain name */
#define NS_MAXMSG 65535 /* maximum message size */
#define NS_MAXCDNAME 255 /* maximum compressed domain name */
#define NS_MAXLABEL 63 /* maximum length of domain label */
#define NS_HFIXEDSZ 12 /* #/bytes of fixed data in header */
@@ -294,6 +295,7 @@ typedef enum __ns_type {
ns_t_dname = 39, /* Non-terminal DNAME (for IPv6) */
ns_t_sink = 40, /* Kitchen sink (experimentatl) */
ns_t_opt = 41, /* EDNS0 option (meta-RR) */
ns_t_apl = 42, /* Address prefix list (RFC 3123) */
ns_t_tkey = 249, /* Transaction key */
ns_t_tsig = 250, /* Transaction signature. */
ns_t_ixfr = 251, /* Incremental zone transfer. */
@@ -398,7 +400,7 @@ typedef enum __ns_cert_types {
/* Signatures */
#define NS_MD5RSA_MIN_BITS 512 /* Size of a mod or exp in bits */
#define NS_MD5RSA_MAX_BITS 2552
#define NS_MD5RSA_MAX_BITS 4096
/* Total of binary mod and exp */
#define NS_MD5RSA_MAX_BYTES ((NS_MD5RSA_MAX_BITS+7/8)*2+3)
/* Max length of text sig block */
+2 -1
View File
@@ -32,7 +32,7 @@
/*
* from nameser.h 8.1 (Berkeley) 6/2/93
* $Id: nameser_compat.h,v 8.14 2002/05/18 01:39:11 marka Exp $
* $Id: nameser_compat.h,v 8.15 2002/07/17 07:01:02 marka Exp $
*/
#ifndef _ARPA_NAMESER_COMPAT_
@@ -138,6 +138,7 @@ typedef struct {
#define RRFIXEDSZ NS_RRFIXEDSZ
#define INT32SZ NS_INT32SZ
#define INT16SZ NS_INT16SZ
#define INT8SZ NS_INT8SZ
#define INADDRSZ NS_INADDRSZ
#define IN6ADDRSZ NS_IN6ADDRSZ
#define INDIR_MASK NS_CMPRSFLGS
+8 -10
View File
@@ -20,21 +20,19 @@
*/
/*
* $Id: hesiod.h,v 1.7 1999/01/08 19:22:45 vixie Exp $
* $Id: hesiod.h,v 1.7.20.1 2003/06/02 05:48:04 marka Exp $
*/
#ifndef _HESIOD_H_INCLUDED
#define _HESIOD_H_INCLUDED
int hesiod_init __P((void **context));
void hesiod_end __P((void *context));
char * hesiod_to_bind __P((void *context, const char *name,
const char *type));
char ** hesiod_resolve __P((void *context, const char *name,
const char *type));
void hesiod_free_list __P((void *context, char **list));
struct __res_state * __hesiod_res_get __P((void *context));
void __hesiod_res_set __P((void *context, struct __res_state *,
int hesiod_init __P((void **));
void hesiod_end __P((void *));
char * hesiod_to_bind __P((void *, const char *, const char *));
char ** hesiod_resolve __P((void *, const char *, const char *));
void hesiod_free_list __P((void *, char **));
struct __res_state * __hesiod_res_get __P((void *));
void __hesiod_res_set __P((void *, struct __res_state *,
void (*)(void *)));
#endif /*_HESIOD_H_INCLUDED*/
+16 -12
View File
@@ -16,7 +16,7 @@
*/
/*
* $Id: irp.h,v 8.1 1999/01/18 07:46:46 vixie Exp $
* $Id: irp.h,v 8.1.20.3 2003/06/02 08:20:37 marka Exp $
*/
#ifndef _IRP_H_INCLUDED
@@ -84,16 +84,20 @@
struct irp_p;
char *irs_irp_read_body(struct irp_p *pvt, size_t *size);
int irs_irp_read_response(struct irp_p *pvt, char *text, size_t len);
void irs_irp_disconnect(struct irp_p *pvt);
int irs_irp_connect(struct irp_p *pvt);
int irs_irp_is_connected(struct irp_p *pvt);
int irs_irp_connection_setup(struct irp_p *cxndata, int *warned);
int irs_irp_send_command(struct irp_p *pvt, const char *fmt, ...);
int irs_irp_get_full_response(struct irp_p *pvt, int *code, char *text,
size_t textlen, char **body,
size_t *bodylen);
int irs_irp_read_line(struct irp_p *pvt, char *buffer, int len);
char *irs_irp_read_body(struct irp_p *, size_t *);
int irs_irp_read_response(struct irp_p *, char *, size_t);
void irs_irp_disconnect(struct irp_p *);
int irs_irp_connect(struct irp_p *);
int irs_irp_is_connected(struct irp_p *);
int irs_irp_connection_setup(struct irp_p *, int *);
#ifdef __GNUC__
int irs_irp_send_command(struct irp_p *, const char *, ...)
__attribute__((__format__(__printf__, 2, 3)));
#else
int irs_irp_send_command(struct irp_p *, const char *, ...);
#endif
int irs_irp_get_full_response(struct irp_p *, int *, char *, size_t,
char **, size_t *);
int irs_irp_read_line(struct irp_p *, char *, int);
#endif
+105 -90
View File
@@ -16,7 +16,7 @@
*/
/*
* $Id: irs.h,v 8.6 2001/05/29 05:47:00 marka Exp $
* $Id: irs.h,v 8.7.6.2 2003/06/02 06:06:58 marka Exp $
*/
#ifndef _IRS_H_INCLUDED
@@ -30,7 +30,6 @@
#include <netdb.h>
#include <resolv.h>
#include <pwd.h>
#include <netgroup.h>
/*
* This is the group map class.
@@ -199,18 +198,58 @@ struct nwent {
#define irs_dns_acc __irs_dns_acc
#define irs_nis_acc __irs_nis_acc
#define irs_irp_acc __irs_irp_acc
#define irs_destroy __irs_destroy
#define irs_dns_gr __irs_dns_gr
#define irs_dns_ho __irs_dns_ho
#define irs_dns_nw __irs_dns_nw
#define irs_dns_pr __irs_dns_pr
#define irs_dns_pw __irs_dns_pw
#define irs_dns_sv __irs_dns_sv
#define irs_gen_gr __irs_gen_gr
#define irs_gen_ho __irs_gen_ho
#define irs_gen_ng __irs_gen_ng
#define irs_gen_nw __irs_gen_nw
#define irs_gen_pr __irs_gen_pr
#define irs_gen_pw __irs_gen_pw
#define irs_gen_sv __irs_gen_sv
#define irs_irp_get_full_response __irs_irp_get_full_response
#define irs_irp_gr __irs_irp_gr
#define irs_irp_ho __irs_irp_ho
#define irs_irp_is_connected __irs_irp_is_connected
#define irs_irp_ng __irs_irp_ng
#define irs_irp_nw __irs_irp_nw
#define irs_irp_pr __irs_irp_pr
#define irs_irp_pw __irs_irp_pw
#define irs_irp_read_line __irs_irp_read_line
#define irs_irp_sv __irs_irp_sv
#define irs_lcl_gr __irs_lcl_gr
#define irs_lcl_ho __irs_lcl_ho
#define irs_lcl_ng __irs_lcl_ng
#define irs_lcl_nw __irs_lcl_nw
#define irs_lcl_pr __irs_lcl_pr
#define irs_lcl_pw __irs_lcl_pw
#define irs_lcl_sv __irs_lcl_sv
#define irs_nis_gr __irs_nis_gr
#define irs_nis_ho __irs_nis_ho
#define irs_nis_ng __irs_nis_ng
#define irs_nis_nw __irs_nis_nw
#define irs_nis_pr __irs_nis_pr
#define irs_nis_pw __irs_nis_pw
#define irs_nis_sv __irs_nis_sv
#define net_data_create __net_data_create
#define net_data_destroy __net_data_destroy
#define net_data_minimize __net_data_minimize
/*
* Externs.
*/
extern struct irs_acc * irs_gen_acc __P((const char *options,
const char *conf_file));
extern struct irs_acc * irs_lcl_acc __P((const char *options));
extern struct irs_acc * irs_dns_acc __P((const char *options));
extern struct irs_acc * irs_nis_acc __P((const char *options));
extern struct irs_acc * irs_irp_acc __P((const char *options));
extern struct irs_acc * irs_gen_acc __P((const char *, const char *));
extern struct irs_acc * irs_lcl_acc __P((const char *));
extern struct irs_acc * irs_dns_acc __P((const char *));
extern struct irs_acc * irs_nis_acc __P((const char *));
extern struct irs_acc * irs_irp_acc __P((const char *));
extern void irs_destroy(void);
extern void irs_destroy __P((void));
/*
* These forward declarations are for the semi-private functions in
@@ -229,102 +268,78 @@ struct net_data; /* forward */
* the default interface will use net_data_create by default. Servers will
* probably want net_data_init (one call per client)
*/
struct net_data *net_data_create(const char *conf_file);
struct net_data *net_data_init(const char *conf_file);
void net_data_destroy(void *p);
struct net_data *net_data_create __P((const char *));
struct net_data *net_data_init __P((const char *));
void net_data_destroy __P((void *));
extern struct group *getgrent_p __P((struct net_data *net_data));
extern struct group *getgrnam_p __P((const char *name,
struct net_data *net_data));
extern struct group *getgrgid_p __P((gid_t gid,
struct net_data *net_data));
extern int setgroupent_p __P((int stayopen,
struct net_data *net_data));
extern void endgrent_p __P((struct net_data *net_data));
extern int getgrouplist_p __P((const char *name,
gid_t basegid,
gid_t *groups,
int *ngroups,
struct net_data *net_data));
extern struct group *getgrent_p __P((struct net_data *));
extern struct group *getgrnam_p __P((const char *, struct net_data *));
extern struct group *getgrgid_p __P((gid_t, struct net_data *));
extern int setgroupent_p __P((int, struct net_data *));
extern void endgrent_p __P((struct net_data *));
extern int getgrouplist_p __P((const char *, gid_t, gid_t *, int *,
struct net_data *));
#ifdef SETGRENT_VOID
extern void setgrent_p __P((struct net_data *net_data));
extern void setgrent_p __P((struct net_data *));
#else
extern int setgrent_p __P((struct net_data *net_data));
extern int setgrent_p __P((struct net_data *));
#endif
extern struct hostent *gethostbyname_p __P((const char *name,
struct net_data *net_data));
extern struct hostent *gethostbyname2_p __P((const char *name, int af,
struct net_data *net_data));
extern struct hostent *gethostbyaddr_p __P((const char *addr, int len,
int af,
struct net_data *net_data));
extern struct hostent *gethostent_p __P((struct net_data *net_data));
extern void sethostent_p __P((int stayopen,
struct net_data *net_data));
extern void endhostent_p __P((struct net_data *net_data));
extern struct hostent *getipnodebyname_p __P((const char *name, int af,
int flags, int *errp,
struct net_data *net_data));
extern struct hostent *getipnodebyaddr_p __P((const void *addr, size_t len,
int af, int *errp,
struct net_data *net_data));
extern struct hostent *gethostbyname_p __P((const char *,
struct net_data *));
extern struct hostent *gethostbyname2_p __P((const char *, int,
struct net_data *));
extern struct hostent *gethostbyaddr_p __P((const char *, int, int,
struct net_data *));
extern struct hostent *gethostent_p __P((struct net_data *));
extern void sethostent_p __P((int, struct net_data *));
extern void endhostent_p __P((struct net_data *));
extern struct hostent *getipnodebyname_p __P((const char *, int, int, int *,
struct net_data *));
extern struct hostent *getipnodebyaddr_p __P((const void *, size_t,
int, int *, struct net_data *));
extern struct netent *getnetent_p __P((struct net_data *net_data));
extern struct netent *getnetbyname_p __P((const char *name,
struct net_data *net_data));
extern struct netent *getnetbyaddr_p __P((unsigned long net, int type,
struct net_data *net_data));
extern void setnetent_p __P((int stayopen,
struct net_data *net_data));
extern void endnetent_p __P((struct net_data *net_data));
extern struct netent *getnetent_p __P((struct net_data *));
extern struct netent *getnetbyname_p __P((const char *, struct net_data *));
extern struct netent *getnetbyaddr_p __P((unsigned long, int,
struct net_data *));
extern void setnetent_p __P((int, struct net_data *));
extern void endnetent_p __P((struct net_data *));
extern void setnetgrent_p __P((const char *netgroup,
struct net_data *net_data));
extern void endnetgrent_p __P((struct net_data *net_data));
extern int innetgr_p __P((const char *netgroup,
const char *host,
const char *user,
const char *domain,
struct net_data *net_data));
extern int getnetgrent_p __P((const char **host, const char **user,
const char **domain,
struct net_data *net_data));
extern void setnetgrent_p __P((const char *, struct net_data *));
extern void endnetgrent_p __P((struct net_data *));
extern int innetgr_p __P((const char *, const char *, const char *,
const char *, struct net_data *));
extern int getnetgrent_p __P((const char **, const char **,
const char **, struct net_data *));
extern struct protoent *getprotoent_p __P((struct net_data *net_data));
extern struct protoent *getprotobyname_p __P((const char *name,
struct net_data *net_data));
extern struct protoent *getprotobynumber_p __P((int proto,
struct net_data *net_data));
extern void setprotoent_p __P((int stayopen,
struct net_data *net_data));
extern void endprotoent_p __P((struct net_data *net_data));
extern struct protoent *getprotoent_p __P((struct net_data *));
extern struct protoent *getprotobyname_p __P((const char *,
struct net_data *));
extern struct protoent *getprotobynumber_p __P((int, struct net_data *));
extern void setprotoent_p __P((int, struct net_data *));
extern void endprotoent_p __P((struct net_data *));
extern struct passwd *getpwent_p __P((struct net_data *net_data));
extern struct passwd *getpwnam_p __P((const char *name,
struct net_data *net_data));
extern struct passwd *getpwuid_p __P((uid_t uid,
struct net_data *net_data));
extern int setpassent_p __P((int stayopen,
struct net_data *net_data));
extern void endpwent_p __P((struct net_data *net_data));
extern struct passwd *getpwent_p __P((struct net_data *));
extern struct passwd *getpwnam_p __P((const char *, struct net_data *));
extern struct passwd *getpwuid_p __P((uid_t, struct net_data *));
extern int setpassent_p __P((int, struct net_data *));
extern void endpwent_p __P((struct net_data *));
#ifdef SETPWENT_VOID
extern void setpwent_p __P((struct net_data *net_data));
extern void setpwent_p __P((struct net_data *));
#else
extern int setpwent_p __P((struct net_data *net_data));
extern int setpwent_p __P((struct net_data *));
#endif
extern struct servent *getservent_p __P((struct net_data *net_data));
extern struct servent *getservbyname_p __P((const char *name,
const char *proto,
struct net_data *net_data));
extern struct servent *getservbyport_p __P((int port, const char *proto,
struct net_data *net_data));
extern void setservent_p __P((int stayopen,
struct net_data *net_data));
extern void endservent_p __P((struct net_data *net_data));
extern struct servent *getservent_p __P((struct net_data *));
extern struct servent *getservbyname_p __P((const char *, const char *,
struct net_data *));
extern struct servent *getservbyport_p __P((int, const char *,
struct net_data *));
extern void setservent_p __P((int, struct net_data *));
extern void endservent_p __P((struct net_data *));
#endif /*_IRS_H_INCLUDED*/
+4 -4
View File
@@ -19,7 +19,7 @@
*/
/*
* $Id: ctl.h,v 8.11 2001/08/10 02:40:49 marka Exp $
* $Id: ctl.h,v 8.11.10.1 2003/06/02 06:04:03 marka Exp $
*/
#include <sys/types.h>
@@ -42,11 +42,11 @@ struct ctl_verb;
enum ctl_severity { ctl_debug, ctl_warning, ctl_error };
typedef void (*ctl_logfunc)(enum ctl_severity, const char *fmt, ...);
typedef void (*ctl_logfunc)(enum ctl_severity, const char *, ...);
typedef void (*ctl_verbfunc)(struct ctl_sctx *, struct ctl_sess *,
const struct ctl_verb *, const char *rest,
u_int respflags, const void *respctx, void *uctx);
const struct ctl_verb *, const char *,
u_int, const void *, void *);
typedef void (*ctl_srvrdone)(struct ctl_sctx *, struct ctl_sess *, void *);
+88 -46
View File
@@ -12,82 +12,124 @@ typedef struct dst_key {
} DST_KEY;
#endif /* HAS_DST_KEY */
/*
* do not taint namespace
*/
#define dst_bsafe_init __dst_bsafe_init
#define dst_buffer_to_key __dst_buffer_to_key
#define dst_check_algorithm __dst_check_algorithm
#define dst_compare_keys __dst_compare_keys
#define dst_cylink_init __dst_cylink_init
#define dst_dnskey_to_key __dst_dnskey_to_key
#define dst_eay_dss_init __dst_eay_dss_init
#define dst_free_key __dst_free_key
#define dst_generate_key __dst_generate_key
#define dst_hmac_md5_init __dst_hmac_md5_init
#define dst_init __dst_init
#define dst_key_to_buffer __dst_key_to_buffer
#define dst_key_to_dnskey __dst_key_to_dnskey
#define dst_random __dst_random
#define dst_read_key __dst_read_key
#define dst_rsaref_init __dst_rsaref_init
#define dst_s_build_filename __dst_s_build_filename
#define dst_s_calculate_bits __dst_s_calculate_bits
#define dst_s_conv_bignum_b64_to_u8 __dst_s_conv_bignum_b64_to_u8
#define dst_s_conv_bignum_u8_to_b64 __dst_s_conv_bignum_u8_to_b64
#define dst_s_dns_key_id __dst_s_dns_key_id
#define dst_s_dump __dst_s_dump
#define dst_s_filename_length __dst_s_filename_length
#define dst_s_fopen __dst_s_fopen
#define dst_s_get_int16 __dst_s_get_int16
#define dst_s_get_int32 __dst_s_get_int32
#define dst_s_id_calc __dst_s_id_calc
#define dst_s_put_int16 __dst_s_put_int16
#define dst_s_put_int32 __dst_s_put_int32
#define dst_s_quick_random __dst_s_quick_random
#define dst_s_quick_random_set __dst_s_quick_random_set
#define dst_s_random __dst_s_random
#define dst_s_semi_random __dst_s_semi_random
#define dst_s_verify_str __dst_s_verify_str
#define dst_sig_size __dst_sig_size
#define dst_sign_data __dst_sign_data
#define dst_verify_data __dst_verify_data
#define dst_write_key __dst_write_key
/*
* DST Crypto API defintions
*/
void dst_init(void);
int dst_check_algorithm(const int);
int dst_sign_data(const int mode, /* specifies INIT/UPDATE/FINAL/ALL */
DST_KEY *in_key, /* the key to use */
void **context, /* pointer to state structure */
const u_char *data, /* data to be signed */
const int len, /* length of input data */
u_char *signature, /* buffer to write signature to */
const int sig_len); /* size of output buffer */
int dst_sign_data(const int, /* specifies INIT/UPDATE/FINAL/ALL */
DST_KEY *, /* the key to use */
void **, /* pointer to state structure */
const u_char *, /* data to be signed */
const int, /* length of input data */
u_char *, /* buffer to write signature to */
const int); /* size of output buffer */
int dst_verify_data(const int mode, /* specifies INIT/UPDATE/FINAL/ALL */
DST_KEY *in_key, /* the key to use */
void **context, /* pointer to state structure */
const u_char *data, /* data to be verified */
const int len, /* length of input data */
const u_char *signature,/* buffer containing signature */
const int sig_len); /* length of signature */
int dst_verify_data(const int, /* specifies INIT/UPDATE/FINAL/ALL */
DST_KEY *, /* the key to use */
void **, /* pointer to state structure */
const u_char *, /* data to be verified */
const int, /* length of input data */
const u_char *, /* buffer containing signature */
const int); /* length of signature */
DST_KEY *dst_read_key(const char *in_name, /* name of key */
const u_int16_t in_id, /* key tag identifier */
const int in_alg, /* key algorithm */
const int key_type); /* Private/PublicKey wanted*/
DST_KEY *dst_read_key(const char *, /* name of key */
const u_int16_t, /* key tag identifier */
const int, /* key algorithm */
const int); /* Private/PublicKey wanted*/
int dst_write_key(const DST_KEY *key, /* key to write out */
const int key_type); /* Public/Private */
int dst_write_key(const DST_KEY *, /* key to write out */
const int); /* Public/Private */
DST_KEY *dst_dnskey_to_key(const char *in_name, /* KEY record name */
const u_char *key, /* KEY RDATA */
const int len); /* size of input buffer*/
DST_KEY *dst_dnskey_to_key(const char *, /* KEY record name */
const u_char *, /* KEY RDATA */
const int); /* size of input buffer*/
int dst_key_to_dnskey(const DST_KEY *key, /* key to translate */
u_char *out_storage, /* output buffer */
const int out_len); /* size of out_storage*/
int dst_key_to_dnskey(const DST_KEY *, /* key to translate */
u_char *, /* output buffer */
const int); /* size of out_storage*/
DST_KEY *dst_buffer_to_key(const char *key_name, /* name of the key */
const int alg, /* algorithm */
const int flags, /* dns flags */
const int protocol, /* dns protocol */
const u_char *key_buf, /* key in dns wire fmt */
const int key_len); /* size of key */
DST_KEY *dst_buffer_to_key(const char *, /* name of the key */
const int, /* algorithm */
const int, /* dns flags */
const int, /* dns protocol */
const u_char *, /* key in dns wire fmt */
const int); /* size of key */
int dst_key_to_buffer(DST_KEY *key, u_char *out_buff, int buf_len);
int dst_key_to_buffer(DST_KEY *, u_char *, int);
DST_KEY *dst_generate_key(const char *name, /* name of new key */
const int alg, /* key algorithm to generate */
const int bits, /* size of new key */
const int exp, /* alg dependent parameter*/
const int flags, /* key DNS flags */
const int protocol); /* key DNS protocol */
DST_KEY *dst_generate_key(const char *, /* name of new key */
const int, /* key algorithm to generate */
const int, /* size of new key */
const int, /* alg dependent parameter*/
const int, /* key DNS flags */
const int); /* key DNS protocol */
DST_KEY *dst_free_key(DST_KEY *f_key);
int dst_compare_keys(const DST_KEY *key1, const DST_KEY *key2);
DST_KEY *dst_free_key(DST_KEY *);
int dst_compare_keys(const DST_KEY *, const DST_KEY *);
int dst_sig_size(DST_KEY *key);
int dst_sig_size(DST_KEY *);
int dst_random(const int mode, int wanted, u_char *outran);
int dst_random(const int, int wanted, u_char *);
/* support for dns key tags/ids */
u_int16_t dst_s_dns_key_id(const u_char *dns_key_rdata, const int rdata_len);
u_int16_t dst_s_id_calc(const u_char *key_data, const int key_len);
u_int16_t dst_s_dns_key_id(const u_char *, const int);
u_int16_t dst_s_id_calc(const u_char *, const int);
/* Used by callers as well as by the library. */
#define RAW_KEY_SIZE 8192 /* large enough to store any key */
/* DST_API control flags */
/* These are used used in functions dst_sign_data and dst_verify_data */
#define SIG_MODE_INIT 1 /* initalize digest */
#define SIG_MODE_INIT 1 /* initialize digest */
#define SIG_MODE_UPDATE 2 /* add data to digest */
#define SIG_MODE_FINAL 4 /* generate/verify signature */
#define SIG_MODE_ALL (SIG_MODE_INIT|SIG_MODE_UPDATE|SIG_MODE_FINAL)
Loaded 100 of 4201 files, more files were not shown because too many files have changed in this diff. Show more