Compare commits

...
Author SHA1 Message Date
cvs2svn c2429c4972 This commit was manufactured by cvs2svn to create tag
'RELENG_4_4_0_RELEASE'.
2002-02-04 19:23:43 +00:00
cvs2svn b3ea8abeca This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2002-02-04 19:23:42 +00:00
Jacques Vidrine 9164545f1e This time for sure ... revision 1.3 was supposed to be on this branch.
Don't use __FBSDID here because we don't have it.
2002-01-29 17:44:37 +00:00
Warner Losh 5eae6b2562 Note changes to standard-supfile, sdiff and gzip. We are now at p7. 2002-01-28 02:30:13 +00:00
Jacques Vidrine a7e451a639 MFC 1.2: Fix temporary file handling. 2002-01-28 01:29:51 +00:00
Jacques Vidrine 3308a3ac7d MFC 1.6: Use mktemp(1) when creating temporary files. 2002-01-28 01:29:22 +00:00
Crist J. Clark c41cb731de The 'standard-supfile' should track its own branch.
Approved by:	security-officer@
2002-01-28 00:03:14 +00:00
Warner Losh 6a53694e24 Move 4.3 header info. Add p3 and p4. 2002-01-27 07:17:59 +00:00
Jacques Vidrine e4f98b94ab Eliminate ptrace/exec race.
MFC 1.191 src/sys/sys/proc.h
MFC 1.44  src/sys/kern/kern_exec.c (execve)
   Add P_INEXEC flag to indicate that a process is currently exec'ing.

sys/kern/sys_process.c (ptrace)
sys/miscfs/procfs/...
   Do not allow debugging of a process during exec.
2002-01-23 23:05:54 +00:00
Jacques Vidrine 5d95e0d37d Bump patchlevel for fixes to k5su and fstatfs. 2002-01-17 15:47:04 +00:00
Jacques Vidrine 2288c0a175 MFC 1.216: Return EBADF if some vnode field has been reset to a NULL pointer. 2002-01-17 15:46:11 +00:00
Jacques Vidrine 300d4a9e1c MFC 1.1.1.4: Don't use getlogin() to determine whether we are root. 2002-01-17 15:45:27 +00:00
Hiroki Sato 31c540a7bf Fix the footer in Japanese which is likely to mislead
the readers.
2002-01-03 17:42:38 +00:00
Jacques Vidrine b1008d49cf Bump patchlevel for fix to pw(8). 2001-12-21 19:47:50 +00:00
Jacques Vidrine 5b5ef9ff47 MFC 1.18: Use correct mode for temporary file. 2001-12-21 15:23:04 +00:00
Wes Peters 137f467304 MFC directory permission fix.
Approved by:    security-officer
2001-12-07 20:58:46 +00:00
Jacques Vidrine db2fa549af MFC 1.9: Update version string since we applied a fix for the UseLogin issue. 2001-12-03 22:49:18 +00:00
Jacques Vidrine 4e12eb754a p1: fix for OpenSSH `UseLogin yes' environment issue. 2001-12-03 13:15:23 +00:00
Jacques Vidrine ed0a425074 MFC 1.18: Do not pass user-defined environmental variables to /usr/bin/login. 2001-12-03 00:54:54 +00:00
Hiroki Sato beee7146bb Merge Japanese version of RELENG_4_4 relnotes and errata. 2001-09-24 17:14:08 +00:00
cvs2svn 289aac082e This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-09-24 12:56:53 +00:00
cvs2svn 09e559d6bf This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-09-24 12:38:08 +00:00
Murray Stokely ae46147b46 MFS: Don't use kern.disks sysctl.
Makefile (rev 1.27.2.5)
     disk.c (rev 1.50.2.14)
2001-09-18 15:16:21 +00:00
Bruce A. Mah 414cbe64a2 Document disabling of ~/.login_conf.
Submitted by:	rwatson
Approved by:	re (implicitly)
2001-09-17 16:41:36 +00:00
Jordan K. Hubbard e7ca883fb4 MFC: Usual collection of 11th-hour glitches:
o Close login_cap hole by temporarily disabling $HOME login caps
o Fix multiple value returns with DHCP in sysinstall
o Add some misc FTP mirrors as one contribution towards world peace.
2001-09-17 07:30:17 +00:00
Murray Stokely 09e706bdbe MFC (rev 1.196) : The ports collection takes up 100MB of space, not
70MB.

Approved by:	jkh
2001-09-16 03:44:13 +00:00
Akinori MUSHA 95e99f0475 MFC: print/ghostscript6-nox11 -> print/ghostscript-gnu-nox11
Approved by:    jkh
2001-09-15 05:40:00 +00:00
Jordan K. Hubbard 1ab7d89a29 MFFC: RTSOL check fix 2001-09-15 02:58:59 +00:00
Bruce A. Mah 9ec5b03f78 MF4S: savecore(8) on the Alpha works.
Approved by:	jkh
2001-09-14 19:35:01 +00:00
Bruce A. Mah 26fbaf095b Note a problem in printcap(5) comment handling which will not be fixed
before 4.4-RELEASE.

Submitted by:	asmodai
Approved by:	jkh
2001-09-14 19:03:53 +00:00
Bruce A. Mah 326e527006 Trim errata for 4.4-RELEASE.
Approved by:	jkh
2001-09-14 18:52:55 +00:00
Bruce A. Mah ebf8311d3f Update release documentation entities for 4.4-RELEASE.
Approved by:	jkh
2001-09-14 18:44:22 +00:00
Poul-Henning Kamp 355a9e77ac MFC: missing {} made most/all scripted installs fail.
Approved by:	jkh
2001-09-14 18:31:38 +00:00
Bruce A. Mah 0d632bf022 MFC: Polish Books and Articles section.
Approved by:	jkh
2001-09-14 18:21:05 +00:00
Warner Losh 9278c6c21f As discussed in a number of different forums, make updating target be
for the 4.4 branch instead of the 4 branch.
2001-09-14 17:47:51 +00:00
Warner Losh 92728a8982 First best guess for 4.4 release date 2001-09-14 17:46:19 +00:00
Warner Losh f347313ee1 MFC: docs for pccard_ether_delay 2001-09-14 17:38:25 +00:00
Warner Losh 8f2132bbf7 MFS: small delay when starting up dhclient to avoid ed hang bug. 2001-09-14 17:32:25 +00:00
Jordan K. Hubbard 6320e089a3 Bump this to 4.4-RELEASE off the release tag. 2001-09-14 16:30:08 +00:00
Wilko Bulte 333d954cc6 savecore now works on Alpha
Approved by:	re
2001-09-14 16:10:34 +00:00
Andrew Gallatin 0495c96887 MFC 1.45 - make savecore work on alpha again
approved by: jkh
2001-09-13 23:16:28 +00:00
Bruce A. Mah f7dc381112 MFC: Document RFC 1948 sysctls, two minor markup fixups.
tcp.4	1.19->1.20

Approved by:	jkh
2001-09-13 18:32:54 +00:00
Warner Losh 59b0f2f0e7 MFC: "No doubt about it. I gotta get another hat"
Merge the card eject fixes.
2001-09-13 17:54:50 +00:00
Brian Somers 54033c9cd5 MFC: Spell syslog.conf correctly
Approved by: jkh
2001-09-13 09:27:09 +00:00
Peter Pentchev 29b2b5d91a Fix an off-by-one causing a coredump with a certain control flag syntax.
This is already fixed in -current's PAM, so it will be swallowed cleanly
in the next MFC.

PR:		30357
Submitted by:	Edward Counce <[email protected]>
Reviewed by:	markm
Approved by:	re (jkh)
2001-09-13 08:24:14 +00:00
Murray Stokely 8968be3345 MFC: use BATCH mode when compiling docproj ports. (rev 1.636)
Approved by:	re
2001-09-13 06:58:31 +00:00
Darren Reed 5c59debd03 IPFilter munges multicast address packets on the loopback interface.
Submitted by:	Frank Zolf
Approved by:	jkh
2001-09-12 22:09:19 +00:00
Justin T. Gibbs d804573451 aic7xxx_pci.c:
Some IBM motherboards with embedded controllers, having
	non-standard SubSystem IDs, hit our test that ignores "unstuffed"
	second channels of twin channel adapters.  On these systems, we
	fail to attach the second channel even though it is properly hooked
	up.  The only HBA that doesn't have the second channel hooked
	up is the 29160C, a compact PCI card that has been shipped
	to very few customers.  Even in that case, probing the
	second channel is not fatal, just cosmetically undesirable.
	Disable this code until a more selective test is developed
	and tested.

Approved by:	[email protected]
2001-09-12 18:18:54 +00:00
cvs2svn 9622c88bb6 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-09-11 21:06:21 +00:00
Bruce A. Mah d7bf12d3e9 MFC: semop(2) buffer overflow fixed.
Approved by:	re (implicitly)
2001-09-11 21:06:20 +00:00
Jordan K. Hubbard 6091fdaee4 MFC: right values for non-interactive install questions (whoops!) 2001-09-11 20:42:42 +00:00
Bruce A. Mah 89ff4c3b69 Minor fixups: Markup and grammar nits for some recently-added items,
rearrange a few existing items.

Approved by:	re (implicitly)
2001-09-11 17:20:13 +00:00
Kris Kennaway a04853e73e MFC: Fix some signed/unsigned integer confusion, and add bounds checking of
arguments to some functions.

Approved by:	jkh
2001-09-11 09:49:54 +00:00
Bruce A. Mah 1cb6abb835 MFC: Non-root-owned binaries now have the schg flag set, and uustat(1)
gets run as uucp, not root.  Mention change in CVSup ports/packages,
as well as S1G bugfix.

Approved by:	re (implicitly)
2001-09-10 23:22:12 +00:00
David E. O'Brien ab4cbc8ab4 Do what rev 1.243.2.34 intended to do -- add zs0 to the list of standard
devices.  Since we share on MAKEDEV, the i386 people will just have to live
with this weird device name they will never use.  In rev 1.243.2.34, I added
zs0 to the `fixit' devices, rather than the `all' devices.

Approved by:	jkh
2001-09-10 23:16:15 +00:00
Kris Kennaway 3a1923729f MFC: Run uustat as the uucp user where it can't do any damage.
Approved by:	jkh
2001-09-10 22:01:58 +00:00
Wilko Bulte bc197621b2 Alpha only: document systinstall moaning about /: write failed, file
system is full. This appears to be harmless although slightly annoying.
System installs work just dandy.

Approved by:	jkh
2001-09-10 21:30:16 +00:00
Wilko Bulte 1afcf48c7d Mark floppy access broken for AlphaServer DS10 and DS20
Approved by:	re
2001-09-10 21:08:33 +00:00
Matthew Dillon b7f704071e MFC. Non-root-owned binaries in standard system paths, whether suid or not,
must be chflag'd 'schg' to prevent trojans when root-cron or root or other
users run the programs.  This works around a root trojan that exists for
uucp binaries but does not address the other issue of config-file security
in uucp.

Approved by:	jkh
2001-09-10 20:22:57 +00:00
Dima Dorfman bf52e6d9d1 MFC 1.35: make semop()::nsops unsigned to prevent overflow.
Approved by:	jkh
2001-09-10 11:37:34 +00:00
Ruslan Ermilov 66d87d53bd MFC: 1.47: markup nits.
Approved by:	re
2001-09-10 09:10:34 +00:00
Warner Losh 7c1963e979 MFC: -> 1.209
Teltronics WL2000D preliminary supprot
	Linksys PCMLM56 preliminary support
	SMC EZCard fixes
	Elsa AirLancer
2001-09-10 08:15:29 +00:00
Warner Losh c891a394c4 MFC through 1.202:
o Comments at the start of the file
	o SMC 2632W
	o Netgear MA401
	o SMC EZCard
	o Netgear FA411
	o Addtron NE-2000 card
	o Surecome EP-427X
2001-09-09 23:44:35 +00:00
Murray Stokely 71edd7aa76 Change the file mode from 440 to 444 of the uuencoded firmware. If a
user tries to installworld over NFS, it is likely that root privilege
on the client does not mean root on the server, so we must have read
permission for the rest of the world in order to install this file.

PR:		bin/30420
Submitted by:	David Wolfskill <[email protected]>, kris
Approved by:	jkh
2001-09-09 01:41:40 +00:00
Yaroslav Tykhiy 4fb4a867bd MFC: rev. 1.21: Fix all the ambiguous or erroneous statements of
the brk(2) manpage by taking its text from NetBSD and editing it
further.  This also improves the page's mdoc(7) markup style.

Reviewed by:	ru
Approved by:	jkh
Obtained from:	NetBSD
2001-09-07 07:59:13 +00:00
Bruce A. Mah 18737d38cc MFC: Delete a note to myself that doesn't belong in a released
document.

Approved by:	re (implicitly)
2001-09-06 23:18:26 +00:00
Bruce A. Mah a0715d02fd MFC: Delete an empty paragaph.
Approved by:	re (implicitly)
2001-09-06 23:17:00 +00:00
Warner Losh 360f8abe14 MFC: More IDs and deal gracefully when we don't know the ID for YENTA chips 2001-09-06 20:59:49 +00:00
Warner Losh 4fbe4130b9 MFC: More device IDs 2001-09-06 20:58:41 +00:00
Bruce A. Mah 4918d35541 Add a comment about PCCARD hangs and a workaround with pccardc
(submitted by imp).  Move all PCCARD-related release notes into a new
sect3.

While I'm here, move an entry regarding Whitebox AlphaServer 530x machines
into "Processor/Motherboard Support" (which in the future should probably
be renamed "Platform Support").  Also add two commas to this entry.

Approved by:	re (implicitly)
2001-09-06 18:08:21 +00:00
Ruslan Ermilov 2338c5062f MFC: 1.8: The default facility was not LOG_USER in the -h case.
Approved by:	jkh
2001-09-06 17:38:57 +00:00
Murray Stokely 486ac60727 MFC: Use correct variable name in this example script.
Approved by:	re
2001-09-06 10:42:03 +00:00
Ruslan Ermilov 20bb423551 MFC: 1.33: Fixed the defaults for bsize and fsize.
Approved by:	jkh
2001-09-06 07:00:33 +00:00
Warner Losh 06f502486c MFC: Set the bit rather than clear it to enable pci interrupts.
Approved by: jkh (implicit)
2001-09-05 22:40:59 +00:00
David E. Cross 7cbfc853aa PR:
Submitted by:	<[email protected]>
Reviewed by:	<[email protected]>
Approved by:	<[email protected]>
Obtained from:	<[email protected]>
MFC after:	N/A, -CURRENT no longer uses this code
The patch in 1.28.2.1 was in error.  It used FD_ZERO on the fds (fdset)
structure, but this is a dunamically allocated array that is only as
big as it needs to be. The result of calling FD_ZERO on it would be that
it would either overwrite random data in the data-segment, happen to
be just the right size and work correctly, or not zero out all of the
data it was supposed to.  The first case is far more likely (and damaging).

This code has been in extensive testing here.  And was approved by the
release engineers for this last minute push.
2001-09-05 22:29:23 +00:00
cvs2svn 390987ad32 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-09-05 17:05:27 +00:00
Bruce A. Mah 63ae975e26 MFC: Mention Sparc64 port under development.
Approved by:	murray (implicitly)
2001-09-05 17:05:26 +00:00
David E. O'Brien 0281ec1e51 Fix a coredump situation as discussed in -hackers.
Approved by:	jkh
2001-09-05 17:03:11 +00:00
cvs2svn 2f18471c5b This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-09-05 10:00:07 +00:00
Murray Stokely 1305a74ad7 MFC: We now have over 5,800 ports!
Approved by:	jkh
2001-09-05 10:00:06 +00:00
cvs2svn a33a14a17e This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-09-05 09:14:01 +00:00
Murray Stokely 33314bcbd7 MFC: Add Hungarian mirror.
Approved by:	jkh
2001-09-05 09:14:00 +00:00
cvs2svn 671b1ed0c8 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-09-05 09:10:02 +00:00
Akinori MUSHA 88a09323ba MFC:
- archivers/bzip2 is no longer a VERY common build dependency.
- www/netscape47-{communicator,navigator} are forbidden, so add
  www/linux-netscape47-{communicator,navigator} instead.
- add sysutils/portupgrade to CD-ROM #1.

Approved by:	jkh
2001-09-05 09:10:01 +00:00
Bruce A. Mah 3d1f2b83c1 MFC: Add more missing words around <option></option> tags.
Approved by:	murray (implicitly)
2001-09-05 06:16:13 +00:00
Bruce A. Mah 48f5853acf MFC: pcic(4) release note cleanup/clarification.
Approved by:	murray (implicitly)
2001-09-05 06:13:01 +00:00
cvs2svn 5b8b8fac00 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-09-05 05:50:13 +00:00
Bruce A. Mah 1ea8cf6da3 Previously, the RELNOTESng errata file for a release would contain
the final version of the errata for the previous release (thus,
the final X.Y-RELEASE errata would get generated with
the release documents for X.(Y+1)-RELEASE).  Without debating the merits of
this approach, it definitely violates POLA for those users who are
accustomed to our existing release documentation.

Restore the previous behavior of having the errata document for a release
be an empty errata document for the version being released.
2001-09-05 05:50:12 +00:00
cvs2svn 661208396d This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-09-05 00:22:12 +00:00
Murray Stokely 13b74b33f7 MFC: don't set TRY_DHCP="NO". The user can set this if they want, but
the default is to prompt the user.

Approved by:	re
2001-09-05 00:22:11 +00:00
Jordan K. Hubbard d63e23c73f MFC: spanish ftp server 2001-09-04 22:09:25 +00:00
Bruce A. Mah 1125c9f026 Binary upgrades on 4-STABLE preserve host.conf, not nsswitch.conf. 2001-09-04 21:13:11 +00:00
Bruce A. Mah ae5661e5d9 MFC: sysinstall's binary upgrade option used to display the contents of
UPGRADE.TXT along with a YesNo dialog requesting confirmation of
the upgrade.  During the transition to RELNOTESng, UPGRADE.TXT got
folded into a file that eventually renders as INSTALL.TXT, which
makes sysinstall complain about a non-existent file.  As a
solution/workaround, point the user at INSTALL.TXT, and then request
confirmation.

	src/usr.sbin/sysinstall/installUpgrade.c	1.77->1.78

Approved by:	jkh
2001-09-04 21:08:13 +00:00
Tatsumi Hosokawa 961f63886b Added keymaps to keymap.h that were only referred by keymap menu.
(This fixes the bug that sysinstall applies wrong keymaps from keymap menu.
For example, if you selected 'US Ctrl <-> CapsLock', sysinstall applied
DVORAK keymap without this patch.

 I have to be away from net for two days from now.  So, If this patch causes
 serious problem, please fix it.  I can't touch CVS repo. and perhaps I
 can't read e-mails until 4.4-RELEASE is released.  Sorry....

Approved by:	[email protected]
2001-09-04 20:53:54 +00:00
Bruce A. Mah 55be87a111 MFC: SA-01:59.
Approved by:	murray (implicitly)
2001-09-04 20:40:10 +00:00
Warner Losh 6155c37dbf Put back the newline in the bad vcc message that accidentally was deleted in
last commit.

Implicit approval: jkh
2001-09-04 20:11:14 +00:00
Warner Losh edfb1b226d MFC: Latest pccard changes, with some debugging output hidden behind
bootverbose.

Approved by: jkh
2001-09-04 20:06:41 +00:00
Bruce A. Mah 8691260680 Errata deltas aren't emailed to freebsd-stable@, stop pretending that
they are.

Approved by:	murray (implicitly)
2001-09-04 19:47:15 +00:00
Bruce A. Mah da930a6dd4 MFC: pcic(4) interrupt routing.
Approved by:	murray (impliictly)
2001-09-04 19:19:44 +00:00
Bruce A. Mah 90bbb11a2f Minor last-minute tweaks...fix some whitespace and markup nits, add
some missing words, combine two an(4) entries into one.

Approved by:	murray (implicitly)
2001-09-04 19:13:48 +00:00
Bruce A. Mah fa7eefc496 MFC: /etc/{dhclient.conf,hosts.allow} are preserved by binary
upgrades.

Approved by:	murray (implicitly)
2001-09-04 17:11:49 +00:00
Dirk Froemberg ef29ccb944 MFC: Try to build the mkisofs/setcdboot port first before using pkg_add.
Approved by:	jkh
2001-09-04 16:51:52 +00:00
Dima Dorfman 243ca16ef3 MFC: NO_LANGCODE_IN_DESTDIR
Approved by:	bmah
2001-09-04 12:12:14 +00:00
Ruslan Ermilov 797a6e046e MFC: 1.26: markup nits.
Approved by:	re
2001-09-04 09:56:11 +00:00
Murray Stokely 82d6ead469 MFC: more diagnostic information.
Approved by:	re
2001-09-04 04:58:44 +00:00
Murray Stokely c9b950da9c MFC: usage clarification.
Approved by:	re
2001-09-04 04:54:03 +00:00
Noriaki Mitsunaga e3e21bf449 [MFC] 1.72->1.73
Change the access width of memory window from 8 bits to 16 bits.
16 bits access is required by nsp driver to work in SMIT mode.
Since previously (1.65 and before in current, and 1.46.28 and before
in stable branch) 16 bits access was default, I hope it will break nothing.

Okayed-by: imp
Approved-by: jkh
2001-09-04 04:47:47 +00:00
Murray Stokely 16e445db4f MFC: correct information about PT_STEP arguments.
Approved by:	re
2001-09-04 04:46:07 +00:00
Noriaki Mitsunaga ba7f0754ef [MFC]
We should not pass the size of the memory to bus_alloc_resource().
We should use 1 to request default iomem.

Pointed-out-by: imp
Approved-by: jkh
2001-09-04 04:45:24 +00:00
Murray Stokely 6d6d239f05 MFC: Correct device names in synopsis.
Approved by:	re
2001-09-04 04:39:42 +00:00
Murray Stokely 1859280f6b Fix a couple of typos.
PR:		docs/30286
Submitted by:	SUZUKI Koichi <[email protected]>
Approved by:	jkh (implicit)
2001-09-04 04:15:12 +00:00
Luigi Rizzo db3dfd60bf MFC: move rules to create the stripped kernel into Makefile.conf,
and improve handling of cross-builds.

Approved By: jordan
2001-09-04 02:03:04 +00:00
Noriaki Mitsunaga 97a4260b78 [MFC]
Fix bus timeout bug which might happen when nsp do suspend I/O burst write.

A nsp chip does suspend I/O write by 512bytes burst write,
though the chip only has 48 bytes FIFO. The chip assert I/O WAIT
signal to PC-Card bus after the CPU writes more than 48 bytes to
the chip if the SCSI device does not respond immediately in supsend
I/O burst write. If the device does not respond for a while it might
cause PC-Card bus timeout.

The previous work around was to wait the request from SCSI device.
But there are some devices which request bytes for synchronous transfer
immediately. So current work aound is to fill 32bytes FIFO, wait for
FIFO empty and burst write 512-32 bytes for every 512 bytes block.

Submitted-by: Honda-san (the author of the driver)
Obtained-from: NetBSD/pc98
Approved-by: jkh
2001-09-04 01:45:41 +00:00
Noriaki Mitsunaga 487710e2c4 [MFC]
Demand minimum I/O size rather than 0 when it calls
bus_alloc_resource(dev, SYS_RES_IOPORT, ...)

Pointed-out by: Yamamoto-san [email protected]
2001-09-04 01:42:07 +00:00
David E. O'Brien 128ff94094 MFC: fix my backwards logic
Requested by:	jkh
2001-09-03 20:24:52 +00:00
Orion Hodson 22feb185fc MFC: expand probing range.
Approved by:	jkh
2001-09-03 20:03:42 +00:00
Orion Hodson 62906779e3 MFC: Fix return value of the setblocksize functions of these drivers,
recording is broken otherwise.

Approved by:	jkh
2001-09-03 14:48:41 +00:00
Boris Popov 14633bfabd MFC: return proper value for maximum file name length.
Approved by:	jkh
2001-09-03 08:58:11 +00:00
Boris Popov 48c3e3e4f7 MFC: fix an off-by-one error and map additional error code.
Approved by:	jkh
2001-09-03 08:55:11 +00:00
Ruslan Ermilov 40f567bdf6 MFC: Manpage for inet_net_ntop(3) and inet_net_pton(3).
Approved by:	jkh
2001-09-03 08:46:42 +00:00
Julian Elischer 8acdf901bb fix typo in last commit 2001-09-03 07:02:29 +00:00
Julian Elischer 5c420e23fd Add support for Telebrazilia and their 3com pppoe devices
that use the incorrect ethertype.
(man page addition to follow)
(also remove a warning message)

MFC ok'd by jkh
2001-09-03 06:38:16 +00:00
Peter Wemm 81396b1ed8 MFC: use the correct bit for decoding the extended geometry info.
PR:		29454
Submitted by:	Rob Manchester <[email protected]>
Approved by:	jkh
2001-09-03 02:45:22 +00:00
Jordan K. Hubbard 110df1c8c0 MFC: execute ISO script more flexibly. 2001-09-02 19:13:58 +00:00
Jeroen Ruigrok van der Werven baf251bf13 MFC: string fixes
Approved by:	Release Engineer
2001-09-02 00:12:09 +00:00
Tor Egge 36cac529c9 Hold clock_lock while setting clkintr_pending to avoid
a race with i8254_gettimecount causing the i8254 timecounter
to be stepped forward twice on a single clock interrupt.

Reviewed by:	bde
Approved by:	jkh
2001-09-01 22:33:38 +00:00
Mike Silbersack 2b51a47fe6 MFC of rev 1.8 + change of read_random to read_random_unlimited.
These changes increase the security of arc4random and also lower its
overhead.

Approved by: re (jkh)
2001-09-01 22:26:04 +00:00
Luigi Rizzo 3e598215bd MFC: (bugfix) supply a default value for kernel config binary. 2001-09-01 19:16:38 +00:00
Luigi Rizzo 3f1b2048b9 MFC: bugfix -- use correct variable to identify picobsd type. 2001-09-01 18:28:37 +00:00
Mark Peek 460fe0be66 MFC: r1.26: Exit gracefully when a SIGHUP is received.
Approved by:	jkh
2001-09-01 16:35:45 +00:00
Yaroslav Tykhiy 6a48e7e1d3 Don't skip attaching VLAN interfaces to Netgraph, or else
the system will panic on the very first packet going out
of a "vlan" interface.

Reviewed by:	archie
Approved by:	jkh
2001-09-01 08:22:29 +00:00
Semen Ustimenko a924983eef MFC: r1.48: Fix bug with wrong initialization routines calls sequence.
Approved by:	jkh
2001-09-01 07:21:56 +00:00
Semen Ustimenko 5ebac97dd8 MFC: VLAN support.
Approved by:	jkh
2001-09-01 07:17:31 +00:00
Murray Stokely fe1688b7e5 MFC: rev 1.41
(correct a device ID)

Approved by:	jkh
2001-09-01 05:55:31 +00:00
Murray Stokely 067153c144 MFC: revs 1.339 - 1.341
(add device IDs)

Approved by:	jkh
2001-09-01 05:52:38 +00:00
Bruce A. Mah 4813d27c5a MFC: Reflect that Alphas *do* have a working Linux emulation. 2001-09-01 04:41:30 +00:00
cvs2svn c598e96278 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-08-31 21:25:16 +00:00
Wilko Bulte 59ede9e6df MFC: xref to ispfw(4) in see also
Approved by: mjacob, re
2001-08-31 21:00:51 +00:00
Jordan K. Hubbard 75f01dfb96 MFC: preserve hosts.allow and dhclient.conf 2001-08-31 20:11:45 +00:00
cvs2svn 8a3dd877cd This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-08-31 20:03:17 +00:00
Jordan K. Hubbard 57400c32fc MFC: missing hunk 2001-08-31 20:03:16 +00:00
Jordan K. Hubbard 5e1737d044 MFC: IPv6 query 2001-08-31 19:57:16 +00:00
Jordan K. Hubbard 37653cbaa5 MFC: Make sure non-interactive scripts don't ask questions. 2001-08-31 19:43:56 +00:00
Matthew Dillon 1f8272b054 MFC 1.46
Approved by: jkh
2001-08-31 19:36:49 +00:00
Scott Long e0678ae99f MFC: Note new cards supported by the asr and aac drivers.
Approved by:	jkh
2001-08-31 18:26:00 +00:00
Ruslan Ermilov 67548f8f36 MFC: 1.37: Sort predicates.
Approved by:	re
2001-08-31 15:56:48 +00:00
Jonathan Lemon 879a62d4e3 MFC: add missing "opt_inet6.h" header. 2001-08-31 13:49:58 +00:00
Jonathan Lemon 78f9a181d4 MFC: r1.57; correct comment & whitespace changes. 2001-08-31 13:45:49 +00:00
Ruslan Ermilov 6f880418e3 MFC: Use ``.Rv -std'' wherever possible.
Approved by:	re
2001-08-31 10:15:17 +00:00
Josef Karthauser 75b041abd2 MFC: (rev 1.191 src/usr.sbin/sysinstall/config.c)
Sysinstall inserts a comment between changes to /etc/rc.conf.
Add a timestamp to the comment so that it's possible to see when
changes were made.

e.g.:
# -- sysinstall generated deltas -- # Wed Aug 15 18:10:20 2001
2001-08-31 08:40:46 +00:00
Mitsuru IWASAKI 07c7fc6df5 MFC: 1.144->1.145; Move CR4.PGE enabling code after paging is enabled.
Approved by:	jkh
2001-08-31 08:19:12 +00:00
Kris Kennaway 6cc550df9c s/cdrecord/cdrtools/
Approved by:	jkh
2001-08-31 08:02:58 +00:00
Kris Kennaway fe45f10e22 MFC:
The timed protocol is not implemented in a compatible way by all vendors;
the size of the tsp_name field is OS-dependent.  4.3BSD used a 32-byte
field, FreeBSD uses MAXHOSTNAMELEN and RedHat apparently uses a 64-byte
field.  As a result, sanity checking code added a few months ago to detect
short packets will fail when interoperating with one of these other vendors.

Change the short packet detection code to expect a minimum packet size
corresponding to the 4.3BSD implementation, which should be a safe minimum
size.

Approved by:	jkh
2001-08-31 08:02:06 +00:00
Cameron Grant 4a53aa9721 mfc rev 1.63,1.65:
1.63:
now we have the rate feeder, we don't need to constrain the default channel
speed.  however, continue to do so for record channels until the feederchain
builder is fixed.

1.65:
tweaks to reduce latency/pauses in output.

Approved by:	jkh
2001-08-31 07:54:09 +00:00
Cameron Grant 9512211c59 mfc rev 1.5:
* change buffering method a bit
* swap record/mic channels
* initialise all channels
* align dma buffers to 8 bytes

Approved by:	jkh
2001-08-31 07:50:28 +00:00
Eric Melville a5bf5979b8 MFC: attempt to make key behavior more clear
Approved by:	jkh
2001-08-31 05:10:00 +00:00
Eric Melville 4839881cb0 MFC: cursor update on home and end keys 2001-08-31 03:04:59 +00:00
Jonathan Lemon d8c26eb50f MFC: r1.117; enable eeprom workaround for defective ICH2/ICH2M chips.
Approved by: jkh
2001-08-31 02:17:02 +00:00
George C A Reid b9600dbf87 MFC revs 1.28 and 1.29 t4dwave.c, rev 1.5 t4dwave.h:
Support for Acer Labs M5451 and SiS 7018 chips.

Approved by:	jkh
2001-08-30 23:10:50 +00:00
Luigi Rizzo 829827adf2 MFC: add a missing -o 2001-08-30 22:30:02 +00:00
Bruce A. Mah d2519c4d42 MFC: SA-01:58 on lpd(8).
Approved by:	re (implicitly)
2001-08-30 21:10:43 +00:00
Wilko Bulte 6e0ac188fa Whitebox 530x AlphaServers are now supported.
Approved by:	re
2001-08-30 20:10:43 +00:00
Andrew Gallatin 13aea1570b The whitebox AlphaServer 530x series are the equivalent of the
AlphaServer 1200, but with a negative rpb_type.  When booting
-stable, they panic early on with the message:
         panic: Hose 1 - can only encode 0 hose(s)
So we need to test for their (negative) systype in the pci hose
encoding code.

Tested by: Diego Montalvo <[email protected]>
Approved by: jkh
2001-08-30 19:42:37 +00:00
Ruslan Ermilov 209b8181de MFC: 1.32: Restore the `-perm +mode' feature.
Approved by:	jkh
2001-08-30 17:54:36 +00:00
Ruslan Ermilov c48f474aa7 MFC: 1.16: drop unneeded setgid `tty' bit.
Approved by:	jkh
2001-08-30 17:49:53 +00:00
Nik Clayton 5b5b46ef8b MFC: Changes to various output strings reflecting the fact that FreeBSD
DVDs are also available.

   1.49      cdrom.c
   1.193     dist.c
   1.296     install.c
   1.64      main.c
   1.113     media.c
   1.304     menus.c
   1.17      pccard.c

Approved by: re
2001-08-30 16:26:07 +00:00
David Malone 482fed0c25 MFC: Explain a rule more carefully.
Approved by:	re
2001-08-30 16:02:37 +00:00
Murray Stokely 867ef520e3 Add entry about stl(4) update. 2001-08-30 14:03:28 +00:00
Murray Stokely 16a8ea5b89 Update board firmware
Obtained from: Stallion Technologies
2001-08-30 13:23:26 +00:00
Wilko Bulte 24abedfab2 MFC:
DS10 has it's USB interface disabled (by Compaq/DEC). I wonder where I got
the info that USB works in FreeBSD??

Approved by:	re
2001-08-30 13:20:59 +00:00
Murray Stokely a0bf781b06 Import the latest (1998-era!) unsupported 2.0.0 version of the
stallion driver from ftp.stallion.com (stl(4) and stli(4)).  This adds
support for the "EasyIO" family of PCI multiport serial cards with the
stl driver.

The default device names were changed to allow stl and stli
devices to coexist on a system.
 - stl driver dialin devices are ttyE* as before
 - stli driver dialin devices no longer share the ttyE names, but now use
   ttyF* names.
 - dialout devices are now called cuaE* and cuaF* (cf cue*) in line with the
   rest of the system

PR: 6368, 19890, 22967, 28831
Submitted by: Gregory Bond <[email protected]>,
              Jan L. Peterson <[email protected]>
Approved by: jkh
2001-08-30 12:29:58 +00:00
Joerg Wunsch 5ec2711f51 MFC rev 1.12: terminate `buf' with a 0, just in case the very first
fgetc() already returns EOF.
2001-08-30 11:39:12 +00:00
Kris Kennaway 86584f40de MFC: Fix buffer overflow in queue file handling 2001-08-30 09:28:35 +00:00
Warner Losh 3db9bd3bd3 MFC: chip IDs for TI1210, 4410 and 4450. 2001-08-30 06:52:20 +00:00
Alan Cox b447383fb5 MFC: revision 1.92 and part of revision 1.93 of kern/vfs_aio.c and
revision 1.22 of sys/aio.h.

 Remove the field privatemodes from struct __aiocb_private and the
 related code from aio_read() and aio_write().

 Remove unnecessary fhold() and fdrop() calls from aio_qphysio().  Add
 a comment explaining why.

Approved by:	re (jkh)
2001-08-30 06:17:09 +00:00
John Polstra 2299ee66bb MFC 1.2 -> 1.3: Fix a bug in lseek which caused the loader to fail
on some gzipped kernels.

Approved by:	jkh
2001-08-30 03:14:16 +00:00
Luigi Rizzo f8da2dbbcb MFC: picobsd script now lets you specify which source tree to use,
which in turn makes it possible to cross-build picobsd images on
a -stable system.

Major applications are building -current images for testing purposes,
and building old versions (based on 2.x or 3.x) of picobsd.

Approved By: re
2001-08-29 21:49:44 +00:00
Jesper Skriver 9a14667289 MFC rev 1.175
When net.inet.tcp.icmp_may_rst is enabled, report ECONNREFUSED not ENETRESET
  to the application as a RST would, this way we're compatible with the most
  applications.

Submitted by:	Scott Renfro <[email protected]>
Reviewed by:	Mike Silbersack <[email protected]>
Approved by:	jkh
2001-08-29 21:41:37 +00:00
Maxim Sobolev 0a42a8a448 MFC: honour ${TMPDIR} environment variable.
Approved by:	re
2001-08-29 17:55:42 +00:00
Maxim Sobolev df0c09cc75 MFC: various fixes and cleanups from rev.1.25.
Approved by:	re
2001-08-29 17:54:47 +00:00
Maxim Sobolev 381f083e05 MFC: remove duplicate umask() call.
Approved by:	re
2001-08-29 17:53:21 +00:00
Hajimu UMEMOTO 0911e83358 MFC 1.9: fix typo. icmptype of destination unreach is not 2 but 1.
Approved by:	jkh
2001-08-29 09:57:12 +00:00
Alfred Perlstein f78c761b11 MFC: "netgrent" functions a home in netdb.h
Approved by: jkh
2001-08-29 08:46:52 +00:00
Søren Schmidt 7b9bad02a5 Add RAID support for the Promise TX2.
Approved by: jkh
2001-08-29 08:34:02 +00:00
Crist J. Clark bd2c9ec039 MFC: 1.25, Fix some small errors and markup nits.
Approved by:	re (jkh)
2001-08-29 07:37:03 +00:00
Warner Losh 28c36b25fa MFC: Better routing algorythm. 2001-08-28 22:35:30 +00:00
Søren Schmidt 02e9ef517e MFC:
Add support for yet another VIA '686 chip combo.

Fix minor bug in the VIA code.

Add support for Promise TX2 chips, includind tagged queueing.

Allow sharing of the primary/secondary irq's (14 & 15)

Add support for tagged queueing on new IBM disks (IC*).

Fix support for Yamaha & NEC burners.

Fix calculation of EOM on CDROM's

Quiet the READ TOC errors when burning CDR/RW's.

This brings the 4.x branch in sync with -current as of 2001-08-28.

Approved by: jkh
2001-08-28 17:56:14 +00:00
Ian Dowse 4868d0379b MFC: Ensure that we don't use dirhash on directories that have been
removed.

Approved by:	jkh
2001-08-28 17:28:49 +00:00
Wilko Bulte 829be47170 TurboLaser zs console device is now automatically created
as part of the 'standard' devices

Approved by:	re
2001-08-28 09:52:17 +00:00
David E. O'Brien ec8e3b7748 Add zs0 to the list of standard devices. Since we share on MAKEDEV, the
i386 people will just have to live with this weird device name they will
never use.

Approved by:	jkh
2001-08-28 07:17:44 +00:00
Alexander Langer 70a00c3e5e MFC: MULTI_DRIVER_MODULE
Approved by:	jkh
2001-08-28 07:12:36 +00:00
Warner Losh 2e30c3e21b MFC: Allow compiling into a kernel that doesn't have pci.
Approved by: jkh
2001-08-28 06:21:15 +00:00
cvs2svn 6637deed20 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-08-28 03:45:48 +00:00
Yoshihiro Takahashi dd5316711e Disabled kern.disk sysctl for PC98 because the wd driver does not use
disk_create() interface.

Approved by:	jkh
2001-08-28 03:45:47 +00:00
Yoshihiro Takahashi 7bf611781d merged from sys/i386/isa/npx.c revision 1.80.2.2
Approved by:	jkh
2001-08-28 03:44:08 +00:00
Yoshihiro Takahashi 0947e571c7 merged from sys/conf/files.i386 revision 1.307.2.14
Approved by:	jkh
2001-08-28 03:43:21 +00:00
Bruce A. Mah 62a241634c MFC: SA-01:57.
Also update errata document.

Approved by:	murray (implicitly)
2001-08-27 22:06:15 +00:00
Warner Losh ef86b14a94 Look for already routed interrupts first. If we find one report it, but do
not try to route it again.
Then look for unique ones.
Then pick one at "best guess" random.

Before we were a) always routing and b) finding the unique one first.  This
lead to some unfortunate BIOS interactions.

With these fixes, I can use my boss' Toshiba Portege 7020CT with all
3C589, Orinoco Gold and ZoomAir 2M cards.  Modems still wedge it
solid, however, for reasons unknown.

Also, introduce PRVERB macro to make this code less chatty easily in the
future.
2001-08-27 20:29:03 +00:00
Wilko Bulte 46a9876127 Finally, after a long and heavy battle, FreeBSD can be booted on the
bigger Alphas (like AS1200 etc).

Approved by:	re
2001-08-27 17:50:18 +00:00
Brian Somers 33ede6c15f MFC: Send a reset request for every packet received when our encryption
dictionaries are out of sync.

Approved by:	jkh
2001-08-27 17:09:29 +00:00
Warner Losh 256a8c2df9 MFC: Remove warnings for devices that I've tested 2001-08-27 16:34:03 +00:00
Warner Losh d24a0613ef MFC: TI fixes, route ISA interrupts, comments, devid on unknown devices 2001-08-27 16:33:14 +00:00
Warner Losh cfb43ac9f0 MFC: Use same names for tunable and sysctl 2001-08-27 16:31:20 +00:00
Warner Losh 6333070a58 MFC: Treat IRQ 0 as also a thing to route. Many Sony laptops use this
instead of 255 :-(.  This was in -current, but was lost on the MFC for
reasons unknown.
2001-08-27 16:26:01 +00:00
Assar Westerlund 0e77f7d704 MFC: add krb5-config
Approved by:	jkh
2001-08-27 10:20:34 +00:00
Wilko Bulte 53a8fd752c MFC: correctly use openjade for Alpha
Submitted by:	bmah
Approved by:	jkh
2001-08-27 09:15:21 +00:00
Alan Cox 3f8bdca054 MFC: Regen after adding linux_sched_get_priority_max() and
linux_sched_get_priority_min().

Approved by:	re (jkh)
2001-08-27 09:05:30 +00:00
Alan Cox f90226055f MFC: Add linux_sched_get_priority_max() and linux_sched_get_priority_min().
Approved by:	re (jkh)
2001-08-27 08:51:16 +00:00
Peter Wemm 3b5e77a95f MFC: rev 1.109: dont even generate SSE instructions unless CPU_ENABLE_SSE
is defined.

Approved by:	re (jkh)
2001-08-27 04:20:37 +00:00
Peter Wemm 8961d814cd MFC: initcpu.c 1.31, locore.s 1.146; move cpu_fxsr to C code.
Approved by:	re (jhk)
2001-08-27 04:17:58 +00:00
Peter Wemm 0bea948f16 MFC: 1.30: dont fail to compile on I586_CPU-only systems 2001-08-27 04:15:52 +00:00
Bruce A. Mah c1e7bd0a7a MFC: Sync with -CURRENT installation document cleanup.
alpha/Makefile			1.3->1.4
	alpha/artifcle.sgml		1.1->1.2
	common/abstract.sgml		1.1
	common/floppies.sgml		(deleted)
	common/install.ent		1.1->1.2
	common/install.sgml		1.6->1.7
	common/layout.sgml		1.3->1.4
	common/trouble.sgml		1.2->1.3
	common/upgrade.sgml		1.2->1.3
	i386/Makefile			1.3->1.4
	i386/article.sgml		1.1->1.2

Approved by:	murray (implicitly)
2001-08-27 03:54:49 +00:00
cvs2svn cd4d7da17f This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-08-27 03:37:57 +00:00
Bill Fumerola 1fd58729e9 MFC: rev 1.166 - spl protection for generation of dynamic rules for userland.
Approved by:	jkh
2001-08-26 23:22:44 +00:00
Brian Somers 6c3d92e5d0 MFC: Put a parenthesis in the right place
Approved by: jkh
2001-08-26 17:52:55 +00:00
Bruce A. Mah 11c6c73603 MFC: Use &os.numports; to track how many ports we have. Don't need to give
an example of a specific release in CDROM/DVD ordering.

Approved by:	murray (implicitly)
2001-08-26 17:31:33 +00:00
Bruce A. Mah ad65af4c4c Add a sentence to the abstract about the length of time for which
errata for a given FreeBSD version will be maintained.

Approved by:	murray (implicitly)
2001-08-26 17:26:38 +00:00
Warner Losh 5795a0f084 MFC: Merge in the first cut at the ISA routing support. Note, we'll need to
expand this support a little, but it should get people up and going.

Approved by: jkh
2001-08-26 04:48:47 +00:00
Warner Losh 26826d7767 Add pcic.4 to the build process. 2001-08-26 04:45:50 +00:00
Warner Losh 583ebed5ad MFC: add pcic man page, finally. 2001-08-26 04:45:03 +00:00
cvs2svn 2f70294835 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-08-26 04:43:17 +00:00
Joseph Koshy aff50c770d {MFC from rev 1.4}. If the string specifying options starts with a leading
`:', then `getopt(3)' should not print a warning for missing argument values.

Approved by:	re
2001-08-26 03:36:04 +00:00
Matthew Dillon f83f2ff36c MFC document minherit() system call and add user-accessible #define's to
cover the 'inherit' argument.  There are no functional changes (except the
new defines).

Approved by:	jkh
2001-08-25 07:25:44 +00:00
Warner Losh 429495836d MFC: Make initialization table driven
Shutdown slot on shutdown
     Print interrupt path in sysctl as a string.

Approved by: jkh (implicit)
2001-08-25 06:18:10 +00:00
Nick Sayer 483085610f MFC: Support for Netgear MA301 PCI 802.11 NICs. Also note that wi is no
longer dependent on 'card' since it can be either pccard or pci.

Reviewed by:	 jkh
2001-08-25 00:48:25 +00:00
Matthew Dillon 7b7e1aa27f Cut the size of the (really over zealous) swap-meta allocation in half to
avoid an out-of-KVM panic on machines with 4G of ram.  (This is not the
more sophisticated kvm capping code, just a simple patch).

Approved by: jkh
2001-08-24 22:54:33 +00:00
Brian Somers 5260dcb08b MFC: Handle return values of 0 from NgRecvMsg() properly.
Approved by: jkh
2001-08-24 21:42:42 +00:00
Brian Somers 42e58b1990 MFC: Understand that a return value of 0 from NgRecvMsg() means that the
socket was closed.
2001-08-24 21:41:45 +00:00
Brian Somers 9a33e1a798 MFC: Explain what the return value from NgRecvMsg() and NgRecvData() means.
Approved by: jkh
2001-08-24 21:40:45 +00:00
David Greenman 6fc3994e4a MFC rev 1.35: Killed reference to MAP_INHERIT. 2001-08-24 20:55:33 +00:00
cvs2svn cb4a44d6f2 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-08-24 19:47:06 +00:00
Nate Williams 0fa76de94c - Remove use of un-documented 'removable_interface' and
'removable_route_flush' variables which can cause routing and configuration
  to fail when not using DHCP.

Submitted by:	Toshihiko ARAI <[email protected]>,
Reviewed by:	imp
Approved by:	jkh
2001-08-24 19:47:05 +00:00
Cameron Grant 59b29fe162 MFC rev 1.27:
make the 4dwave nx chip work

Submitted by:	Philippe Anel <[email protected]>
Approved by:	jkh
2001-08-24 18:55:11 +00:00
Cameron Grant 653cf4b662 MFC rev 1.47:
handle bogus values passed to SOUND_PCM_WRITE_CHANNELS/SNDCTL_DSP_CHANNELS
ioctls better- if 0 is passed, return the current setting.  if 1 or 2 are
passed, behave accordingly.  treat values >2 as 2.

PR:		kern/29964
Approved by:	jkh
2001-08-24 18:39:21 +00:00
Cameron Grant 606aafc680 MFC rev 1.19:
the feederchain builder is currently broken for recording channels.  disable
it until it is fixed.  this limits recording to native formats and speeds
only.

Approved by:	jkh
2001-08-24 18:35:54 +00:00
Warner Losh d8f55fead8 Fix some spl masking issue. From the patch author:
> Just to add a few details - there is a bug in the update_masks()
> function in i386/isa/intr_machdep.c that can cause some interrupts
> to occur at times when they should be masked. The problem only
> occurs with certain configurations of shared interrupts and devices,
> and this code is only present in RELENG_4.
>
> The update_masks() function is called after an interrupt handler
> has been registered or removed. Its main function is to update the
> interrupt masks (tty_imask, net_imask etc) if necessary (e.g if
> IRQ11 is registered by a tty-type device, IRQ11 will be added to
> tty_imask so that future spltty()'s will mask IRQ11).
>
> A second function of update_masks() is to update the cached copy
> of the interrupt mask stored with each handler for a multiplexed
> interrupt. This is done via the call to update_mux_masks().
>
> The bug is that update_masks() returns without calling update_mux_masks()
> in some cases where it should call it. Specifically, if a newly-added
> multiplexed interrupt handler has the same maskptr as another
> handler on the same IRQ line, that new handler doesn't get it's
> cached mask set. For example if a single IRQ has a usb device and
> a modem (tty), the second device to register it's handler will get
> its idesc->mask set to 0 instead of the value of tty_imask because
> update_mux_masks() may never be called to set it. Of course, if
> update_masks() is called later for some other device it may correct
> the situation.
>
> Interrupt handlers are called with intr_mask[irq] or'd into the
> cpl to block further interrupts; for non-multiplexed interrupts
> intr_mask[irq] will set from one of the *_imask masks. However with
> multiplexed interrupts, only the IRQ itself (and SWI_CLOCK_MASK)
> are blocked, and the multiplex handler intr_mux() needs to raise
> the cpl further when necessary. It uses idesc->mask to control
> this.
>
> When this bug occurs, idesc->mask == 0, so the device interrupt
> handler gets called with only the IRQ and SWI_CLOCK_MASK masked,
> instead of the full *_mask that it requested. Not good.
>
> On my laptop, this bug causes hangs within minutes of starting to
> use a pccard modem, but as should be apparent from the above it
> could strike virtually anywhere that multiplexed interrupts are
> used. The patch below seems to solve the problem; it just causes
> update_masks() to unconditionally update the masks.

Submitted by: Ian Dowse
2001-08-24 17:39:12 +00:00
Bruce A. Mah 8cc35f44ff MFC: The lge(4) driver has been tested on the Alpha.
Reviewed by:	wpaul
Approved by:	re (implictly)
2001-08-24 00:31:41 +00:00
cvs2svn 6f324f98fc This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-08-23 22:42:42 +00:00
Brian Feldman 1905379198 Update the version string here, too. 2001-08-23 22:42:41 +00:00
Bruce A. Mah 7af371e976 Add SA-01:56, correct mislabeling of SA-01:55 as SA-01:54, fix up phrasing
of some other security-advisory-related items to be more consistent.

Approved by:	re (implicitly)
2001-08-23 21:23:50 +00:00
Bruce A. Mah e25a94f0cb New release notes: SA-01:56, net.inet.ip.check_interface.
Correct SA-01:55 item mislabeled as SA-01:54.
2001-08-23 21:22:30 +00:00
Andrew Gallatin 9ea30471e5 MFC: rev 1.7 -- don't succeed in opening files that do not exist
approved by: jkh
2001-08-23 20:23:56 +00:00
Dima Dorfman 2aa760e15b MFC 1.4: describe new setprogname() behavior.
Approved by:	jkh
2001-08-23 20:22:47 +00:00
Akinori MUSHA 469b87d093 MFC: Add MASTER_SITE_FREEBSD_ORG and update MASTER_SITE_RUBY example.
Approved by:	jkh
2001-08-23 20:08:51 +00:00
Bill Paul 67bc06702a MFC: the ST201's multicast hash table is 4 16-bit registers, not
2 32-bit ones. Fix ste_setmulti() to load the hash table correctly.

Approved by:	jkh
2001-08-23 20:04:06 +00:00
Jimmy Olgeni 8d7a75f0d8 Misc. changes:
* Rename cvsup-bin to cvsup (cvsup-bin does not exist anymore).
* Add the net/rsync port to the CDROM packages.
* Add the misc/compat* ports.

Approved by:	jkh
2001-08-23 19:54:11 +00:00
cvs2svn d0dbb4fe68 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-08-23 16:27:42 +00:00
Warner Losh f45e8836bc Add note about shared interrupts. 2001-08-23 16:27:41 +00:00
Warner Losh 477ff84232 Fix typo in repo damage message.
Submitted by: Vadim Ostranitsyn <[email protected]>
2001-08-23 15:39:27 +00:00
Hellmuth Michaelis 27a0dc8495 Some i4b users on usenet reported, that the ipr interface dials out but
did not send anything after a connection was established. The fix for
this was to add a missing IF_ENQUEUE which obviously got lost at the time
the ipr driver in current was backported to work also on stable.

Approved by:	jkh
2001-08-23 12:03:25 +00:00
Bruce Evans 422cc7e227 MFC (kern_shutdown.c-rev.1.103, subr_disk.c-rev.1.42: don't dump on the
label sector or below; reduced nearby overflow bugs).
2001-08-23 10:32:29 +00:00
Jim Mock 57ba0ec528 MFC rev 1.3
Approved by:	jkh
2001-08-23 10:30:47 +00:00
Warner Losh dd8872d79b MFC the interrupt routing changes suggested by Ian Dowse. And
some cosmetic changes to the tunables.

Approved by: jkh
2001-08-23 07:57:14 +00:00
Mike Barcroft aec508e455 MFC Rev 1.5:
Take maintainership of whois(1).

Approved by:	jkh
2001-08-23 07:20:13 +00:00
Yaroslav Tykhiy 997eeae009 MFC: rev 1.47: .Fl -> .Cm for "create" and "destroy" parameters.
Approved by:	jkh
2001-08-23 06:35:38 +00:00
Scott Long 82fb1eda27 MFC updated driver.
Approved by:	jkh
Obtained from:	[email protected]
2001-08-23 05:21:29 +00:00
Ian Dowse 7e2e2b6e48 MFC: 1.53; don't call ufsdirhash_move() on the unused directory
entries that fsck leaves behind.

Approved by:	jkh
2001-08-22 18:45:01 +00:00
Joerg Wunsch 13a7fd40b7 MFC: rev 1.47 and 1.48. One fixes a serious bug in the USE_MD5CRYPT
version of pw_getpass() (which is not compiled in by default), the
other one adds proper random seeding to the default version of
pw_getpass() so the generated passwords are actually random.

Approved by:	jkh
2001-08-22 17:40:54 +00:00
Bruce Evans ce6d6e2d79 MFC (1.120: fixed minor numbers when there is more than one cy card).
PR:		19256
2001-08-22 13:04:58 +00:00
Peter Wemm 5fb8335d0b Missed part of SSE MFC, add the option to the pc98 file.
This was part of the previously approved commit.

Approved by:	re (murray)
2001-08-22 06:19:24 +00:00
Mike Silbersack f92accc7a0 Much delayed but now present: RFC 1948 style sequence numbers
In order to ensure security and functionality, RFC 1948 style
initial sequence number generation has been implemented.  Barring
any major crypographic breakthroughs, this algorithm should be
unbreakable.  In addition, the problems with TIME_WAIT recycling
which affect our currently used algorithm are not present.

Reviewed by: jesper
Approved by: jkh
2001-08-22 00:59:13 +00:00
David E. O'Brien c23382d81d Add the `WARNS_WERROR' knob which makes WARNS act as in 5-CURRENT.
Approved by:	re
2001-08-21 23:04:08 +00:00
Bruce A. Mah 27191a5ddf MFC: SA-01:54 (and update for errata).
Approved by:	murray (implicitly)
2001-08-21 22:27:35 +00:00
Warner Losh bca6c65c15 Not not is not not. Change a != 0 to a == 0 to match the code that
was in current before the pcibios stripping that I did in -stable.  It
was a simple change I made after all the other testing I did :-(.

This should get people their PCI BUSes back. :-(.

Noticed by: Mike Silbersack
2001-08-21 20:13:54 +00:00
Warner Losh 46b86dff79 MFC: Include pci_cfgreg.h for prototypes. 2001-08-21 17:24:36 +00:00
Jacques Vidrine 2a2fed79dd MFC 1.3: Arguments to strrchr were reversed. Style.
Approved by:	re
2001-08-21 17:22:22 +00:00
Warner Losh 4fefadca6e MFC: Include pci_cfgreg.h for prototypes 2001-08-21 17:21:13 +00:00
Jacques Vidrine 48cfe7f424 MFC 1.2: setprogname() should set __progname to the last component of
the given path.

Approved by:	re
2001-08-21 17:00:15 +00:00
Ruslan Ermilov 0093f09b55 MFC: netid(5) manpage.
Approved by:	re
2001-08-21 16:45:16 +00:00
Ruslan Ermilov df872f6cb3 MFC: 1.10: Close the "IRC DCC" security breach.
Approved by:	re
2001-08-21 16:42:42 +00:00
Ruslan Ermilov eaef09a9a0 MFC: Generate top.local.h and manpage dynamically.
Approved by:	re
2001-08-21 16:38:44 +00:00
Warner Losh c8d8cc5e2a MFC: Fix ISA machines. Users can now specify interrupts again.
Approved by: jkh
2001-08-21 16:30:59 +00:00
Ruslan Ermilov 161f8a39f2 MFC: 1.22: Update -v documentation to match reality.
Approved by:	re
2001-08-21 16:01:47 +00:00
cvs2svn f13782789b This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-08-21 15:39:16 +00:00
Warner Losh d54ae4b7d3 I thought I'd MFC'd this constant when I MFC'd the pcibios reduction
changes...
2001-08-21 15:31:53 +00:00
Warner Losh f1cffb32cb MFC: Ian's card removal race correction and fix some people's hangs by
leaving INTRTIE and INTMODE alone.  This may cause some problems too,
and I'm working on those next.
2001-08-21 09:06:25 +00:00
Warner Losh eef5d0af40 Remove stray debug line 2001-08-21 08:50:54 +00:00
Warner Losh 5e7bc58ca6 Strip oout the PCIBIOS stuff I merged with pccard stuff for
reading/writing the PCI config space.  The BIOS routines appear to
have too many issues.  This leaves the IRQ routing in place, but adds
some sanity checking to the IRQ routing (makes sure that the PCI BIOS'
version is new enough to support it).

Implicit approval by: jkh due to being pccard related
Concept approved by: msmith and peter
2001-08-21 08:46:19 +00:00
Maxim Sobolev 5ca2fa4e43 MFC: STAILQ_LAST() macro takes 3 arguments, not 1.
Approved by:	jkh
2001-08-21 06:58:44 +00:00
Brian Somers bcfb9496c5 MFC: Adjust copyright
Approved by:	jkh
2001-08-21 03:50:25 +00:00
Gregory Neil Shapiro ac98397b58 sendmail 8.11.6 has been MFC'ed
Reviewed by:	re (jkh)
2001-08-21 01:42:40 +00:00
Gregory Neil Shapiro 9e51adb985 MFC: Import sendmail 8.11.6
Approved by:	re (jkh)
2001-08-21 01:36:37 +00:00
David E. O'Brien a2622ba4dc MFC: rev 1.631: `iso' target and support for building ISO images automatically
as part of the release if MAKE_ISOS is set.  Will also build the first CD with
packages (in addition to the "minimal" CD) if CD_EXTRA_BITS points to them.

Approved by:	jkh
2001-08-20 21:26:08 +00:00
cvs2svn caf25de219 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-08-20 21:22:34 +00:00
Bruce A. Mah 9b70f78d36 MFC: pppd(8) no longer world executable.
Approved by:	murray (implicitly)
2001-08-20 20:47:16 +00:00
Brooks Davis c926ec36f5 MFC: rev 1.67, make plumb work as documented.
Approved by:	re
2001-08-20 18:38:41 +00:00
Ruslan Ermilov 32f227e16e MFC: simplify formatting.
Approved by:	re
2001-08-20 08:31:13 +00:00
Ruslan Ermilov 6b9b1ad487 MFC: fixed markup.
Approved by:	re
2001-08-20 08:29:04 +00:00
Ruslan Ermilov 30495ab268 MFC: 1.192: Removed the (possible) ambiguity in /etc/rc.conf comment.
Approved by:	re
2001-08-20 07:10:09 +00:00
Bruce A. Mah f36ce7d37b MFC: Fix SGML glitch. 2001-08-20 05:04:28 +00:00
Bill Fenner ffb648b057 MFC rev 1.57: increase send socket buffer to 48k
Approved by:	murray
2001-08-20 03:41:47 +00:00
Dima Dorfman 3111756172 MFC 1.103: use `an' where appropriate. 2001-08-20 02:17:11 +00:00
Dima Dorfman acb23eb747 &merged; doesn't make sense here. 2001-08-19 23:37:43 +00:00
Dima Dorfman c817a3af7b MFC: apmd(8) apm_battery directive 2001-08-19 23:37:13 +00:00
Kris Kennaway 6ba2a2bf11 MFC: r1.7: don't do unsafe activities inside signal handlers.
Approved by:	re@
2001-08-19 21:16:19 +00:00
Robert Watson e98fb5f0ed Remove commented out KerberosIV pam entries for accounting and session
management, as Krb4 has nothing to say about these.  Uncommenting these
entries causes login to refuse login, which will be a problem for many
installations.  Direct commit to -STABLE as I don't have a -CURRENT
box on-hand that uses kerberos, and the kerberos build in -CURRENT is
apparently broken.

PR:
Submitted by:	markm
Reviewed by:
Approved by:	re
Obtained from:
MFC after:
2001-08-19 15:53:33 +00:00
Jason Evans 4d7446c8f8 MFC: Fix join/detach/cancel bugs.
Approved by:	murray
2001-08-19 11:45:58 +00:00
Josef Karthauser b06a574368 MFC: revision 1.29 + 1.30.
Make crunchgen crunch pre-built object files again, i.e.:

    progs prog1
    special prog1 objdir ../../prog1/obj
    special prog1 objs prog1.o

This fixes a bug that I introduced around the time of 4.2-release.

Approved by:	murray
2001-08-19 10:41:57 +00:00
Kris Kennaway b20da4ccb4 MFC: Install this mode 4550 and root:dialer, instead of 4555.
Approved by:	re
2001-08-19 03:32:43 +00:00
David E. O'Brien ecf8e650eb We should have used $26(ra) not $29 to re-initialize gp.
Submitted by:	Richard Henderson <[email protected]>
2001-08-19 00:01:16 +00:00
Mike Heffner 98268c6505 MFC: 1.15: Fix @monthly, @weekly, and @yearly shortcuts.
Approved by:	re
2001-08-18 04:20:31 +00:00
Brian Somers 99a13d3ace MFC: Update copyrights 2001-08-18 02:46:06 +00:00
Bruce A. Mah c245a230ee MFC: CDROM booting on IBM BIOSs. 2001-08-18 00:12:53 +00:00
David E. O'Brien 5ba6447509 Related to last commit, add a proper $FreeBSD$. 2001-08-17 22:55:15 +00:00
David E. O'Brien 9c802c9b6b Re-initialize gp after a jsr.
When rtld runs the .fini section in a shared lib (C++), the code in
question from .../contrib/gdb/config/alpha/crtbegin.asm first calls
__do_globals_dtors_aux and then __do_frame_takedown.  Unfortunately, the
value of gp after a jsr is undefined and in this case had changed from before
the call, probably as a result of calling code in some other shared library.
The normal calling convention for alpha is to re-initialize gp using
'ldgp gp,0(ra)' after a jsr instruction but in this case no such
re-initialization is done. This leads to a bogus value being read for the
address of __do_frame_takedown and a quick segfault.

Submitted by:	dfr
Approved by:	re
Obtained from:	GCC 3.0
2001-08-17 22:51:43 +00:00
cvs2svn 7c0da636a5 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-08-17 22:47:14 +00:00
David E. O'Brien 9d28d05ff5 MFC: use a build-tool to create the .mgc files.
Approved by:	re
2001-08-17 22:47:13 +00:00
Bruce A. Mah 9c1137ca33 Add SA-01:53 to 4.3-RELEASE errata.
Approved by:	murray (implicitly)
2001-08-17 22:06:24 +00:00
Bruce A. Mah a6fdc397df D'oh. Fix a cut-and-pasto.
Approved by:	murray (implicitly)
2001-08-17 22:05:24 +00:00
Bruce A. Mah 2c222e3608 MFC: SA-01:53.
While I'm here, tweak the markup slightly for the "portmap disabled
by default" release note item.

Approved by:	murray (implicitly)
2001-08-17 22:03:11 +00:00
Scott Long ff231f25ac MFC rev 1.11
Approved by:	re
2001-08-17 21:44:47 +00:00
Dima Dorfman 37b4945117 MFC 1.43: don't source rc.conf if it was already done. This fixes
dependencies when 'firewall_enable="YES"'.

Approved by:	murray
2001-08-17 21:03:29 +00:00
Mike Heffner 6232070805 MFC: 1.21: Fix usage message, the executable is optional.
Approved by:	re
2001-08-17 20:56:22 +00:00
Bruce A. Mah 8851b2182a MFC: an(4) support for AIR-350, rc(8) now deletes non-directory
files in /var/run and /var/spool/lock, fmtcheck(3).

Switched xargs(1) -J release note to one from -CURRENT that I thought
was a little less awkward.

Markup fix for ports:  net/pim6dd, net/pim6sd.$a
2001-08-17 20:02:18 +00:00
Bruce A. Mah a8a3c2d0f5 MFC: Mark some things with <envar> that used be done with
<literal> or <varname>.
2001-08-17 17:37:08 +00:00
Bruce A. Mah ce5f67f3bd MFC: maxusers tunable, vidcontrol(1) -h, tmpname(3) use of TMPDIR.
Approved by:	murray (implicitly)
2001-08-17 17:19:37 +00:00
Bruce A. Mah df8f388068 MFC: Update isdn4bsd entry with requirement to use ispppcontrol for
controlling kernel PPP over ISDN interfaces, s/Ukranian/Ukrainian,
sysctl(8) -N/-ao/-ax and -w deprecated, cdcontrol(1) prev/next,
col(1) -p.
2001-08-17 16:05:58 +00:00
Ruslan Ermilov 1052ca66cf MFC: 1.44: s/shot2/scr2/
Approved by:	re
2001-08-17 15:58:12 +00:00
Ruslan Ermilov fde5723264 Fixed (the RELENG_4 way) the usage() string.
PR:		bin/29730
Approved by:	re
2001-08-17 15:44:42 +00:00
Ruslan Ermilov a8510bf414 MFC: markup and misc fixes.
Approved by:	re
2001-08-17 15:43:08 +00:00
Bruce A. Mah 5b18d15e79 MFC: Mention sysutils/cdrtools as port containing cdrecord,
markup chnage for net/smbfs update.

Approved by:	murray (implicitly)
2001-08-17 15:22:03 +00:00
Bruce A. Mah 2a515f255f Typo fixes:
s/compatability/compatibility/
	s/compatable/compatible/
	s/behaviour/behavior/

Submitted by:	olgeni
Approved by:	murray (implicitly)
2001-08-17 14:54:45 +00:00
cvs2svn 357bdc2407 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-08-17 13:08:59 +00:00
Ruslan Ermilov dad90f9f58 MFC: markup and misc fixes.
Approved by:	re
2001-08-17 13:08:58 +00:00
Poul-Henning Kamp ec9d900bfd Don't make chflags mandatory, building releases on NFS should be possible.
Approved by:	murray
2001-08-17 09:34:55 +00:00
Ollivier Robert b555e867ef MFC: 1.4: change the path for robots_roll from /usr/games/lib to /var/games.
Approved by: re (Murray)
2001-08-17 08:28:04 +00:00
Hellmuth Michaelis 0cf83744f3 back out my previous commit to rc.conf restoring the original state with
respect to configuring sppp interfaces.

modify rc.network to make the change (ISDN users must not use spppcontrol
anymore but ispppcontrol to configure the isp<N> interfaces since the
MFC of i4b 1.001) in isp-interface configuration transparent to ISDN users
of the sppp-configuration mechanism in rc.conf.

Reviewed by:	sheldonh and joerg
Approved by:	murray
2001-08-17 07:26:38 +00:00
Mike Barcroft db0020d070 MFC Rev 1.66:
o Replace occurrences of strncpy(3) with strlcpy(3); most of
  the uses of it were wrong anyway.
o Always check for NULL returns on strdup(3).
o Fix a possible buffer overflow in strcpy(3).
o Fix a format string vulnerability.
o t->ty_type in stypeof() could be NULL and eventually cause
  a segmentation fault in setenv(3), so check for that.

MFC Rev 1.67:
  Fix some bogus strncpy(3) to strlcpy(3) changes I made in the previous
  revision.  <utmp.h> structures don't leave room for a NUL character.
  Also fix "UNKNOWN" which should have just been UNKNOWN.

Approved by:	murray
2001-08-17 06:25:38 +00:00
Justin T. Gibbs 102dd014ad MFC: Initialize IRQ level setting in ahc->unpause for non-PCI controllers.
Approved by:	re
2001-08-17 05:29:18 +00:00
Peter Wemm c3c4731410 MFC: forward-compatability parts of 1.18. This is for the same reason
that 1.7.2.1 was MFC'ed, except the original implementation was flawed in
-current so we had to start again.

Approved by: re (murray)
2001-08-17 02:56:31 +00:00
Robert Watson d81f9b4530 MFC of jail fixes regarding INADDR_LOOPBACK. -CURRENT commit message:
Anton kindly pointed out (and fixed) a bug in the Jail handling of the
  bind() call on IPv4 sockets:

    Currently, if one tries to bind a socket using INADDR_LOOPBACK inside a
    jail, it will fail because prison_ip() does not take this possibility
    into account.  On the other hand, when one tries to connect(), for
    example, to localhost, prison_remote_ip() will silently convert
    INADDR_LOOPBACK to the jail's IP address.  Therefore, it is desirable to
    make bind() to do this implicit conversion as well.

    Apart from this, the patch also replaces 0x7f000001 in
    prison_remote_ip() to a more correct INADDR_LOOPBACK.

Approved by:	[email protected] (Murray)
2001-08-17 01:00:26 +00:00
Warner Losh 192e0b38df MFC: 1.337: Clear out interrupt register in half-baked-probe code. 2001-08-17 00:19:17 +00:00
Brooks Davis b5e3618ec6 MFC: rev 1.10, Cisco Aironet 350 Series PCI id.
Approved by:	re
2001-08-16 23:52:23 +00:00
Bill Paul 1acace6558 MFC: last set of fixes for TX lockup problem -- don't let TX DMA queue
get too full

Approved by:	release engineer (yesterday)
2001-08-16 20:35:04 +00:00
Matt Jacob 80b463914a MFC 1.69- handle ISPASYNC_UNHANDLED_RESPONSE.
Approved by:	[email protected]
2001-08-16 20:31:52 +00:00
Ruslan Ermilov 9ab03c494d MFC: markup and misc fixes.
Approved by:	re
2001-08-16 15:56:44 +00:00
Ruslan Ermilov 54f8a95297 MFC: markup and misc fixes.
Approved by:	re
2001-08-16 13:17:16 +00:00
Ruslan Ermilov aafe879b3b MFC: markup and misc fixes.
Approved by:	re
2001-08-16 11:45:04 +00:00
Ruslan Ermilov 297810f4bd MFC: markup and misc fixes.
Approved by:	re
2001-08-16 11:35:47 +00:00
Ruslan Ermilov 3d85be69df MFC: markup and misc fixes.
Approved by:	re
2001-08-16 10:53:41 +00:00
Ruslan Ermilov 00e7498229 MFC: markup and misc fixes.
Approved by:	re
2001-08-16 10:44:22 +00:00
Ruslan Ermilov 259a82f06c MFC: markup and misc fixes.
Approved by:	re
2001-08-16 10:34:30 +00:00
Ruslan Ermilov 995ec09521 MFC: markup and misc fixes.
Approved by:	re
2001-08-16 10:25:06 +00:00
Ruslan Ermilov 36fdeb16c2 MFC: markup and misc fixes.
Approved by:	re
2001-08-16 10:14:58 +00:00
Ruslan Ermilov 48e3f6edd0 MFC: markup and misc fixes.
Approved by:	re
2001-08-16 10:08:23 +00:00
Ruslan Ermilov c1a8d8088f MFC: markup and misc fixes.
Approved by:	re
2001-08-16 10:01:11 +00:00
Sheldon Hearn 2e206548ff MFC rev 1.125: document sendmail_outbound_enable and
sendmail_outbound_flags.
2001-08-16 09:20:13 +00:00
Sheldon Hearn 99d7d41cfb MFC rev 1.10: fix AUTHORS section
Approved by:	re (blanket approval)
2001-08-16 08:42:12 +00:00
Sheldon Hearn 92482b0f86 MFC rev 1.9: use Cm macro as appropriate
Approved by:	re (blanket approval)
2001-08-16 08:29:35 +00:00
Ruslan Ermilov 60b547d159 MFC: .Ex (new macro) and .Rv (new features).
Approved by:	re
2001-08-16 06:53:08 +00:00
Dima Dorfman 7b8a8e763a MFC 1.32: fix scheme guessing.
Approved by:	des, murray
2001-08-16 02:04:00 +00:00
Robert Watson d5741ac1f5 MFC 1.302:
o Improve terminology consistency for security profile functionality:
    the name for the moderate security profile is "moderate", not
    "medium", so update this one reference to it as "medium".

Approved by:	[email protected] (murray)
2001-08-15 20:13:13 +00:00
cvs2svn cdef692bc0 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-08-15 19:35:14 +00:00
Bruce A. Mah 4fd3ab377d This is 4.4-RC now (tracking src/sys/conf/newvers.sh rev. 1.44.2.17). 2001-08-15 19:35:13 +00:00
Michael Haro df4cf6e55f MFC 1.15: Remove whitespace after %.
Approved by: re
2001-08-15 19:30:18 +00:00
cvs2svn 3122ea36c8 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-08-15 18:02:29 +00:00
Murray Stokely 461f865be0 Welcome 4.4-RC. 2001-08-15 18:02:28 +00:00
Bill Paul 602be8b561 MFC: try to call sf_txeof() to drain the TX DMA queue more often.
Approved by:	release engineer (murray)
2001-08-15 17:49:50 +00:00
Bruce A. Mah 97d9d2a46f MFC: Reduced security profiles, inetd.conf now has all entries
disabled by default, rename "Security Fixes" section to "Security-Related
Changes".
2001-08-15 17:10:12 +00:00
Nick Sayer 78df0beaf4 MFC: Now that PCI IRQ routing has come to RELENG_4, USB controllers
should no longer attempt to bomb out if their initial IRQ setting is
invalid. The PCI IRQ routing code will fix it.

Reviewed by:	imp
Approved by:	re
2001-08-15 17:03:08 +00:00
Hellmuth Michaelis 6b99ad1e79 With the recent MFC of i4b 1.00.1, spppcontrol is no longer usable to
configure isp<N> interfaces; ispppcontrol must be used instead.

To avoid misunderstandings, remove isp0 interfaces from the examples
and add a comment how to configure ISDN interfaces.

The correct way to handle this would be to add support for ispppcontrol
to /etc/rc.network but IMHO we are too close to a release so i will not
touch /etc/rc.network anymore.

Approved by:	murray
2001-08-15 08:39:54 +00:00
Warner Losh 9eb14aca91 Note isdb4bsd has been updated and new proceedures for new version. 2001-08-15 07:17:56 +00:00
Bruce A. Mah d1843c7123 MFC: SSE capabilities.
Approved by:	murray (implicitly)
2001-08-15 04:48:04 +00:00
Warner Losh 1d1212b554 MFC: PCI interrupt routing code.
Approved by: re
2001-08-15 04:04:59 +00:00
Warner Losh f73590f62b pccardd and kernel updating at the same time 2001-08-15 03:56:21 +00:00
Warner Losh a256b1438f MFC: Merge the "ask the kernel what IRQ to use" code needed for the new
pcic code.

# You really want to update both pccardd and the kernel at the same time

Approved by: re
2001-08-15 03:50:27 +00:00
Warner Losh da3fa388b6 MFC: Pull the trigger and update to using PCI interrupts and make pcic
on pci a first class device.

Approved by: re
2001-08-15 03:48:49 +00:00
Peter Wemm 0150c67f11 MFC: I almost forgot this part of the SSE MFC. 2001-08-15 02:42:27 +00:00
Peter Wemm 75c2d83136 MFC: SSE kernel support. This is only active if you compile
'options CPU_ENABLE_SSE' in the kernel.  This is a MFC of the
code in -current, plus all the followup fixes and tweaks but
adapted for the npx and compile differences in RELENG_4.
The npx_intr() change comes from the 4.3 version of the diffs
since -current uses traps vs. interrupts in npx.c.

This is a giant no-op without the kernel compile option.

Approved by:	re (murray)
2001-08-15 01:23:54 +00:00
Eric Melville 8ce5e76165 MFC: list the correct paths to the X server distributions
Approved by:	murray
2001-08-15 00:45:32 +00:00
Cameron Grant 6a35e5173a fix things so the SNDCTL_DSP_SETTRIGGER ioctl works. this fixes problems
with apps including mtv and mxaudio.

Approved by:	re
2001-08-15 00:34:59 +00:00
Warner Losh 25418b38d6 MFC: Move interrupt routines down into pcic.c from pcic_isa.c
Minor lexical differences with current.
     Minor style diffs.
     Better commentary
     Support asking IRQ 0 -> tell me what to use.
     More enums in pcic_irq_type, and make them 1 based.
     Some type diffs.
2001-08-14 23:48:29 +00:00
Warner Losh 6e1f697f58 MFC: Better type info for ivar functions.
Approved by: re
2001-08-14 23:40:05 +00:00
Warner Losh 8007a2a8ae MFC: Order bits in PCIC_INT_GET. 2001-08-14 23:37:41 +00:00
Warner Losh 6217a6d2dc MFC: Merge the PIOCSRESOURCE ioctl for mecia driver.
approved by: re
2001-08-14 23:36:18 +00:00
John Baldwin 453b34047f MFC: Hack to support CD booting on brain damaged IBM BIOSs.
Tested by:	users on -stable
Approved by:	re
2001-08-14 22:55:29 +00:00
Bruce A. Mah 35de360b50 MFC: Sync to -CURRENT.
Makefile.inc.docports	1.1->1.6

Approved by:	murray
2001-08-14 22:54:23 +00:00
Duncan Barclay c4b799f35a MFC rev 1.56 - support for Aviator Pro/Raylink access points and
infrastructure mode

Approved by:	murray
2001-08-14 22:54:07 +00:00
Eric Melville 98113375eb MFC: use normal menus instead of radio lists
Approved by:	murray
2001-08-14 22:01:14 +00:00
Bill Paul eff5fcbb06 MFC: bug fix from -current: do not mistakenly try to free the
statically allocated nobounce_dmamap map.
2001-08-14 21:58:04 +00:00
Andrew Gallatin 8fa227552b MFC: ext2fs support on alpha. I have tested it using an ext2fs fs created
by rh7.1 on alpha & it appears to work
approved by: murray
2001-08-14 18:03:19 +00:00
Andrew Gallatin 55897400bc MFC 1.33: Use alignment-safe code on non-i386 architectures.
approved by: murray
2001-08-14 17:45:36 +00:00
Christoph Herrmann 56a329d69f MFC a bugfix for test mode (growfs -N)
Reviewed by:	tomsoft
Approved by:	murray
2001-08-14 12:45:11 +00:00
Duncan Barclay 86b75c66ff Reapply the __FreeBSD_version ifdefs around pcic_set_memory_offset.
Reviewed by:	imp
Approved by:	murray
2001-08-13 22:21:35 +00:00
Nick Sayer ffac58a5b7 MFC: apmd battery monitoring capabilities
Approved by:	re
2001-08-13 17:30:30 +00:00
Hajimu UMEMOTO 3c83ff28ab MFC: removing network card, and kill aplication.
imo_membership[].inm_ifp refer interface pointer
after removing interface.
When kill aplication, release socket,and imo_membership.
imo_membership use already not exist interface pointer.
Then, kernel panic.

	sys/netinet/in.c:		1.55
	sys/netinet/in_pcb.c:		1.87
	sys/netinet/in_pcb.h:		1.39
	sys/netinet6/in6_ifattach.c:	1.7
	sys/netinet6/in6_pcb.c:		1.16
	sys/netinet6/in6_pcb.h		1.5

Approved by:	murray
2001-08-13 16:26:17 +00:00
Hellmuth Michaelis 540cd44f0d replace the i4b example kernel configuration file fragment MFC'd from
current with an example kernel configuration file for 4.x.

Approved by:    murray
2001-08-13 12:23:36 +00:00
Hellmuth Michaelis 10d1f2c41d Replace the i4b netgraph interface driver MFC'd recently from current
with the one from i4b version 0.96 which at least compiles cleanly.
Approved by:	murray
2001-08-13 12:19:22 +00:00
Jeroen Ruigrok van der Werven a41cecb5a0 Fix last CVS residue. 2001-08-13 09:11:14 +00:00
Ruslan Ermilov 5ab1b9e886 MFC: 1.24: Teach makewhatis(1) about the mdoc(7) .Xr macro.
1.25, 1.26: Skip empty troff(1) requests.

Approved by:	re
2001-08-13 09:05:58 +00:00
Yoshihiro Takahashi ba3d380f8a Merged from sys/isa/fd.c revisions 1.176.2.3 and 1.176.2.4.
Approved by:	murray
2001-08-13 05:00:54 +00:00
Yoshihiro Takahashi dbe80cf62c Merged from sys/i386/isa/isa_compat.h revision 1.27.2.8.
Approved by:	murray
2001-08-13 04:59:54 +00:00
Yaroslav Tykhiy a768905133 MFC: rev 1.11: Don't use the deprecated -w option to sysctl(8).
Approved by:	murray
2001-08-13 04:23:26 +00:00
Munechika SUMIKAWA bb67a0ef0f MFC: Do not delete 'goto ours' routes when using -c option.
Obtained from:	KAME
Approved by:	murray
2001-08-13 02:58:26 +00:00
Hidetoshi Shimokawa ae6b85eca1 MFC rev 1.8: fix unaligned access on alpha.
Approved by:	murray
2001-08-13 01:10:49 +00:00
Mike Barcroft ad56261940 MFC Rev 1.10:
o Various mdoc fixes.
o Replace strncpy examples with less confusing ones from
  OpenBSD.  These examples give more detail and also suggest
  using strlcpy(3).

MFC Rev 1.8:
mdoc(7) police: Add strncpy() to the NAME section.

MFC Rev 1.7:
mdoc(7) police: remove HISTORY info from the .Os call.

Approved by:	murray
2001-08-13 00:28:08 +00:00
Eric Melville 8f1d2ac37a MFC: handle keys consistently
Approved by:	murray
2001-08-12 22:48:02 +00:00
Robert Watson 6becea93b8 MFC of reduced security profiles due to recent modifications to
sysinstall.  Original commit message:

  o Reduce the number of offered security profiles, as we now have a more
    conservative default, and actually prompt specifically for inetd rather
    than handling it as a side effect of the security profile.  Update the
    help file to reflect this change.
  o Rename "Fascist" to "Extreme" in the source code, to match the names
    presented to the user.
  o Remove portmap and inetd from profile management.  Portmap is now
    disabled by default, but automatically turned on if a feature requires
    it (such as NFS, etc).

    Revision  Changes    Path
    1.189     +13 -74    src/usr.sbin/sysinstall/config.c
    1.315     +2 -4      src/usr.sbin/sysinstall/menus.c
    1.213     +2 -4      src/usr.sbin/sysinstall/sysinstall.h
    1.3       +8 -13     src/usr.sbin/sysinstall/help/security.hlp

Reviewed by:	[email protected], [email protected]
Approved by:	[email protected]
2001-08-12 20:59:14 +00:00
Bruce A. Mah b2d1dbc282 MFC: Removal of wd compatability devices from ata(4) driver.
Submitted by:	silby
Obtained from:	murray (implicitly)
2001-08-12 20:59:08 +00:00
Bruce A. Mah 431b571f69 MFC: ARIN -> APNIC/RIPE whois(1) queries.
Submitted by:	mike
Approved by:	murray (implicitly)
2001-08-12 20:38:22 +00:00
Jeroen Ruigrok van der Werven 80c54dd24e Fix residue after merging.
Problems noted by:	Makoto MATSUSHITA <[email protected]>
Residue also noted by:	Mark Andrews <[email protected]>
2001-08-12 18:23:34 +00:00
Hellmuth Michaelis b9d628630b Add a bmaj field initialized to -1 in i4b pseudo drivers to eleminate
"ERROR: "<device>" bmaj but is not a disk" messages at boot time.

Noticed by: Udo Schweigert <[email protected]>
Approved by: murray
2001-08-12 16:22:49 +00:00
Hellmuth Michaelis 52c846ee55 remove MAINTAINER flag from i4b in RELENG_4 too.
Approved by: murray
2001-08-12 15:58:27 +00:00
cvs2svn 4e2c43952b This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-08-12 14:29:20 +00:00
Robert Watson bd26c80bb9 MFC of procfs "kmem" cleanup. With the advent of an entirely
sysctl-driven "ps" (and friends), special-casing of kmem gid in the
procfs authorization is no longer needed.  Clean up this morally
ambiguous code.  This MFC is from fs/procfs, as procfs has been
repo-copied.  Unlike -CURRENT, linprocfs required modification as
in -STABLE, it has direct knowledge of the inter-process debugging
authorization policy.  In -CURRENT, this is abstracted behind
p_cansignal().

procfs.h: 1.36, 1.37
procfs_mem.c: 1.53
procfs_subr.c: 1.35
procfs_vnops.c: 1.100, 1.101

Reviewed by:	jedgar, tmm
Approved by:	[email protected]
2001-08-12 14:29:19 +00:00
Joerg Wunsch 4d6d195793 MFC rev 1.177 of fd.c and 1.21 of fdc.h resp.: make the Y-E Data PCMCIA
floppy controller work.  The previous code was stale and didn't even
compile at all.

As per Hellmuth's suggestion, mention in a comment in GENERIC how to
configure the kernel for that FDC.

Tested by:	hm
Approved by:	murray
2001-08-12 13:13:50 +00:00
cvs2svn 70a72dca6f This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-08-12 10:48:01 +00:00
Ian Dowse 5253cf2fbf MFC: 1.97; Limit `count' in the compatibility syscall ogetdirentries().
Approved by:	murray
2001-08-12 10:48:00 +00:00
Jeroen Ruigrok van der Werven 3d9e97922c MFC: MHAC-MD5 / nsupdate patch.
This should fix at least one problem in 8.2.4.

Approved by:	Release Engineer
Obtained from:	ISC / Mark Andrews
2001-08-12 08:31:34 +00:00
Yaroslav Tykhiy 1fca4b9e55 MFC: Don't drop a deprecated option (-w in this case)
from the manual until it's removed from the code completely.

Approved by:	murray
2001-08-12 05:02:44 +00:00
David E. O'Brien edcbf27942 MFC: update to 1.01.
Approved by:	jkh
2001-08-12 01:57:09 +00:00
Doug Barton d88ab4e40a MFC 1.53 which fixes the usage() info.
Approved by:	Murray
2001-08-11 20:51:49 +00:00
Doug Barton 766127bb56 Hopefully put the problem of dealing with read-only source trees to bed for
good by building everything (which amounts to sendmail.cf atm) in TEMPROOT.

Tested in RELENG_4 by: George Cox <[email protected]>
Approved by:	Murray
2001-08-11 20:27:52 +00:00
Doug Barton 1daefd6a46 WS only, eliminating a diff from HEAD 2001-08-11 20:22:32 +00:00
Dima Dorfman 4940f0b575 MFC: I4B 1.0.1. 2001-08-11 17:54:45 +00:00
Bruce A. Mah c9b1265ead MFC: fsck_msdos(8), kldconfig(8), moused(8) -a, syslogd(8) -w is now -W.
While I'm here, move a misplaced item regarding ppp(8) from the kernel
section to userland,

Approved by:	murray (implicitly)
2001-08-11 03:15:11 +00:00
Warner Losh bed9b635c2 Note wd compat device removal as of May 31, 2001.
Forgotten by: imp
Pointed out by: Mike Silbersack <[email protected]>
2001-08-11 03:08:18 +00:00
Mike Barcroft 5a98068b38 MFC:
Constify, staticize, and set WARNS=2.

Approved by:	murray
2001-08-11 03:03:19 +00:00
Kazutaka YOKOTA 6fdf801db7 MFC: fix missing splx().
Approved by: murray
2001-08-11 02:58:44 +00:00
Bruce A. Mah ab6c542705 MFC: nmdm(4).
Approved by:	murray (implicitly)
2001-08-11 02:50:46 +00:00
Warner Losh 05062f0298 Strongly recommend using mergemaster and give some indication of what
problems can happen if you don't.
2001-08-11 02:07:17 +00:00
Peter Wemm bc6c2fc8ac MFC: rev 1.101: filehandle checks
Approved by: re
2001-08-11 01:52:31 +00:00
Mark Peek 079cd2ce64 MFC: Add nullmodem terminal driver.
Submitted by:   Doug Ambrisko <[email protected]> (-stable diffs)
Approved by:    murray, julian
2001-08-11 00:54:15 +00:00
cvs2svn 587bea3590 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-08-11 00:18:16 +00:00
David E. O'Brien 94f2f2675b MFC: update to 1.01.
Approved by:	jkh
2001-08-10 23:28:43 +00:00
David E. O'Brien 7595b9250e MFC: mdoc police.
Approved by:	jkh
2001-08-10 23:25:18 +00:00
David E. O'Brien 0e3f728c71 MFC: style cleanup
Approved by:	jkh
2001-08-10 23:19:29 +00:00
David E. O'Brien 14f7a7470e MFC: After being port- and addressscanned continously from several sources
where my line stayed open for more than eight hours i decided to implement a
maximum connection time; see keyword maxconnecttime in the manual page.
2001-08-10 23:17:32 +00:00
David E. O'Brien 09a15e626a MFC: fix hang up bug
Approved by:	jkh
2001-08-10 23:15:09 +00:00
David E. O'Brien e288b93f60 MFC: mdoc police
Approved by:	jkh
2001-08-10 23:12:37 +00:00
David E. O'Brien caa6b0aa45 MFC: rev 1.8 -- fix hangup bug
Approved by:	jkh
2001-08-10 23:11:14 +00:00
David E. O'Brien 61c4adcd83 MFC: update to 1.01.
Approved by:	jkh
2001-08-10 22:50:51 +00:00
David E. O'Brien 3062b1008c MFC: update to 1.01.
Approved by:	jkh
2001-08-10 22:45:17 +00:00
David E. O'Brien 1a3d4c5595 MFC: revision 1.225
"List new directories created under share/examples/isdn/* in order to
unbreak installworld."  (and it is true her too)

Approved by:	jkh
2001-08-10 22:43:54 +00:00
Mark Peek d56fd4cd6c MFC: sync up with current
- remove trailing whitespace
     - fix text symbol alignment bug

Approved by:	murray
2001-08-10 22:06:18 +00:00
Bruce A. Mah 77d875e894 MFC: Reorg of FreeBSD README document. 2001-08-10 21:16:38 +00:00
Brian Somers cdd72d619f MFC: Don't align struct uniqtag
Approved by: murray
2001-08-10 21:00:35 +00:00
Dima Dorfman 9f46add505 MFC 1.79: fix pastos 2001-08-10 17:43:58 +00:00
David E. O'Brien b835765fbb MFC: i4b version 1.01.
Approved by:	jkh
2001-08-10 17:16:35 +00:00
David E. O'Brien 90be0e5abb MFC: version 1.01.
Approved by:	jkh
2001-08-10 15:01:22 +00:00
David E. O'Brien e7c7ffd23e MFC: version 1.01
Approved by:	jkh
2001-08-10 14:59:48 +00:00
David E. O'Brien 74d65eb63a MFC: version 1.01.
Approved by:	JKH
2001-08-10 14:08:43 +00:00
Joerg Wunsch 0cfe2121e0 MFC: rev 1.213 of fd.c, 1.24 of fdc.h: bandaid against infinitely
retrying DMS overrun errors.

Approved by:	murray
2001-08-10 10:17:05 +00:00
Ruslan Ermilov 65024848ca MFC all recent bugfixes and features.
This also includes Assar's "K&R support removal" and "fixage of
almost all warnings".

Approved by:	re

Following is the list of original changes in chronological order.

> ru          2001/06/08 08:44:18 PDT
>
>   Modified files:
>     usr.bin/netstat      route.c
>   Log:
>   Always print at least 2 bytes for IN_CLASSB_NET networks.
>   Always print at least 3 bytes for IN_CLASSC_NET networks.
>
>   The standard 193.0.0 class C network for example, will now
>   be displayed as "193.0.0" as opposed to the confusing 193.
>
>   PR:		bin/21546
>   MFC after:	1 week
>
>   Revision  Changes    Path
>   1.49      +30 -11    src/usr.bin/netstat/route.c

> ru          2001/06/12 07:00:40 PDT
>
>   Modified files:
>     usr.bin/netstat      atalk.c
>   Log:
>   Fixed printing of netatalk statistics WRT the -s flag.
>
>   PR:		bin/6994
>   Submitted by:	Zahemszky Gabor <[email protected]>
>   MFC after:	1 week
>
>   Revision  Changes    Path
>   1.14      +3 -3      src/usr.bin/netstat/atalk.c

> ru          2001/06/14 07:15:44 PDT
>
>   Modified files:
>     usr.bin/netstat      main.c
>   Log:
>   Really delete the -h option.
>
>   CSRG revision 5.33 deleted -h option from getopt(), but not
>   from usage().  Revision 8.3 restored it in getopt().
>
>   Revision  Changes    Path
>   1.41      +3 -3      src/usr.bin/netstat/main.c

> ru          2001/06/14 07:21:12 PDT
>
>   Modified files:
>     usr.bin/netstat      netstat.1
>   Log:
>   Removed -h option.
>
>   Revision  Changes    Path
>   1.30      +2 -6      src/usr.bin/netstat/netstat.1

> ru          2001/06/14 08:45:10 PDT
>
>   Modified files:
>     usr.bin/netstat      main.c mbuf.c netstat.1 netstat.h
>   Log:
>   Restore -M -N support for -m.
>
>   PR:		20808
>
>   Revision  Changes    Path
>   1.42      +20 -4     src/usr.bin/netstat/main.c
>   1.21      +46 -29    src/usr.bin/netstat/mbuf.c
>   1.31      +6 -2      src/usr.bin/netstat/netstat.1
>   1.22      +2 -2      src/usr.bin/netstat/netstat.h

> ru          2001/06/15 11:25:42 PDT
>
>   Modified files:
>     usr.bin/netstat      if.c main.c netstat.1 netstat.h
>   Log:
>   First round of netstat(1) cleanup.
>
>   Removed the ambiguity in -s, -f, -p and -i flags handling.
>   Basically, there are four displays (except others):
>
>   1.  PCB display.
>   2.  Protocol statistics display. (-s)
>   3.  Interface statistics display. (-i)
>   4.  Per-interface protocol statistics display. (-i -s)
>
>   All of the above except 3) can be limited to a particular
>   protocol family (-f) or a single protocol (-p).
>
>   Some examples:
>
>   1.  netstat -f inet    -- show PCBs of all INET protocols
>   2.  netstat -p udp     -- show PCB of UDP protocol only (NEW!)
>   3.  netstat -s         -- show protocol statistics for all families
>   4.  netstat -s -f inet -- show INET protocols statistics
>   5.  netstat -s -p icmp -- show ICMP protocol statistics
>
>   This is a work in progress.  Manpage has been fixed slightly,
>   but is still incomplete.
>
>   Revision  Changes    Path
>   1.42      +2 -2      src/usr.bin/netstat/if.c
>   1.45      +22 -27    src/usr.bin/netstat/main.c
>   1.33      +31 -38    src/usr.bin/netstat/netstat.1
>   1.25      +1 -2      src/usr.bin/netstat/netstat.h

> imp         2001/06/15 13:47:01 PDT
>
>   Modified files:
>     usr.bin/netstat      atalk.c
>   Log:
>   Print symbolic names for appletalk ports.  Also some very minor style 9 issues.
>
>   PR: bin/4157
>   Submitted by: Denny Gentry <[email protected]>
>
>   Revision  Changes    Path
>   1.16      +16 -3     src/usr.bin/netstat/atalk.c

> ru          2001/06/23 02:18:57 PDT
>
>   Modified files:
>     usr.bin/netstat      netstat.1 route.c
>   Log:
>   Honor -s -s (don't show zero stats) with -r, untangle SYNOPSIS further.
>   (usage() still is not synchronized with SYNOPSIS, intentionally.)
>
>   Revision  Changes    Path
>   1.34      +16 -3     src/usr.bin/netstat/netstat.1
>   1.59      +11 -11    src/usr.bin/netstat/route.c

> ru          2001/06/29 01:37:13 PDT
>
>   Modified files:
>     usr.bin/netstat      route.c
>   Log:
>   Fixed bogon in revision 1.37.  Don't bogusly print a radix node's
>   duped key marker (``=>'') for routes with non-positive rmx_expire
>   metric, such as ethernet interface routes.
>
>   MFC after:	1 week
>
>   Revision  Changes    Path
>   1.60      +4 -9      src/usr.bin/netstat/route.c

> ru          2001/06/29 02:08:25 PDT
>
>   Modified files:
>     usr.bin/netstat      main.c netstat.h route.c
>   Log:
>   Make `rttrash' variable (#routes not in table but not freed) visible
>   through ``netstat -rs''.
>
>   Revision  Changes    Path
>   1.52      +4 -2      src/usr.bin/netstat/main.c
>   1.31      +2 -2      src/usr.bin/netstat/netstat.h
>   1.61      +14 -4     src/usr.bin/netstat/route.c
2001-08-10 09:07:09 +00:00
Robert Watson 1734480094 MFC: Support for configuring inetd(8)/inetd.conf(5) in sysinstall,
ability to edit ttys(5) in sysinstall.

   anonFTP.c: 1.31
   config.c: 1.184, 1.185, 1.186, 1.188
   dispatch.c: 1.39
   install.c: 1.301
   menus.c: 1.311 - 1.313
   sysinstall.h: 1.210 - 1.212

Approved by:    re
2001-08-10 02:40:48 +00:00
David Malone a8907c327b MFC: Remove duplicate ufsd entry.
Approved by:	re
2001-08-09 18:46:39 +00:00
David E. O'Brien eedbc10782 Effectively back out the MFC of rev 1.27. I accidently MFCed it.
Approved by:	re
Requested by:	kris
2001-08-09 01:25:51 +00:00
David E. O'Brien 4088aa1abc Fix LINT compiling for the I4B subsystem.
Approved by:	jkh
Submmitted by:	hm
2001-08-09 01:12:49 +00:00
Mike Heffner a15202000e MFC:
1.5       +5 -3      src/include/glob.h
  1.17      +17 -18    src/lib/libc/gen/glob.3
  1.18      +3 -2      src/lib/libc/gen/glob.3
  1.19      +2 -2      src/lib/libc/gen/glob.3
  1.18      +9 -5      src/lib/libc/gen/glob.c
  1.79      +2 -2      src/libexec/ftpd/ftpd.c
  1.21      +2 -2      src/libexec/ftpd/popen.c

To be more compatible with NetBSD/OpenBSD, rename the GLOB_MAXPATH
flag to GLOB_LIMIT and use GLOB_NOSPACE with errno=0, instead of
GLOB_LIMIT, when we reach the maximum number of matches.

Approved by:	re
2001-08-09 00:53:18 +00:00
Bruce A. Mah 63707023b5 MFC: Collapse README document to a single SGML source file. 2001-08-09 00:42:30 +00:00
Bruce A. Mah 2071c9e8a5 MFC: Fix up hyperlinks to parts of the Handbook, remove an out-of-place
warning.

Approved by:	murray (implicitly)
2001-08-09 00:06:40 +00:00
Eric Melville 1ee43caadb Fix cvs tag. 2001-08-08 23:00:39 +00:00
Bruce A. Mah fb9535cd18 MFC: Update location of list of contributors.
Approved by:	murray (implicitly)
2001-08-08 22:54:43 +00:00
Eric Melville 322c78a3bc MFC: fix menu text
Approved by:	murray
2001-08-08 22:50:59 +00:00
David E. O'Brien 43d9553843 Use the MI kern.msgbuf, rather than i386-specific machdep.msgbuf.
Approved by:	re
2001-08-08 22:32:15 +00:00
David E. O'Brien 17eb935aac MFC: rev 1.71: make the code to read the kernel message buffer via sysctl
machine-independent and called kern.msgbuf{,_clear}.

Approved by:	re
2001-08-08 22:31:16 +00:00
Kris Kennaway 64e6f84a70 MFC: r1.24: don't dump core on '-I' 2001-08-08 21:36:35 +00:00
Sheldon Hearn 6d0b3646e3 MFC rev 1.14: document /var/run/dmesg.boot 2001-08-08 21:04:31 +00:00
Sheldon Hearn a4feaf5a29 MFC rev 1.3: fix grammar in BUGS section 2001-08-08 21:03:07 +00:00
Bruce A. Mah 36d9353086 MFC: Refer to SA-01:52 where appropriate, move release notes item
to reflect order of security advisories (while I'm here, fix a typo).

Update 4.3-RELEASE errata.
2001-08-08 19:55:42 +00:00
Scott Long 627fec2395 MFC bugfixes from Aug 4.
Approved by:	re
2001-08-08 19:41:46 +00:00
David Malone 6ae6bc01df Parse the rootdev unit number as base 10 not base 11.
Reviewed by:	msmith
Approved by:	jkh
2001-08-08 19:26:34 +00:00
Guy Helmer 956402dcaa MFC rev 1.74
Make sure UDP sockets are explicitly bound before connect(2) to avoid
UDP datagrams being sent from an IP address other than the jail's IP
address.

PR:		20946
Approved by:	murray
2001-08-08 18:59:54 +00:00
Sheldon Hearn 132a97a058 MFC: can not -> cannot
Approved by:	re (blanket approval)
2001-08-08 18:35:13 +00:00
Sheldon Hearn df159bdf1b MFC rev 1.17: grammar++ 2001-08-08 18:23:28 +00:00
Maxim Sobolev 5fefcc0b4c MFC: Update/improve Ukrainian translation. 2001-08-08 16:45:56 +00:00
David E. O'Brien e872c1b643 MFC: install MIME magic and the precompiled versions of all magic files; also
clean up some.

Approved by:	jkh
2001-08-08 16:20:56 +00:00
Bill Fenner 03f427092f MFC 1.97: be robust to zero-length mbufs and print interface name when
TUNDEBUG()ing about dropping an mbuf.

Approved by:	jkh
2001-08-08 13:07:00 +00:00
Ruslan Ermilov 7acf2e705f MFC: 1.19: fixed typo. 2001-08-08 11:58:27 +00:00
Kris Kennaway 655e2a6430 MFC: 1.22: recognise @option directives
Approved by:	re
2001-08-08 11:11:07 +00:00
Ruslan Ermilov 986611e247 MFC: 1.7: fixed typo. 2001-08-08 08:41:45 +00:00
Ruslan Ermilov 0d8ec8d4df MFC: 1.12: Pass the correct destination address for the route-to-gateway case.
Approved by:	re
2001-08-08 08:20:35 +00:00
Ruslan Ermilov b2f696ef0b MFC: 1.85: Fixed routing table memory leak in in_losing().
Approved by:	re
2001-08-08 08:16:41 +00:00
Ruslan Ermilov 118f045a4a MFC: 1.15: Use new backup feature of install(1).
Approved by:	re
2001-08-08 07:44:29 +00:00
Ruslan Ermilov 3adfc9a7f7 MFC: 1.4: synch with new install(1).
Approved by:	re
2001-08-08 07:42:21 +00:00
Peter Pentchev aa03877c90 MFC the 'account' and 'password' module definitions for the 'sshd'
service - OpenSSH invokes at least 'password' when changing an
expired password at first login after the expiration.

Submitted by:	Artur Meski <[email protected]> (the problem)
Reviewed by:	markm
Approved by:	murray
2001-08-08 07:34:09 +00:00
Eric Melville ddddfd8443 MFC: remove unused library and add dialog_noyes
Approved by:	murray
2001-08-07 23:42:33 +00:00
Wilko Bulte b327c60a89 Document removal of some hardware support from the alpha installation kernel.
Reflects the following commit:

obrien      2001/08/04 15:20:53 PDT

  Modified files:        (Branch: RELENG_4)
    release/scripts      dokern.sh
  Log:
  Cut more from the Alpha kernel in order to build the install floppies:
        DEC_3000_300, DEC_3000_500, ncr, sa, amr, plip, le, pcn, wx, sl.

  Revision   Changes    Path
  1.23.2.15  +17 -2     src/release/scripts/Attic/dokern.sh

Approved by:	re
2001-08-07 20:38:48 +00:00
Dima Dorfman 212b8397f5 MFC: document -d
Approved by:	murray
2001-08-07 19:08:01 +00:00
Brian Somers 5c3750238a MFC: Fix a bug where receiving a signal while blocked in NgRecvData() (the
common case) results in pppoed returning to the blocked state.

     Add a -l flag to specify the ppp label to use when no -p flag is
     given.
2001-08-07 16:22:47 +00:00
Brian Somers 9818abe048 MFC: Enable ppp's chap81 encryption (mschapv2) to work with Windows98
and WindowsME.
2001-08-07 16:18:39 +00:00
Yoshihiro Takahashi 9e877ce724 Merged from the following changes.
sys/dev/syscons/syscons.c revision 1.336.2.10
sys/isa/syscons_isa.c     revision 1.11.2.2
sys/isa/atkbd_isa.c       revision 1.7.2.3

Approved by:	murray
2001-08-07 09:41:05 +00:00
Mark Murray 9dd71ad791 MFC: move the environment settin to a place where it can actually
take effect; ie when the session is open.

OK'ed by:	re
2001-08-07 09:28:52 +00:00
Hajimu UMEMOTO e818bb142a This is force commit to record approval.
Approved by:	jkh
2001-08-06 20:26:22 +00:00
Hajimu UMEMOTO 328fa94fc8 MFC 1.15: When global anycast address was assigned to lo0, wrong source
address was selected.
2001-08-06 19:46:54 +00:00
Dima Dorfman 3c6fae22c8 MFC: groff 1.17.2 2001-08-06 17:18:26 +00:00
Ruslan Ermilov 3510fb1526 Enter 4.4-FreeBSD. 2001-08-06 17:05:49 +00:00
Ruslan Ermilov 00b816f92a MFC: Upgrade to Groff 1.17.2.
Approved by:	re
2001-08-06 17:02:13 +00:00
Joerg Wunsch 7a4c6a5f55 Fix the breakage of pcvt(4) that was introduced with rev 1.9.2.2 of
src/sys/dev/kbd/kbdreg.h; we need to include sys/kbio.h to get
NUM_KEYS defined.

Approved by:	murray
2001-08-06 15:30:21 +00:00
Warner Losh a29e18cb6d MFC: Power off again and preserve some bits in PCIC_INT_GEN
also, minor #define shuffle.

Approved in principle by: jkh
2001-08-06 14:47:45 +00:00
Justin T. Gibbs 470f183fb4 MFC: Don't ack SDPTR messages twice on Ultra2 chips. Better PCI 2.1
retry bug workaround.

Approved by:	[email protected]
2001-08-06 13:44:33 +00:00
Sheldon Hearn 3840ba026f MFC rev 1.17: soften a warning 2001-08-06 07:42:11 +00:00
Dima Dorfman 50cfeb8cc3 MFC: BIND 8.2.4 2001-08-06 05:25:26 +00:00
Jeroen Ruigrok van der Werven f4bfd1020c Add missing identifier for Epson Perfection 1240U.
This now enables this model to be attached by uscanner.
Works great under SANE too.

Approved by:	Release Engineer
2001-08-05 20:08:26 +00:00
Jeroen Ruigrok van der Werven ea36803a6a Fix conflicts after MFC of BIND 8.2.4. 2001-08-05 16:02:30 +00:00
Ian Dowse 6909f61c31 MFC: 1.172; fix client-side memory leak in nfs_flush().
Approved by:	murray
2001-08-05 00:23:58 +00:00
David E. O'Brien b1d376e2ff Cut more from the Alpha kernel in order to build the install floppies:
DEC_3000_300, DEC_3000_500, ncr, sa, amr, plip, le, pcn, wx, sl.
2001-08-04 22:20:52 +00:00
David E. O'Brien e953a3b2de MFC: rev 1.49 (partial)
+ Build with `lint' defined to cut out some of the `rcsid's (binaries' code
  only, the libs will still have the `rcsid's in them).
+ The Alpha install does not support SLIP, PCCARD or USB installs; so we do
  not need the associated userland utils.
2001-08-04 18:22:08 +00:00
David E. O'Brien 93ac63bcb4 Sync ordering with -current so I can more easily find things to cut out. 2001-08-04 18:09:37 +00:00
David E. O'Brien d5d515bafd Sort the Alpha section the same way as -current so I can more easily find
new things to cut out.
2001-08-04 17:53:57 +00:00
Robert Watson 16fcacaeec MFC of inetd.conf 1.49:
Default to disabling all inetd.conf entries, in particular, telnetd
  and ftpd.  This more conservative default reduces the exposure of
  freshly installed machines, which is especially valuable for machines
  that receive minimal further configuration before being put into
  production.  Generally speaking, SSH has superseded the use of both
  telnet and ftp in many environments.  In light of recent remotely
  exploitable security holes in both telnetd and ftpd, this choice
  retains flexibility (both telnetd and ftpd daemons remain installed
  and easily enableable) while protecting users who don't need the
  additional risk.  This change brings our configuration into line with
  the majority of other UNIX vendors, including OpenBSD and NetBSD.

  To address the concerns of those requiring remote access via telnet
  from first install, changes will shortly be committed to sysinstall
  to provide the ability to edit inetd.conf during the installation
  process, allowing telnetd and ftp to be re-enabled during the
  installation process.

  While I'm at it, slightly improve commenting for inetd.conf so that
  it's more clear to users how to enable and disable services.
  Further commenting to indicate the functions of various columns would
  probably also be useful.

Reviewed by:    imp, chris, jake, nate, -arch, -stable
Approved:	jkh
2001-08-04 16:06:44 +00:00
Robert Watson 371888c540 Whitespace and style(9) diff reduction with -CURRENT.
Approved by:	jkh
2001-08-04 13:12:24 +00:00
David E. O'Brien a5c725df8b `kgzip' the loader in the x86 case. (too bad kgzip won't build on the Alpha)
PR:		29272
Submitted by:	Adrian Steinmann <[email protected]>
Approved by:	liberal interpretation of JHK's "Feh, we're still out of
		space.   Any ideas of what else to trim?" email.
2001-08-04 05:45:52 +00:00
David E. O'Brien 57b00865a1 MFC: rev 1.576: remove /boot/boot[12] from the MFS installation floppies.
This saves us 8KB.

Approved by:	liberal interpretation of JHK's "Any ideas of what else to
                trim?" email.
2001-08-04 01:51:22 +00:00
Mike Heffner 43e5d61a07 MFC: 1.2: Document the -p option. Left out of previous MFC.
Approved by:	jkh
Noticed by:	obrien
2001-08-04 01:27:00 +00:00
Gregory Neil Shapiro e190796daf MFC: 1.33: Perform a major cleanup of the usr.sbin Makefiles.
MFC: 1.34: Convert to using the same method of detecting the secure directory
           as other usr.sbin programs.

Approved by:	jkh
2001-08-03 20:51:50 +00:00
David E. O'Brien d5bf7a2a80 MFC: rev 1.4: introduce things with a `.file' directive before trying to
do a .loc on it.  BTW, the .loc needs to be in a .text section.

Approved by:	re
2001-08-03 18:01:29 +00:00
David E. O'Brien d7f8779e8a MFC: rev 1.5 introduce things with a `.file' directive before trying to
do a .loc on it.  BTW, the .loc needs to be in a .text section.

Approved by:	re
2001-08-03 17:36:03 +00:00
George C A Reid f04a640d50 MFC: Get the control registers the right way round
Approved by:	jkh
2001-08-03 12:40:13 +00:00
Dima Dorfman 89377f2381 MFC: file 3.36. 2001-08-03 12:31:57 +00:00
Sheldon Hearn 88015aaabb MFC rev 1.3: fix command line option descriptions 2001-08-03 11:32:24 +00:00
David E. O'Brien c03a54f83a MFC: rev 1.10: one needs to introduce things with a `.file' directive before
trying to do a .loc on it.  BTW, the .loc needs to be in a .text section.
2001-08-03 07:16:07 +00:00
David E. O'Brien 3d6407a512 MFC: rev 1.3: one needs to introduce things with a `.file' directive before
trying to do a .loc on it.  BTW, the .loc needs to be in a .text section.

Approved by:	re
2001-08-03 07:14:52 +00:00
Archie Cobbs 1ee5148415 MFC: new netgraph node type for Ethernet bridging.
(Somehow this MFC was forgotten for a long time.)
2001-08-03 00:47:27 +00:00
David E. O'Brien ca4012788e Update to version 3.36.
This includes knowledge of the lh6 & lh7 "LHA" compression archive formats.
There are also many improvements in supporting other formats such as
Microsoft cabinet file (which is another popular archived format on
Windows), some audio/video file formats including WAV, ASF and so on.

Approved by:	jkh
2001-08-02 22:51:38 +00:00
David E. O'Brien 9cac451104 Update to version 3.36.
Approved by:	jkh
2001-08-02 22:49:29 +00:00
Assar Westerlund 0b7be7c527 MFC 1.47: Build standard directory for kerberos 5 (Heimdal) database.
Approved by:	jkh
2001-08-02 22:36:34 +00:00
Assar Westerlund 66db65712e MFC 1.4: Complete prototype for fts_compar.
Approved by:	jkh
2001-08-02 22:34:17 +00:00
Warner Losh 7b6c6fb635 Back out previous change. It appears to be premature 2001-08-02 18:51:38 +00:00
George C A Reid ac55929289 MFC: FORCE_PKG_RESIDENT -> FORCE_PKG_REGISTER
Approved by:	jkh
2001-08-02 18:25:35 +00:00
Matt Jacob 5e837d9ef9 MFC 1.10: strongly recommend that ispfw be used.
Approved by:	jkh
2001-08-02 16:57:30 +00:00
Chris Costello 62692fd80e MFC: Add vfs_unmountall(9) man page.
Approved by:	jkh
2001-08-02 15:55:22 +00:00
Cameron Grant 19e28b1e58 release resources on detach
Submitted by:	"Christopher N . Harrell" <[email protected]>
Approved by:	jkh
2001-08-02 14:55:19 +00:00
Cameron Grant 4bc365fda7 fix memory leak on unload
Approved by:	jkh
2001-08-02 14:50:59 +00:00
Dima Dorfman 930db9d234 This is 4.4-PRERELEASE. 2001-08-02 12:10:21 +00:00
Dima Dorfman 8ce858d0ed MFC: binutils 2.11.2 2001-08-02 12:08:18 +00:00
Matt Jacob 8097356add MFC 1.71: Oops- don't set 'goal' twice when you mean to set 'nvrm' as well.
This breaks bogus NVRAM boards.
2001-08-02 05:22:59 +00:00
Kris Kennaway 6f95f581b2 Remove the setting of -Werror. The only consequence of setting -Werror
by default when WARNS is enabled (the previous case) is a broken -stable
build due to compiler/header/code differences between -current and -stable.

Approved by:	jkh
2001-08-02 05:12:19 +00:00
David E. O'Brien acdac90a5a MFC: WARNS=2 2001-08-02 02:25:58 +00:00
David E. O'Brien 77f2b97a80 MFC:
whois.c  rev 1.19-1.23 (reduce duplicated code, quiet warnings, implement
                        recursive IP address searches based results of query
						to ARIN)
whois.1  rev 1.19-1.20 (grammar cleanup, implement recursive IP address
                        searches based results of query to ARIN)
Makefile rev 1.4       (WARNS=2)
2001-08-02 02:21:24 +00:00
David E. O'Brien c1f939f958 MFC: as many compiler warning quieting bits as I could stomach 2001-08-02 02:17:16 +00:00
David E. O'Brien 310f736f4e MFC: WARNS=2 2001-08-02 01:49:44 +00:00
David E. O'Brien 73d4ea27b2 MFC: Prevent chpass(1) from writing -1 in the UID or GID fields
in the password file by properly casting integers.
2001-08-02 01:48:22 +00:00
David E. O'Brien ada7f0cfc6 MFC: rev 1.20 (remove namespace pollution) 2001-08-02 01:47:19 +00:00
David E. O'Brien 99e6a3ec32 MFC:
o Integrate security enhancements from OpenBSD.
o Integrate standards compliance from NetBSD.
o Remove some FreeBSD specific access(2) cruft
o Document the fact that two or more instances of nohup can append to the
same file.
o Constify; Staticize functions; Set WARNS?=2
2001-08-02 01:45:45 +00:00
David E. O'Brien a9013e3bea MFC: rev 1.39 (syslogd(8) requires logs files to be created before it
will logging to them)
2001-08-02 01:44:09 +00:00
David E. O'Brien 435ae4c004 MFC: rev 1.6 (emalloc -> calloc) 2001-08-02 01:34:19 +00:00
David E. O'Brien be6a471d72 MFC: WARNS=2 2001-08-02 01:33:29 +00:00
David E. O'Brien f7b485bc40 MFC: rev 1.17 (yyerror() is a printflike function) 2001-08-02 01:32:17 +00:00
David E. O'Brien 8a90b6824e MFC: rev 1.12 (replace xmalloc with realloc) 2001-08-02 01:27:12 +00:00
David E. O'Brien a1df29bc35 MFC: sync style to -current 2001-08-02 01:21:20 +00:00
David E. O'Brien 546f438ffb MFC: reduce diff to -current 2001-08-02 01:18:09 +00:00
David E. O'Brien 6e00e8900c MFC: WARNS=2 2001-08-02 01:15:51 +00:00
David E. O'Brien 720c8683f3 MFC: sync with -current 2001-08-02 01:14:24 +00:00
David E. O'Brien 1db423b603 MFC: rev 1.4 /usr/libexec/cpp -> /usr/bin/cpp 2001-08-02 01:12:55 +00:00
David E. O'Brien efeee5460a MFC: Mention _POSIX_SOURCE feature test macro in man page. 2001-08-02 01:11:13 +00:00
David E. O'Brien 36d307538e MFC: build+install docs too. 2001-08-02 01:09:06 +00:00
David E. O'Brien 1dd2da71f8 MFC: WARNS=2 2001-08-02 01:07:27 +00:00
David E. O'Brien f04e687fd9 MFC: update to Binutils 2.11.2. 2001-08-02 01:01:05 +00:00
David E. O'Brien aa2685f01e MFC: WARNS=2 2001-08-02 00:59:28 +00:00
David E. O'Brien 5726702241 MFC: warns=2 2001-08-02 00:56:44 +00:00
David E. O'Brien 02082ddacf MFC: expland `mymalloc' with malloc + error checking 2001-08-02 00:55:58 +00:00
David E. O'Brien fdb2806a64 MFC: bump buffer to 80. 2001-08-02 00:53:26 +00:00
David E. O'Brien 45b1e40052 MFC: Replace the local rname' with the cannonical basename'. 2001-08-02 00:51:00 +00:00
David E. O'Brien 361978bb4a Quiet one warning, but this isn't ready for WARNS=2 yet. 2001-08-01 23:54:27 +00:00
David E. O'Brien 36eb04f58b MFC: warns=2 2001-08-01 23:51:34 +00:00
Warner Losh bad61f5d9d MFC: get the IRQ from the kernel. 2001-08-01 23:32:32 +00:00
David E. O'Brien a91578e6c6 Actually just fully sync this with -current. The new version is much
more robust and should be in 4.x.
2001-08-01 23:28:04 +00:00
David E. O'Brien 43dc799fe8 MFC: WARNS=2 2001-08-01 23:26:27 +00:00
David E. O'Brien a7abd39878 MFC: rev 1.9 (s/adress/address/) 2001-08-01 23:14:00 +00:00
David E. O'Brien 7c240d9df7 MFC: rev 1.19 (sprintf -> snprintf) 2001-08-01 23:13:18 +00:00
David E. O'Brien 10c07fa77d MFC: WARNS=2 2001-08-01 23:09:18 +00:00
David E. O'Brien a351d4440c MFC: update to version 0.95.04 2001-08-01 23:07:06 +00:00
David E. O'Brien 42dcfa6b04 MFC: update to Binutils 2.11.2. 2001-08-01 23:03:20 +00:00
David E. O'Brien 7a9ec8b322 MFC: update to Binutils 2.11.2. 2001-08-01 22:54:12 +00:00
Matt Jacob 1742e6cfa5 MFC 1.5- we can build cdboot now. We'll not Attic-ize the old cdboot 4.0
image until we're sure this is all shaken out.

Approved by:	jkh
2001-08-01 20:52:58 +00:00
Matt Jacob 3685ad224b MFC 1.10,1.11: Don't call prom_open() multiple times. 2001-08-01 20:52:03 +00:00
Matt Jacob 4169987839 MFC 1.6: fix cd9660 to work on files > than ISO_DEFAULT_BLOCK_SIZE.
Approved by:	jkh
2001-08-01 20:50:36 +00:00
David E. O'Brien ec831ea51e MFC: rev 1.6 (small adjustment to whitespace in output) 2001-08-01 20:41:28 +00:00
David E. O'Brien ebf7fcfae0 MFC: minor reformating 2001-08-01 20:39:22 +00:00
David E. O'Brien 814f55009c MFC: rev 1.5 (small adjustment to whitespace in output) 2001-08-01 20:38:39 +00:00
David E. O'Brien 3e8ac05579 MFC: sync comments with -current. 2001-08-01 20:37:03 +00:00
David E. O'Brien 3abd426acc MFC: sync with -current 2001-08-01 20:34:38 +00:00
David E. O'Brien 5d2b6c05cb MFC: rev 1.9 (AlphaServer 8200 and 8400 ("TurboLaser") console) 2001-08-01 20:31:19 +00:00
David E. O'Brien dfec64e09a MFC: sync with current's OSF/1 changes 2001-08-01 20:30:41 +00:00
David E. O'Brien 550a632a04 MFC: fix a typo, and sync the /usr/ports bits up with -current. 2001-08-01 20:28:49 +00:00
Guy Helmer a91dcbee90 MFC rev 1.19, 1.20, 1.21
Make the variable containing the name of the temporary password
file consistent.  Install the new password file, not the old one.
Add "use Fcntl" to resolve "macros" used in call to sysopen.

PR:		29366
Approved by:	jkh
2001-08-01 20:26:37 +00:00
David E. O'Brien 9dbd982ef8 MFC: rev 1.23 (sync with main v1.105) 2001-08-01 20:25:48 +00:00
David E. O'Brien ebfc00a789 MFC: rev 1.53 (pass -a to dmesg) 2001-08-01 20:18:55 +00:00
David E. O'Brien 32372f9103 MFC: sync with rpc 88/08/01 4.0 RPCSRC; from 1.12 99/07/25 SMI 2001-08-01 20:17:59 +00:00
Doug Barton 2b83083e63 MFC 1.69-74, which includes an update to IANA's URL, updated
comments, entries for several commonly used tools from
ports, and x11.
2001-08-01 20:17:40 +00:00
David E. O'Brien ccf28fd1d5 MFC: 1.7 (-w not needed anymore) 2001-08-01 20:14:29 +00:00
David E. O'Brien c68018cd50 MFC: mousechar_start and allscreens_kbdflags 2001-08-01 20:14:06 +00:00
Warner Losh 50fc20d852 MFC: TI register definitions 2001-08-01 20:09:52 +00:00
David E. O'Brien fa7b0d92ac MFC: rev 1.16 [partical] (style) 2001-08-01 20:09:28 +00:00
Dima Dorfman 1e4eb3dbb3 MFC: UFS_DIRHASH 2001-08-01 20:08:17 +00:00
David E. O'Brien 6298c563ec MFC: Kerberos5 startup support (off by default of course) 2001-08-01 20:07:55 +00:00
Warner Losh 2122587073 MFC: Verbose printf of resources used.
Move PIOCSRESOURCE up to pcic from pccard.
	Move hw.pcic.override_irq stuff from pcic_isa to pcic
	TI bridge chipset interrupt setup
	Use #defines instead of magic numbers for CSC setup
	Don't turn the power off on pcic_disable.
	Get/Set offset routines need safety protect for 4.x.
	Remove bst and bsh from softc.
2001-08-01 20:07:03 +00:00
Dima Dorfman fa6212019c MFC: GCC_OPTIONS, WARNS, and GNATS 3.113 (slightly delayed) 2001-08-01 20:03:43 +00:00
David E. O'Brien dd0a66615a MFC: rev 1.102 -- merge in patch to automagically decide whether or not
a kldload of ipfilter is required into rc.network.
2001-08-01 20:02:42 +00:00
David E. O'Brien 1e876a4883 MFC: At great personal risk, touch the sendmail startup again. This adds
easy seperate knobs for inbound (accepting SMTP connections) and outbound
(just occasionally dequeueing) sendmail daemon startup.

For RELENG_4, we default to inbound turned on, outbound-only turned off.
2001-08-01 19:59:05 +00:00
Duncan Barclay cd31dccf6f MFC 1.55
Eliminate some panics for errors we can recover from.

Reduce the verbose memory map setup reports and work with pccardd to
set the common memory map up.

Use enumeration values for CARD_SET_RES_FLAGS.

Use DELAY when spinning waiting for the card to come free instead of a
loop.

Approved by:	jkh
2001-08-01 19:56:41 +00:00
Warner Losh 564118bf24 MFC: Merge the ExCA definitions added to current as part of the TI
bridge CSC fixes.  Since these are just ifdefs, they won't hurt
anything.
2001-08-01 19:52:24 +00:00
David E. O'Brien 6e93fc1e89 MFC: savecore_flags support and use fully qualified path for savecore 2001-08-01 19:50:34 +00:00
Duncan Barclay 03521df5dd Protect pcic_set_memory_offset with __FreeBSD_version based ifdefs.
Without this any consumer of CARD_SET_MEM_OFFSET would generate a
panic.

Reviewed by:	imp
2001-08-01 19:46:16 +00:00
David E. O'Brien 903fccf651 MFC: rev 1.60 (network6_pass1 if ipv6_enable is YES) 2001-08-01 19:45:36 +00:00
David E. O'Brien 5d458bfe8d MFC: rev 1.15 (update search URL) 2001-08-01 19:43:13 +00:00
David E. O'Brien 49ac664f36 MFC: rev 1.48 (integrate IPv6 entries with IPv4 ones) 2001-08-01 19:41:43 +00:00
David E. O'Brien f1981b1f00 MFC: clarify comment 2001-08-01 19:39:17 +00:00
Cameron Grant fe3df1f29d allow multiple opens of /dev/mixer* 2001-08-01 19:35:21 +00:00
Ian Dowse 97f00c1cdb MFC: Directory hashing for better performance on large directories.
This is turned off by default; to enable it, add "options UFS_DIRHASH"
to the kernel config file.
2001-08-01 19:33:47 +00:00
David E. O'Brien c1d40c2b76 Note that the portmapper is turned off by default. 2001-08-01 19:22:43 +00:00
David E. O'Brien 5fa8997a4e MFC: rev 1.71 [partial] -- default the portmapper to off. With the
auto-dependency bits in /etc/rc, this change will affect only a few.
2001-08-01 19:15:09 +00:00
David E. O'Brien 122aeac693 MFC: gcc.295 rev 1.21
Support the environmental var "GCC_OPTIONS".  Which can hold a set of
default options for GCC.  These options are interpreted first and can be
overwritten by explicit command line parameters.  This provides one way of
adding [temporary] options to your world build w/o editing /etc/make.conf.
2001-08-01 18:56:53 +00:00
David E. O'Brien e317c68c2b MFC: gcc.295 rev 1.20
From the GCC mainline sources:

	2001-04-28  Jens Schweikhardt <schweikh@@schweikhardt.net>
	* gcc.c (process_command): Allow -l lib in addition to -llib
	for POSIX compliance. This fixes PR c/2347.

Submitted by:	Jens Schweikhardt <schweikh@@schweikhardt.net>
2001-08-01 18:50:45 +00:00
David E. O'Brien bbcc6f8866 Sync with -current.
The primary name of the C preprocessor for use by GCC itself (and no other
consumers) is now known by `cpp0'.
2001-08-01 18:48:35 +00:00
David E. O'Brien a16743b5c0 MFC: gcc.295 rev 1.8
Add "-Wnon-const-format" which checks for non-constant format strings for
auditing purposes.

I am reluctant to bring this into our native GCC tree due to maintenance
reasons... but since Kris already did the porting work and it won't be
pulling any files off the vendor branch..... but I will not port this
functionality forward to newer versions of GCC if it requires more than
5 min of work, and if these changes do cleanly apply to GCC snapshots,
I will remove it the moment GCC changes underneath theses changes.

Submitted by:   kris
Obtained from:  NetBSD
2001-08-01 18:43:21 +00:00
Cameron Grant 9be9891fb5 only create one play channel for now, multiple channels don't seen to work. 2001-08-01 18:43:17 +00:00
David E. O'Brien 85e961dcbf I think this rewording makes more sense. 2001-08-01 18:39:28 +00:00
David E. O'Brien cb07effad4 MFC: gcc.295 rev 1.2
Add "-Wnon-const-format" which checks for non-constant format strings for
auditing purposes.

I am reluctant to bring this into our native GCC tree due to maintenance
reasons... but since Kris already did the porting work and it won't be
pulling any files off the vendor branch..... but I will not port this
functionality forward to newer versions of GCC if it requires more than
5 min of work, and if these changes do cleanly apply to GCC snapshots,
I will remove it the moment GCC changes underneath theses changes.

Submitted by:   kris
Obtained from:  NetBSD
2001-08-01 18:33:48 +00:00
David E. O'Brien b2eac30e94 MFC: gcc.295 rev 1.35 (done more for syncing the sources, than needing the
functionality)
Choose the right LIB_SPEC for threads based on "__FreeBSD_version".
This allows someone with an older -current to update their compiler [only].

Inspired by:    Loren James Rittle <[email protected]>
2001-08-01 18:28:00 +00:00
David E. O'Brien 8918a247c5 MFC: gcc.295 rev 1.36
Make it easy for people to use define DWARF2 exceptions unwinding.
If "WANT_DWARF2_UNWIND" you get it.  Note that this is a different C++ ABI
than the FreeBSD default.  So you will need to recompile all your C++ apps
that uses exceptions if you turn this on.  I am adding it here for Yahoo!'s
use and for those that want to be early adopters to what I will make as the
default with the GCC 3.0 import.
2001-08-01 18:14:58 +00:00
David E. O'Brien 8207206056 Enter 4.4-FreeBSD.
(for this trick, I used "PRERELEASE", I really don't care what someone
changes this to after me, but with __FreeBSD_version set to 44...0 it seemed
silly to still announce this as 4.3-STABLE)
2001-08-01 18:06:35 +00:00
David E. O'Brien dd169815f4 MFC: gcc.295 rev 1.5
Add "-Wnon-const-format" which checks for non-constant format strings for
auditing purposes.

I am reluctant to bring this into our native GCC tree due to maintenance
reasons... but since Kris already did the porting work and it won't be
pulling any files off the vendor branch..... but I will not port this
functionality forward to newer versions of GCC if it requires more than
5 min of work, and if these changes do cleanly apply to GCC snapshots,
I will remove it the moment GCC changes underneath theses changes.

Submitted by:   kris
Obtained from:  NetBSD
2001-08-01 18:03:24 +00:00
David E. O'Brien 52be98d9a3 MFC: gcc.295 rev 1.2
Add "-Wnon-const-format" which checks for non-constant format strings for
auditing purposes.

I am reluctant to bring this into our native GCC tree due to maintenance
reasons... but since Kris already did the porting work and it won't be
pulling any files off the vendor branch..... but I will not port this
functionality forward to newer versions of GCC if it requires more than
5 min of work, and if these changes do cleanly apply to GCC snapshots,
I will remove it the moment GCC changes underneath theses changes.

Submitted by:   kris
Obtained from:  NetBSD
----------------------------
gcc.295 rev 1.4
Accept old spellings of main() as ANSI for WRT warnings.
Motivated by WARNS=2.

Submitted by:   dd
2001-08-01 18:02:46 +00:00
David E. O'Brien 95e760c052 MFC: gcc.295 rev 1.11
Add "-Wnon-const-format" which checks for non-constant format strings for
auditing purposes.

I am reluctant to bring this into our native GCC tree due to maintenance
reasons... but since Kris already did the porting work and it won't be
pulling any files off the vendor branch..... but I will not port this
functionality forward to newer versions of GCC if it requires more than
5 min of work, and if these changes do cleanly apply to GCC snapshots,
I will remove it the moment GCC changes underneath theses changes.

Submitted by:   kris
Obtained from:  NetBSD
2001-08-01 18:01:01 +00:00
David E. O'Brien e1873308ff MFC: update to version 0.95.04 2001-08-01 17:45:09 +00:00
David E. O'Brien 3f256b23ba MFC: Makefile cleanup 2001-08-01 17:29:18 +00:00
Dima Dorfman 376c3a1fb3 MFC 1.36: -xwidth -> -width
Submitted by:	fenner
2001-08-01 17:26:51 +00:00
David E. O'Brien 61835c2f77 MFC: turn on the freebsd-hints fortunes 2001-08-01 17:24:32 +00:00
David E. O'Brien 1ea086a46a Sync with -current, and add freebsd-tips 2001-08-01 17:24:03 +00:00
David E. O'Brien 239577f314 MFC: rev 1.13 (key bindings for tcsh users in interactive mode) 2001-08-01 17:15:46 +00:00
David E. O'Brien bcfb58c93e MFC: The WARNS framework.
This is good stuff, and RELENG_4 deserves to have this.
2001-08-01 17:14:26 +00:00
David E. O'Brien babe50db20 MFC: revs 1.51,2 (add single suffix rules for C++ and FORTRAN) 2001-08-01 17:12:35 +00:00
David E. O'Brien 164c4d80f4 MFC: $FreeBSD$ 2001-08-01 17:10:01 +00:00
David E. O'Brien 247874b62c MFC: rev 1.28 (NONBINMODE -> NOBINMODE) [PR 8811] 2001-08-01 17:09:06 +00:00
David E. O'Brien ede14376b1 MFC: add tighter warnings of when one is using an unorthodox object directory 2001-08-01 17:06:39 +00:00
David E. O'Brien 846fcfeba9 MFC: sync additions from -current 2001-08-01 17:04:17 +00:00
David E. O'Brien 117090c19d MFC: spelling changes to reduce diff to -current 2001-08-01 16:58:29 +00:00
David E. O'Brien 910ad291ec MFC: revs 1.18-1.19 (fix typo and grammer) 2001-08-01 16:56:56 +00:00
Dima Dorfman e355520035 MFC 1.18: ich driver. 2001-08-01 14:47:06 +00:00
Sheldon Hearn f962e9c2dc MFC rev 1.202: add install to the bootstrap tools
(required by rev 1.20.2.4 of src/sbin/init/Makefile)

Reported by:	tmm
2001-08-01 14:28:41 +00:00
Dima Dorfman c0e4624ab7 MFC: install(1) cleanup, bzip2 import, libpcap update. 2001-08-01 14:21:35 +00:00
Sheldon Hearn 4bdea9e69c Fix manual pages that claim first appearances in FreeBSD 5.0. For those
that have yet to appear in a release, claim the upcoming FreeBSD 4.4 as
first appearance.
2001-08-01 12:08:48 +00:00
Sheldon Hearn 3524d7f2c4 MFC rev 1.3: fix Fn calls and missing period. 2001-08-01 12:06:38 +00:00
Sheldon Hearn 14fa88fde1 Fix manual pages that claim first appearances in FreeBSD 5.0. For those
that have yet to appear in a release, claim the upcoming FreeBSD 4.4 as
first appearance.
2001-08-01 12:01:29 +00:00
Kazutaka YOKOTA a6ffc8c406 MFC: Add the resume method to keyboard drivers. Remove it
from syscons.

atkbd_isa.c rev 1.9, ukbd.c rev 1.31, syscons.h rev 1.69,
syscons.c rev 1.364, syscons_isa.c rev 1.17.
2001-08-01 10:42:32 +00:00
David E. O'Brien 0cc1836190 MFC: Make header files conform to style(9). 2001-08-01 09:52:27 +00:00
David E. O'Brien 8b012f7862 Reduce diff to -current. 2001-08-01 09:36:40 +00:00
David E. O'Brien 2817890ec9 MFC: rev 1.28 (make headers conform to style(9)) 2001-08-01 09:33:56 +00:00
David E. O'Brien fa178312ba MFC: rev 1.2 (add rcsid) 2001-08-01 09:30:36 +00:00
David E. O'Brien ea79ffcf9e Blah. I forgot that libperl is the same so version in RELENG_4 and RELENG_3. 2001-08-01 09:25:40 +00:00
David E. O'Brien d3e9d13c7f MFC: libperl.so.3 2001-08-01 09:22:52 +00:00
David E. O'Brien 148d397e70 MFC: rev 1.38 (use _PATH_DEV) 2001-08-01 09:14:47 +00:00
David E. O'Brien 08144a006b MFC: revs 1.15,16 (clean up now that setproctitle is in libc) 2001-08-01 09:13:24 +00:00
David E. O'Brien 5e421c52e4 MFC: rev 1.37 (don't mention -w) 2001-08-01 09:07:29 +00:00
David E. O'Brien 92ce7e80b6 MFC: warns=2 2001-08-01 09:06:16 +00:00
David E. O'Brien 39908614b7 MFC: rev 1.41 (fix Alpha problem -- dumpmag is 'u_long dumpmag' in the kernel) 2001-08-01 09:04:22 +00:00
David E. O'Brien f1f873626d MFC: mdoc police 2001-08-01 09:02:34 +00:00
David E. O'Brien b8e2474ec5 MFC: 1.9 (fix byteorder problem in diagnostic message) 2001-08-01 09:01:45 +00:00
David E. O'Brien 497ceb478d MFC: move _PATH_DEFTAPE to <paths.h>, and s/rsa/sa/g 2001-08-01 09:00:28 +00:00
David E. O'Brien 745109438b MFC: document -l, rev 1.13 (constify), 1.10 (delay) 2001-08-01 08:54:37 +00:00
David E. O'Brien 5c5ec6ab4a MFC: rev 1.27 (mdoc(7) police: normalize .Nd) 2001-08-01 08:48:23 +00:00
David E. O'Brien ea3299b392 MFC: rev 1.14 (remove redundant code), 1.15 (header bogosity) 2001-08-01 08:43:04 +00:00
David E. O'Brien a6eb3ce358 Reduce diff to -current. 2001-08-01 08:41:02 +00:00
David E. O'Brien b22d876daf MFC: style 2001-08-01 08:39:03 +00:00
David E. O'Brien a1589aeed7 Reduce diff to -current. 2001-08-01 08:34:44 +00:00
David E. O'Brien 457bbb4eb8 MFC: rev 1.5 (nuke unused vars) 2001-08-01 08:33:21 +00:00
Maxim Sobolev 498fd74cf7 MFC: bzip2 is in the base system now, so we don't need /usr/local/bin in the
PATH anymore.
2001-08-01 08:32:34 +00:00
David E. O'Brien bf42df9cbd MFC: style 2001-08-01 08:32:31 +00:00
David E. O'Brien ea6eb336aa MFC: mdoc police 2001-08-01 08:29:22 +00:00
David E. O'Brien f8141e1a0d MFC: rev 1.18 (optreset in unistd.h) 2001-08-01 08:27:29 +00:00
David E. O'Brien 1428b83ea8 MFC: rev 1.41 (do not suport lfs) 2001-08-01 08:26:23 +00:00
David E. O'Brien f75d2c299c MFC: rev 1.17 (SEE ALSO sort) 2001-08-01 08:24:52 +00:00
David E. O'Brien 0e69c9f6a8 MFC: rev 1.25 (style) 2001-08-01 08:23:48 +00:00
David E. O'Brien 286589f1f3 MFC: style 2001-08-01 08:22:24 +00:00
David E. O'Brien 0c4a311f4e MFC: WARNS=2 2001-08-01 08:20:38 +00:00
David E. O'Brien ddd5a756bb MFC: rev 1.7 (check malloc, and remove dead code) 2001-08-01 08:19:51 +00:00
David E. O'Brien 26dbacfdf1 MFC: reduce diffs to -current 2001-08-01 08:17:17 +00:00
David E. O'Brien 5333bbe768 MFC: rev 1.103 (try to partly clean up the bleeding mess...)
this is not a true MFC of 1.103, but one in spirit
2001-08-01 08:15:35 +00:00
Peter Pentchev d80e7c906b MFC rev. 1.104: complain on installation if the destination modules/
directory does not exist, instead of silently creating a file.
2001-08-01 07:50:49 +00:00
David E. O'Brien 39806c0e06 MFC: description change 2001-08-01 06:59:56 +00:00
David E. O'Brien 8503edf1d2 Minimize diff to -current. 2001-08-01 06:55:39 +00:00
David E. O'Brien 6166b1a146 MFC: rev 1.7 (update comment) 2001-08-01 06:52:18 +00:00
David E. O'Brien c59aa6fedc MFC:
o New flags: -b and -B (backup)
o New flag: -S (safe copy; aka "atomic" install)
o The -c flag is now the default.
o The -D flag was withdrawn.
2001-08-01 06:48:41 +00:00
Alfred Perlstein e094231539 Fake the NLMv4 protocol. This allows lockd to 'service' nfsv3 clients.
Submitted by: Dan Nelson <[email protected]>
2001-08-01 06:39:36 +00:00
David E. O'Brien 39944d46db MFC: rev 1.26 (use new backup feature of install(1)) 2001-08-01 06:37:01 +00:00
David E. O'Brien 87b0c55772 MFC: rev 1.47-1.48 (make the order of values prompted for with the "-i"
option match print_part())
2001-08-01 06:34:00 +00:00
David E. O'Brien 5a94ea06d9 MFC: rev 1.30 (document the default for -b) 2001-08-01 06:31:53 +00:00
David E. O'Brien 68bac9502b MFC: s/\\7/\\a/g, s/rsa/sa/g, use <sys/queue.h> 2001-08-01 06:29:35 +00:00
Eric Melville a08cf1b40f MFC: update man page 2001-08-01 06:28:04 +00:00
David E. O'Brien fa0e47aa93 MFC: properly filize dumpdates, and s/rsa/sa/g 2001-08-01 06:25:40 +00:00
David E. O'Brien 58b2d9e5c5 MFC:
* add -a to usage
* Use the machdep.msgbuf sysctl to get the message buffer on a running
  kernel, and remove setgid kmem, which is not needed any more.
2001-08-01 06:20:49 +00:00
David E. O'Brien 46af0397d1 MFC: rev 1.27 (clarify partition types) 2001-08-01 06:10:00 +00:00
David E. O'Brien 430bbec1b0 MFC: 1.37 (clarify -r), 1.38 (nuke unused vars), 1.39 (execl()) 2001-08-01 06:07:14 +00:00
David E. O'Brien 79a6dfc814 MFC: change name of internal `warn' function as it masks warn() from libc. 2001-08-01 06:04:34 +00:00
David E. O'Brien a2b0b5bce6 MFC: allow "-" for working w/ STDIN 2001-08-01 06:01:51 +00:00
David E. O'Brien d69344bf54 MFC: WARNS=2 2001-08-01 05:54:57 +00:00
David E. O'Brien 9470234ea7 MFC: $FreeBSD$ 2001-08-01 05:53:59 +00:00
David E. O'Brien 0bce2f0f30 MFC: kldconfig 2001-08-01 05:52:36 +00:00
David E. O'Brien 1f8407b74b MFC: add fsck_msdosfs 2001-08-01 05:48:08 +00:00
David E. O'Brien 261f2bc914 MFC: stdlib.h 2001-08-01 05:43:30 +00:00
Chris Costello ead3dc34af MFC: Add kldsym(2) man page. 2001-08-01 05:42:27 +00:00
David E. O'Brien 6494772169 MFC: revs 1.34-1.35 (``!'') and rev 1.36 (| >> !) 2001-08-01 05:42:10 +00:00
David E. O'Brien 1f89530476 MFC: include stdlib.h (it doesn't seem to quiet any warnings, so I'm not
sure why it is included)
2001-08-01 05:38:28 +00:00
Cameron Grant 59d9f661e5 mfc of ich sound driver 2001-08-01 05:37:31 +00:00
David E. O'Brien e44c9ef67c MFC: WARNS=2 2001-08-01 05:35:25 +00:00
David E. O'Brien 1dfa56ab53 MFC: include stdlib.h to reduce warnings 2001-08-01 05:34:08 +00:00
David E. O'Brien f65ae72de0 MFC: WARNS=2 and BDECFLAGS 2001-08-01 05:31:04 +00:00
David E. O'Brien 70b7ea158f MFC: MAXPATHLEN -> PATH_MAX 2001-08-01 05:22:33 +00:00
David E. O'Brien b6aa9ecff2 MFC: -Wnon-const-format sweep 2001-08-01 05:22:07 +00:00
David E. O'Brien eedf252b7c MFC: rev 1.11 (fix printf format to print a long) 2001-08-01 05:17:57 +00:00
David E. O'Brien 625343bd11 MFC: WARNS=2 and BDECFLAGS 2001-08-01 05:16:47 +00:00
David E. O'Brien a42114e5b9 MFC: rev 1.33 (fix args to fts_open()) 2001-08-01 05:15:56 +00:00
David E. O'Brien 45bb61cda4 MFC: WARNS=2 2001-08-01 05:15:02 +00:00
David E. O'Brien 825481ec4a MFC: MAXPATHLEN -> PATH_MAX, __printflike, fix type of NULL arg to execl() 2001-08-01 05:14:24 +00:00
David E. O'Brien e95111c32d MFC: MAXPATHLEN -> PATH_MAX, and WARNS=2 and BDECFLAGS 2001-08-01 05:08:31 +00:00
David E. O'Brien e6da4d26c0 MFC: sort SEE ALSO 2001-08-01 05:07:33 +00:00
David E. O'Brien 4148aa59d0 MFC: MAXPATHLEN -> PATH_MAX 2001-08-01 05:06:23 +00:00
David E. O'Brien df5d95eb23 MFC: rcsid 2001-08-01 05:04:48 +00:00
David E. O'Brien 63e61387fe MFC: sync with OpenBSD 2001-08-01 05:03:12 +00:00
David E. O'Brien 822a0d54f0 MFC: rev 1.11 (_PATH_DEFTAPE) 2001-08-01 05:02:00 +00:00
David E. O'Brien 0edcc0f07b MFC: WARNS=2 and BDECFLAGS 2001-08-01 04:44:36 +00:00
David E. O'Brien ce47711448 MFC: rev 1.52 (tweak example), 1.53 (you) 2001-08-01 04:40:08 +00:00
David E. O'Brien 8e410288b3 MFC: MAXPATHLEN -> PATH_MAX, and WARNS=2 and BDECFLAGS 2001-08-01 04:38:44 +00:00
Cameron Grant 80a7ab7b39 create {dsp,dspW,audio}X.[01234] for unit X 2001-08-01 04:27:16 +00:00
Cameron Grant 5dcca37630 mfc of newpcm state as at june 24.
* untypedef various structs
* rate conversion feeder
* vchan support - no automatic creation however
* many bugfixes
2001-08-01 03:41:09 +00:00
Gregory Neil Shapiro 3b703d6a4f MFC: Revert change to always include _FFR_TLS_O_T as it requires
FEATURE(access_db)

     Revision  Changes    Path
     1.20      +1 -3      src/etc/mail/Makefile
     1.12      +1 -3      src/etc/sendmail/Makefile
2001-08-01 03:38:44 +00:00
Gregory Neil Shapiro cf65974147 MFC: Import of sendmail 8.11.5
Approved by:	jkh
2001-08-01 03:19:50 +00:00
David E. O'Brien ec0a9049ed MFC: WARNS=2 and BDECFLAGS 2001-08-01 02:42:56 +00:00
David E. O'Brien 21df22a97c MFC: WARNS=2 2001-08-01 02:37:46 +00:00
David E. O'Brien b47245121d MFC: MAXPATHLEN -> PATH_MAX 2001-08-01 02:36:03 +00:00
David E. O'Brien b0a6e3b231 MFC: WARNS=2 and BDECFLAGS 2001-08-01 02:33:32 +00:00
David E. O'Brien b21f5d83bc MFC: WARNS=2 and BDECFLAGS 2001-08-01 02:32:16 +00:00
David E. O'Brien 3dd817f6b5 MFC: rev 1.26 (-t), 1.27 (BDECFLAGS & WARNS), 1.30 (unsigned int),
rev 1.31 (style(9) of rev 1.28)
2001-08-01 02:30:32 +00:00
David E. O'Brien c4a904f2be MFC: rev 1.21 (call summary() explicitly), rev 1.22 (__unused for non-used
variables)
2001-08-01 01:40:03 +00:00
David E. O'Brien 4a291b1be7 MFC: rev 1.32 (__unused for non-used variables) 2001-08-01 01:37:35 +00:00
David E. O'Brien cbfc263da4 MFC: rev 1.29 (MAX_PATH) 2001-08-01 01:35:51 +00:00
David E. O'Brien a17b00d564 MFC: rev 1.10 (MAX_PATH) 2001-08-01 01:34:20 +00:00
David E. O'Brien 56726e8205 MFC: rev 1.25 (MAX_PATH and strlcpy) 2001-08-01 01:32:10 +00:00
David E. O'Brien 620b0406dc Minor style tweak to reduce diff w/-current 2001-08-01 01:22:57 +00:00
David E. O'Brien c1e69da626 MFC: rev 1.19 (quiet warnings) 2001-08-01 01:21:09 +00:00
Bill Fenner d0c1df77fc MFC rev 1.19: use IFT_L2VLAN 2001-08-01 01:08:44 +00:00
Bill Fenner 56f7a46578 MFC rev 1.51: use IFT_L2VLAN 2001-08-01 01:08:25 +00:00
Bill Fenner 2a63e30b9c MFC:
Get IP multicast working on VLAN devices
        if_ethersubr.c rev 1.93
        if_vlan.c revs 1.27, 1.30
Use the IANA assignment IFT_L2VLAN
        if_vlan.c rev 1.29
        if_vlan_var.h rev 1.9
2001-08-01 00:47:50 +00:00
Bill Fenner 5475296203 Use libpcap's bpf_dump() instead of providing our own, now that
libpcap 0.6 has been merged.
2001-08-01 00:35:04 +00:00
David E. O'Brien bd020e6999 MFC: WARNS=2 2001-08-01 00:34:15 +00:00
Bill Fenner 73abc474e8 MFC: libpcap 0.6 2001-08-01 00:23:13 +00:00
David E. O'Brien 409eddaa75 MFC: Hook up libbz2 2001-08-01 00:16:06 +00:00
David E. O'Brien 325f2506b2 MFC: bring in bzip2 2001-08-01 00:14:35 +00:00
David E. O'Brien 6a8d46df32 MFC: libbz2 2001-08-01 00:14:04 +00:00
David E. O'Brien 75b975506e MFC: import bzip2 2001-08-01 00:13:32 +00:00
David E. O'Brien 79e51f50fd MFC: Use elf-hint.h rather than elf.h to get the hints info. 2001-07-31 23:43:57 +00:00
David E. O'Brien cd6e798587 MFC: rev 1.14 -- total hack to fix broken bootstrap. Add -I/usr/src/include
at the tail end of the include searching.
2001-07-31 23:42:36 +00:00
David E. O'Brien 38323c73d1 MFC: rev 1.4
* include/elf.h has been repo copied to include/elf-hints.h, and it no
  longer includes machine/elf.h.
  * consumers of elf.h now use the minimalist elf header possible.
2001-07-31 23:41:46 +00:00
Eric Melville 17404170f4 MFC: updated menus for new key behavior 2001-07-31 21:43:37 +00:00
Thomas Moestl cbc76f5737 MFC of rev. 1.61: correct type for the 3rd argument to
sysctlbyname().
2001-07-31 20:48:17 +00:00
Thomas Moestl 9926db6542 MFC part of rev. 1.42: correct type for the 4th argument to sysctl(). 2001-07-31 20:41:27 +00:00
Eric Melville f05c5a2a0b MFC: gain improved interface and key handling 2001-07-31 20:34:00 +00:00
Brian Somers 9e47227e80 MFC: If the peer REJects our MRU REQ, stop sending it -- even if this
means that the peer may send us frames that are too large as a
     result.
2001-07-31 20:29:46 +00:00
Thomas Moestl 473d8e4244 MFC part of rev. 1.38: correct type for the 3rd argument to
sysctlbyname().
2001-07-31 20:27:05 +00:00
Thomas Moestl 1556e4b6a4 MFC of rev. 1.95: disallow ATAPI CD transfers that are not a multiple of
the device block size.

PR:		kern/21946
2001-07-31 20:18:50 +00:00
Jonathan Chen 549bea91ad MFC from current -
Fix setting serial baud rate under ibcs2 emulation by moving a line to the
right place.  Reported by Jonathan Chen <[email protected]> (someone with
the same name who's not me)

PR:	i386/8414
Submitted by:	Jonathan Chen <[email protected]>
2001-07-31 20:14:21 +00:00
Thomas Moestl d0079fb190 MFC of rev. 1.6: correct type for the 3rd argument to sysctlbyname(). 2001-07-31 20:10:19 +00:00
Thomas Moestl 221adcb61e MFC of rev. 1.49: correct type for the 3rd argument to sysctl(). 2001-07-31 19:52:41 +00:00
Hajimu UMEMOTO bb44d741e4 MFC 1.72: If LCP proto-rej is received, drop the protocol mentioned by
the message.  This is to be friendly with non-IPv6 peer (If the peer
complains due to lack of IPv6CP, drop IPv6CP).  This basically implements
"RXJ+" state transition in the RFC.
2001-07-31 19:43:55 +00:00
Wilko Bulte 74b01bd880 164LX can have SRM or AlphaBIOS in flash. 2001-07-31 18:43:40 +00:00
Bill Paul 298fb0cb4a MFC: fix VLAN support in RX handler, make sure to call vlan_input_tag()
at the right time.
2001-07-31 16:39:34 +00:00
Peter Pentchev c01310ddde MFC: run the shutdown scripts in reverse order; script_name_sep knob.
MFC of file revisions:
	rc		1.272
	rc.shutdown	1.17
	rc.conf		1.117
	rc.conf.5	1.113
2001-07-31 16:16:35 +00:00
Maxim Sobolev be5af145c4 MFC: use reallocf(3) instead of malloc()+memcpy()+free(). 2001-07-31 15:50:57 +00:00
Mark Peek 4a9916e52f MFC 1.25: Properly handle wgetch(3) returning ERR.
Approved by:	jkh (for early MFC prior to code chill)
2001-07-31 15:24:02 +00:00
David Malone 6f2de31306 MFC: Make the sleep for sendfile buffers interruptable. This is a bit
different from the code in -current, but the idea should be the same.
2001-07-31 10:49:39 +00:00
Brian Somers 2f1f41824e MFC: Mark prompt_vPrintf() as printflike when building with __GNUC__ 2001-07-31 08:08:48 +00:00
Brian Somers 62e4d62490 MFC: Correct a comment 2001-07-31 08:07:48 +00:00
Brian Somers 767ca269d6 Staticise the non-FreeBSD version of SHA1_End() 2001-07-31 08:07:17 +00:00
Brian Somers 4d80abda50 MFC: If the peer sends a REQ without the IPADDR iption, only reject it
once.  If they repeat the request (again without the IPADDR option)
     ACK it.
2001-07-31 07:54:04 +00:00
Yoshihiro Takahashi 338a16c563 Merged from sys/dev/syscons/syscons.c revisions 1.336.2.8 and 1.336.2.9. 2001-07-31 03:51:24 +00:00
Yoshihiro Takahashi d1fd53af4c MFC: Converted the olpt driver to using new-bus stuff.
Removed PLIP support.
2001-07-31 03:44:31 +00:00
Yoshihiro Takahashi abc7c5552d MFC: Speed up console driver. 2001-07-31 03:29:39 +00:00
Gregory Neil Shapiro 23b89b12d5 MFC: If the user sets SENDMAIL_MC to /etc/mail/sendmail.mc, install is told to
install /etc/mail/sendmail.cf to /etc/mail/sendmail.cf and exits with an
     error.

     Catch this in the Makefile and don't call install if the source and target
     are the same file.

     Revision  Changes    Path
     1.19      +3 -1      src/etc/mail/Makefile
     1.11      +10 -4     src/etc/sendmail/Makefile
2001-07-31 00:18:12 +00:00
Gregory Neil Shapiro 32a1680dad MFC: New make knob, SENDMAIL_M4_FLAGS, modifies the flags passed to m4 when
building a .cf file from a .mc file.

     Include -D_FFR_TLS_O_T to enable tls policy control since the sendmail
     binary build enables that FFR as well.

     Revision  Changes    Path
     1.166     +7 -1      src/etc/defaults/make.conf
     1.18      +5 -3      src/etc/mail/Makefile
     1.10      +5 -2      src/etc/sendmail/Makefile
     1.23      +4 -1      src/share/man/man5/make.conf.5
2001-07-31 00:16:49 +00:00
Dima Dorfman 129c9d176b MFC 1.13-1.15: don't xref mt(1), mention EFAULT, and don't capitalize
variable names.
2001-07-31 00:08:49 +00:00
Dima Dorfman ac113ef19f MFC 1.56: correct continuation line handling. 2001-07-31 00:07:39 +00:00
Dima Dorfman c4a620a94d MFC 1.26: recognize %s. 2001-07-31 00:06:24 +00:00
Dima Dorfman 300a254af3 MFC 1.3: fix underflow resulting in infinite loop. 2001-07-31 00:03:41 +00:00
Dima Dorfman e558e9d653 MFC 1.8: yp_errno is an enum ypstat. 2001-07-31 00:00:13 +00:00
Dima Dorfman ebcd8e8903 MFC 1.47: generate a larger salt. 2001-07-30 23:56:48 +00:00
Dima Dorfman f6114b50bf MFC 1.16: be consistent about how we quote commands that could be
entered by the user.
2001-07-30 23:55:28 +00:00
Peter Wemm 7f43369e0a MFC: tunable update. Do MAXUSERS derived tuning at boot time, with
overrides.  Allow hz to be tunable.  Stop copying param.c to compiledir.
2001-07-30 23:28:01 +00:00
Peter Wemm b2f967d7a8 MFC: 1.110-1.112: fix style/warning in tcp_new_isn() 2001-07-30 22:49:47 +00:00
Peter Wemm 162fa00bc5 MFC: 1.110: s/OpemBSD/OpenBSD/ 2001-07-30 22:48:41 +00:00
Peter Wemm 92ef710db9 MFC: 1.167: Take -Wconversion out of BDECFLAGS. 2001-07-30 22:16:11 +00:00
Sheldon Hearn 2d4e214dbf MFC rev 1.17: document debug.debugger_on_panic 2001-07-30 22:07:31 +00:00
Jonathan Lemon ef967a6561 MFC: enable device firmware for specific board revisions.
Submitted by: Milon Papezik <[email protected]>
2001-07-30 20:29:58 +00:00
Dima Dorfman bcf66b82fa MFC 1.23: txp(4) support. 2001-07-30 18:33:51 +00:00
Dima Dorfman c0220ffbc6 MFC: txp(4) 2001-07-30 18:27:05 +00:00
Matt Jacob 704736db9c MFC changes that allow sockstat to work on alpha.
PR:		29231
2001-07-30 18:05:28 +00:00
Brooks Davis 52c6b36c94 MFC: Makefile cleanups, typo fixes, WARNS=2 fixes. 2001-07-30 17:44:01 +00:00
Bill Paul 06a192c0a9 MFC: add driver support for 3Com 3cR990 cards. Apologies if this re-bloats
the kernel after obrien de-bloated it: the driver has a compiled-in
firware image.
2001-07-30 17:31:42 +00:00
Kazutaka YOKOTA 91789aee04 MFC: fix off-by-one error. rev 1.368. 2001-07-30 17:08:51 +00:00
Kazutaka YOKOTA 92c1f9122b MFC: clean up in vt switching code. rev 1.367. 2001-07-30 17:07:48 +00:00
Kazutaka YOKOTA 5215f505a4 MFC: fix action code.
atkbd_isa.c rev 1.10, atkbd.c rev 1.32, kbd.c rev 1.26,
kbdreg.h rev 1.14, ukbd.c 1.32
2001-07-30 16:46:45 +00:00
Kazutaka YOKOTA fc4557ba14 MFC:
- rev 1.25, workaround for KVM
- rev 1.33, rearrange some mouse identification routines
- rev 1.34, out-of-sync hack
2001-07-30 16:29:05 +00:00
Scott Long c3569fee6a MFC r.1.7 of aac.4 and r.1.304 of MAKEDEV. Create the hpnX control device
and document it.
2001-07-30 16:23:33 +00:00
Yaroslav Tykhiy 250d1787da MFC: Add the manpage on the ``vlan'' network interface. 2001-07-30 16:10:34 +00:00
Warner Losh dae6b81e61 Align headers with -current as much as possible 2001-07-30 15:46:25 +00:00
Kazutaka YOKOTA 51f26dd3bf MFC: rev 1.20 and 1.21. Add notes on signal handling. 2001-07-30 14:32:06 +00:00
Kazutaka YOKOTA 746675c21c MFC: rev 1.12. Signal handling. 2001-07-30 14:31:30 +00:00
Guy Helmer 8973aba520 MFC rev 1.17: Fix removal of at jobs. 2001-07-30 14:13:03 +00:00
Darren Reed 134f862f8f pullup: fix import/merge related code problems 2001-07-30 11:04:03 +00:00
Dima Dorfman 829ad64974 MFC: WARNS cleanups. 2001-07-30 10:38:09 +00:00
Dima Dorfman 4fca01e3b8 MFC: include missing header files. 2001-07-30 10:31:29 +00:00
Dima Dorfman d78fafb19e MFC: WARNS cleanups. 2001-07-30 10:23:00 +00:00
Dima Dorfman 4217d84e2e MFC: include missing header files. 2001-07-30 10:19:54 +00:00
Mark Murray fe42991815 Damn. Missed adding the Makefile. 2001-07-30 10:03:58 +00:00
Andrey A. Chernov 5efaf4582c MFC: koi8-u table 2001-07-30 10:01:01 +00:00
Dima Dorfman 95d05d40c8 MFC: WARNS cleanups. 2001-07-30 09:59:16 +00:00
Dima Dorfman 2d9b81d60c MFC 1.47: call kvm_close() on exit for consistency. 2001-07-30 09:52:38 +00:00
Dima Dorfman 3ef40cf17f MFC 1.18: don't choke on two successive "login" marks. 2001-07-30 09:51:07 +00:00
Dima Dorfman f4ffc2bc21 MFC 1.40: the fact that phk wrote this is not a bug. 2001-07-30 09:46:38 +00:00
Dima Dorfman 3332264ac3 MFC 1.7, 1.8: remove home-grown prototypes for library functions and
add necessary includes.
2001-07-30 09:43:30 +00:00
Brian Somers c2f561d289 MFC: Handle peer REQ/NAKs of >1500 byte MRUs when we have no preference 2001-07-30 09:16:53 +00:00
Brian Somers cc7346c7d1 MFC: Actually add the ``nat proto'' command 2001-07-30 09:15:35 +00:00
Brian Somers 0977ae3151 MFC: Add a ``nat proto'' command -- similar to natd(8)'s --redirect_proto
switch.
2001-07-30 09:06:19 +00:00
Hajimu UMEMOTO b1e0433b64 MFC 1.5: incorrect bounds-check on snprintf. 2001-07-30 08:59:08 +00:00
Brian Somers 5a1eae32f6 MFC: Remove redundant mtu/mru/speed settings 2001-07-30 08:24:31 +00:00
Jim Pirzyk f9307cd05a Added the linux_sysinfo function to implement sysinfo(2).
MFC'ed the following files from HEAD:

		 1.41      +2 -2      src/sys/i386/linux/syscalls.master
           1.104     +77 -1     src/sys/compat/linux/linux_misc.c
           1.29      +1 -2      src/sys/i386/linux/linux_dummy.c
           1.43      +1 -1      src/sys/i386/linux/linux_proto.h
           1.38      +0 -0      src/sys/i386/linux/linux_syscall.h
           1.44      +1 -1      src/sys/i386/linux/linux_sysent.c

PR:		 kern/27759
Submitted by:	[email protected]
Reviewed by:	marcel
Approved by:	marcel
2001-07-30 08:09:34 +00:00
Brooks Davis 9cf0cbe845 MFC: an(4) header duplication removal. 2001-07-30 06:38:34 +00:00
Garance A Drosehn fadca942c6 Remove these files from RELENG_4. They have not been used since at least
May of 2000 (when they were removed from -current).
2001-07-30 05:08:04 +00:00
Bruce A. Mah 721ac7bce6 MFC: Split "Contacting the FreeBSD Project" section. No content
changes.

	problems.sgml	1.3->1.4
2001-07-30 03:15:01 +00:00
Bruce A. Mah 962d20887d MFC: Cleanup "Reporting Problems" section.
problems.sgml	1.2->1.3
2001-07-30 03:13:18 +00:00
cvs2svn 545ea277fd This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-07-30 03:09:48 +00:00
Matt Jacob 5096fabdfc MFC SCSI device flag changes; Roll core minor 2001-07-30 01:32:53 +00:00
Matt Jacob a6b748f0fe roll platform minor 2001-07-30 01:32:20 +00:00
Matt Jacob 7331d0b4d6 MFC:
SCSI device flag changes

	Fix for 28992- (mixed results- wilko still sees the problem, fix
	works for me)
2001-07-30 01:32:04 +00:00
Matt Jacob 20b371d752 MFC:
changes to SCSI device flag settings
 scanning local loop addresses for FL port topologies
2001-07-30 01:30:03 +00:00
Matt Jacob 0ed7a6688a Revert MFC of phk's -A changes- there is some question that they don't work
correctly. This may be incorrect, but I probably should not have been the
one to MFC them to begin with. Bad me.
2001-07-30 00:55:44 +00:00
Matt Jacob 630b186a0c MFC 1.74- add sysctls to set retry counts and timeout values. 2001-07-30 00:48:20 +00:00
Matt Jacob f3e0a1d117 MFC rev 1.11 minor message cleanup 2001-07-30 00:15:22 +00:00
Warner Losh 3b1b3d1c82 MFC: o Clarified suspend + power behavior
o __FreeBSD_version based selinfo.h vs select.h include
	o __FreeBSD_version based ifdefs for a few things different than in
	  current.
	o tunables
	o minor style differences.
2001-07-30 00:11:29 +00:00
George C A Reid b63bd9e6f4 MFC: Add an acceleration option to moused (r1.50 moused.c, r1.34 moused.8) 2001-07-29 23:53:30 +00:00
Matt Jacob 7cfd4d7c69 Oops- Did not mean to commit the Makefile change 2001-07-29 23:53:04 +00:00
Matt Jacob 2fde76dc57 MFC revs 1.58-1.59: address alignment issues. 2001-07-29 23:52:03 +00:00
Matt Jacob 3113f271b5 MFC phk's '-A' changes. 2001-07-29 23:50:12 +00:00
Garance A Drosehn 8603f5121e MFC 1.42: Basically rewrite the dofork() routine, to add more error-checking
and correct the error-checking that was there.
2001-07-29 23:24:03 +00:00
Garance A Drosehn 25ffaca132 MFC 1.19: Get rid of a compile-time warning by casting to (size_t). 2001-07-29 23:19:28 +00:00
Garance A Drosehn 15f220bb24 MFC 1.21: Get rid of a compile-time warning by casting to (size_t). 2001-07-29 23:17:36 +00:00
Garance A Drosehn c8fa619094 MFC 1.23: Fix a few more minor compile-time warnings, mainly by using
size_t where appropriate, and using '("%lu", (unsigned long)asizeval)'
when printing something of type size_t.
2001-07-29 23:15:39 +00:00
Garance A Drosehn 195b3caab2 MFC 1.25: Get rid of some compile-time warnings by defining (or casting)
variables as size_t where appropriate.
2001-07-29 23:11:59 +00:00
Garance A Drosehn f010c50895 MFC 1.31: Fix two compile-time warnings by defining fromlen as socklen_t. 2001-07-29 23:09:15 +00:00
Garance A Drosehn fa4b8b71a6 MFC *: Replace calls to strncpy with calls to strlcpy, and remove the extra step
needed to ensure that the result is null-terminated when using strncpy().

[* = 1.22 displayq.c, 1.41 printjob.c, 1.24 recvjob.c]
2001-07-29 23:06:27 +00:00
Garance A Drosehn e12294f6f2 MFC *: Rename the -w option to be -W (-w is already used by NetBSD). For
now, -w is still accepted, but prints out some warnings via syslog.

[* = 1.22 lpd.8, 1.30 lpd.c]
2001-07-29 23:02:52 +00:00
Garance A Drosehn 0fe06e1ba3 MFC *: Change a few read & write calls to use 'STDOUT_FILENO' instead of '1'.
[* = 1.29 lpd.c, 1.23 recvjob.c]

Submitted by:	David Hill <[email protected]>
2001-07-29 22:58:17 +00:00
Garance A Drosehn 590620c49f MFC *: Change lpd to perform sanity and safety checks on control files as it
receives them from other hosts.  This will not affect jobs coming via lpr on
the local machine.

[* = 1.6 Makefile, 1.1 ctlinfo.c, 1.1 ctlinfo.h, 1.22 recvjob.c]
2001-07-29 22:53:25 +00:00
Kris Kennaway e4c59cece6 MFC: Silence variable format-string warnings 2001-07-29 22:48:37 +00:00
Kris Kennaway 56ef70d675 MFC: Updated tcp_wrappers license from Wietse Venema 2001-07-29 22:11:35 +00:00
Hajimu UMEMOTO aaf9598ff1 MFC: move ipsec security policy allocation into in_pcballoc, before
making pcbs available to the outside world.  otherwise, we will see
inpcb without ipsec security policy attached (-> panic() in ipsec.c).

	sys/netinet/in_pcb.c:		1.86
	sys/netinet/ip_divert.c:	1.50
	sys/netinet/raw_ip.c:		1.80
	sys/netinet/tcp_usrreq.c:	1.65
	sys/netinet/udp_usrreq.c:	1.93
	sys/netinet6/raw_ip6.c:		1.12
	sys/netinet6/udp6_usrreq.c:	1.16
2001-07-29 19:32:40 +00:00
Hajimu UMEMOTO 15cb20ddca MFC 1.63: As commented in defined in sys/net/route.c, rt_fixchange()
has a bad effect, which would cause unnecessary route deletion:

 * Unfortunately, this has the obnoxious
 * property of also triggering for insertion /above/ a pre-existing network
 * route and clones.  Sigh.  This may be fixed some day.

The effect has been even worse, because recent versions of route.c set
the parent rtentry for cloned routes from an interface-direct route.
For example, suppose that we have an interface "ne0" that has an IPv4
subnet "10.0.0.0/24".  Then we may have a cloned route like 10.0.0.1
on the interface, whose parent route is 10.0.0.0/24 (to the interface
ne0).  Now, when we add the default route (i.e. 0.0.0.0/0),
rt_fixchange() will remove the cloned route 10.0.0.1.  The (bad) effect
also prevents rt_setgate from configuring rt_gwroute, which would not
be an intended behavior.

As suggested in the comments to rt_fixchange(), we need stricter check
in the function, to prevent unintentional route deletion.

This fix also solve the "IPV6 panic?" problem in nd6_timer().
2001-07-29 19:18:02 +00:00
Hajimu UMEMOTO f1698a8e7f MFC 1.66: ifconfig if0 netmask xxx.xxx.xxx.xxx didn't change the netmask. 2001-07-29 19:14:38 +00:00
Hajimu UMEMOTO 52684d856b MFC 1.7, 1.8:
- Allow link-local multicast traffic for client.
- Allow ICMPv6 destination unreach, packet too big and NS/NA.
- RIPng also uses link-local to link-local.
- Pass any NS/NA/toobig.
2001-07-29 19:11:50 +00:00
Mark Murray 0c56752729 MFC the working Kerberos 5 (Heimdal) PAM module. This is turned
off by default. Those keen can trivially turn it on.
2001-07-29 18:57:30 +00:00
Mark Murray d1f2428d14 MFC the working Kerberos 5 (Heimdal) PAM module. This is turned
off by default. Those keen can trivially turn it on.
2001-07-29 18:40:33 +00:00
Yoshihiro Takahashi 0f3df2a56f Merged from sys/dev/syscons/syscons.c revision 1.336.2.7. 2001-07-29 11:08:25 +00:00
Yoshihiro Takahashi b1df87bab6 MFC: Fixed conflict with sys/dev/syscons/syscons.h. 2001-07-29 11:07:21 +00:00
Bruce A. Mah 4694623181 MFC: Document net.link.ether.bridge_cfg and net.link.ether.bridge_refresh
sysctl variables.

	bridge.4	1.13->1.14
2001-07-28 22:41:45 +00:00
Hajimu UMEMOTO 87be3a7ac9 MFC 1.11-1.13
- MAXHOSTNAMELEN includes space for the NUL
- Don't read past the end of the host passed to realhostname()
- Simplify IPv4 mapped IPv6 address handling.
2001-07-28 22:24:46 +00:00
Mike Heffner c8509cc8de MFC:
1.8       +2 -1      src/bin/chio/Makefile
  1.18      +22 -22    src/bin/chio/chio.c
  1.3       +5 -5      src/bin/chio/defs.h

	WARNS cleanup
2001-07-28 19:22:01 +00:00
Mike Heffner 63e3a9c1ba MFC:
1.6       +14 -4     src/lib/libc/stdio/tmpfile.c
  1.8       +8 -1      src/lib/libc/stdio/tmpnam.3

	Ability to specify temporary directory with TMPDIR
2001-07-28 19:13:57 +00:00
Justin T. Gibbs a427e78809 MFC: Bring the aic7xxx driver up to the head as of today. 2001-07-28 18:46:44 +00:00
Dima Dorfman 12e0a4028e MFC 1.35: markup fixes. 2001-07-28 17:02:48 +00:00
Dima Dorfman 19b84b2869 MFC 1.34-1.36: sync with -current: minor style fixes. 2001-07-28 17:01:37 +00:00
Dima Dorfman 695de4c13b MFC sysctl 1.30-1.33, sysctl.8 1.32-1.33: -N flag, and DES's spring
cleaning (deprecating -W, -A, -X, etc.).  As in -current, all
deprecated flags are still accepted for backwards compatibility.

Approved by:	des
2001-07-28 16:52:27 +00:00
Dima Dorfman 371032e3c7 MFC: IPFilter 3.4.20 2001-07-28 14:37:25 +00:00
Darren Reed 25a261f244 merge diffs for ipfilter 3.4.16 -> 3.4.20 into RELENG_4 2001-07-28 13:34:25 +00:00
Darren Reed e30f0b306e fix #if mismatch created through import conflict resolution 2001-07-28 13:30:09 +00:00
Darren Reed c6a1fc071a Import ipfilter 3.4.20 into releng_4 2001-07-28 13:05:48 +00:00
Kazutaka YOKOTA 693b751341 MFC:
syscons.c rev 1.365, 1.366
syscons.h rev 1.70
scmouse.c rev 1.25
scvgarndr.c rev 1.11
sctermvar.h rev 1.3
consio.h rev 1.10
2001-07-28 12:51:48 +00:00
Kazutaka YOKOTA 19b836cc65 MFC: rev 1.40 (fix ioctl) 2001-07-28 12:48:33 +00:00
Kazutaka YOKOTA bb63fc53b0 MFC: rev 1.15 (fix typo) 2001-07-28 12:48:00 +00:00
cvs2svn be961371e7 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-07-28 12:27:07 +00:00
Chris D. Faulhaber 88935c88af MFC rev 1.18: Use a safer method of creating the temporary password file 2001-07-28 12:10:15 +00:00
Brian Somers ab6cc794bb MFC: Revert 4551/551 permissions to 4554/554 2001-07-28 12:00:05 +00:00
Brian Somers e025b66d09 MFC: Remove $daily_status_named_logs and figure out which /var/log/messages*
files to look an (in the same way that /etc/security does).

     Don't single-quote $start, reducing it to an empty string.

     Markup corrections to periodic.conf.5
2001-07-28 11:44:23 +00:00
Brian Somers 20c00a6575 MFC: Use 4551/551 permissions rather than 4554/554 2001-07-28 11:34:17 +00:00
Warner Losh 880dc2bf8b MFC the new files for the PCI interrupt routing code and the BIOS
interface.  Having them in -stable won't hurt anything and will make
it easier for me to produce and distribute diffs for the pcic code
that will be using these (indirectly).
2001-07-28 05:55:07 +00:00
Warner Losh fff6a8f9b2 MFC: Remove obsolete and unused file 2001-07-28 05:03:22 +00:00
Warner Losh b42493d7ee MFC: Use freebsd_version for ifdef rather the NOT_YET_XXX 2001-07-28 05:02:29 +00:00
Warner Losh e053cd21b8 MFC: Remove unnecessary include <sys/select.h>. This is now handled
in slot.h.
2001-07-28 03:57:02 +00:00
Warner Losh e23f420db1 MFC: State diagram in comment. 2001-07-28 03:52:15 +00:00
David E. O'Brien b8dffb2660 Use alternate apm0 spelling to reduce diffs to -current. 2001-07-28 01:24:22 +00:00
David E. O'Brien 5f82fdd586 It looks like the `make release' breakage was due to kernel growth, not
my reorg commit.  Dike out the `ncr' driver as the `sym' driver now handles
all the same controllers `ncr' does.
2001-07-28 01:20:38 +00:00
Bill Paul edf79d8bb9 MFC: relocate DELAY() slightly in xl_reset() to silence the "xl%d: command
never completed" warning with newer Tornado cards (e.g. 3c905CX).
2001-07-27 20:56:41 +00:00
Hajimu UMEMOTO 1cd7960727 MFC 1.22, 1.23:
- Avoid to select an interface which is not good for RA/RS.
- Avoid to select lo0 or faith for a default interface.
- Do more strict checking for an interface.
2001-07-27 20:37:53 +00:00
Brooks Davis 27004788c7 MFC: r1.2: Don't print a blank line if no keys are set. 2001-07-27 16:13:44 +00:00
Ian Dowse 210a304927 Back out kern_exit.c revision 1.92.2.4 and kern_sig.c revision
1.72.2.7 (SIGCHLD SIG_IGN signal handling changes) until the issue
with "fault on nofault entry" panics in exit1() is resolved.

The fault seems to occur when p->p_pptr->p_sigacts is dereferenced
in exit1(). It is probably some kind of a race with the exiting of
the parent, but I'm unsure of the details.
2001-07-27 14:06:01 +00:00
Dima Dorfman b46ff66a69 MFC: tcpdump 3.6.3. 2001-07-27 12:36:41 +00:00
Brian Somers b25bf57869 MFC: If an attempt is made to LISTEN for a service tag that's already being
LISTENed for, return EEXISTS.

     Only match the magic "*" service tag if no other LISTEN service tags
     match.

     Require an explicit LISTEN for an empty service tag in order to match
     empty service requests.
2001-07-27 09:47:05 +00:00
Jim Pirzyk 474ba8ff98 Put a knob in the kernel config files to tweak the user max stack size.
PR:		kern/28925
Reviewed by:	[email protected] and [email protected] on -arch.
2001-07-27 08:57:50 +00:00
Peter Wemm 64d5bdf530 Missed an '&' in the TUNABLE_INT_DECL() compat macro
Submitted by:	iedowse
2001-07-26 23:27:53 +00:00
Bill Fenner 64a06380ea Merge tcpdump 3.6.3 from -current. 2001-07-26 22:30:17 +00:00
Paul Saab ba4db700db MFC: Change the dump routines to only abort if control-c is pressed. 2001-07-26 21:54:55 +00:00
Ian Dowse 6331c3441f MFC: Change the interface to vflush() so that it can deal with
extra references on the filesystem root vnode. This fixes bugs in
a number of filesystems that could cause forced umounts to erroneously
return EBUSY, and it centralises a lot of xxx_unmount logic.

This unfortunately requires the recompilation of any filesystem
KLDs, although I have added an extra sanity check that should help
to avoid panics if old modules are used (the filesystem may refuse
to umount, and if so, a warning message will appear on the console).

Not objected to by:	-stable
2001-07-26 20:37:33 +00:00
Kris Kennaway 7cb903522e MFC: Only match the first osreldate date range for constructing the FTP
URL, not all of them.
2001-07-26 20:26:24 +00:00
Wilko Bulte a82e6431f9 <ctl>-<alt>-<del> better be <keycap>ctl</keycap> etc
Caught by: bmah
2001-07-26 19:05:50 +00:00
Ian Dowse 10039b7734 Back out revision 1.17.2.1 (return ESTALE if i_effnlink is zero)
until an interaction with ext2fs is resolved. ext2fs doesn't maintain
i_effnlink, so this broke NFS exporting of ext2fs filesystems.

Noticed by:	bde
2001-07-26 18:59:24 +00:00
Peter Wemm 4984c7e2d2 MFC: the TUNABLE_*() API update, but I have left a backwards compatability
emulation of TUNABLE_INT_DECL() for older drivers.  TUNABLE_INT_FETCH()
is not backwards compatable, but the only consumers of that appeared to
be kernel code which we control and not drivers.

TUNABLE_STR*() came along for free.
2001-07-26 18:53:03 +00:00
Peter Wemm 45d5ecde50 MFC: Change the first arg of getenv*() to be a const char *. 2001-07-26 18:48:35 +00:00
Wilko Bulte 834fc60b94 Document you sometimes seem to need ctl-alt-del on Noname, Multia
and ZLXp is TGA-based and not currently suitable for console use.
2001-07-26 18:18:50 +00:00
Hajimu UMEMOTO 653d070609 MFC 1.80:
- `-a' option for IPv6 was not working correctly.
- Lose any stray host bits that a user may have entered when providing
  a network number and netmask to the `-a' option for IPv6.  This is
  corresponding to 1.79 that is for IPv4 only.
2001-07-26 18:17:59 +00:00
Scott Long cdb786bf40 MFC rev 1.7: Fix off-by-one error in DMA tag. 2001-07-26 17:07:08 +00:00
Bruce A. Mah 156d68cbfc MFC: minor release notes cleanup.
alpha/Makefile		1.3->1.4
	i386/Makefile		1.3->1.4
	common/intro.sgml	1.1->1.2
	common/new.sgml		1.63->1.64
	common/upgrading.sgml	1.2->1.3
2001-07-26 16:46:48 +00:00
Brian Somers 594faebeca MFC: Don't try to remove directories unless we've emptied them first 2001-07-26 09:04:14 +00:00
Bruce A. Mah ec063f739e MFC: ppp(8) tcpmssfixup, ed(4) MII, RANDOM_IP_ID, libcrypt
unification, BIND NOADDITIONAL.

While I'm here, remove a stray &merged; entity.
2001-07-26 04:43:35 +00:00
Yoshihiro Takahashi 4dc09de727 Merged from sys/i386/i386/machdep.c revision 1.385.2.14. 2001-07-26 02:37:53 +00:00
Yoshihiro Takahashi 5a46c04cf7 MFC: Added the ct driver and merged the bs driver changes. 2001-07-26 02:32:19 +00:00
Brian S. Dean 8f8eb82099 MFC revisions 1.464 and 1.115 of machdep.c and swtch.s respectively to
provide better handling of reserved debug register bits; allows
debuggers to write back the unmodified value of dr7 that they received
from the traced process's PCB without it failing with EINVAL, while
still preserving reserved bit settings for the CPU.
2001-07-26 02:29:10 +00:00
Yoshihiro Takahashi f8f4e35f2a Merged from sys/i386/conf/GENERIC revisions 1.246.2.29 and 1.246.2.32. 2001-07-26 02:16:43 +00:00
Yoshihiro Takahashi 8d13a548e8 Merged from sys/i386/i386/machdep.c revision 1.385.2.13. 2001-07-26 02:14:17 +00:00
Ian Dowse a9bf61fed9 MFC: 1.493; dcphy depends on pci. 2001-07-26 00:41:40 +00:00
Warner Losh af89bcad49 MFC: Add entry for ed driver needing mii now that it was MFC'd by Ian Dowse 2001-07-25 22:54:25 +00:00
Jim Pirzyk 89d99af48f Commited patch for uni signaling fix.
PR:		kern/28748
Submitted by:	Richard Hodges <[email protected]>
2001-07-25 20:53:44 +00:00
cvs2svn ef5f2cdd88 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-07-25 19:21:07 +00:00
Jonathan Lemon a6419dadec MFC: r1.116; ensure device is in d0 powerstate when resuming from suspend. 2001-07-25 18:12:44 +00:00
Ian Dowse e534475b71 MFC: add miibus support for the Dlink DL10022 chips, as found on
the Netgear FA410-TX pccard. The "fa_select" program is no longer
needed to make these cards work. However, it may be necessary to
set the media type manually using "ifconfig media XXX" if autoneg
fails. "device miibus" is now required by the ed driver.
2001-07-25 18:06:05 +00:00
Jonathan Lemon 7704c069f4 MFC: r1.16; always enable VLAN support when building as a module. 2001-07-25 17:46:03 +00:00
Jonathan Lemon 3b3566a002 MFC: r1.114, r1.115; check for possible card ejection, additional gate
for MWI enable, add missing splx().
2001-07-25 17:44:49 +00:00
Jonathan Lemon 623b273c21 MFC: r1.41; fix for indefinite timeout. 2001-07-25 17:33:07 +00:00
Jonathan Lemon 3f0e6ebfe9 MFC: do not do arp send/resolve on interface marked NOARP. 2001-07-25 17:27:56 +00:00
Matthew Dillon 80c6991c99 MFC kern_exit.c 1.131, kern_sig.c 1.125 - bring SIGCHLD SIG_IGN signal
handling in line with other operating systems.
2001-07-25 17:21:46 +00:00
Ian Dowse bd759c7f06 MFC: 1.25; Don't allow NFS filehandle lookups to succeed on an
inode whose effective link count is zero, since the file is really
gone from the system. This could happen when soft-updates delays
the actual freeing of the inode.
2001-07-25 17:00:04 +00:00
Brooks Davis c6ca4d3e31 MFC: intrastructure mode has been the default for some time now. 2001-07-25 16:42:30 +00:00
Dima Dorfman 0eac3759c6 Remove devfs(5). 2001-07-25 16:07:04 +00:00
Dima Dorfman 7391a1b418 mount_devfs(5) doesn't exist. 2001-07-25 16:05:35 +00:00
Dima Dorfman 7798e7375d There is no rc.devfs. 2001-07-25 16:00:55 +00:00
Dima Dorfman 748ea0f196 Recognize, bug ignore, the -d option which was removed in the last
commit for fault tolernace purposes (it wouldn't be very nice if init
failed).
2001-07-25 15:59:12 +00:00
Dima Dorfman 7dc4719df5 Remove DEVFS vestiges. 2001-07-25 15:57:43 +00:00
Dima Dorfman ab9c7031af unifdef DEVFS 2001-07-25 15:56:09 +00:00
Dima Dorfman 77ebf69825 Removing old, broken DEVFS from -stable phase two: remove
implementation, header files, and man pages (i.e., all files specific
to DEVFS).
2001-07-25 12:11:15 +00:00
Dima Dorfman 5f13773353 MFC: {d}hwatch ddb commands. 2001-07-25 11:59:41 +00:00
Brian Somers 249fc9dc6b MFC: Bring the PPPoE Ethernet interface up *BEFORE* we use it 2001-07-25 11:50:56 +00:00
Brian S. Dean a59329bebf Partial revert of last commit, I did not intend to commit "options
DDB" to GENERIC.
2001-07-25 01:05:33 +00:00
Brian S. Dean 06dc7b096f MFC new hwatch/dhwatch ddb commands for setting/deleting hardware
watchpoints within ddb.
2001-07-25 01:00:09 +00:00
Matt Jacob c12bd331a3 (MFC of 1.9- I didn't get an MFC notice for some reason)
Make sure you don't have a file descriptor leak for the 'real'
underlying CAM device. This needs to be checked not only in
the open routine, but the device->fd has to be initialized
as well.
2001-07-24 23:09:04 +00:00
Brooks Davis b9a449df14 MFC: interface cloning support. 2001-07-24 19:27:42 +00:00
Brooks Davis 4369b076f9 Mention gif(4) changes related to cloning support.
Approved by:	imp
2001-07-24 19:23:07 +00:00
Brooks Davis 14329cf757 MFC: Interface cloning support. gif modularity and cloning.
stf modularity and removal of gif dependence.

Reviewed by:	brian
2001-07-24 19:10:19 +00:00
Dima Dorfman b43ac47401 Remove opt_devfs.h. 2001-07-24 09:51:06 +00:00
Dima Dorfman 130f84f0b5 Removing old, broken DEVFS from -stable phase one: remove support
code, everything under #ifdef DEVFS (and thus opt_devfs.h), and most
references to the DEVFS routines.  Code that really couldn't be
reached was left alone.  Removal of the actual DEVFS implementation
will come later.

Approved by:	-stable
2001-07-24 09:49:45 +00:00
Dima Dorfman ed9b387d5a MFC 1.112, 1.114-1.116, 1.118: assorted markup fixes and document
syslogd_program and inetd_program.
2001-07-24 09:14:15 +00:00
Sheldon Hearn dcb757a90d MFC: fix double 'the' 2001-07-24 08:31:48 +00:00
Yaroslav Tykhiy 8022047eb6 MFC: rev1.3-1.4: Fix the manpage name and the return value statement. 2001-07-24 07:17:01 +00:00
Crist J. Clark 83e485e4fb MFC of 1.165 changes. Fixing a fragment logging bug and upgrading to
tcpdump(8)-like fragment logging.

PR:		kern/23446
Approved by:	ru
2001-07-24 07:07:11 +00:00
Kris Kennaway 8e6e16acc8 MFC: r1.104: silence format string warnings 2001-07-24 03:49:03 +00:00
Bruce A. Mah 18062089f8 Add SA-01:49 to errata. 2001-07-24 00:37:41 +00:00
Bruce A. Mah 3ba5324cf7 MFC: SA-01:49 for telnetd buffer overflow fix. 2001-07-24 00:34:03 +00:00
Bruce A. Mah 0b932e9641 MFC: DFE-538TX, fix s/DGE=500SX/DGS-500SX/ typo. 2001-07-23 23:50:57 +00:00
Kris Kennaway 9e296a17a7 MFC: Correct semantics of output_data*() and netflush() to ensure
deterministic operation
2001-07-23 22:12:45 +00:00
Mike Smith 7b2d420a6a MFC: new PCI ID for PERC 3/Di 2001-07-23 22:05:23 +00:00
Dima Dorfman ca21be806f MFC 1.13: try not to dereference NULL. 2001-07-23 18:41:40 +00:00
David E. O'Brien 1c97f09717 MFC: remind people to document __FreeBSD_version bumps 2001-07-23 17:51:43 +00:00
John Baldwin 673c2ff244 MFC: Remove bogus comment about SYNOPSIS limiting number of open devices. 2001-07-23 17:50:42 +00:00
Gregory Neil Shapiro 6731df2881 Spelling fix: "acutally" -> "actually"
(Already fixed in HEAD)
2001-07-23 17:18:05 +00:00
Sheldon Hearn 83d0f91cfb MFC rev 1.53: fix "swallowed" paragraph in list 2001-07-23 10:19:18 +00:00
Dima Dorfman 6f4ffe0477 MFC: fix one-byte overrun. 2001-07-23 10:13:04 +00:00
Dima Dorfman a969d4126a MFC 1.303: don't insist on creating rocketport devices in /dev. 2001-07-23 10:11:38 +00:00
Dima Dorfman 051ac7eb5d MFC 1.53: call disk_destroy in cdcleanup() as appropriate. 2001-07-23 10:09:50 +00:00
Dima Dorfman c087f40ec0 MFC 1.9: don't claim that strncpy() is the same as strcpy(). 2001-07-23 10:08:31 +00:00
Dima Dorfman 6eb0b66661 MFC: syslogd_program and inetd_program 2001-07-23 10:02:13 +00:00
Dima Dorfman 29c0b42962 MFC 1.101: mdoc(7) police: use Va and Vt where appropriate. 2001-07-23 09:53:20 +00:00
Dima Dorfman 4a23eb6ed2 MFC 1.57, 1.58: note about wrapping long statements and err(3) usage. 2001-07-23 09:48:20 +00:00
Brian Somers aac3ce6aea MFC: Ignore mtu/mru configurations that are greater than the maximum values 2001-07-23 09:37:45 +00:00
Peter Pentchev de5dae7a95 MFC the real point of rev. 1.32: teach fstat(1) about FIFO's. 2001-07-23 07:23:06 +00:00
Peter Pentchev b23b33d92c MFC the style part of rev. 1.32: four-character second-level indents. 2001-07-23 07:16:36 +00:00
Jim Pirzyk a5c9575fcd changed hostid from long to unsigned long to be able to store values > 2GB
on i386 platforms.  Also changed SYSCTL type from INT to ULONG and removed
comment about it.

MFC'ed 1.92 of kernel.h (done by mjacob, so as not to break -stable) and
1.41 of kern_mib.c

PR:			kern/21132
2001-07-23 06:14:22 +00:00
Kris Kennaway 936dd733b2 MFC: Note that the umass device requires scbus and da 2001-07-22 21:37:25 +00:00
Hajimu UMEMOTO 2fb3efb21e MFC 1.14: do not M_WAITOK in in6_update_ifa(), since this function
can be called under splnet().  (some comment was added by KAME)
2001-07-22 19:49:05 +00:00
Matthew Dillon 5274d51153 MFC 1.15 - set the NOADDITIONAL flag for bind to force it to behave
consistently when faced with broken NS glue.
2001-07-22 18:57:06 +00:00
Warner Losh 5a6e30449a Bump FreeBSD_version in stable. Lots of drivers want to #ifdef the
powerstate support.

# I wonder whwere I should document this.
2001-07-22 18:55:08 +00:00
Jesper Skriver 6570cebb44 MFC src/usr.sbin/sysinstall/tcpip.c rev 1.116
Fix IP address checking, now we allow addresses like 172.17.1.0/23 as
a host address
2001-07-22 17:47:04 +00:00
Dima Dorfman 53c4209f0d MFC: DEVICE_* macros 2001-07-22 13:50:20 +00:00
Dima Dorfman 8432a67785 MFC: remove whitespace at EOL. 2001-07-22 12:41:39 +00:00
Dima Dorfman b5cf87e26a MFC: remove whitespace at EOL. 2001-07-22 12:07:25 +00:00
Dima Dorfman 4622ab764a MFC: remove whitespace at EOL. 2001-07-22 11:32:37 +00:00
Dima Dorfman df94813f65 MFC 1.2: remove whitespace at EOL and add $FreeBSD$. 2001-07-22 11:32:10 +00:00
Dima Dorfman 0c61c7b2fc MFC: remove extraneous .Pp before and/or after .Sh. 2001-07-22 11:02:43 +00:00
Dima Dorfman fe0df0b0b5 MFC: remove duplicate words. 2001-07-22 10:14:52 +00:00
Garance A Drosehn 2eb8561a35 MFC 1.39: Replace a call to alloca() in 'lpr -r' processing, thus avoiding
an error when compiling on freebsd/alpha with -ansi (and on some non-fbsd
platforms).
2001-07-22 03:25:32 +00:00
Garance A Drosehn 0974c6a48e MFC 1.20: Get rid of one compile-time warning (on alpha) by changing
an 'int' to a 'size_t'.
2001-07-22 03:21:52 +00:00
Garance A Drosehn d2aeb2e938 MFC 1.13: Get lpr/pac.c to compile without warnings with BDECFLAGS 2001-07-22 03:15:18 +00:00
Garance A Drosehn bc5f0b203c MFC *: Replace three subtly-wrong calls to strncpy with calls to strlcpy,
and use (size_t) in a few places to avoid compile-time warnings on alpha.
[* = 1.22 common.c, 1.19 lp.h]
2001-07-22 03:12:24 +00:00
Garance A Drosehn ae62fb3fef MFC *: Fix most of the warnings generated when compiling lpr with
-Wnon-const-format, often by just telling gcc that some internal routine
is "__printflike" (mostly done by [email protected]).
[* = 1.21 displayq.c, 1.18 lp.h, 1.18 cmds.c, 1.28 lpd.c, 1.40 printjob.c,
 1.21 recvjob.c, 1.11 lpq.c]
2001-07-22 02:51:53 +00:00
Garance A Drosehn 6ba9082e52 MFC *: Change signal-handling to reset SIGCHLD to SIGDFLT instead of SIG_IGN.
This fixes a problem with using print filters (if=, of=, etc) that showed
up in -current (although this fix is fine for stable too).
[* = 1.27 lpd.c, 1.39 printjob.c]
2001-07-22 02:39:45 +00:00
Garance A Drosehn e485da93c3 MFC 1.38: Fix the type of the NULL arg to execl() [brian] 2001-07-22 02:04:56 +00:00
Yoshihiro Takahashi a6f1a6e3d1 Added boot_crunch.conf for PC98. 2001-07-22 01:00:32 +00:00
cvs2svn e0f56f6d71 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-07-22 00:58:16 +00:00
Noriaki Mitsunaga b20ce4e3d4 [MFC]
Catch up with NetBSD/pc98.
o Much cleanly separate NetBSD(XS) / FreeBSD(CAM) codes.
o Improve tagged queing support (full QTAG).
o Improve quirk support.
o Improve parity error retry.
o Impliment wide negotheation.
o Cmd link support.
o Add copyright of CAM part.
o Change for CAM_NEW_TRAN_CODE.
o Work around for buggy KME UJDCD450.

o stg: add disconnet condition.
o nsp: use suspend I/O.
and more. I thank Honda-san.

dev/{ncv,nsp,stg}/*_{pccard,isa}.c: add splcam() before calling
        attach/detach functions.

Tested by: bsd-nomads
Obtained from:	NetBSD/pc98
2001-07-22 00:21:41 +00:00
Warner Losh 2c987b07e1 MFC: Merge enable/disable_bustmaster/io, get/set_powerstate from
current.  Also merge some of the irq routing code (ifdef'd out) to
help make it easier to test the MFC of the IRQ routing code.

Approved in principle by: msmith
2001-07-21 22:40:27 +00:00
Ian Dowse 4809def8c7 MFC: 1.45, 1.46; Unbreak the -R option for foreground mounts, and
change the foreground mount behaviour back to the old default of
retrying forever.

Document the current defaults and mention the options that can be
used to override them.
2001-07-21 18:59:04 +00:00
David E. O'Brien 586d86ffa8 MFC: do not need libipx as I have conditionally diked that functional
out of ifconfig(8).
2001-07-21 17:52:04 +00:00
David E. O'Brien 5b5a32c008 MFC: dike out the IPX bits if RELEASE_CRUNCH is defined. 2001-07-21 17:47:39 +00:00
David E. O'Brien 3741a25066 Move boot_crunch.conf into ARCH-specific directories. We just cannot
share a single conf file anymore -- the needs of our ARCH platforms are
too different.
2001-07-21 17:44:18 +00:00
cvs2svn 337d17fc86 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-07-21 17:28:22 +00:00
Robert Nordier 1a3ca0aa43 MFC: Unset MAINTAINER. 2001-07-21 14:35:37 +00:00
Jens Schweikhardt e02a720cab MFC: mdoc deputy police: remove whitespace at eol because this
may confuse groff.
2001-07-21 09:16:58 +00:00
Jens Schweikhardt 18da3282d6 MFC: fixed doubled words typos. 2001-07-21 09:09:50 +00:00
Ben Smithurst db58d54548 MFC: rev 1.51: add missing closing parenthesis. 2001-07-21 05:34:54 +00:00
David E. O'Brien f8a82feba3 MFC: rev 1.50 (sort by size example) 2001-07-21 05:02:59 +00:00
David E. O'Brien 7aa0700010 MFC:
Removed CSRG ids.  CSRG never had anything to do with dpt.
Don't set BINMODE to 500.  This is not a setuid program.
2001-07-21 01:31:41 +00:00
Jim Pirzyk 696ccfad4f Applied the patch to fix HARP ATM that was broken when KAME IPv6 came
into FreeBSD.

PR:		kern/23620
Submitted by:	[email protected]
2001-07-20 20:43:17 +00:00
Ruslan Ermilov f748b61e7e MFC: fixed the remote buffer overflow. 2001-07-20 15:17:12 +00:00
Jacques Vidrine 2202981281 MFC 1.18: Check for krb5_rd_rep failure. 2001-07-20 12:23:57 +00:00
Yoshihiro Takahashi b3e6198011 Merged from sys/dev/syscons/scvtb.c revision 1.5.2.1 2001-07-20 10:39:39 +00:00
Yoshihiro Takahashi f38ad9e185 Merged from sys/dev/syscons/syscons.c revision 1.336.2.6 2001-07-20 10:39:13 +00:00
Yoshihiro Takahashi 1657a31a7a Merged from sys/isa/fd.c revision 1.176.2.2 2001-07-20 10:38:42 +00:00
Ben Smithurst b16114227c MFC: rev 1.7: Fix some minor nits:
IEEE802.11 -> IEEE 802.11
(infrastructure) mode. -> (infrastructure mode).
place of ".".
2001-07-20 05:36:46 +00:00
Ben Smithurst 609a855e69 MFC: rev 1.21: Correct the description of the "low" (< 1024) port range.
PR:             25500
Submitted by:   Barry Irwin <[email protected]>
2001-07-20 05:28:14 +00:00
Ben Smithurst 801d1b9932 MFC: remove a comment which seems to confuse makewhatis. I still need to
find out why it confuses it though...
2001-07-20 05:21:10 +00:00
Bruce A. Mah 6708f43a79 MFC: freebsd.org -> FreeBSD.org 2001-07-20 04:43:37 +00:00
Brooks Davis e20e2e1bda Upbreak the kernel by removing bogus '{'. 2001-07-20 02:01:26 +00:00
Warner Losh 91f2e6bee6 MFC: The not_yet stuff can now go in because the defines in pcic_pci.h. 2001-07-19 22:38:42 +00:00
Warner Losh 7b4afb6990 MFC: Merge the non-conflicting cardbus register defines from current. 2001-07-19 22:36:16 +00:00
Warner Losh b1d7112e5b Forgot the include file changes necessary for last commit to pcic_pci.c.
Also, pcic_pci.h was previously committed by mistake, so this backs this
out.
2001-07-19 22:03:06 +00:00
Warner Losh 3ad6d5aaeb MFC: Merge the flags and version info from current for the table of
devices that we support.
2001-07-19 21:57:11 +00:00
Kris Kennaway 03fafc9db4 Add PRNG security patch to prevent guessing of internal state.
Obtained from:  OpenSSL
2001-07-19 21:01:08 +00:00
Warner Losh 0e9a73fdbc Fix slightly botched MFC:
Include machine/clock.h, since otherwise DELAY isn't defined.
	#ifdef a variable out that we ifdef'd its use in code out of.
2001-07-19 20:41:00 +00:00
Ruslan Ermilov 8dd6b51fb4 MFC: 1.4: added missing dependancy line. 2001-07-19 19:06:18 +00:00
Matthew Dillon c028f7cd01 MFC 1.15 - set the NOADDITIONAL flag to force named to operate in a more
consistent fashion for certain common misconfigurations.
2001-07-19 18:55:17 +00:00
Bill Paul 71a5a64183 MFC: add the PCI ID for the D-Link DFE-530TX+/DFE-538TX. 2001-07-19 18:33:07 +00:00
Bill Paul 2561434958 MFC: try to drain send queue if we lose link during heavy transmit
activity instead of letting it sit and return 'no buffer available'
errors.
2001-07-19 18:26:15 +00:00
Warner Losh 4eb8b58cc0 MFC: Add ventry to the BIOS entries that we scan for at boot time.
Also, while I'm here, merge PCIBIOS defines.  They are harmless in
stable and make the patchset I'm maintaining for pci pcic attachment
smaller.
2001-07-19 18:07:35 +00:00
Warner Losh 45212d4bfd MFC: Include sys/select.h since this file is dependent on it.
Previously, we required all our users to include this.  In current, we
automatically include sys/selinfo.h, so do likewise in stable with
sys/select.h to keep the diffs to other code smaller.
2001-07-19 18:04:42 +00:00
Bruce A. Mah ebc7262c14 MFC: README style cleanup.
about.sgml	1.1->1.2
	intro.sgml	1.1->1.2
	release.ent	1.1->1.2
2001-07-19 16:31:06 +00:00
Bruce A. Mah 6d21623072 MFC: Punt users to Handbook for a list of CDROM/DVD publishers.
obtaining.sgml	1.3->1.4
2001-07-19 15:22:45 +00:00
Joerg Wunsch b9d312f2ad Use FDOPT_NOERRLOG to avoid cluttering the console with floppy media
error messages while formatting.
2001-07-19 13:21:19 +00:00
Joerg Wunsch c8cb0b77b0 Use FDOPT_NOERRLOG to avoid cluttering the console with floppy media
error messages while formatting.  If errors have been encountered,
print a summary of up to 10 errors before exiting.

Since i don't expect fdread(1) and thus ../fdread/fdutil.c to be
merged into 4-stable, i included printstatus() into fdformat.c, and
added the necessary NE7_FOO #defines as well (since they are not
available in a userland-visible file in RELENG_4).
2001-07-19 13:20:42 +00:00
Joerg Wunsch 3823a37106 Merge a small part of the floppy driver changes from -current into
RELENG_4.  FDOPT_NOERRLOG and the FD_GSTAT ioctl command are merged,
both are fairly minor changes that are easily auditable and thus
copmatible with the policy of -stable.
2001-07-19 13:16:54 +00:00
Hajimu UMEMOTO 893742827f MFC 1.55: Show IPv6 denied packets. 2001-07-19 12:20:44 +00:00
Brian Somers 3845b609da MFC: Adjust MSSs in both diretions 2001-07-19 11:39:54 +00:00
Peter Pentchev a25e5c221e Unbreak the build: those two variables are only unused in -current,
because the 'service create' code was changed after the TI-RPC import.
TI-RPC is still not in stable, and transp and sock are still very much
used :(
2001-07-19 10:58:22 +00:00
Kris Kennaway dcb07befe8 Pointy hat. 2001-07-19 09:19:47 +00:00
KATO Takenori 2a321155ce MFC: Recoginize Tualatin core (1.92.) 2001-07-19 09:12:07 +00:00
Dag-Erling Smørgrav f5487515fd MFC: 4.4 will have sbufs. 2001-07-19 09:08:01 +00:00
Dag-Erling Smørgrav 83b0cae40e MFC: Connect the sbuf code to the build 2001-07-19 08:39:44 +00:00
Dag-Erling Smørgrav 451497e2ba MFC: add the sbuf code (but don't connect it to the build yet) 2001-07-19 08:21:18 +00:00
Dima Dorfman 104fff72bb MFC: last -d 2001-07-19 08:03:08 +00:00
Dima Dorfman 8b6c20f341 MFC 1.17, 1.19: -d option and warning cleanups. 2001-07-19 07:59:26 +00:00
Dima Dorfman b521790c9e MFC 1.15-1.17: misc. fixes from OpenBSD and other cleanups. 2001-07-19 07:57:42 +00:00
Dima Dorfman 41607d78e8 &merged; is meaningless here (well, unless we're talking about merging
to RELENG_3, but that isn't the case this time).
2001-07-19 06:46:30 +00:00
Dima Dorfman 8dfbd7826d MFC: vidcontrol -C 2001-07-19 06:45:37 +00:00
Dima Dorfman c5fe79462d MFC: -C (clear history), -h (set history) 2001-07-19 06:40:58 +00:00
Dima Dorfman 995412613e MFC: CONS_CLRHIST 2001-07-19 06:38:53 +00:00
Kris Kennaway e62c173e4d MFC: Add ``options RANDOM_IP_ID'' which randomizes the ID field of IP
packets.  This closes a minor information leak which allows a remote
observer to determine the rate at which the machine is generating packets,
since the default behaviour is to increment a counter for each packet sent.
2001-07-19 06:37:26 +00:00
Dima Dorfman 14ef3eb88b MFC 1.38, 1.39: dump date and sort opts. 2001-07-19 06:24:06 +00:00
Dima Dorfman d1e3f27704 MFC: fix spelling. 2001-07-19 06:22:53 +00:00
Dima Dorfman 72cf5e7195 MFC: remove duplicate $FreeBSD$. 2001-07-19 06:21:26 +00:00
Dima Dorfman 16595c5433 MFC 1.19: fix grammar. 2001-07-19 06:16:41 +00:00
Dima Dorfman 372da11628 MFC 1.8: fix spelling error. 2001-07-19 06:08:38 +00:00
Kris Kennaway 6a915f5d25 MFC: r1.2: correct style bugs 2001-07-19 06:08:21 +00:00
Kris Kennaway 0e110ef2c9 MFC: r1.61: Properly quote recursive pkg_add operations so that filenames
with spaces or special characters in them won't barf.
2001-07-19 06:07:30 +00:00
Dima Dorfman 1617f8f496 MFC 1.17: OpenSSH doesn't forward keys by default. 2001-07-19 06:07:28 +00:00
Dima Dorfman 8070786e1a MFC 1.14: there's no support for the 3Com 3c505. 2001-07-19 06:06:28 +00:00
Kris Kennaway 817479dcfe MFC: r1.38:
Clean up some of the evil string handling in this code, replace
warnx()+exit() with errx() and replace a big if..then..else construct
to determine the package download directory with a lookup table.
2001-07-19 06:06:01 +00:00
Dima Dorfman 87bb545350 MFC/NOTES 1.929: fix CONSPEED documentation. 2001-07-19 06:04:29 +00:00
Dima Dorfman c9c94e5a51 MFC 1.12, 1.13: EACCES is a possible error. 2001-07-19 06:01:07 +00:00
Peter Wemm 11b02b8633 MFC: rev 1.29 (use a real prototype for ansi compilers) 2001-07-19 05:46:39 +00:00
Dima Dorfman 1a946f3542 MFC 1.22, 1.23: document existing vfc_flags. 2001-07-19 05:46:36 +00:00
Dima Dorfman f4f9522209 MFC 1.2: correct brain-o. 2001-07-19 05:45:03 +00:00
Dima Dorfman c2ec0a95d6 MFC 1.77: compile okay with -DVIRTUAL_HOSTING. 2001-07-19 05:44:08 +00:00
Dima Dorfman 136b5fee8c MFC 1.116: move `fxp' to miibus section. 2001-07-19 05:42:23 +00:00
Dima Dorfman 11d6f604db MFC: `pcn' supports AMD Am79C97x cards, not Am79C79x cards. 2001-07-19 05:40:43 +00:00
Kris Kennaway 1775b27b89 MFC: r1.15: Mark some functions as __printflike() 2001-07-19 05:25:28 +00:00
Kris Kennaway a4dc3741c3 MFC: r1.12: compatability -> compatibility 2001-07-19 05:24:10 +00:00
Kris Kennaway 11d2884a89 MFC: r1.2: Preceed/preceeding are not english words. Use precede and preceding. 2001-07-19 05:22:36 +00:00
Kris Kennaway 4f2bf361d3 MFC: r1.11: Nuke unused variables. 2001-07-19 05:21:28 +00:00
Kris Kennaway e1a2107ac3 MFC: r1.10: Fix typo: seperate -> separate. 2001-07-19 05:20:49 +00:00
Kris Kennaway eb129a4f35 MFC: r1.10: Print "-" instead of "" in the grace field if there is no
grace period; this keeps the number of whitespace-separated fields
constant.
2001-07-19 05:18:56 +00:00
Kris Kennaway 356deea3b0 MFC: r1.2: Off by one in counting the number of MIB entries. 2001-07-19 05:17:45 +00:00
Kris Kennaway caa4957632 MFC: r1.5: Include missing header files which define functions for which
gcc has builtints (e.g., exit, strcmp).
2001-07-19 05:17:06 +00:00
Kris Kennaway e1513bde66 MFC: r1.30:
- Correct MAXPATHLEN/MAXHOSTNAMELEN usage
- Check return values of malloc() and strdup()
- Replace strcpy()/strcat()/sprintf() usage with strlcpy()/snprintf
2001-07-19 05:12:46 +00:00
Kris Kennaway aaec4a2387 MFC: r1.3, r1.4:
Start the correct copy of named (pass ${named_program} to ndc(8)).

Source rc.conf so that named.restart can restart named with the correct
flags.
2001-07-19 05:11:06 +00:00
Kris Kennaway 02e7790bab MFC: r1.5: Include missing header files which define functions for which
gcc has builtints (e.g., exit, strcmp).
2001-07-19 05:09:25 +00:00
Kris Kennaway d74fc9d47c MFC: r1.6: nuke unused variable 2001-07-19 05:05:21 +00:00
Kris Kennaway 2dac16d840 MFC: r1.6: You can't free a string and then use it as the error message to
errx. Instead use warn to print the string, then cleanup and exit
normally.

This fixes a core dump if the executable to be run doesn't exist.
2001-07-19 05:04:45 +00:00
Kris Kennaway f75f6f7b1c MFC: r1.3: Include stdlib.h for exit(3). 2001-07-19 05:02:46 +00:00
Kris Kennaway 6977a99e45 MFC: Wrap a long line and remove an extra include 2001-07-19 04:42:38 +00:00
Kris Kennaway de90a19060 MFC: Add support for creating a.out output files in addition to ELF.
This allows booting from compressed binaries using older bootstraps.
2001-07-19 04:37:24 +00:00
Kris Kennaway ae714aeb59 MFC: Nuke unused variables 2001-07-19 04:21:20 +00:00
Kris Kennaway c2453ff2fa MFC: r1.12: Nuke unused variables. 2001-07-19 04:17:03 +00:00
Kris Kennaway 88fd0d71e7 MFC: r1.19: Properly check malloc(3) return values 2001-07-19 04:15:42 +00:00
Kris Kennaway a4c134777c MFC: r1.5: nuke unused variable 2001-07-19 04:10:49 +00:00
Kris Kennaway c8e01f8b99 MFC: r1.31, r1.32
Add the 'next' and 'prev' commands (aliased to '+' and '-') which skip
forward or backward by a specified number of tracks (defaulting to 1).
Use strvisx() to display the media catalog in case it contains unprintable
characters.  Sort includes.  Based on two patches submitted by PR, plus
style fixes and other changes of my own.

Don't complain about deprecated environment variables, like MUSIC_CD,
being present in the environment if the user has CDROM defined, or
has specified a device on the command line.

This avoids users of ports like 'workman' that use these variables
getting gratuitous warnings from cdcontrol.
2001-07-19 03:59:02 +00:00
Kris Kennaway 82d1787720 MFC: Fix a harmless format string bogon and mark a function as
__printflike().  There is still one instance of non-constant format string
use inside that function, but it's hard to fix.
2001-07-19 01:46:55 +00:00
Kris Kennaway 4291ae835b MFC: It seems to be no longer true that -O2 is required to compile this. 2001-07-19 01:45:31 +00:00
Kris Kennaway 627bd3d2de MFC: Mark some functions as __printflike() 2001-07-19 01:42:25 +00:00
Kris Kennaway 063910985d MFC: Don't generate syslog() statements which have format string vulnerabilities. 2001-07-19 01:38:22 +00:00
Kris Kennaway 3d96e0c423 MFC: Mark relevant functions __printflike()/__printf0like() and silence
some of the non-constant format string warnings.
2001-07-19 01:33:02 +00:00
Kris Kennaway ff9546ee4b MFC: r1.8 decl.c, r1.5 externs1.h
Mark a function as __printflike() and fix a non-exploitable format string
warning.
2001-07-19 01:28:12 +00:00
Kris Kennaway e53c5304d8 MFC: r1.8: Silence a non-constant format string warning. 2001-07-19 01:22:16 +00:00
cvs2svn 205aa11fa8 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-07-18 15:58:07 +00:00
Jim Pirzyk da22b8e7c6 Added CTLTYPE_{UINT|LONG|ULONG} types.
PR:		kern/21132
Reviewed by:	no objections to by -arch
2001-07-18 15:36:56 +00:00
Jim Pirzyk cde4f2eb70 modfied sysctl command to allow setting values > 2GB if the mib supports it.
PR:		kern/21132
Reviewed by:	no objections to by -arch
2001-07-18 15:36:45 +00:00
Sheldon Hearn 6ebb21dd98 MFC: remove example of bad sentence breaking style 2001-07-18 08:51:36 +00:00
Hajimu UMEMOTO de67741a6c MFC 1.305: Add ftp2.jp.freebsd.org as IPv6 ready mirror server.
Now, ftp2.jp.freebsd.org is serverd by IIJ.
2001-07-18 07:27:15 +00:00
Bruce A. Mah ca053e95c5 MFC: SA-01:48, mail(1) -E. 2001-07-18 03:11:12 +00:00
Bruce A. Mah edcfee6246 Mention FreeBSD-SA-01:48 in 4-STABLE errata. 2001-07-18 03:05:09 +00:00
Bruce A. Mah 2fc53204b4 MFC: growfs(8) + ffsinfo(8), inetd(8) ident support cleanup,
inetd(8) AF_UNIX support.
2001-07-17 20:09:22 +00:00
Bruce A. Mah d076a3e309 MFC: More details on most recent KAME import. 2001-07-17 16:45:56 +00:00
Peter Pentchev 790cd3c280 MFC: add the -d command-line option to direct error messages to stderr,
info messages to stdout, instead of logging everything via syslog.
2001-07-17 14:59:26 +00:00
Ruslan Ermilov 862ef314fe MFC: 1.36 (use queue(3) macros), 1.39 (ipfw `me' security fix). 2001-07-17 10:50:01 +00:00
David Malone a17e9d36b9 Sync with -current:
Ident code cleanups and fixes.
Get rid of se_ctladdrinitok.
Man page cleanups.
Unix domain socket support.
WARNS cleanup and don't use -Wall directly.
2001-07-17 10:45:03 +00:00
Bruce A. Mah c2e8b3690b MFC: Language-dependent catalogs for RELNOTESng should override
the language-independent catalog.

	doc.relnotes.mk		1.9->1.10
2001-07-17 00:53:33 +00:00
Bruce A. Mah 3a925e0b63 MFC: Minor style tweaks.
article.sgml	1.3->1.4
2001-07-16 22:25:32 +00:00
Bruce A. Mah b4bbce1780 MFC: ftpmail.vix.com doesn't exist anymore; don't point users at it. 2001-07-16 20:23:44 +00:00
Bruce A. Mah 42eb7d61fe Minor style tweaks and markup fixes.
In particular, point to mirrors section of handbook and
www.freebsdmirrors.org where appropriate.
2001-07-16 17:05:59 +00:00
Bill Paul c805e78fb3 MFC: handle the RX_ERR interrupt with the end of frame handler, not the
end of channel handler. Also merge in the i386 receive 'optimization' (no
copies on receive even though this results in unaligned accesses later).
2001-07-16 16:36:30 +00:00
Bruce A. Mah 4c19d57441 Minor markup and style tweaks. 2001-07-16 16:04:08 +00:00
Bruce A. Mah 4e27286633 MFC: Abstract for readme. 2001-07-16 15:53:20 +00:00
cvs2svn 643b9fe607 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-07-16 15:52:29 +00:00
Thomas-Henning von Kamptz 82432a9876 growfs MFC 2001-07-16 15:02:13 +00:00
Thomas-Henning von Kamptz bd639ac21b fix an old inconsistency to prepare the MFC for growfs
Reviewed by:	chm
2001-07-16 14:59:26 +00:00
Sheldon Hearn b26e2bc46a MFC: grammar: 'effect' vs 'affect' 2001-07-16 10:55:24 +00:00
Mark Murray 0ce00db9c5 MFC: extended PAM services and documentation thereof.
PR:	27153
2001-07-16 07:02:39 +00:00
Kazutaka YOKOTA 8a3b348970 MFC:
- syscons.c rev 1.361
Test "sc->kbd != NULL" rather than "sc != NULL" before
accessing the keyboard in scopen().

- syscons.c rev 1.363
If we are in DDB, don't switch to a vty in the VT_PROCESS mode.

- syscons.h rev 1.68, scvtb.c rev 1.8
Don't free buffers we didn't allocate.

- scmouse.c rev 1.24
Quit the ioctl MOUSE_GETINFO as soon as we have gathered necessary
information.  There is no need to stick around any longer.
2001-07-16 05:21:24 +00:00
Doug Barton 728c5aefc6 Catch up to the latest fixes from -current 2001-07-16 04:02:38 +00:00
Peter Wemm f6fd52268e MFC: stop doing magic for seperate libscrypt/libdescrypt. sbin/init no
longer needs distribution fixup help.
2001-07-16 03:33:11 +00:00
Peter Wemm cd693f2b4c MFC: init no longer needs the magic to look into the internals of
the libscrypt/libdescrypt builds since libcrypt is unified now.
2001-07-16 03:31:55 +00:00
Peter Wemm 785940074d MFC: this file is obsolete, libcrypt is unified 2001-07-16 03:30:08 +00:00
Peter Wemm 06df1d6c87 MFC: libcrypt is the one true crypt library 2001-07-16 03:29:12 +00:00
Peter Wemm 7e534e06e8 MFC: unify libscrypt/libdescrypt into libcrypt. 2001-07-16 03:28:26 +00:00
Jordan K. Hubbard 4a88fc0e59 Add back sbin/init to CRYPTO targets. Not sure why this appears
in -stable but not in -current, but I'll put this back while I check
into it.

Reminded by:	Peter Pentchev <[email protected]>
2001-07-15 22:40:35 +00:00
Brooks Davis 4747962f54 MFC: Put module directories one per line so adding new modules creates
readable diffs and produces less conflicts with local source trees.
2001-07-15 20:32:52 +00:00
Hajimu UMEMOTO ff82220676 MFC 1.30: soopt_mcopyout() frees mbuf if error occurs, and DOES NOT
free it if it is successful.
This part was lacked during merge.
2001-07-15 18:18:34 +00:00
cvs2svn b8083ef595 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-07-15 08:06:21 +00:00
Jordan K. Hubbard 59045ce2d5 MFC: crypto target fix and sendmail disable knob 2001-07-14 20:16:57 +00:00
Gregory Neil Shapiro 20bdd3d45a Sync comment with the HEAD 2001-07-14 18:07:27 +00:00
Gregory Neil Shapiro 8b9f1ef749 MFC: MAPS is becoming a subscription service, warn users
ORBS is gone

     Revision  Changes    Path
     1.20      +6 -6      src/etc/sendmail/freebsd.mc
2001-07-14 18:06:41 +00:00
Mike Heffner 0512e361e7 MFC:
1.6: The shortest valid TFTP packet is 4 bytes, not 8.

  1.7: Reset errno to prevent subsequent failures.
2001-07-14 14:00:03 +00:00
Mike Heffner e057144f44 MFC:
1.14      +5 -9      src/sbin/dump/traverse.c

	Convert two instances of a lseek()+read() to a pread().
2001-07-14 13:51:37 +00:00
Yoshihiro Takahashi 8411a1a64e Merged from sys/i386/conf/GENERIC revision 1.246.2.27. 2001-07-14 02:31:26 +00:00
Bruce A. Mah 18522c0bcd MFC: Manual page for the orm(4) driver.
Makefile	1.123->1.124
	orm.4		1.2
2001-07-13 20:59:33 +00:00
Ian Dowse 3e4f61b5cf MFC: 1.51, 1.52; Fix sluggish button response when 3-button emulation
is enabled.
2001-07-13 20:56:52 +00:00
Bruce A. Mah b0c745abae MFC: Move <screen></screen> and <programlisting></programlisting>
outside <para></para>.  Some other minor adjustments around <screen></screen>
tags.
2001-07-13 20:26:02 +00:00
Joerg Wunsch df203e4e00 MFC: rev 1.49, don't give up on ENOENT.
While i consider some redesign in -current regarding device searching,
for -stable this rather follows the POLA by not introducing new
algorithms.
2001-07-13 16:44:08 +00:00
Dima Dorfman 871f4377ec MFC 1.13: print month number correctly.
Thanks to:	brian
2001-07-13 15:51:10 +00:00
Dima Dorfman 4ba5392177 MFC 1.5: auth_default -> crypt_default
PR:		28884
2001-07-13 14:37:26 +00:00
Dima Dorfman f53a30cda2 MFC 1.64: fix spacing and punctuation. 2001-07-13 14:16:35 +00:00
Dima Dorfman d63b14e8fd MFC 1.14: fix spacing. 2001-07-13 14:15:54 +00:00
Dima Dorfman ef1708128a MFC 1.19: fix spacing. 2001-07-13 14:15:31 +00:00
Dima Dorfman 1ec59c6753 MFC 1.16, 1.17: use Fn macro and remove duplicate word. 2001-07-13 14:13:40 +00:00
Dima Dorfman 73b5ffd23c MFC 1.4: remove duplicate word. 2001-07-13 14:12:30 +00:00
Dima Dorfman 939c22021b MFC 1.12: print the date in the announcement. 2001-07-13 14:11:49 +00:00
Dima Dorfman 008a5e4dd5 MFC 1.19: correct typo. 2001-07-13 14:11:12 +00:00
Brian Somers 4502e7ac49 MFC: Move ``add default HISADDR'' out of the default section of ppp.conf 2001-07-13 10:55:26 +00:00
Ruslan Ermilov f302d2ced3 MFC: mdoc(7): -xwidth has been fold into -width. 2001-07-13 09:56:16 +00:00
Ruslan Ermilov 9d4f86b1c4 MFC: recent mdoc(7) features and fixes. 2001-07-13 09:48:49 +00:00
Matt Jacob 41d102e1fa (MFC 1.6): Use correct type of argument to fgetln. 2001-07-12 22:57:35 +00:00
Bruce A. Mah 9540536526 Hunt down another stray right-paren. 2001-07-12 21:28:11 +00:00
Jason Evans a2b726810a Fix a whitespace problem introduced during an MFC. 2001-07-12 21:03:38 +00:00
Bruce A. Mah 2e56111901 MFC: Support language-dependant SGML catalogs (in ${LANG_CODE}/share/sgml)
and also use a default.dsl stylesheet similar to what the rest of the DocProj
documents use.

	share/mk/doc.relnotes.mk		1.8->1.9
	en_US.ISO8859-1/share/sgml/catalog	1.1
2001-07-12 19:13:17 +00:00
Bruce A. Mah 445a83b380 MFC: Transmeta Crusoe/Longrun support, TCP template structure
allocation improvements, dump(8) -D, lpd(8) -c and -w, lpc(8)
clean/tclean, du(1) -I.
2001-07-12 19:00:02 +00:00
David E. O'Brien e2a95a8b37 MFC: rev 1.44 (add LIBBZ2) 2001-07-12 18:45:37 +00:00
Bruce A. Mah 472a0db34c When the lge(4) and nge(4) drivers were MFC-ed, I forgot to add them
to the supported hardware list.  Fix this.
2001-07-12 18:44:07 +00:00
Bruce Evans 7a6d3ee545 MFC (extern.h 1.1, cp.c 1.26, utils.c 1.30):
Removed the broken code which claimed to lose the set[ug]id bits in
the !(pflag && setfile()) case for regular files unless the copy is
owned by the same user and group.

PR:		20646
2001-07-12 11:58:02 +00:00
Brian Somers dd0c254143 MFC: Don't use stdio in signal handlers
Only accept sessions for the given provider
     Cast NULL properly for execlp()
     Staticise some stuff
2001-07-12 09:59:23 +00:00
Brian Somers 6830232bd9 MFC: Add NGM_PPPOE_SERVICE message
Reviewed by: julian
2001-07-12 09:58:52 +00:00
Peter Pentchev 1e1136b979 MFC: WARNS=2/BDECFLAGS cleanup, ANSIfication, manpage mdoc(7) cleanup,
Alpha compilation fixes by bde and jlemon.

This brings RELENG_4's rarpd up to date with:
	rarpd.c		1.28
	rarpd.8		1.15 modulo a host.conf/nsswitch.conf diff
2001-07-12 09:11:54 +00:00
Peter Pentchev b94fad8373 MFC: Add '-I mask' cmdline flag to ignore/skip files and subdirectories
matching a specified shell-glob mask.
2001-07-12 08:46:53 +00:00
Brian S. Dean ac71e5edd1 MFC Rev 1.41 db_trace.c
MFC Rev 1.83 support.s
MFC Rev 1.105 cpufunc.h

  Provide access to the IA32 hardware debug registers from the ddb
  kernel debugger.
2001-07-12 02:57:11 +00:00
Dima Dorfman e20f313e2c MFC: hardcode DESTDIR instead of trying to guess it and doing a bad job. 2001-07-12 00:21:09 +00:00
David E. O'Brien bdb0bbd686 MFC: * Most of existing include/elf.h is in elf-hints.h.
elf.h is now a compatibility header with Solaris/SVR4.
	 * Consumers of elf.h now use the minimalist elf header possible.

This change is motivated by Binutils 2.11 and too much clashing over
our base elf headers and the Binutils elf headers.
2001-07-11 23:59:12 +00:00
David E. O'Brien ac235439dc MFC: locale insensitive wcs* and wmem* functions 2001-07-11 23:48:38 +00:00
Garance A Drosehn 9856b75e3b ...[MFC] Make 'lpc clean' somewhat safer, and have it look for 'core' files
in spool directories.  Also add the 'lpc tclean' command, which shows what
a 'lpc clean' command would do without removing any files.  Also adds a
summary line to 'lpc clean' and 'lpc tclean'.

[1.17 cmds.c, 1.4 cmdtab.c, 1.5 extern.h, 1.13 lpc.8, 1.19 lpc.c, 1.4 lpc.h]
2001-07-11 23:44:48 +00:00
Garance A Drosehn 2c292ce759 ...[MFC] Add '-w' option, which allows lpd connections from non-priv ports
(basically, from some windows implementations of lpd).  Also add '-c' option,
which causes lpd to log all connection errors to syslog (in addition to
sending a message to the connecting host).

The '-w' change allows a sysadmin to again accept connections which had been
(mistakenly) accepted before 4.3-release.           [1.19 lpd.8, 1.26 lpd.c]
2001-07-11 23:22:06 +00:00
Mike Heffner 487e8123f5 MFC:
1.11      +12 -6     src/usr.bin/mail/main.c
  1.27      +7 -4      src/usr.bin/mail/mail.1
  1.9       +3 -1      src/usr.bin/mail/send.c

	Add -E flag to prevent sending messages that have
	an empty body.
2001-07-11 23:04:18 +00:00
Bill Paul eed5e6d763 MFC: mention support for Netgear GA622T 2001-07-11 22:30:39 +00:00
Bill Paul fbda1f1fa1 MFC: document new 83820 cards, fix typo in man page 2001-07-11 22:12:44 +00:00
Wilko Bulte 0c9e9cf504 Document SET CONSOLE SERIAL/GRAPHICS for NoName as well
Suggested by: [email protected]
2001-07-11 18:33:58 +00:00
Matthew Dillon 7e003e6f6a MFC 1.24, 1.25, 1.26 main.c, and manual page for -D dumpdates_file option 2001-07-11 16:55:19 +00:00
Mitsuru IWASAKI fb9efd825e MFC: Add Transmeta Crusoe LongRun support manpage. 2001-07-11 14:34:01 +00:00
Mitsuru IWASAKI eeb6c1e6b9 MFC: Add code to detect Transmeta Crusoe cpus (1.90->1.91) and
LongRun support (1.92->1.93).

Okayed by:      dfr
2001-07-11 14:22:13 +00:00
Hajimu UMEMOTO ee9e5a4d0b MFC 1.12: When the link-layer address of a router changes, select the
best router again.  In particular, when the neighbor entry is newly
created, it might affect the selection policy.
2001-07-11 09:39:04 +00:00
Hajimu UMEMOTO 4de2561811 MFC 1.54: adjust mbuf length right in route_output(). 2001-07-11 09:37:37 +00:00
cvs2svn cc9961ccba This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-07-11 08:59:11 +00:00
Bruce A. Mah 09cd06756a Typo police: Retrieve a stray right-paren. 2001-07-11 01:20:10 +00:00
Bruce A. Mah bd57879dae Add security advisory FreeBSD-SA-01:42 to 4.3-RELEASE errata. 2001-07-11 01:17:06 +00:00
Bruce A. Mah 6d09146eee MFC: FreeBSD-SA-01:42. 2001-07-11 01:11:02 +00:00
Semen Ustimenko ae009c1aa4 Move tx(4) driver to the using miibus drivers group. 2001-07-11 01:08:15 +00:00
Mike Heffner aaefefe1ae MFC:
1.10	src/usr.bin/ktrace/ktrace.1
	1.15	src/usr.bin/ktrace/ktrace.c

	Sync manpage and usage, and fix -c bug.
2001-07-11 00:29:27 +00:00
Brian Somers 051ff81841 MFC: Handle descriptors 0, 1 or 2 being closed when ppp is envoked 2001-07-10 21:19:38 +00:00
Brian Somers 069bce58f8 MFC: Don't accept chap80lm by default 2001-07-10 21:17:55 +00:00
Ruslan Ermilov 50f2d1fc77 MFC: 1.4: Add FreeBSD 4.4. 2001-07-10 17:25:18 +00:00
Warner Losh d853c1db5c Add another missing file from current 2001-07-10 16:22:38 +00:00
Warner Losh 4dccc3f7f2 Add this file which I forgot before. :-(
Pointed out by: John Hay <[email protected]>
2001-07-10 16:15:34 +00:00
Sheldon Hearn 723ab74908 MFC rev 1.8: correct typo 2001-07-10 14:10:21 +00:00
Hajimu UMEMOTO f4ddfcef0e MFC: Add configuration for a FAITH IPv6-to-IPv4 TCP translator.
To use a FAITH actually, you also need faithd(8) setup.
Please consult faithd(8) manpage.

	etc/rc.network6:	1.21
	etc/defaults/rc.conf:	1.113
2001-07-10 10:10:05 +00:00
Hajimu UMEMOTO 9245fd5efe MFC 1.4, 1.5:
- drop setgid bit.  ifmcstat(8) is not audited, and is needed only for root.
- Install it with mode 550, and with default group ${BINGRP}.
2001-07-10 10:00:34 +00:00
Hajimu UMEMOTO 3914e74f04 MFC 1.5: properly check DES weak key. KAME PR 363. 2001-07-10 09:46:35 +00:00
Hajimu UMEMOTO 80e61e9030 MFC 1.13: use TAILQ_FOREACH() in searching address list 2001-07-10 09:44:16 +00:00
Warner Losh 4824739258 Add initial support for mecia pccard controller into stable. stable
needs to have sys/select included.
2001-07-10 08:21:34 +00:00
Ruslan Ermilov 96448b3a2e MFC: 1.10: markup fixes. 2001-07-10 08:05:18 +00:00
Crist J. Clark 8df13e11df MFC: 1.105, lose masked host bits from IP address given with '-a' option. 2001-07-10 06:03:24 +00:00
Warner Losh 41870a5dad This is no longer needed in -stable now that I've MFC'd the mecia driver. 2001-07-10 05:07:26 +00:00
David E. O'Brien fbdb49db38 Also emblishes the history here. 2001-07-10 00:12:18 +00:00
David E. O'Brien 8050b7fb20 MFC: embelish history 2001-07-10 00:11:45 +00:00
David E. O'Brien 61f65fcaf0 Add rcsid[]'s. 2001-07-09 23:30:07 +00:00
Bruce A. Mah 3ec2778cf7 Semi-MFC: Note sysctl for controlling TCP ISN generation. 2001-07-09 21:40:30 +00:00
Wilko Bulte 9f078db842 MFC: s/Netherlands/the Netherlands/ 2001-07-09 19:23:29 +00:00
Matt Jacob b77fb7d0fb (MFC 1.74)
1. Add SA_IO_TIMEOUT as an option (4 minutes default) to cover reads,
writes, wfm, test unit ready.

2. Add internal SCSIOP_TIMEOUT (e.g., for mode sense) at 1 minute. This
should not require an option, but is cleaner to parameterize.
2001-07-09 19:21:06 +00:00
Guido van Rooij 711f8793d3 MFC: do not share sigs after an exec 2001-07-09 19:03:13 +00:00
Warner Losh d29888fcaa MFC: Merge all the changes to the pccard system in current, short of
making the pci devices a real freebsd pci driver.
2001-07-09 18:25:53 +00:00
Bruce A. Mah 3632039766 MFC: Put CSS file for release documentation in the right directory
when building FTP area.

	Makefile	1.627->1.628
2001-07-09 18:23:00 +00:00
Matt Jacob 9cfdf82ea4 MFC from NOTES: add SA_IO_TIMEOUT option for sa(4). 2001-07-09 17:34:19 +00:00
Matt Jacob 2247b92d38 (MFC 1.281): add SA_IO_TIMEOUT option. 2001-07-09 17:30:01 +00:00
Ruslan Ermilov a8754fedc3 MFC: NO_I4B knob. 2001-07-09 13:49:58 +00:00
Hajimu UMEMOTO b5fb8d7eb5 MFC 1.5: correct arg to getopt (-P takes arg). 2001-07-09 09:49:49 +00:00
Brian Somers 21782470b8 MFC: Fix the type of the last arg to execl() 2001-07-09 08:18:35 +00:00
Brian Somers a7755924f7 MFC: Fix some typos 2001-07-09 07:53:17 +00:00
Warner Losh 3b489f2e4d MFC: Two cbus based pccard bridges' PNP ids. 2001-07-09 07:19:58 +00:00
David E. O'Brien 65eed98238 MFC: rev 1.4 (make `w!' useful if you own the file but it is read-only) 2001-07-09 04:58:38 +00:00
Bill Fenner de57885625 Don't allow STROUT() to use a negative string length.
Use fn_print() and fn_printn() to print strings from the packet.
2001-07-09 01:44:11 +00:00
Brian Somers 6ba3c70f82 MFC: Support stateful MPPE
Insist on correct MRU negotiation during LCP
     Insist on correct IPADDR negotiation during IPCP
     Clean up some printf-style format strings
     Call va_start/va_end for each iteration through ...
     Remove some hard-sentence breaks
     Be more careful about pred1 negotiations
2001-07-09 01:37:18 +00:00
Gerard Roudier baabe56244 PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:

MFC: sym_hipd.c revision 1.28
2001-07-08 20:04:04 +00:00
Bill Paul 8b079f9521 MFC: bug fix, only set the MODE_1000 bit if we actualy have a gigabit
link.
2001-07-08 16:25:24 +00:00
Matt Jacob fdea219573 Not Quite MFC (-current has ithreads):
Be more cautions about saying intsok (which is a misnomer- it really
should 'tsleep okay').
2001-07-08 09:05:55 +00:00
Matt Jacob 3f0110e5af MFC: put local interrupt svc routine in place that flags that it's
not okay to sleep doing mailbox commands at interrupt level.

A bunch of target mode fixes.
2001-07-08 09:00:38 +00:00
Mike Silbersack e04bbc6103 MFC: Runetime tuneable tcp initial sequence number generation schemes. 2001-07-08 02:21:44 +00:00
Matt Jacob 8f94febf86 fix munged header line 2001-07-07 21:51:44 +00:00
Hajimu UMEMOTO be444eba8a MFC 1.29: The m_free call in the ip6_fw_ctl_ptr == NULL case apparently
tries to free uninitialized mbuf.
This was my mistake during recent KAME merge.  This part is for
*BSD other than FreeBSD.
2001-07-07 20:09:35 +00:00
Matthew Dillon 5bbcb04b3f MFC through 1.6 2001-07-07 17:44:41 +00:00
Yoshihiro Takahashi 427e20940f MFC: Fixed warning message. 2001-07-07 12:30:10 +00:00
Yoshihiro Takahashi 8eff5cbcad MFC: Fixed to support C-NET(9N)E. 2001-07-07 12:29:13 +00:00
Yoshihiro Takahashi 010b343381 MFC: Don't assume that resource type is ioport and rid equal 0. 2001-07-07 12:23:33 +00:00
Yoshihiro Takahashi 00ed229fc6 MFC: Allocate all resources using keyboard controller. 2001-07-07 12:22:11 +00:00
Yoshihiro Takahashi 0e28d2b11a Merged from sys/dev/syscons/syscons.c revision 1.336.2.5. 2001-07-07 12:21:27 +00:00
Yoshihiro Takahashi dc161cab08 MFC: Added PC98 keymap support. 2001-07-07 12:16:09 +00:00
Mike Heffner 4d1fa402ec MFC:
src/usr.bin/col/col.c,v 1.10

   Use err(3) and style(9) cleanup

 src/usr.bin/col/col.c,v 1.11
 src/usr.bin/col/col.1,v 1.8

   Add -p flag to pass unknown control sequences
2001-07-07 11:17:48 +00:00
Ben Smithurst f9ecf912f0 MFC: rev 1.33: Don't dereference a pointer after freeing that pointer. 2001-07-07 07:30:51 +00:00
Warner Losh d440338c1b MFC: Move pcic_p.[ch] to pccard/pcic_pci.[ch]. Note that this merges
the latest pcic_pci.c before the real pci attachment in current.
2001-07-07 05:25:31 +00:00
Mike Silbersack cab1365ecf MFC of tcp template removal + jlemon's patch to improve header
generation performance.
2001-07-07 04:30:38 +00:00
Warner Losh 5f4dd5671a MFC: Lots of minor style(9) changes. This cuts the diffs in half. 2001-07-06 23:38:57 +00:00
Brian Somers ab62936c01 MFC: Correct the arg count after parsing a line with an unescaped # that isn't
preceeded with whitespace.
2001-07-06 23:29:46 +00:00
Warner Losh c4aecfcb7e Bring the mecia controler files back from current. This driver will
be MFC'd shortly and this helps reduce diffs.
2001-07-06 22:58:49 +00:00
Daniel Eischen 339501c4ca Always call sigprocmask() instead of _thread_sys_procmask() regardless
of whether we're in the threaded library or not.  sigprocmask() is wrapped
by the threads library and only changes the threads signal mask, not the
process signal mask.  We don't want setjmp, longjmp and friends to bypass
this by calling the actual system call.

This code now behaves similarly to alpha under stable.  Similar changes
have been in current for months.
2001-07-06 12:41:44 +00:00
Daniel Eischen 7b3b063e0e MFC: Clear the in thread scheduler flag after jumping to the start of
a signal handler from the scheduler.
2001-07-06 12:31:25 +00:00
Ruslan Ermilov 9a0f84dbc0 MFC: 1.11: finish -column lists specifications. 2001-07-06 10:09:02 +00:00
cvs2svn 6eddedc006 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-07-06 09:21:57 +00:00
Hajimu UMEMOTO 4f23e1e4e0 MFC:
- stop sending echo packets whenever the upper limit is specified by the -c
  option, regardless of the -f option.
- sync usage/description with reality.
- fixed typo
- a wording improvement in BUGS (ping vs ping6 issue)

	sbin/ping6/ping6.c:	1.10, 1.11
	sbin/ping6/ping6.8:	1.11, 1.12
2001-07-06 08:56:47 +00:00
Ruslan Ermilov 72bf1fef6a MFC: 1.2: formatting fixes. 2001-07-06 08:24:50 +00:00
Munechika SUMIKAWA accbcb9492 MFC: - Avoid hardcoded constant on icmp6 in/out histogram printing.
- Icmp6 histogram update for inverse neighbor solicit/advert.
2001-07-06 05:40:17 +00:00
Munechika SUMIKAWA fccc9ada4b MFC: Renumber KAME local ICMP types and NDP option numbers. 2001-07-06 05:36:35 +00:00
Munechika SUMIKAWA 8765a887ac MFC: Add IFT_L2VLAN for supported NDP type. IPv6 over VLAN works now. 2001-07-06 05:32:25 +00:00
Munechika SUMIKAWA f743bbf598 MFC: Suppress update ifnet.iflastchange.(1.11) 2001-07-06 05:20:00 +00:00
Jason Evans a8d46215b8 MFC: Fix pthread_join() race. 2001-07-05 16:04:09 +00:00
Hajimu UMEMOTO 30daf62632 MFC 1.11: refresh default router list on nd6_purge(), only if we are an
autoconfigured host.
2001-07-05 15:49:40 +00:00
Hajimu UMEMOTO ebfb89d84f MFC 1.116: Change default of ipv6_default_interface to NO.
This is meaningless in most cases and rather harmful.
2001-07-05 15:44:06 +00:00
Hajimu UMEMOTO bba593e15f MFC:
- create an entry of IPV6CTL_STATS sysctl.
- fix the problem that netstat doesn't show raw6 and icmp6 pcblist.
- make netstat use sysctl to retreive stats of ipv6 and icmpv6
  instead of kread.

	sys/netinet6/in6_proto.c:	1.15
	usr.bin/netstat/inet6.c:	1.17
	usr.bin/netstat/main.c:		1.51
2001-07-05 15:42:18 +00:00
Hajimu UMEMOTO df9f5b2d29 MFC: unbreak building kernel without option INET6
sys/net/if_faith.c:	1.6
	sys/net/if_faith.h:	1.2
2001-07-05 14:46:25 +00:00
Ruslan Ermilov ad359734b9 MFC: usage() and manpage formatting fixes. 2001-07-05 14:14:58 +00:00
Ruslan Ermilov bd4e21109a MFC: non-functional -u cosmetics. 2001-07-05 13:34:57 +00:00
Kris Kennaway 179fca3ab9 MFC:
* fix ctm(8) to use mkstemp() instead of tempnam() for tempfile
    creation.

  * Tag the internal err() function with __printflike to allow checking
    for non-constant format string arguments (none exist)

  * Use fmtcheck() to sanitize the tar command obtained via -t to make
    sure it doesn't contain extraneous format operators.
2001-07-05 07:47:00 +00:00
Kris Kennaway 724de44a8a MFC: fmtcheck() function and manpage 2001-07-05 07:43:46 +00:00
Ruslan Ermilov 52ed07a66a MFC: 1.11: fixed formatting. 2001-07-05 06:36:59 +00:00
Ruslan Ermilov b7f981d651 MFC: 1.10: missing .Ar in SYNOPSIS. 2001-07-05 06:21:20 +00:00
Ruslan Ermilov 935bf33e98 MFC: 1.11: missing .Ar in SYNOPSIS. 2001-07-05 06:14:22 +00:00
Bruce A. Mah 4075e6d742 MFC: Clarify smbfs support, ifconfig -m, OpenSSL 0.9.6a. 2001-07-05 02:51:24 +00:00
Kris Kennaway 100016563b MFC: Bump space to 40M. I guess this wasn't quite so important or
necessary as the original commit 5 months ago would have you believe :-)
2001-07-05 02:30:52 +00:00
Kris Kennaway 5a94d67518 MFC: Fix format string abuses (not exploitable) 2001-07-05 01:40:11 +00:00
Garance A Drosehn 8987084362 ....[MFC from 2001/05/31] -r 1.30
Fix how /bin/sh handles 'for' and 'case' statements when it is called to do
errexit (-e) processing.  This solves a problem where 'make clean' would
fail with an unspecified error in certain automake-generated makefiles.
2001-07-05 00:41:14 +00:00
Kris Kennaway 2d9194bc64 MFC: Update to OpenSSL 0.9.6a 2001-07-04 23:24:42 +00:00
Kris Kennaway 009a7941ea MFC: Fix format string abuse 2001-07-04 22:54:14 +00:00
Kris Kennaway eb726c3233 MFC: BDECFLAGS cleanup 2001-07-04 22:40:00 +00:00
Kris Kennaway 0acd1d53c4 MFC r1.7:
- check the msg.tsp_type value prior to using it as an
            index into char *tsptype[]
          - use strlcpy's instead of strcpy's
          - & handle short packets properly.
2001-07-04 22:36:42 +00:00
Kris Kennaway 7a7c33c857 MFC: fix typo in comment 2001-07-04 22:34:51 +00:00
Kris Kennaway efd0e83ee0 MFC: Use stronger PRNG 2001-07-04 22:32:21 +00:00
Brooks Davis 9d9274e3d6 MFC: -m to show supported media types, better formatting of current and
supported media type output.

PR:		27701
Obtained from:	NetBSD
2001-07-04 20:49:20 +00:00
Kris Kennaway 9d107e9a07 MFC: Unbreak paranoid host checking 2001-07-04 20:18:54 +00:00
Matt Jacob 7098d27505 Ooops- don't forget to pull isp_ioctl.h back into RELENG_4 branch. 2001-07-04 19:15:05 +00:00
Matt Jacob 011b768701 Massive MFC- probably breaking lots of rules to do this, but limited
time, etc., etc...

Basic gist of changes:

Beginnings of 2300 support. Addition of a /dev entry and
ioctl entry point for the HBA (sort of meaningless in
RELENG_4- it's really only useful in DEVFS for -current-
but you *could* make the entries by hand (not worth
really asking for a reserved major as this is edge
case debugging stuff for me mostly).

Implementation of kthread for Fibre Channel loop cleanup.
Lots of buglet fixes. Ansification. Lots of target mode
cleanup.
2001-07-04 19:14:22 +00:00
Bruce A. Mah 63ab2cfb65 MFC: IPv6 update. 2001-07-04 18:07:12 +00:00
Tor Egge f2e3d5263d Back out bandaid now that vop_noislocked has been lobotomized. 2001-07-04 17:35:21 +00:00
Tor Egge f1217171a4 Lobotimize vop_noislocked() to just return 0, making it consistent with
the implementation of vop_nolock() and vop_nounlock().
Before this commit, vop_noislocked() and vop_stdislocked() did the same
thing.

This should resolve some hangs on SMP systems where vop_noislocked()
interacted with filesystems that did not have a struct lock at the
start of their per-vnode private date (mfs, procfs, devfs, linprocfs).

Reviewed by:	dillon
Approved by:	dillon
2001-07-04 17:32:40 +00:00
Ruslan Ermilov bc34a228bb MFC: 1.7: sort xrefs. 2001-07-04 13:32:41 +00:00
Ruslan Ermilov e2829d9bd9 MFC: 1.11: removed hard sentence breaks. 2001-07-04 13:28:53 +00:00
Ruslan Ermilov a076a72732 MFC: 1.16: added missing newline, removed hard sentence breaks. 2001-07-04 12:41:51 +00:00
Yaroslav Tykhiy 4eb3c69ea8 MFC: r1.36: Clarify the feature that -exec parameters won't get
shell-expanded when the specified utility is run.
2001-07-04 12:16:59 +00:00
Yaroslav Tykhiy 61180e4832 MFC: r1.14: Add a note on what happens if the "-p"
option is specified and a final directory already exists.
2001-07-04 12:14:22 +00:00
Hajimu UMEMOTO 9721cd6313 MFC 1.26, 1.27, 1.28:
- Nuke the comment about MIP6.  We don't have MIP6 code, yet. (1.26)
- decrease warning (1.27)
- disallow setsockopt(IPV6_V6ONLY) for already bound sockets. (1.28)
2001-07-04 09:50:05 +00:00
Hajimu UMEMOTO b5df78aea6 MFC 1.14: remove IN6_IS_ADDR_ANY macro (outside of standard, #if 0'ed
for a long time)
2001-07-04 09:45:23 +00:00
Hajimu UMEMOTO b46ada2b10 MFC 1.10: clarify problem with inbound AH.
spdadd A B -P in ipsec esp/tunnel/C-D/use ah/tunnel/C-D/require;
does not work due to 1-bit validation bit we are using with inbound
policy checking.
2001-07-04 09:42:00 +00:00
Hajimu UMEMOTO f043cbdb01 MFC 1.12: on icmp6 node information query (FQDN), do not return hostnames with
two dots (like "foo..bar").  0-length labels are not distinguishable
with multiple name replies.
2001-07-04 09:38:16 +00:00
Hajimu UMEMOTO 182bff9df0 MFC 1.61: inject outbound packet to BPF. 2001-07-04 09:31:52 +00:00
Hajimu UMEMOTO bc5f3debf2 MFC 1.105: made sure to use the correct sa_len for rtalloc().
sizeof(ro_dst) is not necessarily the correct one.
this change would also fix the recent path MTU discovery problem for the
destination of an incoming TCP connection.
2001-07-04 09:26:40 +00:00
Bruce A. Mah c08d16d524 MFC: ALS4000 driver, ifconfig(8) support for IEEE 802.11
devices, traceroute(8) default TTL from sysctl MIB, xargs(1) -J.
2001-07-04 05:35:04 +00:00
Brooks Davis ede43b02d3 MFC: ifconfig support for configuration of 802.11 wireless interfaces.
This commit contains support for the an and wi drivers.
2001-07-04 00:12:38 +00:00
Mike Heffner a86c9987b5 MFC: 1.45: Fix typo that could lead to memory leak 2001-07-03 23:10:59 +00:00
Mike Heffner 2795cdf794 MFC: 1.29: Document 'what'. 2001-07-03 23:06:34 +00:00
Jens Schweikhardt 084eb97601 MFC: incorporate all changes made in current:
- make all fields space separated to avoid run-together columns
     - rename macro pgtok conflicting with machine/param.h
     - increase field widths for -i
     - axe unused variables

Approved by:	joerg (in parts)
Requested by:	bde (in parts)
Hoorayed by:	greg (in parts)
2001-07-03 20:15:36 +00:00
Tor Egge 817d66f534 After the last nullfs MFC filesystems need to start their per-vnode private
data with a struct lock unless they override VOP_LOCK/VOP_UNLOCK and
VOP_ISLOCKED.

Reviewed by:	dillon
2001-07-03 19:17:31 +00:00
Thomas Moestl 2036041043 MFC of rev. 1.17: call bus_teardown_intr if csa_attach fails after
the interrupt has been set up.
2001-07-03 17:45:22 +00:00
Yaroslav Tykhiy 5acf8c72ec MFC: Add 'df' string to gettytab - the strftime(3) format
for %d in the banner messages.
2001-07-03 16:09:48 +00:00
Thomas Gellekum a42c5835cf MFC: fix another buffer overflow.
PR:		15593
2001-07-03 11:55:22 +00:00
Hajimu UMEMOTO 56bc0a86e6 MFC: Sync with recent KAME.
This work was based on kame-20010528-freebsd43-snap.tgz and some
critical problem after the snap was out were fixed.
There are many many changes since last KAME merge.

	etc/defaults/rc.conf:			1.111
	etc/rc.network:				1.98
	etc/rc.network6:			1.20
	lib/libipsec/ipsec_set_policy.3:	1.8
	lib/libipsec/ipsec_strerror.3:		1.7
	lib/libipsec/ipsec_strerror.c:		1.3
	lib/libipsec/ipsec_strerror.h:		1.3
	lib/libipsec/libpfkey.h:		1.2
	lib/libipsec/pfkey.c:			1.3
	lib/libipsec/pfkey_dump.c:		1.3
	lib/libipsec/policy_token.l:		1.5
	lib/libipsec/test-policy.c:		1.4
	sbin/ifconfig/ifconfig.8:		1.42
	sbin/ifconfig/ifconfig.c:		1.63
	sbin/ping6/ping6.8:			1.10
	sbin/ping6/ping6.c:			1.9
	sbin/route/route.c:			1.48, 1.50
	sbin/rtsol/Makefile:			1.4
	share/doc/IPv6/IMPLEMENTATION:		1.3
	share/examples/IPv6/USAGE:		1.3
	share/man/man4/faith.4:			1.10
	share/man/man4/gif.4:			1.9
	share/man/man4/inet6.4:			1.8
	share/man/man4/ip6.4:			1.8
	share/man/man4/ipsec.4:			1.9
	share/man/man4/kame.4:			1.8
	share/man/man4/stf.4:			1.8
	sys/conf/files:				1.534
	sys/crypto/md5.c:			1.4
	sys/crypto/sha1.c:			1.7
	sys/crypto/blowfish/bf_enc.c:		1.4
	sys/crypto/blowfish/bf_locl.h:		1.4
	sys/crypto/blowfish/bf_skey.c:		1.4
	sys/crypto/blowfish/blowfish.h:		1.4
	sys/crypto/cast128/cast128.c:		1.4
	sys/crypto/cast128/cast128.h:		1.4
	sys/crypto/des/des.h:			1.4
	sys/crypto/des/des_ecb.c:		1.4
	sys/crypto/des/des_locl.h:		1.5
	sys/crypto/des/des_setkey.c:		1.4
	sys/crypto/rijndael/boxes-fst.dat:	1.2
	sys/crypto/rijndael/rijndael-alg-fst.c:	1.2, 1.3
	sys/crypto/rijndael/rijndael-alg-fst.h:	1.2
	sys/crypto/rijndael/rijndael-api-fst.c:	1.2
	sys/crypto/rijndael/rijndael-api-fst.h:	1.2
	sys/crypto/rijndael/rijndael_local.h:	1.3
	sys/kern/uipc_domain.c:			1.24
	sys/kern/uipc_mbuf.c:			1.82
	sys/kern/uipc_mbuf2.c:			1.8
	sys/net/if.c:				1.109
	sys/net/if_faith.c:			1.4, 1.5
	sys/net/if_gif.c:			1.10
	sys/net/if_gif.h:			1.4
	sys/net/if_loop.c:			1.61
	sys/net/if_sppp.h:			1.17
	sys/net/if_spppsubr.c:			1.68, 1.69
	sys/net/net_osdep.c:			1.4
	sys/net/net_osdep.h:			1.5
	sys/net/pfkeyv2.h:			1.6
	sys/net/ppp_defs.h:			1.7
	sys/net/rtsock.c:			1.52
	sys/netinet/icmp6.h:			1.4
	sys/netinet/in.c:			1.54
	sys/netinet/in_gif.c:			1.10
	sys/netinet/in_pcb.c:			1.84
	sys/netinet/in_pcb.h:			1.38
	sys/netinet/in_proto.c:			1.56
	sys/netinet/ip6.h:			1.5
	sys/netinet/ip_ecn.c:			1.4
	sys/netinet/ip_ecn.h:			1.4
	sys/netinet/ip_encap.c:			1.4
	sys/netinet/ip_icmp.c:			1.57
	sys/netinet/ip_input.c:			1.171
	sys/netinet/ip_output.c:		1.126
	sys/netinet/ip_var.h:			1.56
	sys/netinet/raw_ip.c:			1.78
	sys/netinet/tcp_input.c:		1.132
	sys/netinet/tcp_output.c:		1.50
	sys/netinet/tcp_subr.c:			1.103
	sys/netinet/tcp_usrreq.c:		1.60
	sys/netinet/udp_usrreq.c:		1.89
	sys/netinet6/ah.h:			1.5
	sys/netinet6/ah6.h:			1.4
	sys/netinet6/ah_core.c:			1.8
	sys/netinet6/ah_input.c:		1.7
	sys/netinet6/ah_output.c:		1.7
	sys/netinet6/dest6.c:			1.6
	sys/netinet6/esp.h:			1.4
	sys/netinet6/esp6.h:			1.4
	sys/netinet6/esp_core.c:		1.5
	sys/netinet6/esp_input.c:		1.7
	sys/netinet6/esp_output.c:		1.5
	sys/netinet6/frag6.c:			1.8
	sys/netinet6/icmp6.c:			1.11
	sys/netinet6/in6.c:			1.12
	sys/netinet6/in6.h:			1.13
	sys/netinet6/in6_cksum.c:		1.4
	sys/netinet6/in6_gif.c:			1.5
	sys/netinet6/in6_ifattach.c:		1.6
	sys/netinet6/in6_ifattach.h:		1.3
	sys/netinet6/in6_pcb.c:			1.15
	sys/netinet6/in6_pcb.h:			1.4
	sys/netinet6/in6_prefix.c:		1.7
	sys/netinet6/in6_prefix.h:		1.5
	sys/netinet6/in6_proto.c:		1.14
	sys/netinet6/in6_rmx.c:			1.4
	sys/netinet6/in6_src.c:			1.4
	sys/netinet6/in6_var.h:			1.8
	sys/netinet6/ip6_ecn.h:			1.4
	sys/netinet6/ip6_forward.c:		1.11
	sys/netinet6/ip6_fw.c:			1.11
	sys/netinet6/ip6_fw.h:			1.11
	sys/netinet6/ip6_input.c:		1.27
	sys/netinet6/ip6_mroute.c:		1.7
	sys/netinet6/ip6_mroute.h:		1.4
	sys/netinet6/ip6_output.c:		1.25
	sys/netinet6/ip6_var.h:			1.7
	sys/netinet6/ip6protosw.h:		1.6
	sys/netinet6/ipcomp.h:			1.2
	sys/netinet6/ipcomp6.h:			1.2
	sys/netinet6/ipcomp_core.c:		1.2
	sys/netinet6/ipcomp_input.c:		1.2
	sys/netinet6/ipcomp_output.c:		1.2
	sys/netinet6/ipsec.c:			1.12
	sys/netinet6/ipsec.h:			1.8
	sys/netinet6/ipsec6.h:			1.5
	sys/netinet6/mld6.c:			1.7
	sys/netinet6/nd6.c:			1.9
	sys/netinet6/nd6.h:			1.7
	sys/netinet6/nd6_nbr.c:			1.9
	sys/netinet6/nd6_rtr.c:			1.7, 1.8
	sys/netinet6/raw_ip6.c:			1.11
	sys/netinet6/route6.c:			1.4
	sys/netinet6/scope6.c:			1.2
	sys/netinet6/udp6_output.c:		1.3
	sys/netinet6/udp6_usrreq.c:		1.15
	sys/netkey/key.c:			1.25
	sys/netkey/key.h:			1.7
	sys/netkey/key_debug.c:			1.14
	sys/netkey/key_debug.h:			1.7
	sys/netkey/key_var.h:			1.4
	sys/netkey/keydb.h:			1.6
	sys/netkey/keysock.c:			1.6
	sys/netsmb/smb_crypt.c:			1.2
	sys/sys/mbuf.h:				1.79, 1.80
	sys/sys/protosw.h:			1.33
	sys/sys/socket.h:			1.54, 1.56
	sys/sys/sockio.h:			1.17
	usr.bin/netstat/inet.c:			1.42
	usr.bin/netstat/inet6.c:		1.10
	usr.bin/netstat/ipsec.c:		1.2
	usr.bin/netstat/main.c:			1.40
	usr.bin/netstat/mroute6.c:		1.5
	usr.bin/netstat/netstat.1:		1.29
	usr.bin/netstat/netstat.h:		1.21
	usr.bin/netstat/route.c:		1.50, 1.51, 1.55
	usr.sbin/faithd/Makefile:		1.6
	usr.sbin/faithd/README:			1.4
	usr.sbin/faithd/faithd.8:		1.9
	usr.sbin/faithd/faithd.c:		1.7
	usr.sbin/faithd/faithd.h:		1.3
	usr.sbin/faithd/ftp.c:			1.5
	usr.sbin/faithd/rsh.c:			1.5
	usr.sbin/faithd/tcp.c:			1.3
	usr.sbin/gifconfig/gifconfig.8:		1.6
	usr.sbin/gifconfig/gifconfig.c:		1.4
	usr.sbin/ifmcstat/ifmcstat.8:		1.3
	usr.sbin/ifmcstat/ifmcstat.c:		1.7
	usr.sbin/mld6query/mld6.c:		1.2
	usr.sbin/mld6query/mld6query.8:		1.2
	usr.sbin/ndp/ndp.8:			1.6
	usr.sbin/ndp/ndp.c:			1.6
	usr.sbin/prefix/Makefile:		1.4
	usr.sbin/rip6query/rip6query.8:		1.4
	usr.sbin/rip6query/rip6query.c:		1.5
	usr.sbin/route6d/route6d.8:		1.6
	usr.sbin/route6d/route6d.c:		1.9
	usr.sbin/route6d/route6d.h:		1.3
	usr.sbin/rrenumd/lexer.l:		1.3
	usr.sbin/rrenumd/parser.y:		1.3
	usr.sbin/rrenumd/rrenumd.8:		1.6
	usr.sbin/rrenumd/rrenumd.c:		1.4
	usr.sbin/rrenumd/rrenumd.conf.5:	1.10
	usr.sbin/rrenumd/rrenumd.h:		1.3
	usr.sbin/rtadvd/advcap.c:		1.4
	usr.sbin/rtadvd/advcap.h:		1.4
	usr.sbin/rtadvd/config.c:		1.7
	usr.sbin/rtadvd/config.h:		1.4
	usr.sbin/rtadvd/dump.c:			1.3
	usr.sbin/rtadvd/dump.h:			1.3
	usr.sbin/rtadvd/if.c:			1.6
	usr.sbin/rtadvd/if.h:			1.4
	usr.sbin/rtadvd/pathnames.h:		1.5
	usr.sbin/rtadvd/rrenum.c:		1.5
	usr.sbin/rtadvd/rrenum.h:		1.4
	usr.sbin/rtadvd/rtadvd.8:		1.8
	usr.sbin/rtadvd/rtadvd.c:		1.6
	usr.sbin/rtadvd/rtadvd.conf.5:		1.6
	usr.sbin/rtadvd/rtadvd.h:		1.4
	usr.sbin/rtadvd/timer.c:		1.4
	usr.sbin/rtadvd/timer.h:		1.4
	usr.sbin/rtsold/Makefile:		1.6
	usr.sbin/rtsold/dump.c:			1.4
	usr.sbin/rtsold/if.c:			1.5
	usr.sbin/rtsold/probe.c:		1.5
	usr.sbin/rtsold/rtsol.c:		1.4
	usr.sbin/rtsold/rtsold.8:		1.5
	usr.sbin/rtsold/rtsold.c:		1.4
	usr.sbin/rtsold/rtsold.h:		1.4
	usr.sbin/setkey/parse.y:		1.3
	usr.sbin/setkey/scriptdump.pl:		1.3
	usr.sbin/setkey/setkey.8:		1.14
	usr.sbin/setkey/setkey.c:		1.3
	usr.sbin/setkey/token.l:		1.5
	usr.sbin/traceroute6/traceroute6.8:	1.7
	usr.sbin/traceroute6/traceroute6.c:	1.8
2001-07-03 11:02:18 +00:00
Mike Heffner c63d3b42a1 MFC: 1.4: stat(2) the right filesystem 2001-07-02 23:46:27 +00:00
Mike Heffner 2c6e7c601b MFC:
1.10	src/usr.bin/rusers/rusers.c

	style(9) cleanup

	1.11	src/usr.bin/rusers/rusers.c
	1.14	src/usr.bin/rup/rup.c

	Call clnt_destroy()
2001-07-02 23:43:05 +00:00
Mike Smith cc3dd7ffe7 Merge relevant entries from -current. 2001-07-02 21:13:33 +00:00
Brooks Davis d9d3de1f68 MFC: 1.17 (correctly document and implement -a) 2001-07-02 17:23:38 +00:00
Brooks Davis 3ecf09a8da MFC: 1.8 (default to an0 if no interface) and 1.9 (print tx speed). 2001-07-02 17:20:55 +00:00
Semen Ustimenko 3e14e996a4 MFC: 1.46: initialization of NVCTL register with EEPROM stored value. 2001-07-02 16:58:10 +00:00
Dima Dorfman c1ef129120 MFC 1.7: don't limit tabstop expansions to 256 characters. 2001-07-02 01:12:05 +00:00
Dima Dorfman f2608e98c4 MFC 1.13: long line support. 2001-07-02 01:10:31 +00:00
Dima Dorfman 5d92611110 MFC 1.12: plug memory leaks. 2001-07-02 01:09:06 +00:00
Dima Dorfman 395d774b47 MFC 1.13: this is defined by POSIX, not ISO C. 2001-07-02 00:38:28 +00:00
Dima Dorfman ad47e6edcd MFC 1.9: correct path to wtmp. 2001-07-02 00:37:53 +00:00
Dima Dorfman 60cbdea5d4 MFC 1.22: event.h -> sys/event.h 2001-07-02 00:37:01 +00:00
Dima Dorfman 0c76cbf850 MFC 1.5: `file' arg. is optional. 2001-07-02 00:36:07 +00:00
Dima Dorfman fd9a2aede9 MFC 1.19: correct usage. 2001-07-02 00:35:27 +00:00
Dima Dorfman 562f67a8a5 MFC 1.9: correct a typo. 2001-07-02 00:34:48 +00:00
Dima Dorfman 6a6fa0c078 MFC 1.91: increase buffer sizes for parsing newer, larger INDEX files. 2001-07-02 00:33:58 +00:00
Dima Dorfman 6b55e083b3 MFC 1.18: correct grammar bogon. 2001-07-01 23:46:42 +00:00
Dima Dorfman 0b9c8fda1d MFC 1.52: mechanical corrections. 2001-07-01 23:45:53 +00:00
Ian Dowse 5e45f5c794 MFC: 1.336; allow break-to-debugger events to be detected even when
the serial device is not open.
2001-07-01 23:45:00 +00:00
Dima Dorfman 67de635623 MFC: -J option 2001-07-01 22:56:37 +00:00
Matt Jacob b5be1a1c71 (MFC 1.23): Add 'SKIP' as an action so that verification works for multivolume
restores.
2001-07-01 17:37:35 +00:00
Mike Heffner a1421a9c5c MFC: 1.4: Support mail boxes that don't have seconds and/or don't have
a timezone
2001-07-01 13:25:59 +00:00
Jens Schweikhardt e2266a70a6 MFC: Remove ncheck in an example; FreeBSD does not have it.
PR:           10158
Submitted by: Remy Card <[email protected]>
2001-07-01 11:08:55 +00:00
Mike Heffner c5173c4112 MFC: 1.12: prevent wrapping on 80-char display 2001-06-30 15:15:36 +00:00
Crist J. Clark c39fde8103 MFC: 1.54
Treat 'messages' log files as a text file even if they contain
non-printable characters.

Approved by:	ru
2001-06-30 03:34:42 +00:00
Warner Losh 7dfb3a565a MFC: copyright info. 2001-06-29 22:23:59 +00:00
Ian Dowse c414c2890d This is a backport of many of the changes from revisions 1.41
through 1.44. The resulting code layout that is much closer to that
found in -current. The main changes are:

- Improved error reporting
- Background mounts are less likely to fail due to temporary
  errors that may occur as the server comes up.
- Foreground mounts give up after one failed attempt instead of
  retrying again and again.
- We now never proceed with the mount() syscall unless we have
  received a reply from the remote nfsd; this can avoid hung
  mounts.
- Using the new CLSET_CONNECT clnt_control request, mount_nfs now
  ensures that the remote nfsd is replying from the expected source
  address, fixing another cause of hung mounts.
2001-06-29 21:18:06 +00:00
Hajimu UMEMOTO 548be272fb stf doesn't need any parameter.
(NOTES on -CURRENT is OK and -STABLE only)

Obtained from:	KAME
2001-06-29 21:14:24 +00:00
Shafeeq Sinnamohideen 32da6183e5 add entries for the vop_get/create/destroyvobject calls
Submitted by: Greg Troxel <[email protected]>
2001-06-29 16:26:22 +00:00
George C A Reid 2b2debdaf0 MFC: Use M_ZERO flag to malloc(9) 2001-06-29 15:45:35 +00:00
Matt Jacob e8f6e5924f (MFC 1.12): comment out *all* unused code. 2001-06-29 15:31:01 +00:00
Matt Jacob ddbabd5c24 (MFC 1.3): Fix Assembler buglet 2001-06-29 15:29:47 +00:00
Daniel C. Sobral 3cdf9a723c MFC: 1.15: small typo on debug message.
PR:		28337
Submitted by:	Koga Youichirou <[email protected]>
2001-06-29 12:34:21 +00:00
Gregory Neil Shapiro 3a3a66a9fb MFC: Typo fix: requires -> reacquires
Revision  Changes    Path
     1.12      +2 -2      src/lib/libc_r/man/pthread_cond_timedwait.3
2001-06-29 07:32:10 +00:00
Ian Dowse 03d48ce7bd MFC: Add the new clnt_control() request `CLSET_CONNECT', which
allows a UDP RPC client to specify that connect(2) should be used.
2001-06-28 21:44:27 +00:00
Ian Dowse 5b33c94822 MFC: 1.24; Avoid confusion over NQNFS, and discourage its use. 2001-06-28 19:32:46 +00:00
Josef Karthauser 515f56161e MFC: Revision 1.28.
Use 'LIBS+= ...' instead of 'LIBS= ...' in the generated makefile
     so that the user can override libraries at build time.  This is
     makes it easier to cross-compile crunch builds.
2001-06-28 17:02:32 +00:00
Jun Kuriyama be9e8b6f19 MFC: Fix typos in comment (1.5). 2001-06-28 09:41:42 +00:00
Jimmy Olgeni 6418c5105a MFC: Add terminal type configuration to the Options screen.
options.c (1.74), sysinstall.h (1.206)
2001-06-28 09:27:18 +00:00
Warner Losh 40b8be46bd Only set Cirrus Logic power registers on cirrus logic cards. This
should help the hanging problem in stable with some chips that are
identified as i82365.  Basically, we were writing to a register that
caused an infinite interrupt loop :-(.

Current has a more extesive fix than this which will be MFC'd in the
fullness of time.

Legwork by: Ian Dowse <[email protected]>
2001-06-28 06:33:13 +00:00
Mike Heffner 3e3092d994 MFC: Respect REPLYTO in mailrc. 2001-06-27 23:14:07 +00:00
Dan Moschuk f39ce545c6 Correct another minor typo. (emove --> remove)
Submitted by: David Wolfskll <[email protected]>
Probably not minded by: imp
2001-06-27 22:36:39 +00:00
Jens Schweikhardt 47892ffff3 MFC: Add description for the 'll' modifier for long long. In essence a copy
from the 'l' description with s/long/long long/g.

PR:           27017
Submitted by: Guy Harris <[email protected]>
2001-06-27 17:56:07 +00:00
Hajimu UMEMOTO a1fac1ec19 MFC 1.114: Change default value of rtadvd_enable to NO to be compatible with
the following description in RFC2461:

    AdvSendAdvertisements
	A flag indicating whether or not the router sends
	periodic Router Advertisements and responds to
	Router Solicitations.

	Default: FALSE

	Note that AdvSendAdvertisements MUST be FALSE by
	default so that a node will not accidentally start
	acting as a router unless it is explicitly
	configured by system management to send Router
	Advertisements.
2001-06-27 13:18:18 +00:00
Chris Costello 49a5dcbd05 MFC: Remove extra word "fo".
PR:		28436
Submitted by:	Gregory Bond <[email protected]>
2001-06-27 04:23:12 +00:00
Gregory Neil Shapiro 01b1d1979e MFC: Typo fix (modifes -> modifies)
Revision  Changes    Path
     1.164     +2 -2      src/etc/defaults/make.conf
2001-06-27 01:48:47 +00:00
Dan Moschuk 17f9f25cb0 Correct a silly stpo (stop) typo. 2001-06-26 23:18:48 +00:00
Warner Losh 178da27601 MFC: Merge to 1.192 2001-06-26 20:59:40 +00:00
Boris Popov fd4155fa1f MFC: the rest of fixes for nullfs. Please note, that for now only
ufs mounts can be used for null mounts. msdosfs and cd9660fs fixes
are trivial and will be committed shortly. Null mounts on top of nfs
filesystem will cause problems after rename() operation. This issue
also present in -current and can be fixed too.
2001-06-26 04:20:12 +00:00
Gregory Neil Shapiro 094d57e6bd MFC: Take advantage of the new OSTYPE(freebsd4) in sendmail 8.11.4
Revision  Changes    Path
     1.19      +3 -3      src/etc/sendmail/freebsd.mc
     1.16      +2 -2      src/etc/sendmail/freefall.mc
2001-06-26 02:52:40 +00:00
Jim Pirzyk b322971562 Implemented /proc/loadavg file.
PR:		kern/27253
Approved by:	des
2001-06-25 19:46:47 +00:00
Jim Pirzyk 2d30f7d513 Fixed the buffer overflow in swap space variables.
PR:		kern/27350
Approved by:	des
2001-06-25 18:53:50 +00:00
Hajimu UMEMOTO 45142d1a27 MFC 1.5->1.6: Correct typo. It should be site-local address prefix. 2001-06-25 18:13:22 +00:00
Jens Schweikhardt 7cb7598a69 MFC: New entry for rxvt.
PR:		28154
Requested by:	Giorgos Keramidas <[email protected]>
2001-06-25 16:36:00 +00:00
Ruslan Ermilov 019756da46 MFC: (1.24) Only checksum stdin if nothing has been checksummed yet. 2001-06-25 08:54:51 +00:00
Mike Smith 8bb9b5706a MFC the fix for the 'too many segs' bug, as well as moving to the
single-source macros.
2001-06-25 04:37:51 +00:00
cvs2svn 84fd4244b3 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-06-25 04:32:32 +00:00
Garance A Drosehn 9e326244f9 [MFC from 2001/06/15] -r 1.25
Get rid of a trigraph ("??>") mistakenly put in an error message.
One less warning to annoy me...
2001-06-25 01:19:11 +00:00
Garance A Drosehn ede9f9905b [MFC from 2001/06/15] -r 1.23 -> 1.24
Makes a minor change so socket-debug processing works the same as it did
before the IPv6 commit.  Probably irrelevent to freebsd, but I think it
was useful on other OS's.  Also makes a few minor style chgs.

Reviewed by:	[email protected]
2001-06-25 01:15:01 +00:00
Garance A Drosehn cfc17a805f [MFC from 2001/06/15]
Rename a few global variables which hold hostname-related values to be
more sensible/understandable.  'from'->'from_host'  'host'->'local_host'
'fromb'->'frombuf'  'fromhost'->'origin_host'  and a local-variable
named 'host'->'hostbuf'.

Other than renaming variables, the only actual code changes are to call
strlcpy() instead of strncpy() when setting those (renamed) variables,
and that 'from_ip' is now a strdup()-created buffer instead of being a
static buffer compiled in as 1025 bytes.

Reviewed by:	[email protected]
2001-06-25 01:01:04 +00:00
Garance A Drosehn 392699009c [MFC from 2001/06/15]
Rename global variable 'name' to 'progname', thus fixing about 10 warnings
which come up for various routines that have a parameter also called 'name'.

Reviewed by:	[email protected]
2001-06-25 00:49:01 +00:00
Garance A Drosehn 9331cf16d0 [MFC from 2001/06/12]
Fix about 85 warnings one gets when trying to compile lpr&friends
with BDECFLAGS on, mainly by adding 'const' to parameters in a number
of routine declarations.  While I'm at it, ANSI-fy all of the routine
declarations.  The resulting object code is exactly the same after
this update as before it, with the exception of one unavoidable
change to lpd.o on freebsd/alpha.

Also added $FreeBSD$ line to lpc/extern.h lpc/lpc.h lptest/lptest.c
(object for lptest.c changes due to the $FreeBSD$ line being added)

Reviewed by:	/sbin/md5, and freebsd-audit, freebsd-print
2001-06-25 00:37:30 +00:00
Hajimu UMEMOTO 9cc63a83ce ifconfig doesn't understand tunnel under 4-STABLE, yet. 2001-06-24 18:14:59 +00:00
Matt Jacob 2cfef9f757 (MFC 1.43) Don't dereference NULL regs pointer. 2001-06-24 04:43:47 +00:00
Brian Somers 2e2ff2aca4 MFC: Configure gif interfaces without requiring ipv6 2001-06-23 23:33:15 +00:00
Ian Dowse d44c0f95f3 MFC: 1.13; NULL out aat->aat_hold before calling the if_output
function, and cleanup the code slightly. This cured some panics
observed on a machine here, but we never figured out exactly why.
That machine is gone now, so I'll just do the MFC and close the PR.

PR:		kern/17583
2001-06-23 20:43:09 +00:00
Andrew Gallatin 7d332aa263 MFC: rev 1.5-1.8 -
printf->db_printf, cleanup of decode_syscall(), use same method of parsing
PIDs as x86, fallback to default if currproc is specified.
2001-06-23 18:38:58 +00:00
Ruslan Ermilov f61087bbba MFC: Fetch the default maximum TTL value from the net.inet.ip.ttl MIB. 2001-06-23 10:07:30 +00:00
Ruslan Ermilov 546435c893 MFC: (1.36) Mention that -a is ignored with -s. 2001-06-23 10:00:51 +00:00
Jason Evans f7f60ae050 MFC: Don't leak joined threads.
PR:	24345
2001-06-23 00:47:05 +00:00
Jason Evans c3ac662b3c MFC: Signal instead of broadcasting in sem_post(), since the condition
wait queue is guaranteed to be in priority order.
2001-06-22 23:56:20 +00:00
David E. O'Brien a0807423d1 MFC: quiet warnings and fix VCS ID. 2001-06-22 21:47:28 +00:00
Jason Evans 51c96e00c7 MFC: Update libc_r test suite. 2001-06-22 21:44:27 +00:00
Bruce A. Mah 8eec1f031a MFC: Note tx(4) support for SMC9432FTX cards.
Add tx(4) section to hardware list.
2001-06-22 21:42:46 +00:00
Jimmy Olgeni 1b7a29ec61 MFC: Fix a couple of typos (1.10). 2001-06-22 20:00:35 +00:00
Bruce A. Mah 806962bda8 MFC: Note that ed(4) supports the DE305. 2001-06-22 17:26:31 +00:00
Bruce A. Mah e34ce3484c MFC: Out-of-swap process termination code fixes, RFC 1323/1644 TCP
extension backoffs, TCP_RESTRICT_RST removed, whois(1) IP address
queries to ARIN, dump(8) -T argument processing, fetch(1) supports
HTTP_USER_AGENT, getprogname(3) and setprogname(3), ee(1) 1.4.2.

Linux-PAM update backed out.
2001-06-22 16:59:29 +00:00
Bruce A. Mah cef8f1a9a0 MFC: Add Alpha User's Q&A section to the installation guide.
install.sgml	1.1->1.2
2001-06-22 16:05:03 +00:00
Bruce A. Mah f253167363 Minor markup fix: Change sendmail manpage reference to application. 2001-06-22 15:56:52 +00:00
Bruce A. Mah be5b4f1061 MFC: orm(4), nge(4), lge(4), packet fragmentation limits, resolver(3)
EDNS0 support, df(1) -l, pkg_version(1) -s.
2001-06-22 15:53:03 +00:00
Warner Losh 3127eaa7da Two entries for stable: The repo damage (also suggested by jdp, but I forgot
until now) and the TCP_RESTRICT_RST stuff.

Submitted by: Jimmy Olgeni <[email protected]>
2001-06-22 04:47:40 +00:00
Mike Silbersack dc7c9fb78e MFC: Removal of TCP_COMPAT_42
Approved by:	 wollman
2001-06-22 02:25:07 +00:00
Bruce A. Mah 639114c722 MFC: Put docbook.css in the ftp and cdrom areas of a release build because
they have HTML renderings of the release documentation.
2001-06-22 01:18:40 +00:00
Bruce A. Mah e8455cefac With the ISO_ -> ISO rename for RELNOTESng completed, unbreak
(hopefully) release builds.
2001-06-22 00:37:19 +00:00
Bruce A. Mah bceac71cc3 MFC: ISO_ -> ISO rename. 2001-06-22 00:35:11 +00:00
Bruce A. Mah 28f70b15e1 MFC: ISO_* -> ISO* rename. 2001-06-22 00:29:22 +00:00
Bruce A. Mah dfc57921d2 MFC: Add note about partition a better be at offset 0 for a disk to
be bootable.

This change was originally made to RELENG_4 after I18N-related repo
copies to RELNOTESng, but before corresponding changes had been made
to RELENG_4.  This commit brings the change to the copy of RELNOTESng
in their new location.
2001-06-22 00:02:20 +00:00
Warner Losh 5d5b3f3c42 MFC 1.25: new flag values for CARD_SET_RES_FLAGS.
(note: I made MFC binary compatible by reording it slightly)
2001-06-21 05:32:36 +00:00
Dima Dorfman aaa1c7b5f8 MFC 1.13: this supports more than four options. 2001-06-21 02:22:03 +00:00
Dima Dorfman 9093e57627 MFC 1.16: xref zcat(1). 2001-06-21 02:21:07 +00:00
Dima Dorfman 79382b0def MFC 1.10: fix synopsis. 2001-06-21 02:20:37 +00:00
Dima Dorfman 5b6930f8f9 MFC 1.23: -T shouldn't swallow two arguments. 2001-06-21 02:18:45 +00:00
Dima Dorfman e949e14879 MFC 1.112: explicitly set arpproxy_all and start_vinum to "NO" for
consistency.
2001-06-21 02:17:46 +00:00
Dima Dorfman 9d75df123e MFC 1.14: remove unused variables. 2001-06-21 02:16:32 +00:00
Dima Dorfman 7c970211ec MFC/NOTES 1.924: document PANIC_REBOOT_WAIT_TIME. 2001-06-21 02:14:45 +00:00
Warner Losh b906094f7a MFC src/sys/dev/wi/if_wi.c rev 1.52: read the mac address twice since
some prism cards need it and it doesn't seem to harm anything.

Approved by: bill paul.
2001-06-20 20:16:19 +00:00
Jim Pirzyk 0ff9fcdd96 Fixed two bugs, first not allowing '.' as a valid login name character
in okname() in util.c and second, returning != 0 when you do have an
error from okname in two places in rcp.c.

Thanks to Garrett for the POSIX defintion of valid login and group names.

PR:		bin/25757
MFC:	rcp.c (1.29) util.c (1.10)
2001-06-20 16:14:33 +00:00
Scott Long 3196f11318 Fix a typo from my last commit. 2001-06-20 16:11:01 +00:00
Luigi Rizzo e4e7b06948 MFC: cleanup documentation and document some options of the script. 2001-06-20 15:10:33 +00:00
Luigi Rizzo a93300f686 MFC: minor cleanup of the build script for better handling of alternate
source trees.
[immediate mfc as nobody will test this code in -current, so the
delay would only help forgetting to update].
2001-06-20 15:09:26 +00:00
Orion Hodson 37bd48d666 MFC: initial driver version.
Submitted by:	Chris Faulhaber <[email protected]>
2001-06-20 06:12:59 +00:00
Daniel Baker a813a99e14 MFC "add ircs" 2001-06-19 20:33:32 +00:00
Bill Paul 9a88f955af Merge in driver support for the NatSemi DP83820/21 and Level 1 LXT1001
gigabit ethernet controllers. Also add man pages and module build stuff.
This gives -stable support for 7 or 8 different gigE cards from various
vendors such as D-Link, SMC, Addtron and Asante, both fiber and copper
media.

Note: I only have 64-bit NatSemi card. If anyone has one of the
32-bit only cards that uses the DP83821 and can verify that the nge
and nsgphy drivers work for them, I would appreciate it. The driver
should "just work" with both NICs, but confirmation would be good.

(Alternatively, if someone has a spare D-Link DGE-500T card or similar
they're willing to donate/loan to me, that would work too.)
2001-06-19 19:42:45 +00:00
Maxim Sobolev d7f345f54c MFC: protect against multiple inclusions. 2001-06-19 06:49:15 +00:00
Ruslan Ermilov 68d0346412 MFV: (node::node): Initialize `last'. 2001-06-19 06:46:27 +00:00
Warner Losh 2c75f6406e MFC: orm Option RoM driver 2001-06-19 05:48:29 +00:00
Dima Dorfman 07981949b9 Don't call login_close if LOGIN_CAP isn't defined.
PR:		22897
Submitted by:	rene-marc dolhen <[email protected]>
2001-06-19 00:26:30 +00:00
Dima Dorfman a97750f685 MFC 1.108: allow zero-length data (useful for strings). 2001-06-18 23:48:13 +00:00
cvs2svn 2c35ae8336 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-06-18 22:04:41 +00:00
Dima Dorfman e756fede16 Elaborate on the malloc(9) limits that affect md(4).
PR:		27599, 27259
Submitted by:	Stefan `Sec` Zehl <[email protected]>
2001-06-18 22:00:12 +00:00
Bruce A. Mah c21b22499d MFC: Deal with new pkg_version(1) format output.
400.status-pkg	1.4->1.5, 1.6->1.7

Reminded by:  tobez
2001-06-18 21:26:59 +00:00
Jim Pirzyk 7e70e321b1 Forgot one line from the patch....
Blunder noticed by:	 Karl Wiebe <[email protected]>
2001-06-18 21:22:15 +00:00
Dag-Erling Smørgrav f7eae7de52 MFC: close descriptors in child; verbose mode.
PR:		bin/27760
2001-06-18 19:05:33 +00:00
Bill Paul 16c5c82ce7 Regenerate. 2001-06-18 18:49:43 +00:00
Bill Paul beffa6ed2f MFC the necessary PHY support for the if_nge and if_lge drivers. This
includes:

- modifications to the xmphy driver to recognize the internal PCS
  PHY on the Level 1 LXT1001 chip.

- addition of the natsemi DP83861 nsgphy driver for cards which use
  the natsemi DP83820 MAC.

- addition of new ID info to miidevs
2001-06-18 18:49:13 +00:00
Bruce A. Mah 0f201dbef7 MFC: pkg_version fixes, including -s flag, "orphan" detection,
and doc / usage fixups.  This commit updates pkg_version to the
version on HEAD.

	pkg_version.pl	1.20->1.23
	pkg_version.1	1.15->1.17
2001-06-18 18:07:43 +00:00
Jim Pirzyk ea36760a08 Fixed pkg_add so when it does not find the package, it returns non zero.
PR:		bin/23083
Patch Submitted by:	Maxime Henrion <[email protected]>
MFC:	1.39
2001-06-18 16:16:14 +00:00
Jim Pirzyk eb06cc98fc Added the -l option to df
PR:	bin/27240
Reviewed by:	GAWollman
MFC:	v1.24 (df.1) v1.28 (df.c)
2001-06-18 16:07:09 +00:00
Nick Hibma cb16782a04 MFC r1.106: Add the cygwin entry. 2001-06-18 14:38:47 +00:00
Jimmy Olgeni 1e084cd1d5 MFC: x11-fonts/XFree86-4-fontLatin2 has been removed from ports (1.9). 2001-06-18 09:24:29 +00:00
Maxim Sobolev 359194d139 MFC: correct cross-references. 2001-06-18 08:42:17 +00:00
Wilko Bulte 7d22b825ec Note support for the Digital Etherworks DE305 card
Submitted by:	Rene de Vries <[email protected]>
2001-06-17 14:27:59 +00:00
Brian Somers 8dc6d5e226 MFC: Add a missing \n 2001-06-17 11:40:59 +00:00
Dima Dorfman be23d1165e Correct a spelling error in a comment. 2001-06-17 05:05:00 +00:00
Jesper Skriver 1a5e89af44 MFC
src/sys/netinet/ip_input.c      rev 1.169 and 1.170
src/sys/netinet6/frag6.c        rev 1.7
src/sys/netinet6/in6_proto.c    rev 1.13

  Prevent denial of service using bogus fragmented IPv4 packets.

  A attacker sending a lot of bogus fragmented packets to the target
  (with different IPv4 identification field - ip_id), may be able
  to put the target machine into mbuf starvation state.

  By setting a upper limit on the number of reassembly queues we
  prevent this situation.

  This upper limit is controlled by the new sysctl
  net.inet.ip.maxfragpackets which defaults to nmbclusters/4

  If you want old behaviour (no upper limit) set this sysctl
  to a negative value.

  If you don't want to accept any fragments (not recommended)
  set the sysctl to 0 (zero)

  Change the default value of net.inet6.ip6.maxfragpackets from
  200 to nmbclusters/4 to match the IPv4 case.

Obtained from:	NetBSD (partially)
2001-06-16 23:48:11 +00:00
Peter Wemm 48246e4913 MFC: rev 1.131: set P_SUGID before releasing ptrace and block opportunities 2001-06-16 23:41:58 +00:00
Peter Wemm 17b20ce9dc Not a MFC, but for source compatability with -current (sound drivers).
Add #define INTR_TYPE_AV INTR_TYPE_TTY.
2001-06-16 23:05:02 +00:00
Wilko Bulte 5883045fd4 Add note about partition a better be at offset 0 for a disk to be bootable. 2001-06-16 21:10:54 +00:00
Tor Egge fa0afcf8a6 Regenerate. 2001-06-16 20:41:40 +00:00
Tor Egge 83e3ae3b51 MFC: gettimeofday() is MP safe. 2001-06-16 20:40:35 +00:00
Yoshihiro Takahashi 9caf174c6b MFC: Removed unused files. 2001-06-16 10:09:22 +00:00
Peter Wemm 3ff4ae74eb MFC: rev 1.17: fix guaranteed instant coredump if the three header comments
are removed from /var/cron/tabs/* due to trivial cut/paste error.
2001-06-16 03:18:37 +00:00
Eric Melville 1900215bec MFC: remove unwanted CFLAGS, and add a CVS id. 2001-06-15 23:48:29 +00:00
Hajimu UMEMOTO c6e57ae65f MFC: Implement EDNS0 support, as EDNS0 support will be made mandatory for
IPv6 transport-ready resolvers/DNS servers.  Need careful configuration
when enable it. (default config is not affected).
See manpage for details.

  XXX visible symbol __res_opt() is added, however, it is not supposed to be
  called from outside, libc minor is not bumped.

	src/include/resolv.h:			1.19->1.20
	src/include/arpa/nameser.h:		1.14->1.15
	src/include/arpa/nameser_compat.h:	1.2->1.3
	src/lib/libc/net/getaddrinfo.c:		1.20->1.21
	src/lib/libc/net/res_debug.c:		1.18->1.19
	src/lib/libc/net/res_init.c:		1.23->1.24
	src/lib/libc/net/res_mkquery.c:		1.15->1.16
	src/lib/libc/net/res_query.c:		1.19->1.20
	src/lib/libc/net/resolver.3:		1.14->1.15
	src/share/examples/IPv6/USAGE:		1.1->1.2
2001-06-15 22:08:30 +00:00
Hajimu UMEMOTO 3f5e2ce614 MFC 1.7->1.8: mdoc(7) police: normalize .Nd. 2001-06-15 21:46:20 +00:00
Jonathan Lemon 9bb1cc296a MFC: r1.54; hook up kq write filter to correct socket. 2001-06-15 21:20:55 +00:00
Jonathan Lemon a7b6cd858d MFC: r1.26; autoclear EOF for FIFOs, resume using kevent if possible. 2001-06-15 21:13:21 +00:00
Jonathan Lemon 449fdb0bbf MFC: r1.82; bugfix for write filter. 2001-06-15 20:46:06 +00:00
Hajimu UMEMOTO 894f44ec80 MFC 1.5->1.6: Make enumerated list for flags. Spelling. 2001-06-15 20:00:22 +00:00
Hajimu UMEMOTO 66a53c83e4 MFC 1.10->1.11: workaround; be sure to initialize nd6 interface
information when IPv6 interface address gets added.  this will
avoid presenting EMSGSIZE when outgoing interface is down
(and never brought up).
2001-06-15 19:54:38 +00:00
Hajimu UMEMOTO 964a51ef43 MFC 1.116->1.117: be more cautious about tcp option length field.
drop bogus ones earlier.  not sure if there is a real threat or
not, but it seems that there's possibility for overrun/underrun
(like non-NOP option with optlen > cnt).
2001-06-15 19:50:08 +00:00
Andrew Gallatin e710acd261 MFC: Ross Harvey's better ddb backtrace support
Obtained from: NetBSD
2001-06-15 18:28:14 +00:00
Jens Schweikhardt 82493cc671 MFC: Fix a "this sentence no verb" grammar bogon. 2001-06-15 14:01:26 +00:00
Yoshihiro Takahashi c8d1c5457c Merged from sys/i386/i386/machdep.c revision 1.385.2.12. 2001-06-15 12:02:04 +00:00
Scott Long 49f04aa1b9 MFC Peter Wemm's init and kthread enhancements from 08/11/2000 of -current.
This allows kthreads to be used by device drivers long before root is mounted
and init is officially started.  This also brings RAIDframe one step closer.

Reviewed by:	peter
2001-06-15 09:38:04 +00:00
Brian Somers 185aed6bf2 MFC: Mention that ppp.conf.isdn isn't appropriate for external TAs and
add a section to ppp.conf.sample that is.
     Mention that # may be used at the end of lines and that literal #
     characters must be escaped or quoted.
2001-06-15 09:18:03 +00:00
Jordan K. Hubbard bab02bc99a MFC: quiet down the build
Approved by:	markm
2001-06-14 23:24:15 +00:00
Hajimu UMEMOTO 19665c1293 unbreak kernel without option INET
maybe, MFC failure in 1.68.2.11
2001-06-14 20:46:06 +00:00
Guy Helmer 78169ca464 MFC: src/libexec/telnetd/sys_term.c 1.30
Fix the number of bytes allocated by realloc when more space is needed
for the vector of arguments.
2001-06-14 13:28:38 +00:00
Maxim Sobolev fb4615e632 MFC: create curs_termcap.3 --> termcap.3 MLINK. 2001-06-14 10:56:09 +00:00
Boris Popov 5c99332927 MFC: Do not leave an extra reference on vnode.
PR:		kern/27250
2001-06-14 10:01:18 +00:00
Dima Dorfman 8f4ffc0cd9 MFC: getprogname(3) and setprogname(3) 2001-06-14 00:06:12 +00:00
Brian Somers de43caebd7 MFC: Convert IIJ copyrights to BSD copyrights. 2001-06-13 21:56:36 +00:00
Brian Somers 7d1d7e9f6c MFC: Fix an alignment error 2001-06-13 19:38:48 +00:00
Brian Somers 74d794544a MFC: Add $daily_accounting_save and $daily_accounting_flags 2001-06-13 19:36:50 +00:00
Jonathan Lemon 184d0bca97 MFC: r1.8; Null terminate buffer. 2001-06-13 14:41:52 +00:00
David Malone 2f5bf0e0df MFC: mvprintw is varadic - it doesn't take a va_list. Use vw_printw instead. 2001-06-13 13:52:14 +00:00
Daniel C. Sobral 5d5b515aea MFC: bring in share/examples/ipfw 2001-06-13 12:38:39 +00:00
Daniel C. Sobral fc4cc49f83 MFC: Bring change_rules.sh, a script for safe remote changing of ipfw rules,
to the land where stable lies.

Helped by: ru
Helped but not really by: des
Hindered by: CVSROOT scripts
2001-06-13 12:37:38 +00:00
Matthew Dillon ad2c7354ee MFC the two out-of-swap fixes (kill the correct process and start blasting
away at processes a little earlier, before the machine begins to lockup)
2001-06-13 07:26:58 +00:00
Cameron Grant c2bd2a8381 mfc of rev 1.42, original commit message follows:
Try and stop config(8) from freaking out due to unnecessary paranoia
when using -d.  Use realpath(3) to locate the top of the tree rather than
trying to manually trim back the results of a getcwd().

tested with buildworld, kernel builds with/without funky symlinks and
release.

Approved by:	peter
2001-06-13 00:25:53 +00:00
Mike Heffner 354ae0a4c5 MFC 1.8: use S_IXUSR 2001-06-12 23:02:07 +00:00
Mike Heffner 60f2ef64d1 MFC: string handling cleaned up, tempfile handling improved, style(9)
cleanup, handle <CR><NL> in mboxes (Eudora mbox support)
2001-06-12 22:34:48 +00:00
Mike Heffner 0710edab61 MFC: BDECFLAGS cleanup and fix overflow 2001-06-12 22:11:31 +00:00
Scott Long 765fe64e14 Add the prototype for disk_enumerate()
Approved by:	phk
2001-06-12 17:52:51 +00:00
Garance A Drosehn f8c6e3f861 MFC from 2000/12/30. r1.6 of chkprintcap.c, r1.3 of request.c
Use macro API to <sys/queue.h>

Submitted by:	"Jason" <[email protected]>
Reviewed by:	/sbin/md5
2001-06-12 16:40:57 +00:00
Jesper Skriver e58dddeb02 MFC rev 1.44
Disable rfc1323 and rfc1644 TCP extensions if we havn't got
any response to our third SYN to work-around some broken
terminal servers (most of which have hopefully been retired)
that have bad VJ header compression code which trashes TCP
segments containing unknown-to-them TCP options.
2001-06-12 16:15:07 +00:00
Jesper Skriver f44309f926 MFC rev 1.129 and 1.130
properly delay acks in half-closed TCP connections

Inline TCP_REASS() in the single location where it's used,
just as OpenBSD and NetBSD has done.
2001-06-12 15:54:30 +00:00
Jesper Skriver 9753453885 MFC rev 1.20
Fix minor style bux.
2001-06-12 15:35:14 +00:00
Mark Murray f59f635296 Hopefully the last bug fix to accomodate BIND 9 under STABLE. 2001-06-12 13:13:31 +00:00
Maxim Sobolev fcfbccd4fd MFC: correct cross-references. This brings up the following deltas:
1.8       src/share/man/man4/ipsec.4
1.13      src/share/man/man4/ng_bpf.4
1.22      src/usr.sbin/lpr/lpr/printcap.5
1.9       src/lib/libc/sys/setresuid.2
1.108     src/share/man/man5/rc.conf.5
1.9       src/lib/libnetgraph/netgraph.3
1.6       src/libexec/pppoed/pppoed.8
1.28      src/share/man/man4/bpf.4
1.28      src/share/man/man4/netgraph.4
1.13      src/share/man/man4/tty.4
1.7       src/usr.sbin/nghook/nghook.8
1.264     src/usr.sbin/ppp/ppp.8
2001-06-12 10:16:22 +00:00
Mark Murray a54ee102e7 Deal with the security directory/symlink/file/turd correctly. 2001-06-12 08:50:18 +00:00
Dima Dorfman 19d713e178 MFC 1.38: remove xref to blackhole(4). 2001-06-12 03:32:45 +00:00
Dima Dorfman 9c65e84e3b MFC 1.35, 1.36: remove unused variable and normalize use of sizeof. 2001-06-12 03:31:26 +00:00
Dima Dorfman 4decf6d300 MFC 1.9: correct typos. 2001-06-12 03:28:09 +00:00
Dima Dorfman 2db7a645fe MFC 1.360: check for SC_DEV evaluating to NULL in VIRTUAL_TTY. 2001-06-12 03:25:41 +00:00
Dima Dorfman 7db3bab5f8 MFC 1.37: add -j to usage string. 2001-06-12 03:22:05 +00:00
Dima Dorfman 95e9d2857b MFC 1.22: get originator's name right;
1.23: stick originator's name in the From: field; and
    1.24: don't allow the user to change the subject (always use the
          synopsis).

(Complete sync with -current.)
2001-06-12 03:04:27 +00:00
Peter Wemm 9d75e8c4e6 Revert accidental commit. (wrong branch) 2001-06-12 01:49:32 +00:00
Peter Wemm 89ba5aca54 *** empty log message *** 2001-06-12 01:11:31 +00:00
Jordan K. Hubbard a3a34b9328 You can't pass a directory name in CLEANFILES 2001-06-11 23:55:20 +00:00
Wolfram Schneider 4c63c80129 Add mount option `nosymfollow' to the mount_mfs example. 2001-06-11 22:55:12 +00:00
Dag-Erling Smørgrav 1afe336b9f MFC: synch completely with -CURRENT, except for fetchAuthMethod stuff. 2001-06-11 18:30:11 +00:00
Dag-Erling Smørgrav aaefc691d1 MFC: synch with -CURRENT, except for fetchAuthMethod and version bump. 2001-06-11 18:25:52 +00:00
Jonathan Lemon 60908d3b95 MFC: r1.20; s/kqueue/kevent/ in correct place. 2001-06-11 18:16:51 +00:00
Dag-Erling Smørgrav 20b96c36c5 MFC: don't try to print a percentage for zero-length files. 2001-06-11 18:06:27 +00:00
Andrey A. Chernov eae8cde30d MFC: DOC_LANG 2001-06-11 16:28:18 +00:00
Andrey A. Chernov 01e96b94aa MFC: DOC_LANG: ISO_ -> ISO 2001-06-11 16:25:28 +00:00
Mark Murray 051581bab8 Back out the extremely unwise PAM MFC that I did about 4 days ago.
My apologies to all. Please pass the pointy hat.
2001-06-11 15:28:52 +00:00
Dag-Erling Smørgrav dfac0dbf64 MFC: don't give up if we made progress recently (partial MFC of 1.81)
PR:		kern/5768
2001-06-11 13:12:10 +00:00
Yoshihiro Takahashi 9ad98e00c6 Merged from sys/dev/syscons/scterm-sc.c revision 1.4.2.10. 2001-06-11 13:10:22 +00:00
cvs2svn ada62b2a7c This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-06-11 12:39:30 +00:00
Ruslan Ermilov e8c0e14117 - Restore -nostdinc that got lost in rev.1.105; we don't
want host headers during `buildworld'.

Submitted by:	bde

- During `buildworld', install headers in a "copy" mode
  until we decide what to do with the (currently broken)
  SHARED=symlinks.
2001-06-11 11:18:03 +00:00
Jimmy Olgeni 4dc7e15976 MFC: Fix default number of virtual consoles (1.12) 2001-06-11 09:10:21 +00:00
Poul-Henning Kamp 9aaf212f43 MFC:
With the new kernel dev_t conversions done at release 4.X,
       it becomes possible to trap in ptsstop() in kern/tty_pty.c
       if the slave side has never been opened during the life of a kernel.

       What happens is that calls to ttyflush() done from ptyioctl() for the
       controlling side end up calling ptsstop() [via (*tp->t_stop)(tp, <X>)]
       which evaluates the following:

             struct pt_ioctl *pti = tp->t_dev->si_drv1;

       In order for tp->t_dev to be set, the slave device must first be
       opened in ttyopen() [kern/tty.c].

       It appears that the only problem is calls to (*tp->t_stop)(tp, <n>),
       so this could also happen with other ioctls initiated by the
       controlling side before the slave has been opened.
2001-06-11 09:08:52 +00:00
Poul-Henning Kamp d8eb8f3722 MFC:
Direct queries for IP numbers to ARIN.  It would be nice if we could
  send them to APNIC/RIPE intelligently, but we can't at this time so
  fallback to ARIN and depend on them telling the user where to look.
2001-06-11 09:07:45 +00:00
Poul-Henning Kamp ab5dd80707 MFC:
Make the beep duration independent of HZ.
2001-06-11 09:05:40 +00:00
Poul-Henning Kamp 35da02049a MFC:
/var/log/console.log should be mode 600.
2001-06-11 09:04:38 +00:00
Poul-Henning Kamp 51b65e21c3 MFC:
Clarify that the old CD-ROM drivers are only for non-ATAPI drives.
2001-06-11 09:03:34 +00:00
Matt Jacob b0a89c6989 Perform MFC 1.71-1.72... Python 06408 needs NODREAD.
PR:		25980
2001-06-11 01:29:53 +00:00
Hajimu UMEMOTO a481ac737d MFC 1.17->1.18: Do retry next entry in addrinfo during connect. 2001-06-10 15:00:45 +00:00
Sheldon Hearn eb8df7642a MFC rev 1.269: back out support for smbfs auto mounts. 2001-06-10 12:10:13 +00:00
Jens Schweikhardt 91d51d757e MFC: Fix a grammar bogon and removed whitespace at EOL. 2001-06-10 11:34:35 +00:00
Maxim Sobolev 38969fc2df MFC:
- update to 1.4.2;
- two new translations: Ukrainian and Russian;
- various local fixes and improvements from -current.
2001-06-10 11:06:11 +00:00
Dima Dorfman 29fc46dc8c Remove dead code (and no, I don't mean the entire file!).
PR:		11416
Submitted by:	Christopher Peterson <[email protected]>
2001-06-10 02:02:05 +00:00
Dima Dorfman bbe7d41224 MFC 1.15: xref dladdr(3). 2001-06-10 01:57:34 +00:00
Dima Dorfman 8d33cbaf72 MFC: add twe device.
PR:		25039
Submitted by:	olgeni
2001-06-10 01:45:38 +00:00
Dima Dorfman 13cd6d0332 svctcp_create can't fail at creating a udp socket since it didn't try.
PR:		10894
Submitted by:	Erik E. Rantapaa <[email protected]>
2001-06-09 23:50:37 +00:00
Gregory Neil Shapiro 41de41fb1a MFC: Import sendmail 8.11.4 2001-06-09 17:59:39 +00:00
Gregory Neil Shapiro 3533bff91e RELENG_4 now has sendmail 8.11.4 2001-06-09 17:52:44 +00:00
Gregory Neil Shapiro f8fffe7168 MFC: Import sendmail 8.11.4 2001-06-09 17:40:47 +00:00
Dag-Erling Smørgrav eec4f83e2a MFC: Nuke the TCP_RESTRICT_RST option. 2001-06-09 16:18:14 +00:00
Dag-Erling Smørgrav 040d6ec557 MFC: avoid overflow when converting ticks to jiffies. 2001-06-09 16:02:29 +00:00
Sheldon Hearn 1f98224ac5 MFC rev 1.268: support smbfs auto mounts in /etc/fstab 2001-06-09 09:50:20 +00:00
Jonathan Lemon b32cb7c711 MFC: workaround for 10Mb/s bug. This may not solve the SCB timeout problem
on all boards, but is a marked improvement in some cases.
2001-06-08 20:36:58 +00:00
Semen Ustimenko 07203e657e MFC: Add support for SMC 9432 FTX card. 2001-06-08 20:00:14 +00:00
Semen Ustimenko bc800eae1e MFC: Add LXT970, AC101 and QS6612 personal drivers. 2001-06-08 19:59:38 +00:00
Semen Ustimenko f292d5c649 MFC: Reflect support of SMC9432FTX card. 2001-06-08 19:59:00 +00:00
Semen Ustimenko c4848a4644 MFC: Add LXT 970 PHY, AC101 and QS6612 drivers. This is for tx(4) driver
support of fibre optic FTX card.
2001-06-08 19:58:33 +00:00
Semen Ustimenko 9e8e051df4 MFC: Include Level 1 LXT 970 PHY, AC101 and QS6612 drivers. This is for
tx(4) driver support of fibre optic FTX card.
2001-06-08 19:57:48 +00:00
Semen Ustimenko cf3f9ba63b MFC: Changes about support fibre optic FTX card. 2001-06-08 19:55:37 +00:00
Bruce A. Mah 0a3330f4bb MFC: savecore(8) 2GB RAM fix, inetd(8) faith syntax, Linux-PAM 0.75. 2001-06-08 19:20:24 +00:00
Maxim Sobolev 367a8d5a4a MFC:
- Sync error messages with usage();
- avoid gcc(1) warnings.
2001-06-08 18:27:32 +00:00
Warner Losh 2d9fca3f41 MFC: read range of config registers
pciconf.c 1.16
	pciconf.8 1.13
2001-06-08 06:45:26 +00:00
Matthew Dillon 80589a7957 MFC 1.81, fix a race condition between close and extending the write buffer 2001-06-08 06:30:31 +00:00
Dima Dorfman 138b6202c3 MFC 1.11: correct a typo. 2001-06-08 04:57:05 +00:00
Dima Dorfman f07287a8d3 MFC 1.40: mention the 'ether' parameter, and
1.41: arp works on networks other than Ethernet.
2001-06-08 04:51:36 +00:00
Dima Dorfman 332bb44464 MFC 1.36: correct typo. 2001-06-08 04:43:56 +00:00
Peter Wemm 0dc387f33f MFC: rev 1.40: trivial fix for savecore on 2GB ram machines 2001-06-08 03:11:32 +00:00
Dima Dorfman 8d3aeb9b65 MFC 1.35: document kern.ps_showallprocs. 2001-06-08 01:16:56 +00:00
Dima Dorfman 7ea5160de0 MFC 1.42: implement -r and -w as -o ro' and -o noro', respectively. 2001-06-08 01:03:46 +00:00
Dima Dorfman 940072a1a4 MFC 1.10: mention how env(1) can be used with the "#!" construct. 2001-06-08 00:58:01 +00:00
Dima Dorfman 3dfd976f7c MFC 1.27: fix grammar bogon. 2001-06-07 23:56:05 +00:00
Jonathan Lemon 1574d5bd15 MFC: r1.51; allow POLLIN/POLLOUT work the same as POLLRDNORM/POLLWRNORM. 2001-06-07 23:19:28 +00:00
Hajimu UMEMOTO d3ab638e30 MFC 1.89->1.90: Recently, other BSDs had faith support in inetd.
Though our inetd has it already, their syntax is not compatible
with ours.  It will confuse users.  So, we have compatibility with
their syntex.
2001-06-07 19:32:42 +00:00
FUJISHIMA Satsuki 740685092e MFC: add new directories for XFree86-4.1.0. 2001-06-07 14:49:13 +00:00
Yaroslav Tykhiy 0606cd0ee5 MFC rev. 1.9:
First, wrap the if_up() call into splimp()/splx() because
if_up() must be called at splnet or higher.
Second, set the IFF_RUNNING flag on an interface after its
resources (i.e. tunnel source and destination addresses)
have been set. Note that we don't set IFF_UP because it is
if_up()'s job to do that.

PR:             kern/27851
Submitted by:   Horacio J. PeÓa <[email protected]>
2001-06-07 13:09:27 +00:00
Mark Murray 3d20281128 MFC: PAM module build files ignored by CVS. Grrr. 2001-06-07 12:48:16 +00:00
Mark Murray 21a9c207b1 MFC: FreeBSD PAM stuff and cleaned up modules build. New modules. 2001-06-07 09:37:14 +00:00
Mark Murray 02cc8c4d1d MFC: Latest vendor PAM code + local fixes. 2001-06-07 09:07:52 +00:00
Dima Dorfman a972dafe00 MFC 1.147: remove "no devsw" message.
Approved by:	phk
2001-06-07 06:05:58 +00:00
Jonathan Lemon 0a8408a4a3 MFC: Move IPFilter into contrib. 2001-06-07 05:14:51 +00:00
Jonathan Lemon f308ee5e46 MFC: Relocate IPFilter. 2001-06-07 05:11:44 +00:00
John Polstra b561950d10 MFC 1.13: Fix uninitialized structure member which could cause hangs
if the stack didn't happen to have good garbage on it.

PR:		bin/27457
2001-06-07 04:58:35 +00:00
Jonathan Lemon 6d8508af62 Relocate IPFilter for RELENG_4. 2001-06-07 04:36:12 +00:00
Dima Dorfman 877789250a MFC 1.2: use create-link procedure. 2001-06-07 00:52:17 +00:00
Dima Dorfman f0162e3346 MFC: add a missing word. 2001-06-07 00:12:38 +00:00
Thomas Moestl 47ca1ecf42 MFC: src/usr.bin/nfsstat/nfsstat.c rev. 1.18
src/usr.bin/systat/main.c	rev. 1.15
	src/usr.bin/w/w.c		rev. 1.46

Use the correct length (_POSIX2_LINE_MAX) for the error buffer passed
to kvm_openfiles.
2001-06-06 20:26:03 +00:00
Jesper Skriver cbeeaa1dce MFC rev 1.19
PR:		i386/27693
Submitted by:	Adrian Steinmann <[email protected]>
2001-06-06 20:05:06 +00:00
Chris Costello 6c23f517bd Spelling fix ("dependant" -> "dependent").
PR:		25648
Submitted by:	Jens Schweikhardt <[email protected]>
2001-06-06 19:11:44 +00:00
Bruce A. Mah bb3a3196a5 MFC: Properly key RELNOTESng language selection from RELNOTES_LANG instead
of DOC_LANG.

	Makefile:	1.2->1.3
2001-06-06 16:59:10 +00:00
Matt Jacob 25724dfc27 MFC 1.112- Do NOLUNS dance for oddball Exabyte. Correct match for
A5000 SES instance.
2001-06-06 15:35:17 +00:00
Tom Hukins 41895ef3ea MFC: recent typo and wording fixes 2001-06-06 11:58:30 +00:00
Ruslan Ermilov e1ebeccbe7 Fixed the misplacement of the -U option in DESCRIPTION.
PR:		docs/27902
2001-06-06 09:28:42 +00:00
Jimmy Olgeni e54ec3cdd1 MFC: Fix typos in accf_data.9 (1.4) and accf_http.9 (1.6) 2001-06-06 08:42:01 +00:00
MIHIRA Sanpei Yoshiro 60be4e4673 MFC: Add OZO9100(rev.1.333) and SmartLink 5634PCV SurfRider(rev.1.332) 2001-06-06 08:39:50 +00:00
Jun Kuriyama 552fbfc937 MFC: Add Melco's WLI-PCM-L11G. 2001-06-06 07:39:47 +00:00
Gregory Neil Shapiro b3974d9e55 MFC: Make sure the len() builtin always returns an answer. Previously,
len(`') didn't return an answer.  Now it returns 0.

     Revision  Changes    Path
     1.13      +2 -3      src/usr.bin/m4/eval.c
2001-06-06 03:31:52 +00:00
Gregory Neil Shapiro 120bca8bed MFC: Correct the documentation for snprintf() and vsprintf() which actually
return the number of characters that would have been in the new string.

     Revision  Changes    Path
     1.28      +13 -2     src/lib/libc/stdio/printf.3
2001-06-06 03:24:13 +00:00
Bill Paul c932231688 MFC: properly turn off MII autoneg in MAC by setting bit, not clearing it 2001-06-05 20:51:47 +00:00
Warner Losh 8e873803ea MFC: 1.5 copyright update 2001-06-05 19:16:37 +00:00
Warner Losh 730045f8e0 MFC: 1.8 minor style(9) nits 2001-06-05 19:11:34 +00:00
Warner Losh 73fce0e6f9 MFC: 1.21 Fix a comment 2001-06-05 18:50:42 +00:00
Bruce A. Mah 42dff847f7 MFC: SA-01:40. 2001-06-05 18:25:02 +00:00
Bruce A. Mah 2041ea41e2 New release note: ELF dynamic linker performance improvements.
MFC:  ifconfig(8) slash/CIDR notation.
2001-06-05 16:43:13 +00:00
Bruce A. Mah 2500a1e316 MFC: Remove *.TXT documentation files (replaced by RELNOTESng), add
README file redirecting developers and users.
2001-06-05 16:13:00 +00:00
Bruce A. Mah 59274df8b5 MFC: RELNOTESng is now the default for release builds.
Makefile 1.615->1.616, 1.617->1.620
	Makefile.inc.docports (new file)
2001-06-05 16:09:25 +00:00
cvs2svn d52f4d2d15 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-06-05 15:33:31 +00:00
Bruce A. Mah e337ab69a9 MFC: Disable X11 support in doc ports using WITHOUT_X11, not NO_X. 2001-06-05 14:22:33 +00:00
Maxim Sobolev e6560fe9ae MFC:
- Allow sysinstall to be used to set ukrainian fonts/keymaps/screenmaps for
  syscons(4);
- by default use cp866 font + koi8-r2cp866 screenmap for koi8 users.
2001-06-05 12:05:55 +00:00
Warner Losh d43ba674f5 MFC: RF_ALIGNMENT and friends 2001-06-05 08:06:08 +00:00
Warner Losh 47e3f8cf15 MFC: 1.67 and 1.68: perens for warnings and don't reset card with COR bit 7 2001-06-05 07:02:48 +00:00
Warner Losh 896fae08ea MFC: 1.32 comments w/o newlines 2001-06-05 07:01:40 +00:00
Warner Losh 5977ce1d85 Since this doesn't impact anything, go ahead and MFC it. We'll need
it for the backport of the new pcic code.
2001-06-05 06:54:25 +00:00
Matthew Dillon 31aa36716c MFC fix type-o's (reported from various sources) and update. 2001-06-05 06:00:36 +00:00
Dima Dorfman 3e21339fc9 MFC 1.73: return EADDRNOTAVAIL when an attempt to bind to an
ephemeral port fails.
2001-06-05 00:02:12 +00:00
Ian Dowse 712a63726f MFC: A minor change from revision 1.48; when the '-netmask' option
corresponding to a '-mask' is missing from an exports line, the
syslog error referred to '-net' instead of '-netmask'.

PR:		bin/27878
Submitted by:	Phil Homewood <[email protected]>
2001-06-04 23:53:25 +00:00
Bruce A. Mah 248f0b4e81 Sync the RELNOTESng errata with the errata committed to the Web site.
Also try to define a little better what exactly the semantics of this
file are (in particular, what content might appear in this file and
how a user might obtain an up-to-date copy).

I'm not 100% satisfied with this, but it's better than what we had.
2001-06-04 22:44:01 +00:00
Peter Wemm 2c49570b2b MFC: rev 1.2: su binaries should be setuid :-) 2001-06-04 21:11:34 +00:00
Joerg Wunsch cf935a3f86 MFC rev 1.15 -- avoid listing dir entries twice for the MNT_UNION case 2001-06-04 20:59:48 +00:00
Bruce A. Mah 520227ba6d MFC: xl(4) and ti(4) VLAN fixes. 2001-06-04 19:01:25 +00:00
Gregory Neil Shapiro fc252050db MFC: Fix install usage (Don't use -c with -d).
Revision  Changes    Path
     1.4       +2 -2      src/share/sendmail/Makefile
2001-06-04 18:24:05 +00:00
Warner Losh d569151397 MFC: Note about single user. Also, fix missing [5] footnote. 2001-06-04 16:20:22 +00:00
Brian Somers 793bd6d2a9 MFC: BSD-style copyright 2001-06-04 15:11:16 +00:00
Brian Somers e1fea8afd8 Add a BSD style copyright
Approved by: Charles Mott <[email protected]>
2001-06-04 14:59:06 +00:00
Hajimu UMEMOTO 0ce3ee1cc5 MFC: Remove configuration file for pim6[ds]d.
etc/Makefile:	1.250->1.251
2001-06-04 14:58:44 +00:00
Brian Somers 201ca4474e MFC: BSD-style copyright 2001-06-04 14:53:13 +00:00
Brian Somers d5b721b61a MFC: Add BSD style copyrights
Deprecate -alias further
2001-06-04 14:46:13 +00:00
cvs2svn 310d391016 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-06-04 14:38:31 +00:00
Doug Barton ef5e60b0bb MFC 1.19-23, cleanups and clarifications, along with some OpenBSD
compatibility changes. No new functionality.
2001-06-04 04:11:40 +00:00
Doug Barton 37bab6b574 MFC 1.15-6, mdoc cleanup and clarification of /etc/mergemaster.rc 2001-06-04 04:09:00 +00:00
Dima Dorfman 206618ac11 MFC 1.8: don't claim to ignore signals. 2001-06-03 23:56:31 +00:00
Dima Dorfman 2839776e5c MFC 1.25: fix a spacing issue. 2001-06-03 23:53:47 +00:00
Dima Dorfman fa34572889 MFC 1.13: alphabetize command-line options in the synopsis. 2001-06-03 23:50:08 +00:00
Bruce A. Mah 39af6ede92 MFC: O_DIRECT, pim6dd(8) and pim6sd(8) removed. 2001-06-03 23:48:51 +00:00
John W. De Boskey 961270054f Clean up my previous patch (committed by nsayer). 2001-06-03 23:00:49 +00:00
Hajimu UMEMOTO 8146296eca MFC: Remove pim6[ds]d from the tree. The software had a restrictive
license than we can handle.  pim6[ds]d are available as ports instead.

	src/usr.sbin/Makefile:	1.202->1.203
2001-06-03 18:31:03 +00:00
David E. O'Brien 7d55e79046 Spell _BSD_TIME_T_ as "long" again on the i386 platform.
Doing this for RELENG_4 seems to be the consensus on -arch.
2001-06-03 17:15:54 +00:00
Alexander Langer 47592919ee MFC: Add DECLARE_MODULE.9, DEVICE_IDENTIFY.9, DEV_MODULE.9,
MODULE_DEPEND.9, MODULE_VERSION.9, SYSCALL_MODULE.9, module.9
2001-06-03 14:00:52 +00:00
Alexander Langer 03178c5faa MFC this manpage into the RELENG_4 branch. 2001-06-03 13:48:49 +00:00
Alexander Langer b96304831d MFC: Latest changes from -current. 2001-06-03 13:41:08 +00:00
Peter Wemm 53b469fd75 Fix reversed arguments to pci_write_config()
PR:		kern/9408
Reviewed by:	Philipp Mergenthaler <[email protected]>
2001-06-03 09:47:43 +00:00
Matthew Dillon 345e8fb4ba MFC Tor's O_DIRECT patch with some modifications. As with the commit to
-current, this patch only addresses about 80% of the issues involved.

Discussed on: arch
Obtained from:  [email protected]
2001-06-03 05:00:12 +00:00
Maxim Sobolev 71b216decd MFC: document WITHOUT_X11 knob. 2001-06-03 00:00:29 +00:00
Dima Dorfman 19c421813a MFC 1.2: expand $FreeBSD$ properly. 2001-06-02 23:14:10 +00:00
Jonathan Lemon d2a8885679 MFC: r1.9; only set the PCR register for the fxp driver. 2001-06-02 19:52:55 +00:00
David E. O'Brien 44258271d8 MFC: Support GCC 3.0 2001-06-02 17:36:24 +00:00
Poul-Henning Kamp cec2d5001c MFC:
Vlan tags are 12 bits, mask off anything above since the chip doesn't
  seem to do so for us.
2001-06-02 08:13:41 +00:00
Poul-Henning Kamp d321aaee18 MFC:
fdformat prompts for user confirmation.  it exits 0 if the user
  doesn't confirm, which needlessly complicates scripts.
2001-06-02 08:12:27 +00:00
Poul-Henning Kamp d1b1528626 MFC:
syslogd gets kernel log messages only once every 30 seconds or
  at the top of the minute, whichever comes first.  It seems
  logtimeout() is only called once after the kernel log is opened
  and then never again after that.  So I guess syslogd only gets
  kernel log messages by virtue of syncer(4)'s flushes ...?
2001-06-02 08:11:25 +00:00
Poul-Henning Kamp 888dc25416 MFC:
If the user exists abruptly, tip's "tipout" child can hang around
  forever. Since the lock file doesn't get cleaned up, this prevents
  other users from accessing the target device.
2001-06-02 08:08:24 +00:00
Yoshihiro Takahashi f212af659f Merged from sys/dev/syscons/syscons.c revision 1.336.2.4. 2001-06-02 06:15:22 +00:00
Yoshihiro Takahashi 4db1500634 MFC: Update pc98 memory probe functions. 2001-06-02 06:12:39 +00:00
Yoshihiro Takahashi 8557900c13 MFC: Added pc98 note menu. 2001-06-02 04:42:22 +00:00
Yoshihiro Takahashi 2c4184e37b MFC: Restore I/O port resources. 2001-06-02 04:38:50 +00:00
Yoshihiro Takahashi 706f9f1787 MFC: Use correct resource id on bus_release_resource(). 2001-06-02 04:38:10 +00:00
Yoshihiro Takahashi b104f4e6d0 MFC: silent warnings. 2001-06-02 04:32:50 +00:00
Dima Dorfman 79344f872b MFC 1.13: fix grammar nit. 2001-06-02 04:19:07 +00:00
David E. O'Brien 448e9573a8 MFC: remove useless file.
MFC after:    5 weeks
2001-06-02 00:05:40 +00:00
Dirk Froemberg 56c32c5baf MFC: Fix typo (opt_acc.h -> opt_aac.h) for AAC_COMPAT_LINUX. 2001-06-01 22:43:06 +00:00
Kris Kennaway ccf0cefaca Remove patch bogons which crept in. 2001-06-01 22:00:34 +00:00
Kris Kennaway 8631b567ca MFC: Protect the remaining instance of chdir() using fts_safe_changedir(). 2001-06-01 21:57:51 +00:00
Bruce A. Mah 9e90ac0659 MFC: Ukranian language support.
ata(4) driver again has write-caching enabled by default.
2001-06-01 18:46:27 +00:00
Bruce A. Mah 8ddf542f57 MFC: RELNOTESng.
I didn't MFC the changes to the release Makefile or the nuking of the
*.TXT files.  We're not ready for that yet.  I just wanted to get the
RELNOTESng sources for RELENG_4 into the repository so I can maintain
the content in parallel with the *.TXT version of the release notes.

These files include an SGML-ified version of RELENG_4's release notes,
plus the hardware compatability lists from HEAD (minus
CURRENT-specific features such as Cardbus support).
2001-06-01 18:03:00 +00:00
cvs2svn a3923ed64c This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-06-01 16:29:22 +00:00
Ruslan Ermilov a384620fd7 MFC: 1.7 (fix for a "pipe in capability" bug). 2001-06-01 14:48:28 +00:00
Dima Dorfman 9a7cd521ef MFC: document -h. 2001-06-01 01:13:38 +00:00
Dima Dorfman f1fc6a56d1 MFC 1.11: fix typo. 2001-06-01 01:09:03 +00:00
Dima Dorfman 9f1320e0ce MFC 1.13: be consistent with commas in the group list. 2001-06-01 01:05:07 +00:00
Nick Sayer 38d8526922 Add -lpam to telnet build to fix world breakage caused by SRA MFC.
Submitted by: jwd
2001-05-31 22:55:45 +00:00
Dima Dorfman 25358f08f6 MFC 1.19: don't pass NULL to %s. 2001-05-31 22:41:42 +00:00
Scott Long 0f69484b19 MFC rev 1.5 Fix DMA on machines with >128MB 2001-05-31 22:21:21 +00:00
Bill Paul b5b76a5cc1 MFC: close PR #27742 (increase max packet size for RX so 802.1q VLAN
frames will get through)

PR: kern/27742
2001-05-31 22:09:53 +00:00
Brian Somers 01dcfdfc0f MFC: Delete everything that's not a directory in /var/run and /var/spool/lock
at boot time.
2001-05-31 21:12:23 +00:00
Eric Melville 6d4cc2aa90 MFC: cross reference pkg_update(1) 2001-05-31 19:19:36 +00:00
Bruce A. Mah 9acfefdf3e MFC: an(4) driver fixes. 2001-05-31 17:42:46 +00:00
Ruslan Ermilov 6e20e20f4e Backout the backout of kern.disks sysctl support
now that ata_disk.c has been fixed.
2001-05-31 16:47:45 +00:00
Søren Schmidt 5b75b5cbc8 Reflect the new default. 2001-05-31 15:25:30 +00:00
Søren Schmidt b3e3269058 MFC:
remove the wd compat device support.

Enable WC as default again, having it off hurts too much.
2001-05-31 15:20:34 +00:00
Maxim Sobolev c66f7eb419 MFC: Ukrainian language support for syscons(4). 2001-05-31 15:07:29 +00:00
Mark Murray 13caf55be6 MFC: PERL_THREAD considered evil; exorcise. 2001-05-31 11:56:56 +00:00
Jimmy Olgeni 0e3f3e609a MFC: add missing packages, and MAINTAINER line. 2001-05-31 11:53:24 +00:00
Mark Murray 41de3e4d96 MFC. (Actually CURRENT was MFSed; the commits are happening in the
"correct" order).

PERL_THREAD considered evil. Remove until it can be properly
built and implemented.
2001-05-31 11:43:38 +00:00
Mark Murray db70fc2b01 MFC: Allow the longer Blowfish salt to be kept.
PR:	27775
2001-05-31 08:08:35 +00:00
Nick Sayer 9c903a8b76 MFC: Security fixes to SRA telnet:
1. Add PAM support to SRA. Includes adding telnetd to /etc/pam.conf and
-lpam to the secure telnetd/telnet Makefiles.

2. Insist on secure tty before allowing root login. This should be
replaced with a suitable PAM module at some point.

3. Make sure not to overflow the xuser/xpass buffers. Since they were
malloc()ed (check for malloc failure and abort, too, btw) this was
likely not exploitable, but it is best to be safe.

Submitted by: kris
Review timeout: security-officer
2001-05-30 20:46:48 +00:00
Kris Kennaway 8ca83579ff MFC: stat() after chdir("..") to ensure we end up in a known location. 2001-05-30 20:41:47 +00:00
Jim Pirzyk c4898b8791 Changed 'blocks' to 'usage' because we may not be getting quotas from
a ufs filesystem and it may be reporting in K instead of 512b blocks.
  This is true when using a vxfs filesystem (on a solaris box) for instance.
  This is the change 1.13 in -current

PR:		bin/14545
2001-05-30 16:07:46 +00:00
Jim Pirzyk c387c53063 Changed the clnt_perror string in yp_all because it was saying the
error came from yp_next.  This is the same change as ver 1.36 in the
  -current branch.

PR:		 bin/13254
2001-05-30 16:01:59 +00:00
Yaroslav Tykhiy 70b88373f4 MFC rev. 1.266:
Don't confuse the admin with spurious error messages
about non-existent mount directories (which would come
into existence after the real mount has occured) when just
testing for if there are any NFS filesystems in /etc/fstab.

PR:             bin/26597
Submitted by:   Dmitry Morozovsky <[email protected]>
2001-05-30 13:15:06 +00:00
Boris Popov 0beeaff11f MFC:
o   Overload vop_open() in order to catch MNT_NODEV case.
o   Overload null_rename() to avoid cross layer renames. They don't work
    well atm.
o   Use macros from queue.h.
2001-05-30 09:47:02 +00:00
Boris Popov 3a2165c0fa MFC: use VOP_*VOBJECT() to track a real VM object. 2001-05-30 09:40:07 +00:00
Warner Losh 2ca98f63c6 MFC: RAYTHEON ray card, comments about IRQs and D LINK card. 2001-05-30 05:40:10 +00:00
Jason Evans 468387045b MFC: Mark sleeping threads that are suspended as having been interrupted. 2001-05-30 05:27:28 +00:00
Matt Jacob eb6945b7dc MFC: move wx to be part of miibus requiring chipsets 2001-05-30 03:22:29 +00:00
Bruce A. Mah 53441ac3df Try to start catching up on backlog of 4-STABLE release notes.
MFC:  smbfs in kernel, TCP RFC 1323 on by default, c89(1) now executable,
vidcontrol(1) -p, vidcontrol(1) font specs, telnet(1) -U, libcrypt
Blowfish password hashing.
2001-05-30 03:22:16 +00:00
Boris Popov c1d5821696 MFC rev 1.17: pass non overloaded VOPs to vop_defaultop(). 2001-05-30 01:34:53 +00:00
David Malone 64853ad38c Sync with -current:
Man page cleanups.
	Alternative PID file.
	Use MAXHOSTNAMELEN not MAXHOSTNAMELEN+1.
	Constness warnings.
2001-05-29 13:15:56 +00:00
David Malone 4d465b1ed0 MFC: Make names of facilities and severities const. 2001-05-29 13:15:08 +00:00
Guido van Rooij f25557d0a3 MFC: Disable SIGHUP while getting the login name. 2001-05-29 11:44:55 +00:00
Boris Popov 4412b9380f Do not include support for encrypted passwords if user do not have
src-sys-crypto collection.
2001-05-29 10:40:17 +00:00
Sergey Babkin 34dff52533 MFC of the daylight saving time support. 2001-05-28 23:37:26 +00:00
David Malone aa33309c7e Add MNT_NOSYMFOLLOW and MNT_EXPUBLIC to the list of flags visable
to statfs. (The corrisponsing change was made to -current some time
ago as part of Kirk's snapshot stuff).

PR:		25832
Submitted by:	Tony Finch <[email protected]>
Approved by:	mckusick
2001-05-28 21:29:52 +00:00
Hajimu UMEMOTO 7b67873f40 MFC 1.3->1.4: Make enumerated list for flags. Spelling.
Reduce the diffs between current and stable due to prepare
merging latest kame.
2001-05-28 19:53:22 +00:00
Maxim Sobolev d28166a775 MFC: - authomatic fontsize detection;
- improved fobustness when loading font files;
	- usage() sync'ed with reality and manual page.
2001-05-28 17:36:56 +00:00
Jordan K. Hubbard 5c10f1b4af Revert the entirety of the kern.disks commit. Even though there are some
unrelated changes in there, it's easier to just do it as a unit and they're
mostly cosmetic anyway.  Apparently this is hanging some people's boxes
and I don't know why, so nuke it until I get back from .eu
2001-05-28 16:32:55 +00:00
Hajimu UMEMOTO 48f6598ecf MFC 1.24->1.25: Avoid flushing IPv6 routes. `route flush' removes necessary
routes for IPv6 as well as IPv4 routes.
2001-05-28 15:07:37 +00:00
Hajimu UMEMOTO 18f5c0ccc1 MFC 1.23->1.24: Fix memory leak. 2001-05-28 15:04:36 +00:00
Hajimu UMEMOTO be7dc34736 MFC 1.25->1.26: M_COPY_PKTHDR has to be done before MCLGET. 2001-05-28 15:02:50 +00:00
Hajimu UMEMOTO 2615d1d99b MFC 1.7->1.8: NetBSD's inetd uses different syntex from FreeBSD's
in faith support.
2001-05-28 14:56:46 +00:00
Sheldon Hearn c71b826f1d MFC rev 1.41: use orthodox chown syntax 2001-05-28 13:47:00 +00:00
Søren Schmidt 82a2ce0b84 MFC:
Add support for the AMD 766 chipset.
Fix bogon in VIA code.
2001-05-28 07:27:16 +00:00
Ruslan Ermilov ddbaab5e17 MFC: 1.5 (fixed \e escape). 2001-05-28 07:19:58 +00:00
Greg Lehey 1fe2d91a28 MFC: Add 'retryerrors' keyword.
Requested by:	peter
2001-05-28 05:58:04 +00:00
David E. O'Brien a73130d960 MFC: rev 1.11 (add the generated help files to CLEANDIRS) 2001-05-28 05:16:26 +00:00
David E. O'Brien 473d1146a9 MFC: add -U option to set SOFTUPDATES on the newly created FS 2001-05-28 02:34:31 +00:00
Jun Kuriyama 8282e44b39 Add description for controllers on ICH2 chipset. 2001-05-28 01:07:23 +00:00
Jun Kuriyama 9bcc8da25d MFC: Add description for 82801BA controller. 2001-05-28 01:06:10 +00:00
Matthew Dillon 7e9775b301 MFC a number of low-memory panic fixes from -current
Submitted by: alfred
Reviewed by: dillon
2001-05-28 00:14:29 +00:00
Matthew Dillon 888e033c07 MFC general tuning and firewall documentation 2001-05-27 23:17:50 +00:00
cvs2svn 7b1532323b This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-05-27 23:14:28 +00:00
Gerard Roudier 45c017f9e3 PR:
Submitted by:
Reviewed by:
Approved by:
Obtained from:
MFC after:

MFC: -j1.25 -j1.26 sym_hipd.c
Add #if'ed support for the future option CAM_NEW_TRAN_CODE.
2001-05-27 22:02:05 +00:00
Matthew Dillon 92d993e771 MFC unix-domain 'telnet to path' support (crypto version of telnet) 2001-05-27 19:46:12 +00:00
Matthew Dillon 0208283f9b MFC unix-domain 'telnet to path' support 2001-05-27 19:44:49 +00:00
Sheldon Hearn 3476f3fa48 MFC rev 1.160: Warn about the experimental nature of threaded Perl.
IMHO, experimental options shouldn't even be available on the stable
branch.
2001-05-27 11:25:32 +00:00
Jordan K. Hubbard 21ad57242a MFC: more updates to support the kern.disks sysctl. Sorry folks, these
were in my tree (and thus my builds worked) but I mistakenly skipped
     them.
2001-05-27 05:58:26 +00:00
Jordan K. Hubbard b5dfff87ac MFC: kern.disks sysctl support (for libh) 2001-05-26 22:12:13 +00:00
Dag-Erling Smørgrav dbd3b50231 MFC: constify, plug memory leak, add newish error codes. 2001-05-26 17:31:50 +00:00
John Polstra 9f85b2588f MFC 1.11: Fix range-checking bug. 2001-05-26 16:41:37 +00:00
Nik Clayton 47a99cd60c MFC: 1.37 of vidcontrol.c, the CONS_SCRSHOT functionality.
Note that there were other changes between the -current and -stable
vidcontrol before the CONS_SCRSHOT functionality was added in -current.
Those changes have *not* been merged in yet (vidcontrol 1.33 thru 1.36).
2001-05-26 12:15:03 +00:00
Ruslan Ermilov 11c37d8bbc MFC: fix argument processing. 2001-05-26 12:08:35 +00:00
Nik Clayton b8d2ae3da8 MFC: 1.358, add the CONS_SCRSHOT ioctl. 2001-05-26 12:01:45 +00:00
Nik Clayton 1c5a293e07 MFC: 1.7, data structure for the CONS_SCRSHOT ioctl. 2001-05-26 12:00:30 +00:00
Brian Somers 43871c34ad MFC: Correct a diagnostic 2001-05-26 09:26:17 +00:00
Thomas Moestl 3b2ef83f22 MFC of rev. 1.17: nfsstat is no longer setgid kmem, so there is no need
to give up setgid privileges.
2001-05-25 23:51:13 +00:00
Thomas Moestl ea43ac433c MFC of rev. 1.2: nfsstat hasn't needed setgid kmem for some time now. 2001-05-25 23:42:08 +00:00
David E. O'Brien aeee51e4d8 MFC: gcc.295 rev 1.12
Teach gcc about '%+' so it will not warn when using '%+' in a format
string when using strftime(), since our libc supports it.

PR:		26827
Submitted by:	Marc Olzheim <[email protected]>
2001-05-25 19:01:34 +00:00
Joerg Wunsch daa9c7cc4f MFC rev 1.10: include the Power Control page (0x1a). 2001-05-25 16:16:55 +00:00
Adrian Chadd b22d410ca2 MFC: rev 1.16 Fix the rmuser script to correctly determine if a user does
not exist.

PR:	26674
Submitted by:	Anton Berezin <[email protected]>
2001-05-25 15:05:00 +00:00
Daniel C. Sobral 35b1582938 MFC: 1.26, s/Cthulu/Cthulhu/ 2001-05-25 14:18:55 +00:00
Thomas Gellekum a158a39e08 MFC: - fix DOS functions 4c, 0a, 51
- implement file truncation
     - fix boot order
     - fix slice handling
     - add type 6 as legal systemID
     - update BIOS time

PR:		15528 15531 15547 20925
2001-05-25 12:27:40 +00:00
Maxim Sobolev 77e47e5f45 MFC: by default link make(1) statically. 2001-05-25 08:33:40 +00:00
Ruslan Ermilov fd0932b31b MFC: Document that -P is the default. 2001-05-25 07:34:53 +00:00
David E. O'Brien 7118bc9ae5 RFC 1323 (TCP extensions) is now on by default. 2001-05-25 04:27:48 +00:00
David E. O'Brien 5568866ec6 MFC: rev. 1.107-8 (TCP_EXTENSIONS (rfc1323) on by defualt) 2001-05-25 01:50:19 +00:00
David E. O'Brien 876bdb701a Add ability to make the console (zs) device for AS8[24]00 (TurboLaser) 2001-05-25 01:09:43 +00:00
Gregory Neil Shapiro f690845990 MFC: String operations could silently truncate long strings, leaving the output
corrupted.  Mark's patch fixes this be removing the MAXTOK limitation on
     substring operations and allowing the putback buffer size to be the
     limiting factor.  If the putback buffer size if reached, m4 gives an
     error instead of silently truncating the string.

     Revision  Changes    Path
     1.12      +9 -9      src/usr.bin/m4/eval.c
2001-05-24 20:52:13 +00:00
Gregory Neil Shapiro f850675da4 MFC: Make the default .mc file be hostname.mc if SENDMAIL_MC make.conf knob
is not set.  This allows admins to create a per-machine configuration file
     while leaving the freebsd.mc template pristine.  Provide a rule to create
     `hostname`.mc from freebsd.mc if it doesn't exist.

     Revision  Changes    Path
     1.16      +12 -3     src/etc/mail/Makefile
2001-05-24 20:51:06 +00:00
Gregory Neil Shapiro a4364055d1 MFC: Allow users to add local Makefile targets.
Revision  Changes    Path
     1.17      +6 -1      src/etc/mail/Makefile
2001-05-24 20:50:03 +00:00
Hajimu UMEMOTO ef4ababf00 MFC 1.8->1.9, 1.13->1.14: Improve language and code examples. 2001-05-24 20:08:02 +00:00
David E. O'Brien 6d9b5cdd0e MFC: back out wint_t and mbstate_t as I am tired of the complaints.
The STLport will probably become broken again, but I'll work on fixing it
later.

I wish someone would explain why the NetBSD Cirtus branch has the types
in their stddef.h...
2001-05-24 19:32:09 +00:00
Ruslan Ermilov 6cfd6677f2 MFC: (rev. 1.13, 1.16) Document all net.inet.tcp MIBs. 2001-05-24 17:42:01 +00:00
Brian Somers 98865a78db MFC: Mention that ip4, icmp and icmp6 are possible upperspec values 2001-05-24 17:17:44 +00:00
Brian Somers 1cfcb7e412 MFC: Add ip4 as a possible upperspec
This will be superceeded by the next vendor import
2001-05-24 17:16:06 +00:00
Daniel C. Sobral 2f5294cdb5 MFC: 1.24, 1.25, replace functional bugs of ctype-ish functions with
style bugs.
2001-05-24 12:33:20 +00:00
Mark Murray 16063c03bd MFC: Blowfish password hashing scheme (From OpenBSD) and remove the dlsym()
hack.
2001-05-24 12:20:03 +00:00
Yaroslav Tykhiy 9c1b63adf1 MFC (1.30): Add a missing free(3). 2001-05-24 07:25:50 +00:00
Duncan Barclay cf419eec23 MFC: Only set memory window offset for ed cards (1.66)
Add -I option (1.64)
2001-05-23 22:01:52 +00:00
Duncan Barclay 4ebf5666d1 MFC: document -I option. 2001-05-23 21:59:23 +00:00
Duncan Barclay dbbb46ac20 MFC: support for -I option (pccardd.c 1.12) 2001-05-23 21:56:40 +00:00
Duncan Barclay ab7b9f0588 MFC: 1.21
Use constants in <pccard/cis.h> for scanning the memory window with.
2001-05-23 21:53:50 +00:00
Duncan Barclay 5b7cdcf272 MFC: Additions to support increased functionality in ray driver (1.4) 2001-05-23 21:48:08 +00:00
Poul-Henning Kamp 00f378b011 MFC: OSAK 4.1 based firmware. 2001-05-23 21:41:49 +00:00
Duncan Barclay 07a86e7054 MFC: Merge supported devices. (1.182)
# Raytheon Raylink 802.11 Wireless LAN
2001-05-23 21:34:01 +00:00
David E. O'Brien ff0b8b5d08 MFC: rev 1.45 (note sys.mk is read before any other files) 2001-05-23 18:23:53 +00:00
Ruslan Ermilov 020225146c MFC: 1.40 (content cleanup), 1.41 (markup cleanup),
1.42 (/usr/include/fs/smbfs and /usr/include/netsmb).
2001-05-23 17:42:02 +00:00
Ruslan Ermilov 707e10b6c6 MFC: 1.8 (fix the range of the returned value). 2001-05-23 12:39:09 +00:00
Jimmy Olgeni 8f8f2e04ea Sort package names, no functional changes. 2001-05-23 11:30:54 +00:00
Munechika SUMIKAWA 680f851208 MFC: Plug memoly leak in overlaps fragment cases.(rev 1.5->1.6) 2001-05-23 09:47:24 +00:00
Dirk Froemberg bc4722152f MFC: Typo: single used mode -> single user mode. 2001-05-22 22:57:56 +00:00
Jens Schweikhardt 75a75e29e7 MFC: replace c89 shell script with executable. Minor man page updates. 2001-05-22 19:05:01 +00:00
Jens Schweikhardt 8c60d32bbd MFC: isdn_screenflags 2001-05-22 18:59:56 +00:00
Jens Schweikhardt 6bde6ef7b1 MFC: Oops. We don't want the patch, we want the real file.
I realized my mistake and left the editor without changing anything.
How could I have aborted the commit?
2001-05-22 18:46:53 +00:00
Jens Schweikhardt 8747de63c0 MFC: 2001-05-22 18:43:48 +00:00
Jens Schweikhardt a98595979d MFC: new isdn tunables; make file zsh-parseable. 2001-05-22 18:42:23 +00:00
Yoshihiro Takahashi b9a88abaaa Merged from sys/conf/options.i386 revision 1.132.2.5. 2001-05-22 13:16:00 +00:00
Yoshihiro Takahashi 9f907354df Merged from sys/conf/files.i386 revision 1.307.2.10. 2001-05-22 13:15:30 +00:00
Boris Popov 0df6a26414 MFC: include directories for netsmb and smbfs.
Submitted by:	ru
2001-05-22 09:03:27 +00:00
Boris Popov ff3ce56859 Add fs/smbfs and netncp directories. 2001-05-22 08:52:58 +00:00
Boris Popov 03a458fa1d MFC: Add SMB/CIFS protocol and smbfs file system. 2001-05-22 08:32:34 +00:00
Ruslan Ermilov 783b69210b MFC: 1.17 (fix markup). 2001-05-22 07:06:52 +00:00
Eric Melville fc2b746fa8 MFC: check for account and password expiration in the proper order
Approved by:	murray
2001-05-22 03:13:48 +00:00
Eric Melville 9d083fc00b MFC: add some gravitational values
Approved by:	murray
2001-05-22 03:09:11 +00:00
Boris Popov b0faa164cd MFC: rev 1.56 - MFS should know about every VOP. 2001-05-22 02:06:43 +00:00
Ruslan Ermilov 639e8454ed MFC: 1.1 -> 1.3 (except M_WAIT -> M_TRYWAIT) 2001-05-21 16:27:20 +00:00
Boris Popov 0b61b8e963 MFC: VI_LOCK/UNLOCK macros. 2001-05-21 09:47:00 +00:00
Boris Popov c3f8f4273b MFC: kernel side of iconv interface. 2001-05-21 08:28:07 +00:00
Boris Popov 94d936d362 MFC: m_getm() function. 2001-05-21 07:01:44 +00:00
cvs2svn a2a591a7dd This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-05-20 23:12:14 +00:00
Ian Dowse fd24c73a2c MFC: 1.41; avoid a NULL-pointer dereference in lookup() that could
occur after a filesystem had been forcibly unmounted.
2001-05-20 12:11:57 +00:00
Ruslan Ermilov 7f8e7694a1 MFC: 1.36 (fix for an off-by-hour bug when crossing DST boundary). 2001-05-20 11:45:36 +00:00
Archie Cobbs d9299cf5a4 MFC: (rev. 1.13) document ECONNREFUSED. 2001-05-20 00:12:46 +00:00
Poul-Henning Kamp c1b82b4286 MFC: make the mib array big enough. 2001-05-19 19:22:49 +00:00
Ian Dowse abe339b2a6 MFC: 1.49; Make sure we don't apply mount flags to the wrong filesystem. 2001-05-19 18:18:20 +00:00
Archie Cobbs 2db7a70179 MFC: (rev. 1.12) Ensure example BPF delivers the whole packet. 2001-05-19 17:49:04 +00:00
Jonathan Lemon 2bfc98717b MFC: r1.86; bring in other half of the fix for alternate /usr/src locations. 2001-05-19 15:28:00 +00:00
Jimmy Olgeni e25c31c5e6 MFC: Check for both hint files in /var/run (elf and aout) and eventually
create them. (1.94)
2001-05-19 09:18:37 +00:00
Warner Losh f57c9257aa Note possible binary incompatibility with the crhold macro and suggest
recompiling kernel modules that use it.
2001-05-19 06:30:15 +00:00
Yoshihiro Takahashi 9d2e448fa1 Merged from sys/i386/isa/isa_compat.c revision 1.18.2.1. 2001-05-19 02:35:47 +00:00
Jonathan Lemon 8dcffe87b0 MFC: r1.86; don't check for ${_dir}/kern/. This allows the tree to
be built with the sources located elsewhere than /usr/src.
2001-05-18 19:42:32 +00:00
Gregory Neil Shapiro 4c7dfef3cd MFC: The aliases file now lives in /etc/mail/.
Revision  Changes    Path
     1.32      +2 -2      src/usr.sbin/ypserv/Makefile.yp
2001-05-18 18:28:02 +00:00
Bruce A. Mah e4696b317c MFC: Print longer package names in pkg_version(1).
pkg_version.pl: 1.19->1.20
2001-05-18 14:40:44 +00:00
Josef Karthauser 1969346c16 MFC: Rev 1.23.
Document ``special <progname> ident <identifier>'' command.
2001-05-18 14:06:21 +00:00
Josef Karthauser f998fdc23f MFC: Revs 1.26-1.27, bringing this in sync with -current. 2001-05-18 14:05:19 +00:00
Boris Popov 631b4008f4 MFC: mbuild/mdissect subroutines for mbufs. 2001-05-18 11:01:23 +00:00
Boris Popov f69b6a9019 MFC: introduce VOP_CREATEVOBJECT(), VOP_GETVOBJECT and VOP_DESTROYVOBJECT()
which help to get proper reference to VM backing object.
2001-05-18 09:58:52 +00:00
Ruslan Ermilov 7fd4492338 MFC: 1.15 (fixed memory leak in compile_text()). 2001-05-18 09:51:34 +00:00
Ruslan Ermilov 866215f703 MFC: 1.8 (fixed typo in the description). 2001-05-18 06:58:39 +00:00
David E. O'Brien 9b8531a258 MFC: Add mbstate_t and wint_t.
Spell _BSD_TIME_T_ consistently as `int'.
	 Update comments.
	 Style tweaks.
2001-05-18 05:53:09 +00:00
David E. O'Brien 96109e2919 MFC: style(9) 2001-05-18 05:46:53 +00:00
David E. O'Brien 0d7cc31dbe MFC: rev. 1.32 ("login_prompt" and "passwd_prompt" fields to /etc/login.conf)
rev. 1.33 (sort)
2001-05-18 05:38:21 +00:00
David E. O'Brien af7db23235 MFC: rev. 1.59 ("login_prompt" and "passwd_prompt" fields to /etc/login.conf) 2001-05-18 05:36:12 +00:00
David E. O'Brien c68c99fe0d Bump __FreeBSD_version for wint_t being defined. I may need this in a port. 2001-05-18 00:11:39 +00:00
Warner Losh b1ada7d02e MFC: 1.20 don't complain about missing resources unless bootverbose 2001-05-17 23:05:06 +00:00
Warner Losh 62514c2023 MFC: 1.13 set TERM to dumb when making termcap 2001-05-17 22:57:46 +00:00
Nick Hibma dc11a7034c Regen. 2001-05-17 22:10:59 +00:00
Nick Hibma 36187092e6 MFC: 1.60 2001-05-17 22:07:32 +00:00
Eric Melville 49a9400ae6 MFC: mktemp(3) removal
Reviewed by:	-audit (silence)
Approved by:	murray
2001-05-17 19:40:13 +00:00
Brian Somers 5efb995910 MFC: Support -DPPP_CONFDIR
Send PROTO_IP traffic when possible in single-link MP mode
     MAXPATHLEN -> PATH_MAX
     Update route MTUs when the interface MTU changes
     Show diagnostic socket info in ``show bundle''
     Support ``set server open'', ``set server closed'' and SIGUSR1
     Load netgraph.ko when required
     Support ipencap packets
     Be more consistent with the NET_RT_IFLIST sysctl when creating an interface
     Optimise out deleting and re-adding the same ifaddr on the tun interface
     Fix some man page markup and add some further examples.
     Call ourself ``localhost'' if we have no hostname
     Allow embedded NULs in radius passwords and challenges
     Do ioctl(TUNSIFINFO) as uid 0
2001-05-17 19:11:49 +00:00
Ruslan Ermilov f98fcbd12a MFC: 1.89 (sysctlnametomib(3) function prototype).
Forgotten by:	obrien
2001-05-17 17:59:53 +00:00
Maxim Sobolev 35def3ef3d (forced)
Read `add/main.c' instead `add/mail.c' in the previous log.
2001-05-17 12:39:56 +00:00
cvs2svn 94597b54af This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-05-17 12:33:40 +00:00
Maxim Sobolev a31ab3efc4 MFC: Sync up with HEAD, modulo update/*, version/*, sign/* and r1.38
of add/mail.c
2001-05-17 12:33:39 +00:00
David E. O'Brien 482778a57a Fix a -Wall. 2001-05-17 09:46:29 +00:00
David E. O'Brien 1c91ec4759 MFC: Fix/add rcsid's. 2001-05-17 09:45:02 +00:00
Peter Wemm 727c6a8693 MFC: 1.48: fix termcap(5) filter 2001-05-17 08:49:44 +00:00
Ruslan Ermilov 2cef1376bc MFC: 1.14 (document O_NOFOLLOW and O_FSYNC flags to open) 2001-05-17 07:36:16 +00:00
Ruslan Ermilov 58569dadef MFC: 1.15 (markup fixes), 1.16 (removed bogus xref). 2001-05-17 07:08:38 +00:00
Garance A Drosehn d7b8b7bda8 ....[MFC from 2001/04/05] -r 1.18
Make sure the euid is restored in an obscure error situation.

Submitted by:	J Wunsch <[email protected]> in freebsd-audit
2001-05-17 06:06:28 +00:00
Garance A Drosehn 1890e8d97f [MFC from 2001/03/16] -r 1.7
Fix a number of warnings that come up when compiling with BDECFLAGS.
2001-05-17 05:56:16 +00:00
Garance A Drosehn f1d256f469 [MFC from 2001/03/11] -r 1.19
Change the usage() message to include the recently-added -4 and -6 options.
2001-05-17 05:00:00 +00:00
Garance A Drosehn 1d396e0fa0 [MFC from 2001/03/11] -r 1.35
Improve a few error messages wrt if= filters on remote print queues.
2001-05-17 04:55:37 +00:00
Matthew Dillon ea6ff2cb96 MFC cr_ref from u_short -> u_int
MFC underflow test/panic for cr_ref
MFC change crhold() to a function to reduce compatibility problems later on
(note: crfree() is already a function)

Reviewed on: arch
Reported by: terry
Moral Support by: alfred
2001-05-17 03:51:28 +00:00
David E. O'Brien f00150cae7 MFC: back out prev rev -- VCS was not a typo. 2001-05-17 02:06:16 +00:00
Doug Barton 9d92ee55ef MFC 1.43 -> 1.50, including how to handle RCS Id's. 2001-05-17 01:41:58 +00:00
Warner Losh aeeddb15b4 MFC: 1.102 make C++ safe 2001-05-16 20:51:38 +00:00
Archie Cobbs 8eeaf12974 MFC: add BUGS section describing the requirement to manually load the KLD. 2001-05-16 17:30:45 +00:00
Alfred Perlstein 2428866fd6 MFC: 1.73 (safer bufferspace allocation) 2001-05-16 16:34:50 +00:00
Ruslan Ermilov 1271e14c00 MFC: (rev 1.35) mdoc(7) police: fix markup. 2001-05-16 13:56:39 +00:00
Dima Dorfman 2eef9e7766 MFC 1.8: fix typo 2001-05-16 02:05:57 +00:00
Dima Dorfman 357914f8d8 MFC 1.49: document chdir 2001-05-16 02:04:50 +00:00
Dima Dorfman dbe67910cf MFC 1.5: clarify that the mandatory argument is an event number 2001-05-16 02:01:25 +00:00
Dima Dorfman 0d70c838ff MFC 1.12: xref sym(4) 2001-05-16 01:57:06 +00:00
Archie Cobbs 34bb237d8c MFC: fix typo. 2001-05-16 01:28:01 +00:00
Jonathan Lemon c8b9d438da Move fxp under the 'miibus' section, and resort.
Add label for Gigabit NIC section.

Reminded by:	Andre Albsmeier <[email protected]>
2001-05-15 19:12:29 +00:00
Jonathan Lemon da08009be6 MFC; correct support for fxp with 503 SEEQ phy. 2001-05-15 18:54:16 +00:00
Yoshihiro Takahashi fa33ad1c38 Merged from sys/i386/conf/GENERIC revision 1.246.2.25. 2001-05-15 13:07:01 +00:00
Roger Hardiman fcec23d639 MFC from 1.61
Allow LQR periods of 1 second and FSM retry periods of 1 second.

Approved by:	Brian, in Glasgow airport
2001-05-15 10:11:09 +00:00
Matthew Dillon 2eeb1d55cb MFC 1.55 - Raise SysV SHM defaults 2001-05-15 03:15:17 +00:00
Garance A Drosehn 39b2558260 (MFC from 2001/03/11)
Add a comment pointing to the [email protected] mailing list.
2001-05-15 01:39:14 +00:00
Jonathan Lemon 094d2eff1f MFC: r1.8; undocumented bits for support of the fxp driver. 2001-05-14 22:36:01 +00:00
Assar Westerlund 9ec2bffbf0 MFC: pick up print_version from lib/vers and not lib/roken, install libroken and roken.h 2001-05-14 22:35:03 +00:00
Bruce A. Mah ae3b99f9d4 MFC: fxp(4) driver now requires "device miibus". 2001-05-14 21:59:57 +00:00
Bill Paul 62154821a5 MFC: Close PR 22208, bring chip out of Windows-induced coma. 2001-05-14 19:13:43 +00:00
Ruslan Ermilov 31c0391c8d MFC: (rev 1.8) Add RETURN VALUES section. 2001-05-14 18:40:15 +00:00
Jonathan Lemon 07dbd85400 Sync to -current, apparently some things got left out in the initial commit:
o cosmetic style fixes
  o correct 82557/8255{8,9} flow control
  o VLAN support
  o consistency check for miibus
  o additinal register definitions
2001-05-14 13:20:28 +00:00
Ruslan Ermilov 89884e4c84 MFC.
net/route.c:
  A route generated from an RTF_CLONING route had the RTF_WASCLONED flag
  set but did not have a reference to the parent route, as documented in
  the rtentry(9) manpage.  This prevented such routes from being deleted
  when their parent route was deleted.

netinet/in.c:
  When address is removed from an interface, also delete all routes that
  point to this interface and address.  Previously, for example, if you
  changed the address on an interface, outgoing IP datagrams might still
  use the old address.  The only solution was to delete and re-add some
  routes.

netinet/in_rmx.c, netinet/in_var.h, netinet/raw_ip.c:
  In in_ifadown(), differentiate between whether the interface goes
  down or interface address is deleted.  Only delete static routes
  in the latter case.

PR:		kern/20785, bin/26970, i386/27280
2001-05-14 08:23:49 +00:00
Warner Losh 85d2afa2bf Note that threaded perl breaks mod_perl.
Submitted by: Brent Kearney <[email protected]>
2001-05-14 05:38:19 +00:00
Warner Losh e46c79ac73 Add FreeBSD 4.3 Release to the timeline. 2001-05-14 05:29:34 +00:00
Warner Losh 1d7613d16a fxp backported from current. now it requires mii bus. 2001-05-14 05:18:12 +00:00
Jordan K. Hubbard dd3d7afd8d MFC: (part 2) - don't bomb out from this library on error, return
some sort of appropriate failure code.
2001-05-13 21:01:38 +00:00
Jordan K. Hubbard 24367c36b9 *** empty log message *** 2001-05-13 20:16:32 +00:00
Scott Long a6892afd39 Clarify that the Adaptec 2400A is an ATA RAID controller 2001-05-13 04:23:01 +00:00
Scott Long c934e4923c MFC rev 1.7. Add comments about the 2400A controller. 2001-05-13 04:16:34 +00:00
Jonathan Lemon 8dccc73f3f Move fxp so that it is in the miibus section.
Reminded by:  Andy Farkas <[email protected]>
2001-05-13 03:50:01 +00:00
Jonathan Lemon 5bdfb3c3cd Regenerate. 2001-05-13 00:23:15 +00:00
Jonathan Lemon 6fae37009f Add new fxp and inphy modules, disable old fxp driver. 2001-05-13 00:19:58 +00:00
Jonathan Lemon 7b87dca3da Add the inphy module to the build. 2001-05-13 00:18:08 +00:00
Jonathan Lemon 6114905e5c Add Intel ids 2001-05-13 00:17:37 +00:00
Jonathan Lemon e94bc7e1da Add Intel PHY support, used by the fxp driver. 2001-05-13 00:16:08 +00:00
Jonathan Lemon cb9cede0c6 Changeover to using the fxp/miibus driver. 2001-05-13 00:11:30 +00:00
Jonathan Lemon 1e2cbeb790 Bring the new fxp driver into -stable 2001-05-13 00:09:42 +00:00
cvs2svn 980ef5a617 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-05-13 00:03:40 +00:00
Bill Fenner 087928ac37 MFC: Fix error reporting of delayed send errors. 2001-05-12 17:14:22 +00:00
Assar Westerlund 9fafd20981 MFC: clarify comment about MAKE_KERBEROS5. noticed by Peter Pentchev
<[email protected]>
2001-05-12 14:40:46 +00:00
Kris Kennaway 77423200a2 MFC: Commits of 2001/04/26: Add missing format string arguments 2001-05-12 10:42:50 +00:00
Kris Kennaway 55e7c4c02d MFC: Commits from 05/05/2001: use mkstemp() create tempfiles instead of
mktemp()
2001-05-12 10:29:43 +00:00
Kris Kennaway ebe8e393be MFC: 1.37: sprintf() -> snprintf() 2001-05-12 10:20:09 +00:00
Kris Kennaway cd7910e877 MFC: 1.6: call usage() if called with more than 1 argument 2001-05-12 10:17:44 +00:00
Kris Kennaway f7ed9c29dd MFC: 1.17: strcat() -> strlcat() 2001-05-12 10:16:51 +00:00
Kris Kennaway 21a70ce8b6 MFC:
1.10 src/usr.sbin/pcvt/cursor/cursor.c
1.10 src/usr.sbin/pcvt/ispcvt/ispcvt.c
1.8 src/usr.sbin/pcvt/loadfont/loadfont.c
1.7 src/usr.sbin/pcvt/scon/scon.c
1.6 src/usr.sbin/pcvt/userkeys/vt220keys.c

  Clean up the error reporting (standardize on err*()/warn*())
  and fix some overflows.
2001-05-12 10:11:42 +00:00
Kris Kennaway 5d1b6ac6eb MFC: 1.36: correct missing format string argument 2001-05-12 09:51:22 +00:00
Kris Kennaway 5b210c0e24 MFC: main.c 1.5, mld6_proto.c 1.3: Correct invalid format strings 2001-05-12 09:49:37 +00:00
Kris Kennaway 7e8e27789b MFC: 1.9: Remove spurious extra format string operator 2001-05-12 09:48:20 +00:00
Paul Saab 7c3749f074 MFC: [rev 1.14] Allow for the last arugment to be the mountpoint of
a filesystem, not just the device.
2001-05-12 08:50:49 +00:00
Daniel Eischen 64af54669b MFC: Move the check for pending signals to after the thread has been
placed in any scheduling queue(s).

     When adding dispatching a pending signal to a thread, be sure to
     remove the signal from the threads set of pending signals.
2001-05-11 20:35:06 +00:00
Wilko Bulte a7badb35cd AS800 uses EDO DIMMs, not SDRAM.
Submitted by:	Brodie Hynes <[email protected]>
2001-05-11 18:03:36 +00:00
Brian S. Dean d843478a74 MFC: bring doc up to date with the role of /conf/default/etc. 2001-05-11 17:49:32 +00:00
Brian S. Dean 68b4981c52 MFC: /etc bootstrap simplifications, ability to make /tmp a seperate
memory filesystem, minimize differences between -current and
     releng_4.
2001-05-11 17:46:57 +00:00
Assar Westerlund 41bbb0f69a MFC: de-constify to make it compatible with (krb4) and make-print-version
Submitted by:	Peter Pentchev <[email protected]> (just inverted)
2001-05-11 16:57:50 +00:00
Jesper Skriver 269defe326 MFC:
Implement slash/CIDR notation for IPv4 and IPv6 addresses.
2001-05-11 13:30:01 +00:00
Dirk Froemberg 75d6e2de45 MFC: Add 470.status-named. 2001-05-11 09:36:48 +00:00
Luigi Rizzo 105f743d2a MFC: patch boot2 so it goes right away to load /kernel 2001-05-11 07:42:19 +00:00
Greg Lehey 6935bb41b5 Malloc macro: get test right when VINUMDEBUG not specified.
Discovered by:	Alex Newman <[email protected]>
2001-05-11 02:11:06 +00:00
John Polstra 62e165e5ad MFC: Performance improvements. Includes the following revisions:
rtld.c                1.52
  rtld.h                1.22
  alpha/reloc.c         1.12
  i386/reloc.c          1.7
2001-05-11 00:57:25 +00:00
Bruce A. Mah f1a2200ed1 MFC: pkg_version -c output to do "make clean" before and after
installs.

	pkg_version.pl:	1.18->1.19
2001-05-10 23:51:45 +00:00
Bruce A. Mah b9213628d7 MFC: FreeBSD 3.0 is no longer future-tense.
INSTALL.TXT	1.16->1.17
2001-05-10 23:43:59 +00:00
Bruce A. Mah 0af6ff6bd4 MFC: ln(1) -h/-n, find(1) file timestamp predicates. 2001-05-10 23:41:02 +00:00
Akinori MUSHA 0cd8c5793f MFC: Properly copy the P_ALTSTACK flag in struct proc::p_flag to the child
process on fork(2).
2001-05-10 17:54:16 +00:00
Maxim Sobolev e0a9e6d4a9 MFC: -h/-n compatibility option from NetBSD. 2001-05-10 16:22:47 +00:00
Ruslan Ermilov 1775d94c64 MFC: Restore printing of routes cloned from a RTF_CLONING parent
(e.g., ARP table entries) with the default routing display.
2001-05-10 08:26:46 +00:00
David E. O'Brien ea2c772401 MFC rev 1.38 (tell user root su group) 2001-05-10 07:39:05 +00:00
Luigi Rizzo 32d3879ce3 MFC: add options MD_ROOT_SIZE line to kernel config 2001-05-10 05:07:26 +00:00
Luigi Rizzo 782ddab196 MFC: this file is not needed, use default one instead. 2001-05-10 05:06:46 +00:00
Jimmy Olgeni d4c673bb36 MFC: Replace an instance of the "watch" word with ".Nm" (1.19 -> 1.20) 2001-05-09 21:18:45 +00:00
Duncan Barclay e54f718a22 MFC: 1.13
Fix a minor printing bug that prints incorrect information for memory
block sizes.
2001-05-09 18:41:57 +00:00
Jordan K. Hubbard f6dde8e28f MFC: code cleanup, more sensible menu ordering for X bits, proper label columns 2001-05-09 08:00:32 +00:00
Warner Losh 389587c5b5 MFC: 1.110 (eject hang fix) 1.111 (PC98 MECIA controller fix) 2001-05-09 07:29:06 +00:00
Brian Somers 757fb9037b Remove sockets as well as regular files in /var/run and /var/spool/lock
at boot time.  This restores the pre-4.3 behaviour.
2001-05-09 07:24:47 +00:00
Will Andrews f8720c352c MFC: cosmetic fix for SMP systems where the CPU column pushed the lines
past 80 characters with usernames longer than 14 characters.
2001-05-08 23:49:02 +00:00
Luigi Rizzo 07fedbad4a MFC: nuke netboot. 2001-05-08 20:53:39 +00:00
Luigi Rizzo 9c99e9b0a7 MFC: nuke netboot, it is unmaintained, and ports/net/etherboot does the
same job ten times better.
2001-05-08 20:51:49 +00:00
Luigi Rizzo 25fe989ab0 MFC: remove reference to "clean" script, include "bridge" in build
list
2001-05-08 20:46:34 +00:00
Duncan Barclay 211cf8f415 Resurrect CARD_SET_MEMORY_OFFSET method for if_ray. Does not use
deltap argument. if_ray is the only user of this interface.

Approved by:	imp
2001-05-08 18:59:04 +00:00
Assar Westerlund a99d8995e3 mdoc(ng) fixes
Submitted by:	ru
2001-05-08 15:12:01 +00:00
Assar Westerlund 73f669f4ec MFC: mdoc(ng) fixes
Submitted by:	ru
2001-05-08 15:08:10 +00:00
Kris Kennaway b70a15e4e2 MFC: Drop privs temporarily before opening the file to broadcast 2001-05-08 11:12:59 +00:00
Luigi Rizzo 430c1ec562 Fix a bug in the script: need absolute path, not a relative one. 2001-05-08 08:03:16 +00:00
George C A Reid de7708e1e6 MFC: Get the parameters to pci_write_config the right way round 2001-05-08 01:05:19 +00:00
Nick Sayer 2a9bf9fce3 Revert the last. It should have been applied to -current. Stay tuned. 2001-05-07 20:40:14 +00:00
Nick Sayer c952133bd6 Add PAM support to SRA authentication. Cribbed mostly from ftpd. This
doesn't solve the problem of root being allowed to log in, but that sort
of thing is something PAM should be doing anyway.
2001-05-07 20:38:39 +00:00
Bruce A. Mah e32c83c5b5 MFC: Fix reversal of SK-9842 and SK-9843 descriptions, note wx(4) support
for Intel PRO1000-F and PRO1000-T.
2001-05-07 16:56:59 +00:00
Bruce A. Mah af1e1d5549 MFC: Fix reversal of SK-9842 and SK-9843 descriptions.
sk.4:	1.13->1.14
2001-05-07 16:54:00 +00:00
Hajimu UMEMOTO ed9ab9e919 MFC: Enable static IPv6 address assignment on PCMCIA NIC.
etc/pccard_ether:	1.23->1.24
	etc/rc.network6:	1.17->1.18
2001-05-06 15:08:52 +00:00
Dirk Froemberg 939b21c2ee MFC: Checking of denied zone transfers moved to
periodic/daily/470.status-named.
2001-05-06 14:03:27 +00:00
Dirk Froemberg 29e543da59 MFC: Check for denied zone transfers (AXFR and IXFR). 2001-05-06 14:02:05 +00:00
Poul-Henning Kamp 46d758ae4e MFC: bring in sync with current. 2001-05-06 09:53:22 +00:00
Poul-Henning Kamp 9ca466ca94 Disable DEVFS in 4.x 2001-05-06 07:09:48 +00:00
Yoshihiro Takahashi 67d280f354 MFC: Fixed warnings. 2001-05-06 05:44:29 +00:00
George C A Reid eb9fa66a58 MFC: more specific identification and bugfixes for some
cards in the initialisation stage

Approved by:	cg
2001-05-05 23:25:37 +00:00
Semen Ustimenko 4d3dcbe59f MFC: VOP_ABORTOP has gone long time ago... Remove hpfs_abortop so people
could get hpfs compiled and run.
2001-05-04 19:37:43 +00:00
Ruslan Ermilov 3fe9388be9 MFC: (rev 1.5) Fix checksum calculations.
Reviewed by:	jlemon
2001-05-04 15:36:43 +00:00
Dima Dorfman 0e1c45d760 Don't list all the ports that need ``options USER_LDT'' in the
comment.  If there does need to be a list, this certainly isn't the
place for it.

Reviewed by:	nik
2001-05-04 05:26:59 +00:00
Gregory Neil Shapiro 42ebc76575 MFC: ${MAKEOBJDIRPREFIX}/usr/src/i386/usr/include/isc was being created as a
plain file during the bootstrapping process of a buildworld and contained
     the last isc include file to be installed.  It was meant to be a directory
     for the isc include files.

     Revision  Changes    Path
     1.198     +2 -2      src/Makefile.inc1
2001-05-04 02:06:42 +00:00
Peter Wemm 48e38f8771 MFC: 1.14: Prompt user for removing a tab if running from a tty
MFC: 1.16: Fix the 'do not edit this file' warning in crontab -l
2001-05-04 01:02:14 +00:00
Peter Wemm 703bb9b0a9 MFC: 1.20: stop cron from shouting in syslog 2001-05-04 00:59:40 +00:00
Brian Feldman c79745dea0 MFC: install /etc/ssh/primes 2001-05-03 00:49:08 +00:00
Brian Feldman 01776f2127 MFC: SSH-related primes 2001-05-03 00:46:54 +00:00
Bill Fenner d565cfb476 Merge IPv6 and VLAN multicast fixes from rev 1.40 2001-05-02 23:52:26 +00:00
Dima Dorfman 0f542670da MFC 1.11: correct info on sh(1) builtins 2001-05-02 02:18:15 +00:00
Dima Dorfman 343aca613b MFC 1.22: document search' and index' targets. 2001-05-02 02:05:24 +00:00
David Malone 43a88a2aac MFC: Don't leak memory if we can't fine the process we're looking for.
(Can't currently be triggered).
2001-05-01 13:39:06 +00:00
David Malone 731742939a MFC: Correct spelling of MNT_ASYNC, add f_syncreads and f_asyncreads,
catch up with a comment.
2001-05-01 13:07:25 +00:00
David Malone 5520552577 MFC: Compare initscr to NULL not ERR. Add FreeBSD tag. 2001-05-01 11:45:08 +00:00
Jimmy Olgeni 41d51bb67a MFC: Fix typo in comment: dependancies -> dependencies (1.4 -> 1.5) 2001-04-30 15:47:04 +00:00
Luigi Rizzo 086e9d0431 Manpage cleanup, from the mdoc police (Ruslan Ermilov) 2001-04-30 06:35:30 +00:00
Jimmy Olgeni 74840aed68 MFC: document the "noError" variable (1.42 -> 1.43) 2001-04-29 19:08:21 +00:00
Kris Kennaway bae572c24b MFC 1.5:
Round up before checking if the width is smaller than the widest
column, otherwise we may divide by zero later.
2001-04-29 05:51:14 +00:00
Kris Kennaway 3bdec40cfc MFC: BDECFLAGS cleanup 2001-04-29 05:48:04 +00:00
Duncan Barclay 06637ccef2 MFC sans phk's TAILQ changes.
The driver now works on -stable again. Post 4.3-RELEASE MFCs of the
pccard code caused a minor breakage.

Submitted by:	Christian Plazas <[email protected]>
2001-04-28 20:47:55 +00:00
Archie Cobbs de6a6b0314 MFC: add getaddrinfo(3) to the "SEE ALSO" list. 2001-04-28 00:11:25 +00:00
Ruslan Ermilov 79abe1c535 MFC: (rev 1.157) Removed reference to withdrawn secure-supfile. 2001-04-27 12:18:39 +00:00
Ruslan Ermilov 5f8a1a0aaf MFC: (rev 1.50) fix markup. 2001-04-27 10:35:19 +00:00
Bruce A. Mah 5c07595b14 MFC: S3 Sonicvibes driver, ping(8) -m, groff(1) 1.17. 2001-04-26 21:34:19 +00:00
Alfred Perlstein fe089d4f12 Don't spam the console about device timeouts.
Bill Paul (wpaul) helped me diagnose this, for some reason the HEAD
version doesn't have this output so we might as well ditch it in
RELENG_4.

Requested by: jim
2001-04-26 17:59:25 +00:00
Ruslan Ermilov 27cf73f305 MFC: Upgrade to Groff 1.17. 2001-04-26 17:35:51 +00:00
Jens Schweikhardt 90d9382ff8 MFC: fix grammar bogon. 2001-04-26 17:20:24 +00:00
Ruslan Ermilov 3023c90beb MFC: Upgrade to Groff 1.17. 2001-04-26 17:15:23 +00:00
Ruslan Ermilov db441975e9 MFC: (1.34 -> 1.36) Fix `cleandir'. 2001-04-26 16:55:19 +00:00
Ruslan Ermilov ed5cd4eb29 MFC: (rev 1.38) Add missing -mtty-char for MANBUILDCAT. 2001-04-26 16:53:29 +00:00
Bill Paul 0a85282591 MFC: fix memory bank size #defines 2001-04-26 16:41:15 +00:00
Jim Mock 5fd98631c2 MFC: XFREE86_VERSION 2001-04-26 16:03:18 +00:00
cvs2svn bb7963a8c8 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-04-26 13:33:01 +00:00
Ruslan Ermilov 3ed7791369 MFC: (rev 1.8) mdoc(7) police: fix markup. 2001-04-26 11:49:20 +00:00
Dima Dorfman f50f16f95f MFC: "it's" -> "its" where appropriate. 2001-04-26 02:49:44 +00:00
Dima Dorfman dfae713137 MFC 1.28: fix a grammar bogon. 2001-04-26 02:37:08 +00:00
Dima Dorfman 9192c5941c MFC 1.26: wd0 -> ad0 2001-04-26 02:34:54 +00:00
Dima Dorfman 1ea35d996b MFC 1.7: fix a spelling error. 2001-04-26 02:34:04 +00:00
Dima Dorfman b669130d4d MFC 1.27, 1.28: note that -v isn't supported. 2001-04-26 02:33:12 +00:00
Dima Dorfman 646b6db72c MFC 1.18: Correct descriptions of SOCK_RDM and SOCK_SEQPACKET. 2001-04-26 02:31:16 +00:00
Dima Dorfman 9d632eb1e5 MFC 1.16: document some more flags. 2001-04-26 02:30:24 +00:00
Dima Dorfman 89f6221cd9 MFC 1.21: mention that locks are inherited accross an exec. 2001-04-26 02:24:43 +00:00
Dima Dorfman 5e24687363 MFC: document lock and unlock commands. 2001-04-26 02:23:22 +00:00
Dima Dorfman 9d87a1248f MFC 1.23: Make it clear that commands within labels must be indented to be
recognized.
2001-04-26 02:20:19 +00:00
Dima Dorfman 49dad54f99 MFC 1.82, 1.83: explain "rule -1". 2001-04-26 02:17:54 +00:00
Dima Dorfman 7e79ec4d12 MFC 1.51: explain -v a little better. 2001-04-26 02:15:57 +00:00
Dima Dorfman caeee3ab9d MFC 1.14: misc. mechanical fixes. 2001-04-26 02:03:47 +00:00
Dima Dorfman 1c6f1d49c2 MFC 1.13, 1.14: add `RETURN VALUES'' and `ERRORS'' sections. 2001-04-26 02:02:06 +00:00
Dima Dorfman 1ec303bdd7 MFC 1.29: aesthetic fixes. 2001-04-26 01:58:44 +00:00
Dima Dorfman 1f72240d37 MFC: recent mdoc(7) fixes. 2001-04-26 01:33:08 +00:00
Mike Smith e939a1518c MFC: more Dell IDs.
Submitted by:	"Marty Moll" <[email protected]>
2001-04-26 01:15:55 +00:00
Mike Smith ef2416a214 MFC: support for new PERC 3/Di
Submitted by:	Chris Csanady <[email protected]>
2001-04-26 00:32:56 +00:00
Mike Smith da554bec5c MFC: AAC_* options
Submitted by:	Chris Csanady <[email protected]>
2001-04-26 00:25:18 +00:00
Steve Price a310d95461 MFC: revision 1.3 to more closely resemble the script I use at release
time.
2001-04-25 21:45:56 +00:00
Ruslan Ermilov 290ef21130 MFC: Introduce and use SCRIPTS knob. 2001-04-25 14:05:26 +00:00
Ruslan Ermilov b8d90d6fa4 MFC (almost): Prepare for mdocNG. 2001-04-25 13:23:18 +00:00
Ruslan Ermilov 2c00dca621 MFC: Utilize PROGNAME. 2001-04-25 13:07:07 +00:00
Ruslan Ermilov d5f0982157 MFC: PROGNAME knob. 2001-04-25 13:01:08 +00:00
Ruslan Ermilov 7a78aaa8c6 MFC: (rev 1.124) Fix UDP checksum calculation. 2001-04-25 12:47:12 +00:00
Ruslan Ermilov aad748e5f1 MFC: Count and show incoming UDP datagrams with no checksum. 2001-04-25 12:42:18 +00:00
Ruslan Ermilov ec2318345a Grammar nit.
Submitted by:	Attila Nagy <[email protected]>
2001-04-25 12:38:34 +00:00
Ruslan Ermilov 651daf5e58 MFC: new option -m to set IP TTL. 2001-04-25 12:30:01 +00:00
Ruslan Ermilov fdb77ec98f MFC:
Make it possible to use IP_TTL and IP_TOS setsockopt(2) options
on certain types of SOCK_RAW sockets.  Also, use the ip.ttl MIB
variable instead of MAXTTL constant as the default time-to-live
value for outgoing IP packets all over the place, as we already
do this for TCP and UDP.
2001-04-25 12:25:59 +00:00
Ruslan Ermilov e85562975d MFC (rev 1.9): Fixed typo. 2001-04-25 12:13:12 +00:00
Ruslan Ermilov 83fa067d8f MFC: MAN[1-9] -> MAN. 2001-04-25 12:11:16 +00:00
Ruslan Ermilov 2061436456 MFC: MAN[1-9] -> MAN. 2001-04-25 12:03:56 +00:00
Ruslan Ermilov 1c16bb16ba Synch with HEAD (cosmetics). 2001-04-25 11:47:22 +00:00
Ruslan Ermilov b310ceebe5 MFC: MAN[1-9] -> MAN. 2001-04-25 11:29:51 +00:00
Ruslan Ermilov c2a6755caf MFC: (rev 1.100) Synch with recent changes to bsd.man.mk. 2001-04-25 11:19:07 +00:00
Ruslan Ermilov 1590127a05 MFC: (rev 1.12) fixed whatis(1) entry. 2001-04-25 11:15:18 +00:00
Ruslan Ermilov ec727a11df MFC: MAN[1-9] -> MAN. 2001-04-25 11:11:35 +00:00
Ruslan Ermilov 4eceac1847 MFC: MAN[1-9] -> MAN. 2001-04-25 10:58:55 +00:00
Ruslan Ermilov 48ba00dfa5 MFC: MAN[1-9] -> MAN. 2001-04-25 10:42:22 +00:00
Ruslan Ermilov 68b300bfe6 MFC: MAN[1-9] -> MAN. 2001-04-25 10:04:44 +00:00
Ruslan Ermilov dbd49a2ef9 MFC: MAN[1-9] -> MAN. 2001-04-25 09:36:09 +00:00
Nik Clayton 726eacf630 Document the T and Z options in the synopsis.
PR:		docs/25774
Submitted by:	Tony Finch <[email protected]>
2001-04-25 09:27:46 +00:00
Nik Clayton 190aed889e Use vnconfig's "swap" feature to turn on swapping, instead of "&& swapon"
on the command line.
2001-04-25 09:19:03 +00:00
Ruslan Ermilov 077be17a3f MFC: MAN[1-9] -> MAN. 2001-04-25 09:12:53 +00:00
Ruslan Ermilov 233551aa80 - Removed _MANPAGES, MANDEPEND and MANSRC.
- Added MAN which will eventually replace MAN[0-9] and MAN1aout.
  The old syntax is still supported for backwards compatibility,
  but only if no new syntax (MAN) is used.

- Removed `n' from the list of manpage sections.

- Made `all-man' the standard target.
2001-04-25 09:08:36 +00:00
Doug Barton e9dda2b1a4 MFC 1.13, a word-order fix for the SYNOPSIS 2001-04-25 07:47:50 +00:00
Dima Dorfman dbd09fef91 MFC 1.15: markup fixes. 2001-04-25 07:17:15 +00:00
Nick Sayer 8fef9ceaa1 MFC: 1.7: Clean up command line arguments to telnet. 2001-04-24 14:11:16 +00:00
Yaroslav Tykhiy 1b07cfea72 MFC: Make arp(8) handle 802.1q VLAN interfaces properly.
PR:		kern/19436
Submitted by:	Vladimir B. Grebenschikov <[email protected]>
		Peter Jeremy <[email protected]>
2001-04-24 13:10:48 +00:00
Yaroslav Tykhiy 6336d8f29f MFC: Introduce a separate interface type for the 802.1q VLAN interface
according to the IANA assignment.
2001-04-24 13:01:42 +00:00
Ruslan Ermilov ce93742a09 MFC: morse(6) manpage.
Forgotten for far too long by:	phantom
2001-04-24 12:44:03 +00:00
Wes Peters edd07edb23 Don't build pkg_sign tools if crypto is not installed, or is not
being built.

Reviewed by:	kkenn
2001-04-24 08:51:33 +00:00
Orion Hodson a3096b0923 MFC: S3 sonicvibes driver. 2001-04-23 22:58:26 +00:00
Orion Hodson 24ec211f95 MFC: Add power on to start sequence for 4.x kernels.
PR:		kern/26255
2001-04-23 22:20:36 +00:00
Josef Karthauser 83e3a9eeed MFC: Style changes from -current. 2001-04-23 19:43:37 +00:00
Ruslan Ermilov fe2f5ef3cf MFC: (rev 1.14) moved up the LIBRARY section. 2001-04-23 15:36:23 +00:00
George C A Reid 1d6a869ebb MFC: Default to setting master volume level 2001-04-23 15:12:50 +00:00
Brian Somers 14f2d54602 MFC: restore ifp->if_flags if ioctl(SIOCSIFFLAGS) fails 2001-04-23 11:24:04 +00:00
Doug Barton 3507a00a15 MFC 1.45 which stores all comments from the group file and
restores them, albeit always to the top of the new file.
2001-04-23 06:55:24 +00:00
Doug Barton 3b4c0ea0cf MFC 1.15 which warns users when there are more than one entries
in the password file that differ only by case.
2001-04-23 06:53:03 +00:00
Brian S. Dean 0f2ff9de98 (This is an intentional direct commit to -stable. The MFS stuff
doesn't really apply to -current anymore.)

Populate and set permissions on /var using mtree and
/etc/mtree/BSD.var.dist instead of hardcoding the directories and
permissions within this script.

Create initial log files based on the contents of /etc/newsyslog.conf.

Reviewed by:	luigi
2001-04-22 23:14:46 +00:00
Hajimu UMEMOTO ffe097197c MFC 1.66->1.67: Add missing entry for ospf6d. 2001-04-22 17:30:37 +00:00
Satoshi Asami 9eec6ea7fc MFC: picobsd 2001-04-22 16:56:11 +00:00
Satoshi Asami 539cf622cf MFC: ports-picobsd 2001-04-22 16:52:53 +00:00
Luigi Rizzo 62b5c9e131 Remove this file from RELENG_4. It has been broken here for
a long time, and its presence is misleading.
2001-04-22 13:15:48 +00:00
John Hay 53503f4dd6 MFC: Update to the 2001-04-02 version of the nanokernel code from Dave Mills. 2001-04-22 11:19:46 +00:00
Alfred Perlstein a31e21537c Update wi module makefile for if_pci.h dependancy. (unbreak it) 2001-04-22 01:50:02 +00:00
Alfred Perlstein 2d304a2ca6 MFC: prism2 support, pci support, timeout issues and other misc fixes 2001-04-22 00:50:49 +00:00
Matt Jacob bf91e52ae1 MFC: add MARVELL to the list of phys to go into miibus. 2001-04-21 23:42:57 +00:00
Matt Jacob 30dc204afe MFC: Need miibus_if.h now that we depend on miibus for the wx. 2001-04-21 23:39:20 +00:00
Archie Cobbs a4fa4067ba MFC: promiscuous mode, header additions, device config before IFF_UP. 2001-04-21 20:58:09 +00:00
Archie Cobbs bce47f73d3 MFC: fix typo. 2001-04-21 20:44:52 +00:00
Archie Cobbs 290f9c1ca1 MFC: don't reference a node after we dropped a reference to it. 2001-04-21 20:43:13 +00:00
Matt Jacob 20980d6727 MFC: Pick up MII/PHY support for Livengood Copper (PRO-1000T- 10/100/1000).
Fix vanilla Livengood support (PRO-1000F) so it actually works. Ansify
source.
2001-04-21 18:45:41 +00:00
Daniel Eischen d12c9f54aa MFC: Use the correct TAILQ link when getting the next thread in the
"all threads" list.
2001-04-21 16:24:49 +00:00
Matt Jacob b10c0ab045 MFC: Add MARVELL PHY support (for Intel GigE) 2001-04-21 16:15:05 +00:00
Hajimu UMEMOTO d05b27ff8b MFC: IPv4 address is not unsigned int.
include/arpa/inet.h:		1.11->1.12
	lib/libc/net/inet.3:		1.11->1.12
	lib/libc/net/inet_addr.c:	1.12->1.13
	lib/libc/net/inet_lnaof.c:	1.2->1.3
	lib/libc/net/inet_makeaddr.c:	1.2->1.3
	lib/libc/net/inet_neta.c:	1.6->1.7
	lib/libc/net/inet_netof.c:	1.2->1.3
	lib/libc/net/inet_network.c:	1.6->1.7
	sys/alpha/include/endian.h:	1.3->1.4
	sys/netinet/in.h:		1.53->1.54
	sys/sys/types.h:		1.41->1.43
2001-04-21 14:53:06 +00:00
Hajimu UMEMOTO bb8c19e77b MFC 1.9->1.10: IPv6 support for skeyaccess(3). You can specify IPv6 address
using `internet' keyword into /etc/skey.access.
2001-04-21 14:30:54 +00:00
Hajimu UMEMOTO 781038bdd1 MFC: Nuke non-standard EAI_RESNULL.
include/netdb.h:		1.17->1.18
	lib/libc/net/getaddrinfo.c:	1.19->1.20
2001-04-21 14:25:50 +00:00
Hajimu UMEMOTO bd44bdf1e9 MFC 1.24->1.25: Fix typo in comment. 2001-04-21 14:17:54 +00:00
Brian Somers 0669809bd8 MFC: Return 0 and do nothing when we get a SIOCSIFFLAGS 2001-04-21 13:38:08 +00:00
Brian Somers b9f1651954 MFC: Ignore comments in /etc/master.passwd 2001-04-21 12:54:45 +00:00
Brian Somers 941a145e43 MFC: Fix a comment 2001-04-21 12:53:00 +00:00
Jens Schweikhardt e1434c495e Add graphics/avifile to list of apps requiring USER_LDT.
PR:		misc/25030
Submitted by:	schweikh
Approved by:	jkh
2001-04-21 09:47:43 +00:00
Warner Losh 856dc3c2c0 MFC: 1.108 Set NEC PC98 pcmcia controller name 2001-04-21 07:12:56 +00:00
Gregory Neil Shapiro 5bd2ae6927 MFC: Add a note about the new ip6fw(8) abilities.
Revision  Changes    Path
     1.174     +4 -1      src/release/texts/alpha/RELNOTES.TXT
     1.248     +4 -1      src/release/texts/i386/RELNOTES.TXT
2001-04-21 06:12:23 +00:00
Jordan K. Hubbard 5d01d4e071 Update for the post 4.3 world, undoing all of Bruce's nice work
and making him start over. :)
2001-04-21 06:03:07 +00:00
Warner Losh af5f4d07be Catch up with current aka MFC
cardinfo.h	-> 1.20
	driver.h	-> 1.14
	i82365.h	-> 1.12
	pccard.c	-> 1.119
	pccard_nbk.h	-> 1.26
	pcic.c		-> 1.108
	pcic98reg.h	-> 1.3
	slot.h		-> 1.29

Some items not merged.  Those are marked with NOT_YET_XXX.  These will be
merged in the fullness of time.  See the commit logs in -current for the
details.

# this may cause some people some problems, which is why I waited until
# after 4.3 was branched.  Please report problems to me.
2001-04-21 05:52:30 +00:00
Warner Losh 862b2ec2ac Merge some PNP ids from current. 2001-04-21 05:31:51 +00:00
Gregory Neil Shapiro be880da806 Force commit: Last commit message was incorrect. The correct commit
message is:

MFC: Allow users to override the default map type used for building maps.

     Revision  Changes    Path
     1.15      +5 -3      src/etc/mail/Makefile
2001-04-21 05:27:55 +00:00
Gregory Neil Shapiro 568565ccf0 MFC: With the recent change to ip6fw, it is safe to return to using ${fw6cmd}
which may include the -q flag.

       Revision  Changes    Path
       1.4       +2 -3      src/etc/rc.firewall6
2001-04-21 05:26:37 +00:00
Gregory Neil Shapiro 361cb73e6c MFC: Match ip6fw's command line options to those of ipfw (specifically, added
the ability to use a preprocessor, use the -q (quiet) flag when reading
     from a file).  The source used is from ipfw.

     Clean up exit codes while I am here.

     KAME has been informed and plans on integrating these patches into their
     own source as well.

     Revision  Changes    Path
     1.9       +50 -5     src/sbin/ip6fw/ip6fw.8
     1.6       +128 -18   src/sbin/ip6fw/ip6fw.c
2001-04-21 05:25:37 +00:00
Gregory Neil Shapiro d6d9b7925e MFC: Clean up temporary file(s) and directory when m4 exits without falling
through main() (e.g., signals or calls to errx()).

     Revision  Changes    Path
     1.4       +3 -0      src/usr.bin/m4/extern.h
     1.10      +3 -8      src/usr.bin/m4/main.c
     1.7       +14 -1     src/usr.bin/m4/misc.c
2001-04-21 05:24:08 +00:00
Akinori MUSHA 6d0c3515d8 MFC: Correct and update Japanese holidays. 2001-04-21 04:56:53 +00:00
Warner Losh 6abfb67966 This is causing confusion. Kill it until such time that a real MFC
has been done.
2001-04-21 04:51:03 +00:00
Warner Losh 913b5b11d1 Kill the NetBSD based cardbus code in stable. Current's code is based on
something different and this is causing confusion.
2001-04-21 04:50:02 +00:00
Mike Smith 75ea0c0fb8 MFC: avoid divide-by-zero with devices that the adapter has not negotiated
with.

Approved by:	jkh
2001-04-21 04:09:06 +00:00
Jordan K. Hubbard 64141be4f9 This branch now in 4.3-STABLE 2001-04-21 03:43:31 +00:00
cvs2svn 3bddebe8ad This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-04-11 21:50:14 +00:00
cvs2svn 4d8fea4200 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-03-22 00:28:36 +00:00
cvs2svn a6d81ef744 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2001-03-04 13:29:37 +00:00
cvs2svn ac3575e18b This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2000-06-28 19:19:05 +00:00
cvs2svn 571b0eac5e This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2000-03-13 04:59:48 +00:00
cvs2svn eea9ea0d6f This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2000-03-13 04:59:47 +00:00
cvs2svn fccf0e18e5 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2000-03-13 04:59:46 +00:00
cvs2svn dd85ad4dc8 This commit was manufactured by cvs2svn to create branch 'RELENG_4_4'. 2000-03-13 04:59:45 +00:00
6754 changed files with 376043 additions and 483013 deletions

No files matched your search

+1 -1
View File
@@ -84,7 +84,7 @@
# Define the user-driven targets. These are listed here in alphabetical
# order, but that's not important.
#
TGTS= afterdistribute all buildkernel buildworld checkdpadd clean \
TGTS= afterdistribute all all-man buildkernel buildworld checkdpadd clean \
cleandepend cleandir depend distribute everything hierarchy includes \
install installkernel installmost installworld kernel libraries lint \
maninstall mk most obj objlink regress reinstallkernel rerelease \
+32 -12
View File
@@ -171,7 +171,11 @@ CROSSENV= MAKEOBJDIRPREFIX=${OBJTREE} \
COMPILER_PATH=${WORLDTMP}/usr/libexec:${WORLDTMP}/usr/bin \
LIBRARY_PATH=${WORLDTMP}${SHLIBDIR}:${WORLDTMP}/usr/lib \
OBJFORMAT_PATH=${WORLDTMP}/usr/libexec \
PERL5LIB=${WORLDTMP}/usr/libdata/perl/5.00503
CFLAGS="-nostdinc ${CFLAGS}" \
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
# bootstrap-tool stage
BMAKEENV= ${BOOTSTRAPENV}
@@ -208,13 +212,29 @@ KMAKEENV= ${WMAKEENV} \
OBJFORMAT_PATH=${WORLDTMP}/usr/libexec:${OBJFORMAT_PATH}
USRDIRS= usr/bin usr/lib/compat/aout usr/games usr/libdata/ldscripts \
usr/libexec/${OBJFORMAT} usr/sbin usr/share/misc
usr/libexec/${OBJFORMAT} usr/sbin usr/share/misc \
usr/share/dict \
usr/share/groff_font/devX100 \
usr/share/groff_font/devX100-12 \
usr/share/groff_font/devX75 \
usr/share/groff_font/devX75-12 \
usr/share/groff_font/devascii \
usr/share/groff_font/devcp1047 \
usr/share/groff_font/devdvi \
usr/share/groff_font/devhtml \
usr/share/groff_font/devkoi8-r \
usr/share/groff_font/devlatin1 \
usr/share/groff_font/devlbp \
usr/share/groff_font/devlj4 \
usr/share/groff_font/devps \
usr/share/groff_font/devutf8 \
usr/share/tmac/mdoc usr/share/tmac/mm
.if ${MACHINE_ARCH} == "i386" && ${MACHINE} == "pc98"
USRDIRS+= usr/libexec/aout
.endif
INCDIRS= arpa g++/std objc protocols readline rpc rpcsvc openssl \
INCDIRS= arpa g++/std isc objc protocols readline rpc rpcsvc openssl \
security ss
#
@@ -231,10 +251,9 @@ buildworld:
.if !defined(NOCLEAN)
rm -rf ${WORLDTMP}
.else
for dir in bin games include lib sbin; do \
for dir in bin games include lib sbin share; do \
rm -rf ${WORLDTMP}/usr/$$dir; \
done
rm -f ${WORLDTMP}/sys
# XXX - Work-around for broken cc/cc_tools/Makefile.
# This is beyond dirty...
rm -f ${OBJTREE}${.CURDIR}/gnu/usr.bin/cc/cc_tools/.depend
@@ -245,7 +264,7 @@ buildworld:
.for _dir in ${INCDIRS}
mkdir -p ${WORLDTMP}/usr/include/${_dir}
.endfor
ln -sf ${.CURDIR}/sys ${WORLDTMP}/sys
ln -sf ${.CURDIR}/sys ${WORLDTMP}
@echo
@echo "--------------------------------------------------------------"
@echo ">>> stage 1: bootstrap tools"
@@ -277,7 +296,7 @@ buildworld:
@echo "--------------------------------------------------------------"
@echo ">>> stage 4: populating ${WORLDTMP}/usr/include"
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; ${WMAKE} SHARED=symlinks includes
cd ${.CURDIR}; ${WMAKE} SHARED=copies includes
@echo
@echo "--------------------------------------------------------------"
@echo ">>> stage 4: building libraries"
@@ -308,7 +327,7 @@ everything:
installworld:
mkdir -p ${INSTALLTMP}
for prog in [ awk cat chflags chmod chown date echo egrep find grep \
install ln make makewhatis mtree mv perl rm sed sh sysctl \
ln make makewhatis mtree mv perl rm sed sh sysctl \
test true uname wc zic; do \
cp `which $$prog` ${INSTALLTMP}; \
done
@@ -489,7 +508,7 @@ update:
@echo "--------------------------------------------------------------"
@echo ">>> Updating ${.CURDIR} from cvs repository" ${CVSROOT}
@echo "--------------------------------------------------------------"
cd ${.CURDIR}; cvs -q update -rRELENG_4 -P -d
cd ${.CURDIR}; cvs -q update -rRELENG_4_4 -P -d
.endif
#
@@ -548,8 +567,9 @@ _strfile= games/fortune/strfile
.endif
bootstrap-tools:
.for _tool in ${_strfile} usr.bin/yacc usr.bin/colldef usr.sbin/config \
gnu/usr.bin/gperf gnu/usr.bin/texinfo
.for _tool in ${_strfile} usr.bin/yacc usr.bin/colldef usr.bin/xinstall \
usr.sbin/config \
gnu/usr.bin/gperf gnu/usr.bin/groff gnu/usr.bin/texinfo
cd ${.CURDIR}/${_tool}; \
${MAKE} obj; \
${MAKE} depend; \
@@ -588,7 +608,7 @@ _perl= gnu/usr.bin/perl
build-tools:
.for _tool in bin/csh bin/sh ${_games} gnu/usr.bin/cc/cc_tools ${_fortran} \
${_libroken4} ${_libkrb5} lib/libncurses ${_share} ${_perl}
${_libroken4} ${_libkrb5} lib/libncurses ${_share} ${_perl} usr.bin/file
cd ${.CURDIR}/${_tool}; ${MAKE} build-tools
.endfor
+122 -11
View File
@@ -1,10 +1,85 @@
Updating Information for FreeBSD STABLE users
This file is maintained by [email protected]. Please send new entries
directly to him. See end of file for further details. 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.
This file is maintained and copyrighted by M. Warner Losh
<[email protected]>. Please send new entries directly to him. See end
of file for further details. For commonly done items, please see the
COMMON ITEMS: section later in the file.
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.
20010915:
FreeBSD 4.4-RELEASE.
20010814:
The pci attachment for pcic device was merged from current. You
should update your pccardd at the same time as you update your
kernel.
Note: Interrupts will now be shared between the CardBus bridge
and the cards. This is a change over the hand configuration
before.
20010811:
isdn4bsd was updated to version 1.00.1. for users of the isp<N>
(kernel PPP over ISDN) devices, this means that they now _must_
use ispppcontrol instead of spppcontrol to configure and control
their isp<N> devices. see /usr/share/examples/isdn for more info.
20010725:
The ed driver has been updated. It now allows mii attachments,
which means that you must include the miibus in your kernel if
you use the ed driver.
20010724:
The gif(4) interface has been converted to use cloning
rather then allocating a static number of devices a compile
time. If you use gif interfaces and configure them by any
method other then setting standard variables in /etc/rc.conf
you will need to update your system to create devices with
"ifconfig gifX create" before attempting to configure them.
See the ifconfig(8) man page and /etc/rc.network for more
information.
20010611:
The TCP_RESTRICT_RST option has been removed. You should entirely
remove it from your kernel configuration.
The same functionality is available from the blackhole(4) MIB.
20010531:
The wd compat devices were removed from the ata driver. Kernels
after this date will fail to work with /dev/ nodes that you may
have on your disk. /etc/fstab is a common place to find these
files hanging out, as are dump devices in /etc/rc.conf.
20010521:
Minor repo damange has happened. This may cause problems
with cvsup of ports. If you get errors, please see
http://www.FreeBSD.org/cgi/query-pr.cgi?pr=27495
at the bottom for details on a workaround. The error message
is
Updater failed: Cannot delete "/usr/ports/www/jakarta-tomcat/files": Directory not empty
20010516:
Size changes in the cred structures introduced a binary
incompatibility for modules using the crhold() macro. Modules
should be recompiled for kernel later than this date.
20010510:
The fxp driver from current has been ported to -stable. This
requires kernels that include fxp to also include mii bus devices.
See GENERIC for details.
20010421:
FreeBSD 4.3 RELEASE
20010402:
It appears that PERL_THREADED=true in /etc/make.conf is not
compatible with mod_perl. Not sure the exact date of this problem,
but it post dates 4.2 and predates 4.3.
20010202:
The KERNEL variable for buildkernel and installkernel has been
@@ -195,7 +270,7 @@ COMMON ITEMS:
make install
<follow rebuild disk /dev entries above> [1]
reboot
<in single user>
<in single user> [6]
cd /usr/src
cd gnu/usr.bin/texinfo/install-info
make install
@@ -219,9 +294,19 @@ COMMON ITEMS:
couple of months, be sure they have all the components listed
in /usr/share/examples/cvsup. Crypto and secure are now
required.
[4] This step is optional, but is generally a good idea. If
you wish to use many of the new features in 4.x, you must do
this anyway.
[4] This step is not optional. If you fail to do this, you
will not have critical system config files updated for their
4.x functionality. This will lead to reduced system
functionality, the biggest problem being with /etc/pam.conf
not having the entries necessary to allow remote ssh access.
[5] Note: This won't upgrade your perl install. You will
need to rebuild the world on 4.x to update perl.
[6] From the bootblocks, boot -s, and then do
fsck -p
mount -u /
mount -a
cd /usr/src
adjkerntz -i # if COMS is wall time
To update from 4.0-RELEASE or later to the most current
4.x-STABLE
@@ -231,7 +316,7 @@ COMMON ITEMS:
make installkernel KERNCONF=YOUR_KERNEL_HERE
reboot (in single user) [1]
make installworld
mergemaster
mergemaster [2]
reboot
[1] You can often get away without doing this step as the
@@ -241,7 +326,10 @@ COMMON ITEMS:
otherwise quiet as unpredictable results may happen. If in
doubt, reboot into single user. For remote installs, keep
a separate kernel around and use a serial console if at all
possible.
possible. See also note [6] above.
[2] If you do not run mergemaster, you will likely hit a
number of show stopper problems. The biggest one is that
your /etc/pam.conf won't let you log in using ssh.
What follows are older entries for those people upgrading from earlier
versions of -stable/-current.
@@ -868,4 +956,27 @@ version of FreeBSD, you are on your own to get to November 18, 1998.
Please filter your entries through Warner Losh ([email protected]) so
that the style, formatting, etc of this file can be maintained.
Copyright information:
Copyright 1998, 2001 M. Warner Losh. All Rights Reserved.
Redistribution, translation and use, with or without modification, in
full or in part, are permitted provided that the above copyright
notice is retained.
THIS DOCUMENT IS PROVIDED BY WARNER LOSH ``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 WARNER LOSH 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.
If you find this document useful, and you want to, you may buy the
author a beer.
$FreeBSD$
+2 -3
View File
@@ -97,9 +97,7 @@ characters (with the high bit set) are printed as
(for meta) followed by the character for the low 7 bits.
.El
.Sh DIAGNOSTICS
The
.Nm
utility exits 0 on success or >0 if an error occurred.
.Ex -std
.Sh EXAMPLES
The command:
.Bd -literal -offset indent
@@ -157,6 +155,7 @@ operand.
.Xr sh 1 ,
.Xr tail 1 ,
.Xr vis 1 ,
.Xr zcat 1 ,
.Xr setbuf 3
.Rs
.%A Rob Pike
+1
View File
@@ -57,6 +57,7 @@ static const char rcsid[] =
#include <locale.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int bflag, eflag, nflag, sflag, tflag, vflag;
+1
View File
@@ -4,6 +4,7 @@
CFLAGS+=-I${.CURDIR}/../../sys
PROG= chio
WARNS?= 2
SRCS= chio.c
.include <bsd.prog.mk>
+2 -5
View File
@@ -94,7 +94,6 @@ and the
.Em EU
would be
.Dq 0 .
.Pp
.Sh SUPPORTED COMMANDS
.Bl -tag -width indent
.It Ic move Xo
@@ -194,7 +193,7 @@ is only supported by few media changers. If it is not supported by a
device, using this command will usually result in a "Invalid Field in
CDB" error message on the console.
.Pp
If the
If the
.Fl c
flag is specified, the volume tag of the specified element is
cleared. If the
@@ -237,8 +236,7 @@ element address is not normally used with this driver. It is reported
for diagnostic purposes only.
.It Fl a
Print all additional information (as in
.Fl vVsSba
).
.Fl vVsSba ) .
.El
.Pp
The status bits are defined as follows:
@@ -256,7 +254,6 @@ Element supports passing media (exporting) to an outside human operator.
.It INENAB
Element supports receiving media (importing) from an outside human operator.
.El
.Pp
.Sh EXAMPLES
.Bl -tag -width indent
.It Li chio move slot 3 drive 0
+38 -34
View File
@@ -63,21 +63,22 @@ static int parse_element_unit __P((char *));
static const char * element_type_name __P((int et));
static int parse_special __P((char *));
static int is_special __P((char *));
static const char *bits_to_string __P((int, const char *));
static const char *bits_to_string __P((ces_status_flags, const char *));
static void find_element __P((char *, u_int16_t *, u_int16_t *));
static struct changer_element_status *get_element_status __P((u_int16_t, u_int16_t));
static struct changer_element_status *get_element_status
__P((unsigned int, unsigned int));
static int do_move __P((char *, int, char **));
static int do_exchange __P((char *, int, char **));
static int do_position __P((char *, int, char **));
static int do_params __P((char *, int, char **));
static int do_getpicker __P((char *, int, char **));
static int do_setpicker __P((char *, int, char **));
static int do_status __P((char *, int, char **));
static int do_ielem __P((char *, int, char **));
static int do_return __P((char *, int, char **));
static int do_voltag __P((char *, int, char **));
static int do_move __P((const char *, int, char **));
static int do_exchange __P((const char *, int, char **));
static int do_position __P((const char *, int, char **));
static int do_params __P((const char *, int, char **));
static int do_getpicker __P((const char *, int, char **));
static int do_setpicker __P((const char *, int, char **));
static int do_status __P((const char *, int, char **));
static int do_ielem __P((const char *, int, char **));
static int do_return __P((const char *, int, char **));
static int do_voltag __P((const char *, int, char **));
#ifndef CHET_VT
#define CHET_VT 10 /* Completely Arbitrary */
@@ -176,7 +177,7 @@ main(argc, argv)
static int
do_move(cname, argc, argv)
char *cname;
const char *cname;
int argc;
char **argv;
{
@@ -257,7 +258,7 @@ do_move(cname, argc, argv)
static int
do_exchange(cname, argc, argv)
char *cname;
const char *cname;
int argc;
char **argv;
{
@@ -369,7 +370,7 @@ do_exchange(cname, argc, argv)
static int
do_position(cname, argc, argv)
char *cname;
const char *cname;
int argc;
char **argv;
{
@@ -433,7 +434,7 @@ do_position(cname, argc, argv)
/* ARGSUSED */
static int
do_params(cname, argc, argv)
char *cname;
const char *cname;
int argc;
char **argv;
{
@@ -479,7 +480,7 @@ do_params(cname, argc, argv)
/* ARGSUSED */
static int
do_getpicker(cname, argc, argv)
char *cname;
const char *cname;
int argc;
char **argv;
{
@@ -509,7 +510,7 @@ do_getpicker(cname, argc, argv)
static int
do_setpicker(cname, argc, argv)
char *cname;
const char *cname;
int argc;
char **argv;
{
@@ -540,14 +541,14 @@ do_setpicker(cname, argc, argv)
static int
do_status(cname, argc, argv)
char *cname;
const char *cname;
int argc;
char **argv;
{
struct changer_params cp;
struct changer_element_status_request cesr;
int i, count, base, chet, schet, echet;
char *description;
const char *description;
int pvoltag = 0;
int avoltag = 0;
int sense = 0;
@@ -689,7 +690,7 @@ do_status(cname, argc, argv)
/* Allocate storage for the status structures. */
cesr.cesr_element_status =
(struct changer_element_status *)
calloc(count, sizeof(struct changer_element_status));
calloc((size_t)count, sizeof(struct changer_element_status));
if (!cesr.cesr_element_status)
errx(1, "can't allocate status storage");
@@ -762,7 +763,7 @@ do_status(cname, argc, argv)
static int
do_ielem(cname, argc, argv)
char *cname;
const char *cname;
int argc;
char **argv;
{
@@ -788,7 +789,7 @@ do_ielem(cname, argc, argv)
static int
do_voltag(cname, argc, argv)
char *cname;
const char *cname;
int argc;
char **argv;
{
@@ -845,7 +846,7 @@ do_voltag(cname, argc, argv)
goto usage;
}
strncpy(csvr.csvr_voltag.cv_volid, argv[2],
strlcpy((char *)csvr.csvr_voltag.cv_volid, argv[2],
sizeof(csvr.csvr_voltag.cv_volid));
if (argc == 4) {
@@ -944,7 +945,7 @@ is_special(cp)
static const char *
bits_to_string(v, cp)
int v;
ces_status_flags v;
const char *cp;
{
const char *np;
@@ -977,7 +978,7 @@ bits_to_string(v, cp)
*/
static int
do_return(cname, argc, argv)
char *cname;
const char *cname;
int argc;
char **argv;
{
@@ -1006,7 +1007,8 @@ do_return(cname, argc, argv)
}
++argv; --argc;
ces = get_element_status(type, element); /* Get the status */
/* Get the status */
ces = get_element_status((unsigned int)type, (unsigned int)element);
if (NULL == ces)
errx(1, "%s: null element status pointer", cname);
@@ -1042,22 +1044,22 @@ usage:
*/
static struct changer_element_status *
get_element_status(type, element)
u_int16_t type;
u_int16_t element;
unsigned int type;
unsigned int element;
{
struct changer_element_status_request cesr;
struct changer_element_status *ces;
ces = (struct changer_element_status *)
calloc(1, sizeof(struct changer_element_status));
calloc((size_t)1, sizeof(struct changer_element_status));
if (NULL == ces)
errx(1, "can't allocate status storage");
(void)memset(&cesr, 0, sizeof(cesr));
cesr.cesr_element_type = type;
cesr.cesr_element_base = element;
cesr.cesr_element_type = (u_int16_t)type;
cesr.cesr_element_base = (u_int16_t)element;
cesr.cesr_element_count = 1; /* Only this one element */
cesr.cesr_flags |= CESR_VOLTAGS; /* Grab voltags as well */
cesr.cesr_element_status = ces;
@@ -1088,7 +1090,8 @@ find_element(voltag, et, eu)
struct changer_params cp;
struct changer_element_status_request cesr;
struct changer_element_status *ch_ces, *ces;
int elem, total_elem, found = 0;
int found = 0;
size_t elem, total_elem;
/*
* Get the changer parameters, we're interested in the counts
@@ -1185,7 +1188,8 @@ find_element(voltag, et, eu)
continue;
/* Check to see if it is our target */
if (strcasecmp(voltag, ces->ces_pvoltag.cv_volid) == 0) {
if (strcasecmp(voltag,
(const char *)ces->ces_pvoltag.cv_volid) == 0) {
*et = ces->ces_type;
*eu = ces->ces_addr;
++found;
+4 -4
View File
@@ -33,18 +33,18 @@
*/
struct element_type {
char *et_name; /* name; i.e. "picker, "slot", etc. */
const char *et_name; /* name; i.e. "picker, "slot", etc. */
int et_type; /* type number */
};
struct changer_command {
char *cc_name; /* command name */
const char *cc_name; /* command name */
/* command handler */
int (*cc_handler) __P((char *, int, char **));
int (*cc_handler) __P((const char *, int, char **));
};
struct special_word {
char *sw_name; /* special word */
const char *sw_name; /* special word */
int sw_value; /* token value */
};
+2
View File
@@ -3,4 +3,6 @@
PROG= chmod
WARNS?= 2
.include <bsd.prog.mk>
+20 -22
View File
@@ -44,10 +44,9 @@
.Sh SYNOPSIS
.Nm
.Oo
.Fl f
.Fl fv
.Fl R
.Op Fl H | Fl L | Fl P
.Fl v
.Oc
.Ar mode
.Ar
@@ -75,6 +74,7 @@ option is specified, all symbolic links are followed.
If the
.Fl R
option is specified, no symbolic links are followed.
This is the default.
.It Fl R
Change the modes of the file hierarchies rooted in the files
instead of just the files themselves.
@@ -110,9 +110,7 @@ command's actions are determined by the last one specified.
Only the owner of a file or the super-user is permitted to change
the mode of a file.
.Sh DIAGNOSTICS
The
.Nm
utility exits 0 on success, and >0 if an error occurs.
.Ex -std
.Sh MODES
Modes may be absolute or symbolic.
An absolute mode is an octal number constructed from the sum of
@@ -120,42 +118,42 @@ one or more of the following values:
.Pp
.Bl -tag -width 6n -compact -offset indent
.It Li 4000
(the set-user-ID-on-execution bit) Executable files with this bit set
(the set-user-ID-on-execution bit) Executable files with this bit set
will run with effective uid set to the uid of the file owner.
Directories with the set-user-id bit set will force all files and
sub-directories created in them to be owned by the directory owner
and not by the uid of the creating process, if the underlying file
system supports this feature: see
Directories with the set-user-id bit set will force all files and
sub-directories created in them to be owned by the directory owner
and not by the uid of the creating process, if the underlying file
system supports this feature: see
.Xr chmod 2
and the
and the
.Ar suiddir
option to
.Xr mount 8 .
.It Li 2000
(the set-group-ID-on-execution bit) Executable files with this bit set
will run with effective gid set to the gid of the file owner.
(the set-group-ID-on-execution bit) Executable files with this bit set
will run with effective gid set to the gid of the file owner.
.It Li 1000
(the sticky bit)
(the sticky bit)
When set on a directory, unprivileged users can delete and rename
only those files in the directory that are owned by them, regardless of
only those files in the directory that are owned by them, regardless of
the permissions on the directory. Under
.Fx ,
the sticky bit is
ignored for executable files and may only be set for directories (see
the sticky bit is
ignored for executable files and may only be set for directories (see
.Xr sticky 8 ) .
.It Li 0400
Allow read by owner.
.It Li 0200
Allow write by owner.
.It Li 0100
For files, allow execution by owner. For directories, allow the owner to
For files, allow execution by owner. For directories, allow the owner to
search in the directory.
.It Li 0040
Allow read by group members.
.It Li 0020
Allow write by group members.
.It Li 0010
For files, allow execution by group members. For directories, allow
For files, allow execution by group members. For directories, allow
group members to search in the directory.
.It Li 0004
Allow read by others.
@@ -166,9 +164,9 @@ For files, allow execution by others. For directories allow others to
search in the directory.
.El
.Pp
For example, the absolute mode that permits read, write and execute by
the owner, read and execute by group members, read and execute by
others, and no set-uid or set-gid behaviour is 755
For example, the absolute mode that permits read, write and execute by
the owner, read and execute by group members, read and execute by
others, and no set-uid or set-gid behaviour is 755
(400+200+100+040+010+004+001).
.Pp
The symbolic mode is described by the following grammar:
+1
View File
@@ -57,6 +57,7 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
int main __P((int, char *[]));
void usage __P((void));
int
+12 -13
View File
@@ -37,7 +37,7 @@
.\"
.Dd April 18, 1994
.Dt CP 1
.Os BSD 4
.Os
.Sh NAME
.Nm cp
.Nd copy files
@@ -90,6 +90,7 @@ option is specified, all symbolic links are followed.
If the
.Fl R
option is specified, no symbolic links are followed.
This is the default.
.It Fl R
If
.Ar source_file
@@ -127,7 +128,7 @@ Cause
to write a prompt to the standard error output before copying a file
that would overwrite an existing file.
If the response from the standard input begins with the character
.Sq Li y
.Sq Li y
or
.Sq Li Y ,
the file copy is attempted.
@@ -167,12 +168,12 @@ ID are unchanged unless the
.Fl p
option was specified.
.Pp
In the second synopsis form,
.Ar target_directory
In the second synopsis form,
.Ar target_directory
must exist unless there is only one named
.Ar source_file
which is a directory and the
.Fl R
which is a directory and the
.Fl R
flag is specified.
.Pp
If the destination file does not exist, the mode of the source file is
@@ -191,12 +192,12 @@ conditions must be fulfilled or both bits are removed.
.Pp
Appropriate permissions are required for file creation or overwriting.
.Pp
Symbolic links are always followed unless the
.Fl R
Symbolic links are always followed unless the
.Fl R
flag is set, in which case symbolic links are not followed, by default.
The
.Fl H
or
or
.Fl L
flags (in conjunction with the
.Fl R
@@ -212,9 +213,7 @@ option is specified.
In addition, these options override each other and the
command's actions are determined by the last one specified.
.Sh DIAGNOSTICS
The
.Nm
utility exits 0 on success, and >0 if an error occurs.
.Ex -std
.Sh COMPATIBILITY
Historic versions of the
.Nm
@@ -231,7 +230,7 @@ option is non-standard and its use in scripts is not recommended.
.Sh SEE ALSO
.Xr mv 1 ,
.Xr rcp 1 ,
.Xr umask 2 ,
.Xr umask 2 ,
.Xr fts 3 ,
.Xr symlink 7
.Sh STANDARDS
+4 -11
View File
@@ -69,7 +69,9 @@ static const char rcsid[] =
#include <err.h>
#include <errno.h>
#include <fts.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
@@ -82,9 +84,7 @@ static const char rcsid[] =
PATH_T to = { to.p_path, "", "" };
uid_t myuid;
int Rflag, iflag, pflag, rflag, fflag, vflag;
int myumask;
enum op { FILE_TO_FILE, FILE_TO_DIR, DIR_TO_DNE };
@@ -169,17 +169,10 @@ main(argc, argv)
fts_options |= FTS_LOGICAL;
}
myuid = getuid();
/* Copy the umask for explicit mode setting. */
myumask = umask(0);
(void)umask(myumask);
/* Save the target base in "to". */
target = argv[--argc];
if (strlen(target) > MAXPATHLEN)
if (strlcpy(to.p_path, target, sizeof(to.p_path)) >= sizeof(to.p_path))
errx(1, "%s: name too long", target);
(void)strcpy(to.p_path, target);
to.p_end = to.p_path + strlen(to.p_path);
if (to.p_path == to.p_end) {
*to.p_end++ = '.';
@@ -318,7 +311,7 @@ copy(argv, type, fts_options)
if (*p != '/' && target_mid[-1] != '/')
*target_mid++ = '/';
*target_mid = 0;
if (target_mid - to.p_path + nlen > MAXPATHLEN) {
if (target_mid - to.p_path + nlen >= PATH_MAX) {
warnx("%s%s: name too long (not copied)",
to.p_path, p);
badcp = rval = 1;
+2 -3
View File
@@ -37,12 +37,11 @@
typedef struct {
char *p_end; /* pointer to NULL at end of path */
char *target_end; /* pointer to end of target base */
char p_path[MAXPATHLEN + 1]; /* pointer to the start of a path */
char p_path[PATH_MAX]; /* pointer to the start of a path */
} PATH_T;
extern PATH_T to;
extern uid_t myuid;
extern int iflag, pflag, fflag, vflag, myumask;
extern int iflag, pflag, fflag, vflag;
#include <sys/cdefs.h>
+6 -18
View File
@@ -50,7 +50,9 @@ static const char rcsid[] =
#include <errno.h>
#include <fcntl.h>
#include <fts.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <sysexits.h>
#include <unistd.h>
@@ -62,7 +64,7 @@ copy_file(entp, dne)
int dne;
{
static char buf[MAXBSIZE];
struct stat to_stat, *fs;
struct stat *fs;
int ch, checkch, from_fd, rcount, rval, to_fd, wcount, wresid;
char *bufp;
#ifdef VM_AND_BUFFER_CACHE_SYNCHRONIZED
@@ -179,22 +181,6 @@ copy_file(entp, dne)
if (pflag && setfile(fs, to_fd))
rval = 1;
/*
* If the source was setuid or setgid, lose the bits unless the
* copy is owned by the same user and group.
*/
#define RETAINBITS \
(S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
else if (fs->st_mode & (S_ISUID | S_ISGID) && fs->st_uid == myuid) {
if (fstat(to_fd, &to_stat)) {
warn("%s", to.p_path);
rval = 1;
} else if (fs->st_gid == to_stat.st_gid &&
fchmod(to_fd, fs->st_mode & RETAINBITS & ~myumask)) {
warn("%s", to.p_path);
rval = 1;
}
}
(void)close(from_fd);
if (close(to_fd)) {
warn("%s", to.p_path);
@@ -209,7 +195,7 @@ copy_link(p, exists)
int exists;
{
int len;
char link[MAXPATHLEN];
char link[PATH_MAX];
if ((len = readlink(p->fts_path, link, sizeof(link) - 1)) == -1) {
warn("readlink: %s", p->fts_path);
@@ -259,6 +245,8 @@ copy_special(from_stat, exists)
return (pflag ? setfile(from_stat, 0) : 0);
}
#define RETAINBITS \
(S_ISUID | S_ISGID | S_ISVTX | S_IRWXU | S_IRWXG | S_IRWXO)
int
setfile(fs, fd)
-1
View File
@@ -29,7 +29,6 @@ SRCS+= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \
GENHDRS= ed.defns.h sh.err.h tc.const.h tc.defs.c
SRCS+= ${GENHDRS}
MAN1= csh.1
MLINKS= csh.1 tcsh.1
# MLINKS for Shell built in commands for which there are no userland
# utilities of the same name are handled with the associated manpage,
+7 -7
View File
@@ -119,7 +119,7 @@ for it in the glossary.
Acknowledgements
.PP
Numerous people have provided good input about previous versions
of
of
.I csh
and aided in its debugging and in the debugging of its documentation.
I would especially like to thank Michael Ubell
@@ -209,7 +209,7 @@ is to be read ``control-\fIx\fR'' and represents the striking of the \fIx\fR
key while the control key is held down.)
The mail program
then echoed the characters `EOT' and transmitted our message.
The characters `% ' were printed before and after the mail command
The characters `% ' were printed before and after the mail command
by the shell to indicate that input was needed.
.PP
After typing the `% ' prompt the shell was reading command input from
@@ -292,7 +292,7 @@ rather than having a large number of hard to remember options.
.NH 2
Output to files
.PP
Commands that normally read input or write output on the terminal
Commands that normally read input or write output on the terminal
can also be executed with this input and/or output done to
a file.
.PP
@@ -679,7 +679,7 @@ beginning are treated specially.
Neither `*' or `?' or the `[' `]' mechanism will match it.
This prevents accidental matching of the filenames `.' and `..'
in the working directory which have special meaning to the system,
as well as other files such as
as well as other files such as
.I \&.cshrc
which are not normally
visible.
@@ -732,7 +732,7 @@ as it is used less frequently.
Quotation
.PP
We have already seen a number of metacharacters used by the shell.
These metacharacters pose a problem in that we cannot use them directly
These metacharacters pose a problem in that we cannot use them directly
as parts of words.
Thus the command
.DS
@@ -742,7 +742,7 @@ will not echo the character `*'.
It will either echo an sorted list of filenames in the
current
.I "working directory,"
or print the message `No match' if there are
or print the message `No match' if there are
no files in the working directory.
.PP
The recommended mechanism for placing characters which are neither numbers,
@@ -826,7 +826,7 @@ The shell also terminates when it gets an end-of-file printing `logout';
\s-2UNIX\s0 then logs you off the system.
Since this means that typing too many ^D's can accidentally log us off,
the shell has a mechanism for preventing this.
This
This
.I ignoreeof
option will be discussed in section 2.2.
.PP
+13 -13
View File
@@ -49,7 +49,7 @@ We will later see what kinds of commands are usefully placed there.
For now we need not have this file and the shell does not complain about
its absence.
.PP
A
A
.I "login shell" ,
executed after you login to the system,
will, after it reads commands from
@@ -131,7 +131,7 @@ processing my
.I \&.login
file and begin reading commands from the terminal, prompting for each with
`% '.
When I log off (by giving the
When I log off (by giving the
.I logout
command) the shell
will print `logout' and execute commands from the file `.logout'
@@ -328,11 +328,11 @@ main()
printf("hello);
}
% cc !$
cc bug.c
cc bug.c
"bug.c", line 4: newline in string or char constant
"bug.c", line 5: syntax error
% ed !$
ed bug.c
ed bug.c
29
4s/);/"&/p
printf("hello");
@@ -340,10 +340,10 @@ w
30
q
% !c
cc bug.c
cc bug.c
% a.out
hello% !e
ed bug.c
ed bug.c
30
4s/lo/lo\e\en/p
printf("hello\en");
@@ -356,7 +356,7 @@ cc bug.c \-o bug
a.out: 2784+364+1028 = 4176b = 0x1050b
bug: 2784+364+1028 = 4176b = 0x1050b
% ls \-l !*
ls \-l a.out bug
ls \-l a.out bug
\(mirwxr\(mixr\(mix 1 bill 3932 Dec 19 09:41 a.out
\(mirwxr\(mixr\(mix 1 bill 3932 Dec 19 09:42 bug
% bug
@@ -364,14 +364,14 @@ hello
% num bug.c | spp
spp: Command not found.
% ^spp^ssp
num bug.c | ssp
num bug.c | ssp
1 main()
3 {
4 printf("hello\en");
5 }
% !! | lpr
num bug.c | ssp | lpr
%
%
.DE
.KE
In this example we have a very simple C program which has a bug (or two)
@@ -645,7 +645,7 @@ EOT
.DE
If the job did not terminate normally the `Done' message might say
something else like `Killed'.
If you want the
If you want the
terminations of background jobs to be reported at the time they occur
(possibly interrupting the output of other foreground jobs), you can set
the
@@ -770,7 +770,7 @@ job \- identified by a `\-' in the output of
.I jobs.
When the current job terminates, the previous job becomes the current job.
When given, the argument is either `%\-' (indicating
the previous job); `%#', where # is the job number;
the previous job); `%#', where # is the job number;
`%pref' where pref is some unique prefix of the command name
and arguments of one of the jobs; or `%?' followed by some string found
in only one of the jobs.
@@ -859,7 +859,7 @@ text editor might take a long time.
Stopped
% bg
[1] ed bigfile &
%
%
. . . some foreground commands
.ta 1.75i
[1] Stopped (tty input) ed bigfile
@@ -868,7 +868,7 @@ ed bigfile
w
120000
q
%
%
.so tabs
.DE
So after the `s' command was issued, the `ed' job was stopped with ^Z
+2 -2
View File
@@ -311,7 +311,7 @@ of the shell and some of its control structure follows:
# already in ~/backup
#
set noglob
foreach i ($argv)
foreach i ($argv)
if ($i !~ *.c) continue # not a .c file so do nothing
@@ -339,7 +339,7 @@ for each of the values given between `(' and `)' with the named
variable, in this case `i' set to successive values in the list.
Within this loop we may use the command
.I break
to stop executing the loop
to stop executing the loop
and
.I continue
to prematurely terminate one iteration
+20 -29
View File
@@ -50,22 +50,16 @@
.Oo
.Fl v
.Sm off
.Op Cm + | - Xo
.Op Cm + | -
.Ar val Op Ar ymwdHMS
.Xc
.Sm on
.Oc
.Ar ...\&
.Ar ...
.Oo
.Fl f
.Ar fmt date |
.Sm off
.Oo Oo Oo Oo Oo
.Ar cc Oc
.Ar yy Oc
.Ar mm Oc
.Ar dd Oc
.Ar HH Oc
.Op Oo Oo Oo Oo Ar cc Oc Ar yy Oc Ar mm Oc Ar dd Oc Ar HH
.Ar MM Op Ar .ss
.Sm on
.Oc
@@ -145,7 +139,7 @@ Set the system's value for minutes west of
.Tn GMT .
.Ar minutes_west
specifies the number of minutes returned in
.Fa tz_minuteswest
.Fa tz_minuteswest
by future calls to
.Xr gettimeofday 2 .
.It Fl u
@@ -153,9 +147,10 @@ Display or set the date in
.Tn UTC
(Coordinated Universal) time.
.It Fl v
Adjust the second, minute, hour, month day, week day,
month or year according to
.Ar val .
Adjust (i.e., take the current date and display the result of the
adjustment; not actually set the date) the second, minute, hour, month
day, week day, month or year according to
.Ar val .
If
.Ar val
is preceded with a plus or minus sign,
@@ -165,13 +160,11 @@ The date can be adjusted as many times as required using these flags.
Flags are processed in the order given.
.Pp
When setting values
.Pq rather than adjusting them ,
(rather than adjusting them),
seconds are in the range 0-59, minutes are in the range 0-59, hours are
in the range 1-12, month days are in the range 1-31, week days are in the
range 0-6
.Pq Sun-Sat ,
months are in the range 1-12
.Pq Jan-Dec
range 0-6 (Sun-Sat),
months are in the range 1-12 (Jan-Dec)
and years are in the range 80-38 or 1980-2038.
.Pp
If
@@ -190,11 +183,11 @@ must be used to specify which part of the date is to be adjusted.
The week day or month may be specified using a name rather than a
number.
If a name is used with the plus
.Pq or minus
(or minus)
sign, the date will be put forwards
.Pq or backwards
(or backwards)
to the next
.Pq previous
(previous)
date that matches the given week day or month.
This will not adjust the date,
if the given week day or month is the same as the current one.
@@ -212,13 +205,11 @@ the clock goes back at 02:00 to 01:00, using
will be necessary to reach October 29, 2:30.
.Pp
When the date is adjusted to a specific value that doesn't actually exist
.Po
for example March 26, 1:30 BST 2000 in the Europe/London timezone
.Pc ,
(for example March 26, 1:30 BST 2000 in the Europe/London timezone),
the date will be silently adjusted forwards in units of one hour until it
reaches a valid time.
When the date is adjusted to a specific value that occurs twice
.Pq for example October 29, 1:30 2000 ,
(for example October 29, 1:30 2000),
the resulting timezone will be set so that the date matches the earlier of
the two times.
.Pp
@@ -230,7 +221,7 @@ An operand with a leading plus
sign signals a user-defined format string
which specifies the format in which to display the date and time.
The format string may contain any of the conversion specifications
described in the
described in the
.Xr strftime 3
manual page, as well as any arbitrary text.
A newline
@@ -247,11 +238,11 @@ The canonical representation for setting the date and time is:
.Bl -tag -width Ds -compact -offset indent
.It Ar cc
Century
.Pq either 19 or 20
(either 19 or 20)
prepended to the abbreviated year.
.It Ar yy
Year in abbreviated form
.Pq e.g. 89 for 1989, 06 for 2006 .
(e.g. 89 for 1989, 06 for 2006).
.It Ar mm
Numeric month, a number from 1 to 12.
.It Ar dd
@@ -262,7 +253,7 @@ Hour, a number from 0 to 23.
Minutes, a number from 0 to 59.
.It Ar ss
Seconds, a number from 0 to 61
.Pq 59 plus a maximum of two leap seconds .
(59 plus a maximum of two leap seconds).
.El
.Pp
Everything but the minutes is optional.
+4 -1
View File
@@ -268,6 +268,9 @@ setthetime(fmt, p, jflag, nflag)
}
}
/* Let mktime() decide whether summer time is in effect. */
lt->tm_isdst = -1;
/* convert broken-down time to GMT clock time */
if ((tval = mktime(lt)) == -1)
errx(1, "nonexistent time");
@@ -300,7 +303,7 @@ static void
usage()
{
(void)fprintf(stderr, "%s\n%s\n",
"usage: date [-nu] [-d dst] [-r seconds] [-t west] "
"usage: date [-jnu] [-d dst] [-r seconds] [-t west] "
"[-v[+|-]val[ymwdHMS]] ... ",
" "
"[-f fmt date | [[[[[cc]yy]mm]dd]HH]MM[.ss]] [+format]");
+1 -1
View File
@@ -147,7 +147,7 @@ loop:
if (!getsockopt(s,
SOL_SOCKET, SO_ERROR, (char *)&err, &length) && err) {
if (err != ECONNREFUSED)
warn("send (delayed error)");
warnc(err, "send (delayed error)");
goto bad;
}
+7 -5
View File
@@ -181,7 +181,9 @@ The value
.Cm oldascii
specifies the one used in historic
.Tn AT&T
and pre-4.3BSD-reno systems.
and
.No pre- Ns Bx 4.3 reno
systems.
.It Cm block
Treats the input as a sequence of newline or end-of-file terminated variable
length records independent of input and output block boundaries.
@@ -226,7 +228,9 @@ and
.Cm oldibm
are maps used in historic
.Tn AT&T
and pre-4.3BSD-reno systems.
and
.No pre- Ns Bx 4.3 reno
systems.
.It Cm lcase
Transform uppercase characters into lowercase characters.
.It Cm noerror
@@ -343,9 +347,7 @@ in the same format as the standard completion message and
.Nm
will exit.
.Sh DIAGNOSTICS
The
.Nm
utility exits 0 on success or >0 if an error occurs.
.Ex -std
.Sh SEE ALSO
.Xr cp 1 ,
.Xr mt 1 ,
+1 -1
View File
@@ -87,7 +87,7 @@ const u_char *ctab; /* conversion table */
int
main(argc, argv)
int argc;
int argc __unused;
char *argv[];
{
(void)setlocale(LC_CTYPE, "");
+5 -3
View File
@@ -48,6 +48,8 @@ static const char rcsid[] =
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <strings.h>
#include <unistd.h>
#include "dd.h"
@@ -88,7 +90,7 @@ summary()
/* ARGSUSED */
void
summaryx(notused)
int notused;
int notused __unused;
{
int save_errno = errno;
@@ -102,6 +104,6 @@ terminate(sig)
int sig;
{
/* XXX exit() shouldn't call exit() from a signal handler. */
exit(sig == 0 ? 0 : 1);
summary();
_exit(sig == 0 ? 0 : 1);
}
+2
View File
@@ -13,4 +13,6 @@ CFLAGS+= -I${MOUNT}
DPADD= ${LIBM}
LDADD= -lm
WARNS?= 2
.include <bsd.prog.mk>
+5 -3
View File
@@ -34,7 +34,7 @@
.\"
.Dd May 8, 1995
.Dt DF 1
.Os BSD 4
.Os
.Sh NAME
.Nm df
.Nd display free disk space
@@ -44,7 +44,7 @@
.Fl b | h | H | k |
.Fl m | P
.Oc
.Op Fl ain
.Op Fl ailn
.Op Fl t Ar type
.Op Ar file | filesystem ...
.Sh DESCRIPTION
@@ -91,6 +91,8 @@ Use 1024-byte (1-Kbyte) blocks rather than the default. Note that
this overrides the
.Ev BLOCKSIZE
specification from the environment.
.It Fl l
Only display information about locally-mounted filesystems.
.It Fl m
Use 1048576-byte (1-Mbyte) blocks rather than the default. Note that
this overrides the
@@ -106,7 +108,7 @@ When this option is specified,
will not request new statistics from the filesystems, but will respond
with the possibly stale statistics that were previously obtained.
.It Fl P
Use POSIX compliant output of 512-byte blocks rather than the default.
Use POSIX compliant output of 512-byte blocks rather than the default.
Note that this overrides the
.Ev BLOCKSIZE
specification from the environment.
+63 -9
View File
@@ -54,6 +54,7 @@ static const char rcsid[] =
#include <sys/param.h>
#include <sys/stat.h>
#include <sys/mount.h>
#include <sys/sysctl.h>
#include <ufs/ufs/ufsmount.h>
#include <err.h>
@@ -95,14 +96,16 @@ typedef enum { NONE, KILO, MEGA, GIGA, TERA, PETA, UNIT_MAX } unit_t;
int unitp [] = { NONE, KILO, MEGA, GIGA, TERA, PETA };
int checkvfsname __P((const char *, char **));
char **makevfslist __P((char *));
long regetmntinfo __P((struct statfs **, long, char **));
int main __P((int, char *[]));
int bread __P((off_t, void *, int));
int checkvfsname __P((const char *, char **));
char *makenetvfslist __P((void));
char **makevfslist __P((char *));
char *getmntpt __P((char *));
void prthuman __P((struct statfs *, long));
void prthumanval __P((double));
void prtstat __P((struct statfs *, int));
long regetmntinfo __P((struct statfs **, long, char **));
int ufs_df __P((char *, int));
unit_t unit_adjust __P((double *));
void usage __P((void));
@@ -118,11 +121,11 @@ main(argc, argv)
struct stat stbuf;
struct statfs statfsbuf, *mntbuf;
long mntsize;
int ch, err, i, maxwidth, rv, width;
int ch, eno, i, maxwidth, rv, width;
char *mntpt, *mntpath, **vfslist;
vfslist = NULL;
while ((ch = getopt(argc, argv, "abgHhikmnPt:")) != -1)
while ((ch = getopt(argc, argv, "abgHhiklmnPt:")) != -1)
switch (ch) {
case 'a':
aflag = 1;
@@ -152,6 +155,11 @@ main(argc, argv)
putenv("BLOCKSIZE=1k");
hflag = 0;
break;
case 'l':
if (vfslist != NULL)
errx(1, "-l and -t are mutually exclusive.");
vfslist = makevfslist(makenetvfslist());
break;
case 'm':
putenv("BLOCKSIZE=1m");
hflag = 0;
@@ -199,7 +207,7 @@ main(argc, argv)
for (; *argv; argv++) {
if (stat(*argv, &stbuf) < 0) {
err = errno;
eno = errno;
if ((mntpt = getmntpt(*argv)) == 0) {
warn("%s", *argv);
rv = 1;
@@ -378,7 +386,7 @@ prtstat(sfsp, maxwidth)
{
static long blocksize;
static int headerlen, timesthrough;
static char *header;
static const char *header;
long used, availblks, inodes;
if (maxwidth < 11)
@@ -445,7 +453,7 @@ ufs_df(file, maxwidth)
{
struct statfs statfsbuf;
struct statfs *sfsp;
char *mntpt;
const char *mntpt;
static int synced;
if (synced++ == 0)
@@ -506,6 +514,52 @@ usage()
{
(void)fprintf(stderr,
"usage: df [-b | -H | -h | -k | -m | -P] [-ain] [-t type] [file | filesystem ...]\n");
"usage: df [-b | -H | -h | -k | -m | -P] [-ailn] [-t type] [file | filesystem ...]\n");
exit(EX_USAGE);
}
char *makenetvfslist()
{
char *str, *strptr, **listptr;
int mib[3], maxvfsconf, miblen, cnt=0, i;
struct ovfsconf *ptr;
mib[0] = CTL_VFS; mib[1] = VFS_GENERIC; mib[2] = VFS_MAXTYPENUM;
miblen=sizeof(maxvfsconf);
if (sysctl(mib, sizeof(mib)/sizeof(mib[0]), &maxvfsconf, &miblen, NULL, 0)) {
warnx("sysctl failed");
return (NULL);
}
if ((listptr=malloc(sizeof(char*) * maxvfsconf)) == NULL) {
warnx("malloc failed");
return (NULL);
}
for (ptr=getvfsent();ptr;ptr=getvfsent())
if (ptr->vfc_flags & VFCF_NETWORK) {
listptr[cnt++] = strdup (ptr->vfc_name);
if (! listptr[cnt-1]) {
warnx("malloc failed");
return (NULL);
}
}
if ((str = malloc(sizeof(char)*(32*cnt+cnt+2))) == NULL) {
warnx("malloc failed");
free(listptr);
return (NULL);
}
*str = 'n'; *(str+1) = 'o';
for (i = 0,strptr=str+2; i < cnt; i++,strptr++) {
strncpy (strptr, listptr[i], 32);
strptr+=strlen(listptr[i]);
*strptr=',';
free(listptr[i]);
}
*(--strptr) = NULL;
free(listptr);
return (str);
}
+2
View File
@@ -2,4 +2,6 @@
PROG= domainname
WARNS?= 2
.include <bsd.prog.mk>
+2 -2
View File
@@ -34,7 +34,7 @@
.\"
.Dd September 18, 1994
.Dt DOMAINNAME 1
.Os FreeBSD
.Os
.Sh NAME
.Nm domainname
.Nd set or print name of current YP/NIS domain
@@ -58,7 +58,7 @@ convenience.
.Xr getdomainname 3
.Sh HISTORY
The
.Nm
.Nm
command appeared in
.Fx
1.1, based on a similar command in
+3 -2
View File
@@ -53,6 +53,7 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
int main __P((int, char *[]));
void usage __P((void));
int
@@ -75,10 +76,10 @@ main(argc,argv)
usage();
if (*argv) {
if (setdomainname(*argv, strlen(*argv)))
if (setdomainname(*argv, (int)strlen(*argv)))
err(1, "setdomainname");
} else {
if (getdomainname(domainname, sizeof(domainname)))
if (getdomainname(domainname, (int)sizeof(domainname)))
err(1, "getdomainname");
(void)printf("%s\n", domainname);
}
+2
View File
@@ -3,4 +3,6 @@
PROG= echo
WARNS?= 2
.include <bsd.prog.mk>
+1 -3
View File
@@ -72,9 +72,7 @@ Consult the
.Xr builtin 1
manual page.
.Sh DIAGNOSTICS
The
.Nm
utility exits 0 on success, and >0 if an error occurs.
.Ex -std
.Sh SEE ALSO
.Xr builtin 1 ,
.Xr csh 1 ,
+3 -1
View File
@@ -49,9 +49,11 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
int main __P((int, char *[]));
int
main(argc, argv)
int argc;
int argc __unused;
char *argv[];
{
int nflag;
+1 -8
View File
@@ -56,12 +56,6 @@ static char * const rcsid =
#include "ed.h"
/*
* Define a divisor for rand() that yields a uniform distribution in the
* range 0-255.
*/
#define RAND_DIV (((unsigned) RAND_MAX + 1) >> 8)
/*
* BSD and System V systems offer special library calls that do
* block move_liness and fills, so if possible we take advantage of them
@@ -125,9 +119,8 @@ init_des_cipher()
MEMZERO(ivec, 8);
/* initialize the padding vector */
srand((unsigned) time((time_t *) 0));
for (i = 0; i < 8; i++)
CHAR(pvec, i) = (char) (rand()/RAND_DIV);
CHAR(pvec, i) = (char) (arc4random() % 256);
#endif
}
+11 -12
View File
@@ -3,7 +3,6 @@
.Dt ED 1
.Os
.Sh NAME
.\" ed, red \- text editor
.Nm ed ,
.Nm red
.Nd text editor
@@ -224,7 +223,7 @@ The next line.
This is equivalent to
.Em +1
and may be repeated with cumulative effect.
.It +n
.It +n
The
.Em n Ns th
next line, where
@@ -434,7 +433,7 @@ However, most commands accept a print suffix, which is any of
.Em p
(print),
.Em l
(list) ,
(list),
or
.Em n
(enumerate),
@@ -526,7 +525,7 @@ and
.Em V .
A newline alone in
.Ar command-list
is equivalent to a
is equivalent to a
.Em p
command.
.It (1,$)G/re/
@@ -535,7 +534,7 @@ Interactively edit the addressed lines matching a regular expression
For each matching line,
the line is printed,
the current address is set,
and the user is prompted to enter a
and the user is prompted to enter a
.Ar command-list .
At the end of the
.Em G
@@ -571,17 +570,17 @@ Mark a line with a lower case letter
The line can then be addressed as
.Em 'lc
(i.e., a single quote followed by
.Em lc
) in subsequent commands. The mark is not cleared until the line is
.Em lc )
in subsequent commands. The mark is not cleared until the line is
deleted or otherwise modified.
.It (.,.)l
Print the addressed lines unambiguously.
If a single line fills for than one screen (as might be the case
when viewing a binary file, for instance), a `--More--'
prompt is printed on the last line.
when viewing a binary file, for instance), a `--More--'
prompt is printed on the last line.
.Nm Ed
waits until the RETURN key is pressed
before displaying the next screen.
before displaying the next screen.
The current address is set to the last line
printed.
.It (.,.)m(.)
@@ -871,7 +870,7 @@ printed with the
.Em h
(help) command.
.Pp
Since the
Since the
.Em g
(global) command masks any errors from failed searches and substitutions,
it can be used to perform conditional operations in scripts; e.g.,
@@ -900,7 +899,7 @@ results in an error.
If the command is entered a second time, it succeeds,
but any changes to the buffer are lost.
.Sh HISTORY
A
An
.Nm
command appeared in
Version 1 AT&T UNIX.
+2 -8
View File
@@ -28,11 +28,9 @@
* $FreeBSD$
*/
#include <sys/param.h> /* for MAXPATHLEN */
#include <sys/param.h>
#include <errno.h>
#if defined(sun) || defined(__NetBSD__)
# include <limits.h>
#endif
#include <limits.h>
#include <regex.h>
#include <signal.h>
#include <stdio.h>
@@ -44,10 +42,6 @@
#define EMOD (-3)
#define FATAL (-4)
#ifndef MAXPATHLEN
# define MAXPATHLEN 255 /* _POSIX_PATH_MAX */
#endif
#define MINBUFSZ 512 /* minimum buffer size - must be > 0 */
#define SE_MAX 30 /* max subexpressions in a regular expression */
#ifdef INT_MAX
+8 -7
View File
@@ -96,7 +96,7 @@ int scripted = 0; /* if set, suppress diagnostics */
int sigflags = 0; /* if set, signals received while mutex set */
int sigactive = 0; /* if set, signal handlers are enabled */
char old_filename[MAXPATHLEN + 1] = ""; /* default filename */
char old_filename[PATH_MAX] = ""; /* default filename */
long current_addr; /* current address in editor buffer */
long addr_last; /* last address in editor buffer */
int lineno; /* script line number */
@@ -948,9 +948,10 @@ get_filename()
ibufp++;
if ((n = get_shell_command()) < 0)
return NULL;
if (n) printf("%s\n", shcmd + 1);
if (n)
printf("%s\n", shcmd + 1);
return shcmd;
} else if (n - 1 > MAXPATHLEN) {
} else if (n > PATH_MAX - 1) {
sprintf(errmsg, "filename too long");
return NULL;
}
@@ -961,7 +962,7 @@ get_filename()
return NULL;
}
#endif
REALLOC(file, filesz, MAXPATHLEN + 1, NULL);
REALLOC(file, filesz, PATH_MAX, NULL);
for (n = 0; *ibufp != '\n';)
file[n++] = *ibufp++;
file[n] = '\0';
@@ -1338,7 +1339,7 @@ has_trailing_escape(s, t)
}
/* strip_escapes: return copy of escaped string of at most length MAXPATHLEN */
/* strip_escapes: return copy of escaped string of at most length PATH_MAX */
char *
strip_escapes(s)
char *s;
@@ -1348,7 +1349,7 @@ strip_escapes(s)
int i = 0;
REALLOC(file, filesz, MAXPATHLEN + 1, NULL);
REALLOC(file, filesz, PATH_MAX, NULL);
while (i < filesz - 1 /* Worry about a possible trailing escape */
&& (file[i++] = (*s == '\\') ? *++s : *s))
s++;
@@ -1391,7 +1392,7 @@ handle_hup(signo)
sigflags &= ~(1 << (signo - 1));
if (addr_last && write_file("ed.hup", "w", 1, addr_last) < 0 &&
(s = getenv("HOME")) != NULL &&
(n = strlen(s)) + 8 <= MAXPATHLEN && /* "ed.hup" + '/' */
(n = strlen(s)) + 8 <= PATH_MAX && /* "ed.hup" + '/' */
(hup = (char *) malloc(n + 10)) != NULL) {
strcpy(hup, s);
if (hup[n - 1] != '/')
+1 -1
View File
@@ -40,7 +40,7 @@ static char * const rcsid =
extern int patlock;
char errmsg[MAXPATHLEN + 40] = "";
char errmsg[PATH_MAX + 40] = "";
/* get_compiled_pattern: return pointer to compiled pattern from command
buffer */
+1
View File
@@ -3,5 +3,6 @@
PROG= expr
SRCS= expr.y
YFLAGS=
WARNS?= 2
.include <bsd.prog.mk>
+14 -14
View File
@@ -42,7 +42,7 @@
.Sh DESCRIPTION
The
.Nm
utility evaluates
utility evaluates
.Ar expression
and writes the result on standard output.
.Pp
@@ -55,8 +55,8 @@ Operators are listed below in order of increasing precedence.
Operators with equal precedence are grouped within { } symbols.
.Bl -tag -width indent
.It Ar expr1 Li | Ar expr2
Return the evaluation of
.Ar expr1
Return the evaluation of
.Ar expr1
if it is neither an empty string nor zero;
otherwise, returns the evaluation of
.Ar expr2 .
@@ -66,7 +66,7 @@ Return the evaluation of
if neither expression evaluates to an empty string or zero;
otherwise, returns zero.
.It Ar expr1 Li "{=, >, >=, <, <=, !=}" Ar expr2
Return the results of integer comparison if both arguments are integers;
Return the results of integer comparison if both arguments are integers;
otherwise, returns the results of string comparison using the locale-specific
collation sequence.
The result of each comparison is 1 if the specified relation is true,
@@ -76,23 +76,23 @@ Return the results of addition or subtraction of integer-valued arguments.
.It Ar expr1 Li "{*, /, %}" Ar expr2
Return the results of multiplication, integer division, or remainder of integer-valued arguments.
.It Ar expr1 Li : Ar expr2
The
The
.Dq \&:
operator matches
.Ar expr1
against
operator matches
.Ar expr1
against
.Ar expr2 ,
which must be a regular expression. The regular expression is anchored
to the beginning of the string with an implicit
to the beginning of the string with an implicit
.Dq ^ .
.Pp
If the match succeeds and the pattern contains at least one regular
expression subexpression
.Dq "\e(...\e)" ,
the string corresponding to
expression subexpression
.Dq "\e(...\e)" ,
the string corresponding to
.Dq "\e1"
is returned;
otherwise the matching operator returns the number of characters matched.
otherwise the matching operator returns the number of characters matched.
If the match fails and the pattern contains a regular expression subexpression
the null string is returned;
otherwise 0.
@@ -101,7 +101,7 @@ otherwise 0.
Parentheses are used for grouping in the usual manner.
.Sh EXAMPLES
.Bl -enum
.It
.It
The following example adds one to the variable a.
.Dl a=`expr $a + 1`
.It
+42 -27
View File
@@ -31,20 +31,36 @@ struct val {
} ;
struct val *result;
struct val *op_or ();
struct val *op_and ();
struct val *op_eq ();
struct val *op_gt ();
struct val *op_lt ();
struct val *op_ge ();
struct val *op_le ();
struct val *op_ne ();
struct val *op_plus ();
struct val *op_minus ();
struct val *op_times ();
struct val *op_div ();
struct val *op_rem ();
struct val *op_colon ();
int chk_div __P((quad_t, quad_t));
int chk_minus __P((quad_t, quad_t, quad_t));
int chk_plus __P((quad_t, quad_t, quad_t));
int chk_times __P((quad_t, quad_t, quad_t));
void free_value __P((struct val *));
int is_zero_or_null __P((struct val *));
int isstring __P((struct val *));
int main __P((int, char **));
struct val *make_integer __P((quad_t));
struct val *make_str __P((const char *));
struct val *op_and __P((struct val *, struct val *));
struct val *op_colon __P((struct val *, struct val *));
struct val *op_div __P((struct val *, struct val *));
struct val *op_eq __P((struct val *, struct val *));
struct val *op_ge __P((struct val *, struct val *));
struct val *op_gt __P((struct val *, struct val *));
struct val *op_le __P((struct val *, struct val *));
struct val *op_lt __P((struct val *, struct val *));
struct val *op_minus __P((struct val *, struct val *));
struct val *op_ne __P((struct val *, struct val *));
struct val *op_or __P((struct val *, struct val *));
struct val *op_plus __P((struct val *, struct val *));
struct val *op_rem __P((struct val *, struct val *));
struct val *op_times __P((struct val *, struct val *));
quad_t to_integer __P((struct val *));
void to_string __P((struct val *));
int yyerror __P((const char *));
int yylex __P((void));
int yyparse __P((void));
char **av;
%}
@@ -107,10 +123,11 @@ quad_t i;
struct val *
make_str (s)
char *s;
const char *s;
{
struct val *vp;
int i, isint;
size_t i;
int isint;
vp = (struct val *) malloc (sizeof (*vp));
if (vp == NULL || ((vp->u.s = strdup (s)) == NULL)) {
@@ -176,12 +193,12 @@ struct val *vp;
if (vp->type == string || vp->type == numeric_string)
return;
tmp = malloc (25);
tmp = malloc ((size_t)25);
if (tmp == NULL) {
errx (2, "malloc() failed");
}
sprintf (tmp, "%qd", vp->u.i);
sprintf (tmp, "%lld", (long long)vp->u.i);
vp->type = string;
vp->u.s = tmp;
}
@@ -233,11 +250,9 @@ struct val *vp;
/* NOTREACHED */
}
int yyparse ();
int
main (argc, argv)
int argc;
int argc __unused;
char **argv;
{
setlocale (LC_ALL, "");
@@ -247,7 +262,7 @@ char **argv;
yyparse ();
if (result->type == integer)
printf ("%qd\n", result->u.i);
printf ("%lld\n", (long long)result->u.i);
else
printf ("%s\n", result->u.s);
@@ -256,7 +271,7 @@ char **argv;
int
yyerror (s)
char *s;
const char *s __unused;
{
errx (2, "syntax error");
}
@@ -515,8 +530,8 @@ struct val *a, *b;
}
int
chk_div (a, b, r)
quad_t a, b, r;
chk_div (a, b)
quad_t a, b;
{
/* div by zero has been taken care of before */
/* only QUAD_MIN / -1 causes overflow */
@@ -541,7 +556,7 @@ struct val *a, *b;
}
r = make_integer (/*(quad_t)*/(a->u.i / b->u.i));
if (chk_div (a->u.i, b->u.i, r->u.i)) {
if (chk_div (a->u.i, b->u.i)) {
errx (2, "overflow");
}
free_value (a);
@@ -592,7 +607,7 @@ struct val *a, *b;
/* compare string against pattern */
/* remember that patterns are anchored to the beginning of the line */
if (regexec(&rp, a->u.s, 2, rm, 0) == 0 && rm[0].rm_so == 0) {
if (regexec(&rp, a->u.s, (size_t)2, rm, 0) == 0 && rm[0].rm_so == 0) {
if (rm[1].rm_so >= 0) {
*(a->u.s + rm[1].rm_eo) = '\0';
v = make_str (a->u.s + rm[1].rm_so);
+2
View File
@@ -3,4 +3,6 @@
PROG= hostname
WARNS?= 2
.include <bsd.prog.mk>
+2 -2
View File
@@ -34,7 +34,7 @@
.\"
.Dd April 28, 1995
.Dt HOSTNAME 1
.Os BSD 4.2
.Os
.Sh NAME
.Nm hostname
.Nd set or print name of current host system
@@ -62,7 +62,7 @@ Trim off any domain information from the printed
name.
.El
.Sh SEE ALSO
.Xr gethostname 3 ,
.Xr gethostname 3 ,
.Xr rc.conf 5
.Sh HISTORY
The
+3 -2
View File
@@ -53,6 +53,7 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
int main __P((int, char *[]));
void usage __P((void));
int
@@ -80,10 +81,10 @@ main(argc,argv)
usage();
if (*argv) {
if (sethostname(*argv, strlen(*argv)))
if (sethostname(*argv, (int)strlen(*argv)))
err(1, "sethostname");
} else {
if (gethostname(hostname, sizeof(hostname)))
if (gethostname(hostname, (int)sizeof(hostname)))
err(1, "gethostname");
if (sflag && (p = strchr(hostname, '.')))
*p = '\0';
+2
View File
@@ -3,4 +3,6 @@
PROG= kill
WARNS?= 2
.include <bsd.prog.mk>
+2 -1
View File
@@ -53,6 +53,7 @@ static const char rcsid[] =
#include <stdlib.h>
#include <string.h>
int main __P((int, char *[]));
void nosig __P((char *));
void printsignals __P((FILE *));
int signame_to_signum __P((char *));
@@ -144,7 +145,7 @@ signame_to_signum(sig)
{
int n;
if (!strncasecmp(sig, "sig", 3))
if (!strncasecmp(sig, "sig", (size_t)3))
sig += 3;
for (n = 1; n < NSIG; n++) {
if (!strcasecmp(sys_signame[n], sig))
+3 -2
View File
@@ -2,10 +2,11 @@
# $FreeBSD$
PROG= ln
MAN1= ln.1
MAN7= symlink.7
MAN= ln.1 symlink.7
LINKS= ${BINDIR}/ln ${BINDIR}/link
MLINKS= ln.1 link.1
CFLAGS?= 2
.include <bsd.prog.mk>
+35 -10
View File
@@ -37,18 +37,18 @@
.\"
.Dd December 30, 1993
.Dt LN 1
.Os BSD 4
.Os
.Sh NAME
.Nm ln ,
.Nm link
.Nd make links
.Sh SYNOPSIS
.Nm
.Op Fl fisv
.Op Fl fhinsv
.Ar source_file
.Op target_file
.Nm
.Op Fl fisv
.Op Fl fhinsv
.Ar source_file ...
.Op target_dir
.Nm link
@@ -79,12 +79,20 @@ then unlink it so that the link may occur.
option overrides any previous
.Fl i
options.)
.It Fl h
If the
.Ar target_file
or
.Ar target_dir
is a symbolic link, do not follow it. This is most useful with the
.Fl f
option, to replace a symlink which may point to a directory.
.It Fl i
Cause
.Nm
to write a prompt to standard error if the target file exists.
If the response from the standard input begins with the character
.Sq Li y
.Sq Li y
or
.Sq Li Y ,
then unlink the target file so that the link may occur.
@@ -94,6 +102,12 @@ Otherwise, do not attempt the link.
option overrides any previous
.Fl f
options.)
.It Fl n
Same as
.Fl h ,
for compatibility with other
.Nm
implementations.
.It Fl s
Create a symbolic link.
.It Fl v
@@ -163,17 +177,28 @@ operation using the two passed arguments.
.Xr symlink 2 ,
.Xr symlink 7
.Sh COMPATIBILITY
The
.Fl i
The
.Fl h ,
.Fl i ,
.Fl n
and
.Fl v
options are non-standard and their use in scripts is not recommended.
They are provided solely for compatibility with other
.Nm
implementations.
.Sh STANDARDS
The
.Nm
utility conforms to
.St -p1003.2-92 .
.Pp
The simplified
.Nm link
command conforms to
.St -susv2 .
.Sh HISTORY
An
.Nm
command appeared in
.At v1 .
The simplified
.Nm link
command conforms to
.St -susv2 .
+33 -12
View File
@@ -50,12 +50,14 @@ static const char rcsid[] =
#include <err.h>
#include <errno.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
int fflag; /* Unlink existing files. */
int hflag; /* Check new name for symlink first. */
int iflag; /* Interactive mode. */
int sflag; /* Symbolic, not hard, link. */
int vflag; /* Verbose output. */
@@ -63,7 +65,8 @@ int vflag; /* Verbose output. */
int (*linkf) __P((const char *, const char *));
char linkch;
int linkit __P((char *, char *, int));
int linkit __P((const char *, const char *, int));
int main __P((int, char *[]));
void usage __P((void));
int
@@ -72,8 +75,8 @@ main(argc, argv)
char *argv[];
{
struct stat sb;
int ch, exitval;
char *p, *sourcedir;
int ch, exitval;
/*
* Test for the special case where the utility is called as
@@ -92,12 +95,16 @@ main(argc, argv)
usage();
}
while ((ch = getopt(argc, argv, "fisv")) != -1)
while ((ch = getopt(argc, argv, "fhinsv")) != -1)
switch (ch) {
case 'f':
fflag = 1;
iflag = 0;
break;
case 'h':
case 'n':
hflag = 1;
break;
case 'i':
iflag = 1;
fflag = 0;
@@ -122,6 +129,7 @@ main(argc, argv)
switch(argc) {
case 0:
usage();
/* NOTREACHED */
case 1: /* ln target */
exit(linkit(argv[0], ".", 1));
case 2: /* ln target source */
@@ -129,6 +137,14 @@ main(argc, argv)
}
/* ln target1 target2 directory */
sourcedir = argv[argc - 1];
if (hflag && lstat(sourcedir, &sb) == 0 && S_ISLNK(sb.st_mode)) {
/*
* We were asked not to follow symlinks, but found one at
* the target--simulate "not a directory" error
*/
errno = ENOTDIR;
err(1, "%s", sourcedir);
}
if (stat(sourcedir, &sb))
err(1, "%s", sourcedir);
if (!S_ISDIR(sb.st_mode))
@@ -140,12 +156,13 @@ main(argc, argv)
int
linkit(target, source, isdir)
char *target, *source;
const char *target, *source;
int isdir;
{
struct stat sb;
const char *p;
int ch, exists, first;
char *p, path[MAXPATHLEN];
char path[PATH_MAX];
if (!sflag) {
/* If target doesn't exist, quit now. */
@@ -161,18 +178,22 @@ linkit(target, source, isdir)
}
}
/* If the source is a directory, append the target's name. */
if (isdir || ((exists = !stat(source, &sb)) && S_ISDIR(sb.st_mode))) {
/*
* If the source is a directory (and not a symlink if hflag),
* append the target's name.
*/
if (isdir ||
(lstat(source, &sb) == 0 && S_ISDIR(sb.st_mode)) ||
(!hflag && stat(source, &sb) == 0 && S_ISDIR(sb.st_mode))) {
if ((p = strrchr(target, '/')) == NULL)
p = target;
else
++p;
(void)snprintf(path, sizeof(path), "%s/%s", source, p);
source = path;
exists = !lstat(source, &sb);
} else
exists = !lstat(source, &sb);
}
exists = !lstat(source, &sb);
/*
* If the file exists, then unlink it forcibly if -f was specified
* and interactively if -i was specified.
@@ -214,8 +235,8 @@ void
usage()
{
(void)fprintf(stderr, "%s\n%s\n%s\n",
"usage: ln [-fisv] file1 file2",
" ln [-fisv] file ... directory",
"usage: ln [-fhinsv] file1 file2",
" ln [-fhinsv] file ... directory",
" link file1 file2");
exit(1);
}
+10 -6
View File
@@ -34,7 +34,7 @@
.\"
.Dd March 31, 1994
.Dt SYMLINK 7
.Os BSD 4
.Os
.Sh NAME
.Nm symlink
.Nd symbolic link handling
@@ -135,7 +135,9 @@ permissions, are not used by the system and cannot be changed.
.Pp
The
.Bx 4.4
system differs from historical 4BSD systems in that the system call
system differs from historical
.Bx 4
systems in that the system call
.Xr chown 2
has been changed to follow symbolic links.
The
@@ -149,7 +151,7 @@ name arguments, to commands which are not traversing a file tree.
.Pp
Except as noted below, commands follow symbolic links named as command
line arguments.
For example, if there were a symbolic link
For example, if there were a symbolic link
.Dq Li slink
which pointed to a file named
.Dq Li afile ,
@@ -230,7 +232,7 @@ command is also an exception to this rule.
The
.Xr file 1
command does not follow symbolic links named as argument by default.
The
The
.Xr file 1
command does follow symbolic links named as argument if
.Fl L
@@ -238,7 +240,9 @@ option is specified.
.Pp
The
.Bx 4.4
system differs from historical 4BSD systems in that the
system differs from historical
.Bx 4
systems in that the
.Nm chown
and
.Nm chgrp
@@ -303,7 +307,7 @@ walk (where symbolic links referencing directories are followed).
As consistently as possible, you can make commands doing a file tree
walk follow any symbolic links named on the command line, regardless
of the type of file they reference, by specifying the
.Fl H
.Fl H
(for
.Dq half\-logical )
flag.
+25 -11
View File
@@ -126,7 +126,7 @@ Display whiteouts when scanning directories.
Include directory entries whose names begin with a
dot (.).
.It Fl b
As
As
.Fl B ,
but use C escape codes whenever possible.
.It Fl c
@@ -137,7 +137,7 @@ Directories are listed as plain files (not searched recursively).
Output is not sorted.
.It Fl g
This option is deprecated and is only available for compatibility
with
with
.Bx 4.3 ;
it was used to display the group name in the long
.Pq Fl l
@@ -145,7 +145,7 @@ format output.
.It Fl i
For each file, print the file's file serial number (inode number).
.It Fl k
If the
If the
.Fl s
option is specified, print the file size allocation in kilobytes,
not blocks. This option overrides the environment variable BLOCKSIZE.
@@ -358,10 +358,23 @@ or
.Xr sticky 8 . )
.El
.El
.Sh DIAGNOSTICS
The
.Sh EXAMPLES
The following is how to do an
.Nm
utility exits 0 on success, and >0 if an error occurs.
listing sorted by size (and shows why
.Nm
does not need a separate option for this):
.Pp
.Dl "ls -l | sort -n +4"
.Pp
Additionally, the
.Fl r
flag to
.Xr sort 1
may be used
to get the results sorted from largest to smallest (a reverse sort).
.Sh DIAGNOSTICS
.Ex -std
.Sh ENVIRONMENT
The following environment variables affect the execution of
.Nm :
@@ -389,12 +402,12 @@ capabilities.
The default
.Dq cons25
console has the proper capabilities,
however if you want to display the colors in an
.Xr xterm 1
but to display the colors in an
.Xr xterm 1 ,
for example,
you need to set your
the
.Ev TERM
variable to
variable must be set to
.Dq xterm-color .
Other terminal types may require similar adjustments. Colorization
is silently disabled if the output isn't directed to a terminal
@@ -467,7 +480,7 @@ Note that the above are standard
.Tn ANSI
colors.
The actual display may differ
depending on the color capabilities of your terminal.
depending on the color capabilities of the terminal in use.
.Pp
The order of the attributes are as follows:
.Pp
@@ -525,6 +538,7 @@ specification.
.Sh SEE ALSO
.Xr chflags 1 ,
.Xr chmod 1 ,
.Xr sort 1 ,
.Xr xterm 1 ,
.Xr termcap 5 ,
.Xr symlink 7 ,
+1
View File
@@ -2,5 +2,6 @@
# $FreeBSD$
PROG= mkdir
WARNS?= 2
.include <bsd.prog.mk>
+3 -3
View File
@@ -73,6 +73,8 @@ are interpreted relative to an initial mode of
Create intermediate directories as required.
If this option is not specified, the full path prefix of each
operand must already exist.
On the other hand, with this option specified, no error will
be reported if a directory given as an operand already exists.
Intermediate directories are created with permission bits of
.Li rwxrwxrwx (\&0777)
as modified by the current umask, plus write and search
@@ -83,9 +85,7 @@ Be verbose when creating directories, listing them as they are created.
.Pp
The user must have write permission in the parent directory.
.Sh DIAGNOSTICS
The
.Nm
utility exits 0 on success, and >0 if an error occurs.
.Ex -std
.Sh SEE ALSO
.Xr rmdir 1
.Sh COMPATIBILITY
+1
View File
@@ -58,6 +58,7 @@ static const char rcsid[] =
#include <unistd.h>
int build __P((char *, mode_t));
int main __P((int, char *[]));
void usage __P((void));
int vflag;
+1
View File
@@ -2,5 +2,6 @@
# $FreeBSD$
PROG= mv
WARNS?= 2
.include <bsd.prog.mk>
+2 -4
View File
@@ -88,7 +88,7 @@ Cause
to write a prompt to standard error before moving a file that would
overwrite an existing file.
If the response from the standard input begins with the character
.Sq Li y
.Sq Li y
or
.Sq Li Y ,
the move is attempted.
@@ -129,9 +129,7 @@ rm -f destination_path && \e
\trm -rf source_file
.Ed
.Sh DIAGNOSTICS
The
.Nm
utility exits 0 on success, and >0 if an error occurs.
.Ex -std
.Sh SEE ALSO
.Xr cp 1 ,
.Xr rm 1 ,
+15 -12
View File
@@ -57,6 +57,7 @@ static const char rcsid[] =
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -70,6 +71,7 @@ int fflg, iflg, vflg;
int copy __P((char *, char *));
int do_move __P((char *, char *));
int fastcopy __P((char *, char *, struct stat *));
int main __P((int, char *[]));
void usage __P((void));
int
@@ -81,7 +83,7 @@ main(argc, argv)
register char *p, *endp;
struct stat sb;
int ch;
char path[MAXPATHLEN];
char path[PATH_MAX];
while ((ch = getopt(argc, argv, "fiv")) != -1)
switch (ch) {
@@ -136,11 +138,11 @@ main(argc, argv)
while (p != *argv && p[-1] != '/')
--p;
if ((baselen + (len = strlen(p))) >= MAXPATHLEN) {
if ((baselen + (len = strlen(p))) >= PATH_MAX) {
warnx("%s: destination pathname too long", *argv);
rval = 1;
} else {
memmove(endp, p, len + 1);
memmove(endp, p, (size_t)len + 1);
if (do_move(*argv, path))
rval = 1;
}
@@ -178,8 +180,8 @@ do_move(from, to)
strmode(sb.st_mode, modep);
(void)fprintf(stderr, "override %s%s%s/%s for %s? %s",
modep + 1, modep[9] == ' ' ? "" : " ",
user_from_uid(sb.st_uid, 0),
group_from_gid(sb.st_gid, 0), to, YESNO);
user_from_uid((unsigned long)sb.st_uid, 0),
group_from_gid((unsigned long)sb.st_gid, 0), to, YESNO);
ask = 1;
}
if (ask) {
@@ -200,7 +202,7 @@ do_move(from, to)
if (errno == EXDEV) {
struct statfs sfs;
char path[MAXPATHLEN];
char path[PATH_MAX];
/* Can't mv(1) a mount point. */
if (realpath(from, path) == NULL) {
@@ -247,7 +249,7 @@ fastcopy(from, to, sbp)
if (blen < sbp->st_blksize) {
if (bp != NULL)
free(bp);
if ((bp = malloc(sbp->st_blksize)) == NULL) {
if ((bp = malloc((size_t)sbp->st_blksize)) == NULL) {
blen = 0;
warnx("malloc failed");
return (1);
@@ -262,8 +264,8 @@ fastcopy(from, to, sbp)
(void)close(from_fd);
return (1);
}
while ((nread = read(from_fd, bp, blen)) > 0)
if (write(to_fd, bp, nread) != nread) {
while ((nread = read(from_fd, bp, (size_t)blen)) > 0)
if (write(to_fd, bp, (size_t)nread) != nread) {
warn("%s", to);
goto err;
}
@@ -298,7 +300,7 @@ err: if (unlink(to))
* on a file that we copied, i.e., that we didn't create.)
*/
errno = 0;
if (fchflags(to_fd, sbp->st_flags))
if (fchflags(to_fd, (u_long)sbp->st_flags))
if (errno != EOPNOTSUPP || sbp->st_flags != 0)
warn("%s: set flags (was: 0%07o)", to, sbp->st_flags);
@@ -329,7 +331,8 @@ copy(from, to)
int pid, status;
if ((pid = fork()) == 0) {
execl(_PATH_CP, "mv", vflg ? "-PRpv" : "-PRp", from, to, NULL);
execl(_PATH_CP, "mv", vflg ? "-PRpv" : "-PRp", from, to,
(char *)NULL);
warn("%s", _PATH_CP);
_exit(1);
}
@@ -347,7 +350,7 @@ copy(from, to)
return (1);
}
if (!(pid = vfork())) {
execl(_PATH_RM, "mv", "-rf", from, NULL);
execl(_PATH_RM, "mv", "-rf", from, (char *)NULL);
warn("%s", _PATH_RM);
_exit(1);
}
+6 -3
View File
@@ -26,8 +26,11 @@
# Pax may not compile if this not (un)defined properly.
PROG= pax
SRCS= ar_io.c ar_subs.c buf_subs.c cache.c cpio.c file_subs.c ftree.c\
gen_subs.c options.c pat_rep.c pax.c sel_subs.c tables.c tar.c\
tty_subs.c
SRCS= ar_io.c ar_subs.c buf_subs.c cache.c cpio.c file_subs.c ftree.c \
gen_subs.c getoldopt.c options.c pat_rep.c pax.c sel_subs.c \
tables.c tar.c tty_subs.c
#XXX NOTYET
#MAN= pax.1 tar.1 cpio.1
#LINKS= ${BINDIR}/pax ${BINDIR}/tar ${BINDIR}/pax ${BINDIR}/cpio
.include <bsd.prog.mk>
+149 -85
View File
@@ -44,17 +44,20 @@ static const char rcsid[] =
#endif /* not lint */
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/mtio.h>
#include <signal.h>
#include <string.h>
#include <fcntl.h>
#include <unistd.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <signal.h>
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include "pax.h"
#include "options.h"
#include "extern.h"
/*
@@ -78,10 +81,13 @@ static struct stat arsb; /* stat of archive device at open */
static int invld_rec; /* tape has out of spec record size */
static int wr_trail = 1; /* trailer was rewritten in append */
static int can_unlnk = 0; /* do we unlink null archives? */
char *arcname; /* printable name of archive */
char *arcname; /* printable name of archive */
const char *gzip_program; /* name of gzip program */
static pid_t zpid = -1; /* pid of child process */
static int get_phys __P((void));
extern sigset_t s_mask;
static void ar_start_gzip __P((int, const char *, int));
/*
* ar_open()
@@ -92,7 +98,7 @@ extern sigset_t s_mask;
* -1 on failure, 0 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
ar_open(char *name)
#else
@@ -101,7 +107,7 @@ ar_open(name)
char *name;
#endif
{
struct mtget mb;
struct mtget mb;
if (arfd != -1)
(void)close(arfd);
@@ -120,23 +126,27 @@ ar_open(name)
arfd = STDIN_FILENO;
arcname = STDN;
} else if ((arfd = open(name, EXT_MODE, DMOD)) < 0)
sys_warn(0, errno, "Failed open to read on %s", name);
syswarn(0, errno, "Failed open to read on %s", name);
if (arfd != -1 && gzip_program != NULL)
ar_start_gzip(arfd, gzip_program, 0);
break;
case ARCHIVE:
if (name == NULL) {
arfd = STDOUT_FILENO;
arcname = STDO;
} else if ((arfd = open(name, AR_MODE, DMOD)) < 0)
sys_warn(0, errno, "Failed open to write on %s", name);
syswarn(0, errno, "Failed open to write on %s", name);
else
can_unlnk = 1;
if (arfd != -1 && gzip_program != NULL)
ar_start_gzip(arfd, gzip_program, 1);
break;
case APPND:
if (name == NULL) {
arfd = STDOUT_FILENO;
arcname = STDO;
} else if ((arfd = open(name, APP_MODE, DMOD)) < 0)
sys_warn(0, errno, "Failed open to read/write on %s",
syswarn(0, errno, "Failed open to read/write on %s",
name);
break;
case COPY:
@@ -150,18 +160,21 @@ ar_open(name)
if (arfd < 0)
return(-1);
if (chdname != NULL)
if (chdir(chdname) != 0)
syswarn(1, errno, "Failed chdir to %s", chdname);
/*
* set up is based on device type
*/
if (fstat(arfd, &arsb) < 0) {
sys_warn(0, errno, "Failed stat on %s", arcname);
syswarn(0, errno, "Failed stat on %s", arcname);
(void)close(arfd);
arfd = -1;
can_unlnk = 0;
return(-1);
}
if (S_ISDIR(arsb.st_mode)) {
pax_warn(0, "Cannot write an archive on top of a directory %s",
paxwarn(0, "Cannot write an archive on top of a directory %s",
arcname);
(void)close(arfd);
arfd = -1;
@@ -290,7 +303,7 @@ ar_open(name)
* ar_close()
* closes archive device, increments volume number, and prints i/o summary
*/
#if __STDC__
#ifdef __STDC__
void
ar_close(void)
#else
@@ -298,18 +311,12 @@ void
ar_close()
#endif
{
FILE *outf;
if (arfd < 0) {
did_io = io_ok = flcnt = 0;
return;
}
if (act == LIST)
outf = stdout;
else
outf = stderr;
/*
* Close archive file. This may take a LONG while on tapes (we may be
* forced to wait for the rewind to complete) so tell the user what is
@@ -318,11 +325,11 @@ ar_close()
*/
if (vflag && (artyp == ISTAPE)) {
if (vfpart)
(void)putc('\n', outf);
(void)fprintf(outf,
(void)putc('\n', listf);
(void)fprintf(listf,
"%s: Waiting for tape drive close to complete...",
argv0);
(void)fflush(outf);
(void)fflush(listf);
}
/*
@@ -335,12 +342,22 @@ ar_close()
can_unlnk = 0;
}
/*
* for a quick extract/list, pax frequently exits before the child
* process is done
*/
if ((act == LIST || act == EXTRACT) && nflag && zpid > 0) {
int status;
kill(zpid, SIGINT);
waitpid(zpid, &status, 0);
}
(void)close(arfd);
if (vflag && (artyp == ISTAPE)) {
(void)fputs("done.\n", outf);
(void)fputs("done.\n", listf);
vfpart = 0;
(void)fflush(outf);
(void)fflush(listf);
}
arfd = -1;
@@ -366,7 +383,7 @@ ar_close()
* Print out a summary of I/O for this archive volume.
*/
if (vfpart) {
(void)putc('\n', outf);
(void)putc('\n', listf);
vfpart = 0;
}
@@ -377,24 +394,27 @@ ar_close()
*/
if (frmt == NULL) {
# ifdef NET2_STAT
(void)fprintf(outf, "%s: unknown format, %lu bytes skipped.\n",
(void)fprintf(listf, "%s: unknown format, %lu bytes skipped.\n",
# else
(void)fprintf(outf, "%s: unknown format, %qu bytes skipped.\n",
(void)fprintf(listf, "%s: unknown format, %qu bytes skipped.\n",
# endif
argv0, rdcnt);
(void)fflush(outf);
(void)fflush(listf);
flcnt = 0;
return;
}
(void)fprintf(outf,
if (strcmp(NM_CPIO, argv0) == 0)
(void)fprintf(listf, "%qu blocks\n", (rdcnt ? rdcnt : wrcnt) / 5120);
else if (strcmp(NM_TAR, argv0) != 0)
(void)fprintf(listf,
# ifdef NET2_STAT
"%s: %s vol %d, %lu files, %lu bytes read, %lu bytes written.\n",
"%s: %s vol %d, %lu files, %lu bytes read, %lu bytes written.\n",
# else
"%s: %s vol %d, %lu files, %qu bytes read, %qu bytes written.\n",
"%s: %s vol %d, %lu files, %qu bytes read, %qu bytes written.\n",
# endif
argv0, frmt->name, arvol-1, flcnt, rdcnt, wrcnt);
(void)fflush(outf);
argv0, frmt->name, arvol-1, flcnt, rdcnt, wrcnt);
(void)fflush(listf);
flcnt = 0;
}
@@ -405,7 +425,7 @@ ar_close()
* other side of the pipe from getting a SIGPIPE (pax will stop
* reading an archive once a format dependent trailer is detected).
*/
#if __STDC__
#ifdef __STDC__
void
ar_drain(void)
#else
@@ -442,7 +462,7 @@ ar_drain()
* 0 if all ready to write, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
ar_set_wr(void)
#else
@@ -470,7 +490,7 @@ ar_set_wr()
*/
if (((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) ||
(ftruncate(arfd, cpos) < 0)) {
sys_warn(1, errno, "Unable to truncate archive file");
syswarn(1, errno, "Unable to truncate archive file");
return(-1);
}
return(0);
@@ -485,7 +505,7 @@ ar_set_wr()
* 0 if we can append, -1 otherwise.
*/
#if __STDC__
#ifdef __STDC__
int
ar_app_ok(void)
#else
@@ -494,13 +514,13 @@ ar_app_ok()
#endif
{
if (artyp == ISPIPE) {
pax_warn(1, "Cannot append to an archive obtained from a pipe.");
paxwarn(1, "Cannot append to an archive obtained from a pipe.");
return(-1);
}
if (!invld_rec)
return(0);
pax_warn(1,"Cannot append, device record size %d does not support %s spec",
paxwarn(1,"Cannot append, device record size %d does not support %s spec",
rdblksz, argv0);
return(-1);
}
@@ -514,7 +534,7 @@ ar_app_ok()
* Number of bytes in buffer. 0 for end of file, -1 for a read error.
*/
#if __STDC__
#ifdef __STDC__
int
ar_read(register char *buf, register int cnt)
#else
@@ -587,9 +607,9 @@ ar_read(buf, cnt)
*/
lstrval = res;
if (res < 0)
sys_warn(1, errno, "Failed read on archive volume %d", arvol);
syswarn(1, errno, "Failed read on archive volume %d", arvol);
else
pax_warn(0, "End of archive volume %d reached", arvol);
paxwarn(0, "End of archive volume %d reached", arvol);
return(res);
}
@@ -604,7 +624,7 @@ ar_read(buf, cnt)
* error in the archive occured.
*/
#if __STDC__
#ifdef __STDC__
int
ar_write(register char *buf, register int bsz)
#else
@@ -668,7 +688,7 @@ ar_write(buf, bsz)
if (res >= 0)
break;
if (errno == EACCES) {
pax_warn(0, "Write failed, archive is write protected.");
paxwarn(0, "Write failed, archive is write protected.");
res = lstrval = 0;
return(0);
}
@@ -706,18 +726,18 @@ ar_write(buf, bsz)
* must quit right away.
*/
if (!wr_trail && (res <= 0)) {
pax_warn(1,"Unable to append, trailer re-write failed. Quitting.");
paxwarn(1,"Unable to append, trailer re-write failed. Quitting.");
return(res);
}
if (res == 0)
pax_warn(0, "End of archive volume %d reached", arvol);
paxwarn(0, "End of archive volume %d reached", arvol);
else if (res < 0)
sys_warn(1, errno, "Failed write to archive volume: %d", arvol);
syswarn(1, errno, "Failed write to archive volume: %d", arvol);
else if (!frmt->blkalgn || ((res % frmt->blkalgn) == 0))
pax_warn(0,"WARNING: partial archive write. Archive MAY BE FLAWED");
paxwarn(0,"WARNING: partial archive write. Archive MAY BE FLAWED");
else
pax_warn(1,"WARNING: partial archive write. Archive IS FLAWED");
paxwarn(1,"WARNING: partial archive write. Archive IS FLAWED");
return(res);
}
@@ -729,7 +749,7 @@ ar_write(buf, bsz)
* 0 when ok to try i/o again, -1 otherwise.
*/
#if __STDC__
#ifdef __STDC__
int
ar_rdsync(void)
#else
@@ -740,7 +760,7 @@ ar_rdsync()
long fsbz;
off_t cpos;
off_t mpos;
struct mtop mb;
struct mtop mb;
/*
* Fail resync attempts at user request (done) or this is going to be
@@ -751,7 +771,7 @@ ar_rdsync()
return(-1);
if ((act == APPND) || (act == ARCHIVE)) {
pax_warn(1, "Cannot allow updates to an archive with flaws.");
paxwarn(1, "Cannot allow updates to an archive with flaws.");
return(-1);
}
if (io_ok)
@@ -803,10 +823,10 @@ ar_rdsync()
break;
}
if (lstrval <= 0) {
pax_warn(1, "Unable to recover from an archive read failure.");
paxwarn(1, "Unable to recover from an archive read failure.");
return(-1);
}
pax_warn(0, "Attempting to recover from an archive read failure.");
paxwarn(0, "Attempting to recover from an archive read failure.");
return(0);
}
@@ -820,7 +840,7 @@ ar_rdsync()
* partial move (the amount moved is in skipped)
*/
#if __STDC__
#ifdef __STDC__
int
ar_fow(off_t sksz, off_t *skipped)
#else
@@ -870,7 +890,7 @@ ar_fow(sksz, skipped)
if (lseek(arfd, mpos, SEEK_SET) >= 0)
return(0);
}
sys_warn(1, errno, "Forward positioning operation on archive failed");
syswarn(1, errno, "Forward positioning operation on archive failed");
lstrval = -1;
return(-1);
}
@@ -886,7 +906,7 @@ ar_fow(sksz, skipped)
* 0 if moved the requested distance, -1 on complete failure
*/
#if __STDC__
#ifdef __STDC__
int
ar_rev(off_t sksz)
#else
@@ -896,7 +916,7 @@ ar_rev(sksz)
#endif
{
off_t cpos;
struct mtop mb;
struct mtop mb;
register int phyblk;
/*
@@ -912,7 +932,7 @@ ar_rev(sksz)
/*
* cannot go backwards on these critters
*/
pax_warn(1, "Reverse positioning on pipes is not supported.");
paxwarn(1, "Reverse positioning on pipes is not supported.");
lstrval = -1;
return(-1);
case ISREG:
@@ -930,7 +950,7 @@ ar_rev(sksz)
* First we figure out where we are in the archive.
*/
if ((cpos = lseek(arfd, (off_t)0L, SEEK_CUR)) < 0) {
sys_warn(1, errno,
syswarn(1, errno,
"Unable to obtain current archive byte offset");
lstrval = -1;
return(-1);
@@ -948,14 +968,14 @@ ar_rev(sksz)
/*
* this should never happen
*/
pax_warn(1,"Reverse position on previous volume.");
paxwarn(1,"Reverse position on previous volume.");
lstrval = -1;
return(-1);
}
cpos = (off_t)0L;
}
if (lseek(arfd, cpos, SEEK_SET) < 0) {
sys_warn(1, errno, "Unable to seek archive backwards");
syswarn(1, errno, "Unable to seek archive backwards");
lstrval = -1;
return(-1);
}
@@ -990,7 +1010,7 @@ ar_rev(sksz)
* ok we have to move. Make sure the tape drive can do it.
*/
if (sksz % phyblk) {
pax_warn(1,
paxwarn(1,
"Tape drive unable to backspace requested amount");
lstrval = -1;
return(-1);
@@ -1002,7 +1022,7 @@ ar_rev(sksz)
mb.mt_op = MTBSR;
mb.mt_count = sksz/phyblk;
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
sys_warn(1,errno, "Unable to backspace tape %d blocks.",
syswarn(1,errno, "Unable to backspace tape %d blocks.",
mb.mt_count);
lstrval = -1;
return(-1);
@@ -1024,7 +1044,7 @@ ar_rev(sksz)
* physical block size if ok (ok > 0), -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
static int
get_phys(void)
#else
@@ -1050,7 +1070,7 @@ get_phys()
while ((res = read(arfd, scbuf, sizeof(scbuf))) > 0)
padsz += res;
if (res < 0) {
sys_warn(1, errno, "Unable to locate tape filemark.");
syswarn(1, errno, "Unable to locate tape filemark.");
return(-1);
}
}
@@ -1062,7 +1082,7 @@ get_phys()
mb.mt_op = MTBSF;
mb.mt_count = 1;
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
sys_warn(1, errno, "Unable to backspace over tape filemark.");
syswarn(1, errno, "Unable to backspace over tape filemark.");
return(-1);
}
@@ -1073,11 +1093,11 @@ get_phys()
mb.mt_op = MTBSR;
mb.mt_count = 1;
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
sys_warn(1, errno, "Unable to backspace over last tape block.");
syswarn(1, errno, "Unable to backspace over last tape block.");
return(-1);
}
if ((phyblk = read(arfd, scbuf, sizeof(scbuf))) <= 0) {
sys_warn(1, errno, "Cannot determine archive tape blocksize.");
syswarn(1, errno, "Cannot determine archive tape blocksize.");
return(-1);
}
@@ -1088,13 +1108,13 @@ get_phys()
while ((res = read(arfd, scbuf, sizeof(scbuf))) > 0)
;
if (res < 0) {
sys_warn(1, errno, "Unable to locate tape filemark.");
syswarn(1, errno, "Unable to locate tape filemark.");
return(-1);
}
mb.mt_op = MTBSF;
mb.mt_count = 1;
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
sys_warn(1, errno, "Unable to backspace over tape filemark.");
syswarn(1, errno, "Unable to backspace over tape filemark.");
return(-1);
}
@@ -1114,7 +1134,7 @@ get_phys()
* never fail).
*/
if (padsz % phyblk) {
pax_warn(1, "Tape drive unable to backspace requested amount");
paxwarn(1, "Tape drive unable to backspace requested amount");
return(-1);
}
@@ -1125,7 +1145,7 @@ get_phys()
mb.mt_op = MTBSR;
mb.mt_count = padsz/phyblk;
if (ioctl(arfd, MTIOCTOP, &mb) < 0) {
sys_warn(1,errno,"Unable to backspace tape over %d pad blocks",
syswarn(1,errno,"Unable to backspace tape over %d pad blocks",
mb.mt_count);
return(-1);
}
@@ -1142,7 +1162,7 @@ get_phys()
* 0 when ready to continue, -1 when all done
*/
#if __STDC__
#ifdef __STDC__
int
ar_next(void)
#else
@@ -1160,12 +1180,12 @@ ar_next()
* also be called via a signal handler, so we must prevent a race.
*/
if (sigprocmask(SIG_BLOCK, &s_mask, &o_mask) < 0)
sys_warn(0, errno, "Unable to set signal mask");
syswarn(0, errno, "Unable to set signal mask");
ar_close();
if (sigprocmask(SIG_SETMASK, &o_mask, (sigset_t *)NULL) < 0)
sys_warn(0, errno, "Unable to restore signal mask");
if (sigprocmask(SIG_SETMASK, &o_mask, NULL) < 0)
syswarn(0, errno, "Unable to restore signal mask");
if (done || !wr_trail)
if (done || !wr_trail || strcmp(NM_TAR, argv0) == 0)
return(-1);
tty_prnt("\nATTENTION! %s archive volume change required.\n", argv0);
@@ -1256,10 +1276,10 @@ ar_next()
tty_prnt("Empty file name, try again\n");
continue;
}
if (!strcmp(buf, "..")) {
tty_prnt("Illegal file name: .. try again\n");
continue;
}
if (!strcmp(buf, "..")) {
tty_prnt("Illegal file name: .. try again\n");
continue;
}
if (strlen(buf) > PAXPATHLEN) {
tty_prnt("File name too long, try again\n");
continue;
@@ -1276,7 +1296,7 @@ ar_next()
if ((arcname = strdup(buf)) == NULL) {
done = 1;
lstrval = -1;
pax_warn(0, "Cannot save archive name.");
paxwarn(0, "Cannot save archive name.");
return(-1);
}
freeit = 1;
@@ -1287,3 +1307,47 @@ ar_next()
}
return(0);
}
/*
* ar_start_gzip()
* starts the gzip compression/decompression process as a child, using magic
* to keep the fd the same in the calling function (parent).
*/
void
ar_start_gzip(int fd, const char *gzip_program, int wr)
{
int fds[2];
char *gzip_flags;
if (pipe(fds) < 0)
err(1, "could not pipe");
zpid = fork();
if (zpid < 0)
err(1, "could not fork");
/* parent */
if (zpid) {
if (wr)
dup2(fds[1], fd);
else
dup2(fds[0], fd);
close(fds[0]);
close(fds[1]);
} else {
if (wr) {
dup2(fds[0], STDIN_FILENO);
dup2(fd, STDOUT_FILENO);
gzip_flags = "-c";
} else {
dup2(fds[1], STDOUT_FILENO);
dup2(fd, STDIN_FILENO);
gzip_flags = "-dc";
}
close(fds[0]);
close(fds[1]);
if (execlp(gzip_program, gzip_program, gzip_flags,
(char *)NULL) < 0)
err(1, "could not exec");
/* NOTREACHED */
}
}
+88 -46
View File
@@ -66,7 +66,7 @@ extern sigset_t s_mask;
* the user: list, append, read ...
*/
static char hdbuf[BLKMULT]; /* space for archive header on read */
static char hdbuf[BLKMULT]; /* space for archive header on read */
u_long flcnt; /* number of files processed */
/*
@@ -75,7 +75,7 @@ u_long flcnt; /* number of files processed */
* (no pattern matches all).
*/
#if __STDC__
#ifdef __STDC__
void
list(void)
#else
@@ -103,7 +103,7 @@ list()
if (vflag && ((uidtb_start() < 0) || (gidtb_start() < 0)))
return;
now = time((time_t *)NULL);
now = time(NULL);
/*
* step through the archive until the format says it is done
@@ -130,7 +130,7 @@ list()
if ((res = mod_name(arcn)) < 0)
break;
if (res == 0)
ls_list(arcn, now);
ls_list(arcn, now, stdout);
}
/*
@@ -146,7 +146,7 @@ list()
* the patterns supplied by the user were all matched
*/
(void)(*frmt->end_rd)();
(void)sigprocmask(SIG_BLOCK, &s_mask, (sigset_t *)NULL);
(void)sigprocmask(SIG_BLOCK, &s_mask, NULL);
ar_close();
pat_chk();
}
@@ -157,7 +157,7 @@ list()
* pattern(s) (no patterns extracts all members)
*/
#if __STDC__
#ifdef __STDC__
void
extract(void)
#else
@@ -171,6 +171,7 @@ extract()
ARCHD archd;
struct stat sb;
int fd;
time_t now;
arcn = &archd;
/*
@@ -189,6 +190,8 @@ extract()
if (iflag && (name_start() < 0))
return;
now = time(NULL);
/*
* step through each entry on the archive until the format read routine
* says it is done
@@ -276,10 +279,22 @@ extract()
}
if (vflag) {
(void)fputs(arcn->name, stderr);
vfpart = 1;
if (vflag > 1)
ls_list(arcn, now, listf);
else {
(void)fputs(arcn->name, listf);
vfpart = 1;
}
}
/*
* if required, chdir around.
*/
if ((arcn->pat != NULL) && (arcn->pat->chdname != NULL))
if (chdir(arcn->pat->chdname) != 0)
syswarn(1, errno, "Cannot chdir to %s",
arcn->pat->chdname);
/*
* all ok, extract this member based on type
*/
@@ -299,7 +314,7 @@ extract()
purg_lnk(arcn);
if (vflag && vfpart) {
(void)putc('\n', stderr);
(void)putc('\n', listf);
vfpart = 0;
}
continue;
@@ -320,11 +335,19 @@ extract()
res = (*frmt->rd_data)(arcn, fd, &cnt);
file_close(arcn, fd);
if (vflag && vfpart) {
(void)putc('\n', stderr);
(void)putc('\n', listf);
vfpart = 0;
}
if (!res)
(void)rd_skip(cnt + arcn->pad);
/*
* if required, chdir around.
*/
if ((arcn->pat != NULL) && (arcn->pat->chdname != NULL))
if (fchdir(cwdfd) != 0)
syswarn(1, errno,
"Can't fchdir to starting directory");
}
/*
@@ -333,7 +356,7 @@ extract()
* to avoid chance for multiple entry into the cleanup code.
*/
(void)(*frmt->end_rd)();
(void)sigprocmask(SIG_BLOCK, &s_mask, (sigset_t *)NULL);
(void)sigprocmask(SIG_BLOCK, &s_mask, NULL);
ar_close();
proc_dir();
pat_chk();
@@ -345,7 +368,7 @@ extract()
* previously written archive.
*/
#if __STDC__
#ifdef __STDC__
static void
wr_archive(register ARCHD *arcn, int is_app)
#else
@@ -361,6 +384,7 @@ wr_archive(arcn, is_app)
off_t cnt;
int (*wrf)();
int fd = -1;
time_t now;
/*
* if this format supports hard link storage, start up the database
@@ -388,6 +412,8 @@ wr_archive(arcn, is_app)
*/
wr_one = is_app;
now = time(NULL);
/*
* while there are files to archive, process them one at at time
*/
@@ -426,7 +452,7 @@ wr_archive(arcn, is_app)
* the link table).
*/
if ((fd = open(arcn->org_name, O_RDONLY, 0)) < 0) {
sys_warn(1,errno, "Unable to open %s to read",
syswarn(1,errno, "Unable to open %s to read",
arcn->org_name);
purg_lnk(arcn);
continue;
@@ -457,8 +483,12 @@ wr_archive(arcn, is_app)
}
if (vflag) {
(void)fputs(arcn->name, stderr);
vfpart = 1;
if (vflag > 1)
ls_list(arcn, now, listf);
else {
(void)fputs(arcn->name, listf);
vfpart = 1;
}
}
++flcnt;
@@ -477,7 +507,7 @@ wr_archive(arcn, is_app)
* so we are done messing with this file
*/
if (vflag && vfpart) {
(void)putc('\n', stderr);
(void)putc('\n', listf);
vfpart = 0;
}
rdfile_close(arcn, &fd);
@@ -495,7 +525,7 @@ wr_archive(arcn, is_app)
res = (*frmt->wr_data)(arcn, fd, &cnt);
rdfile_close(arcn, &fd);
if (vflag && vfpart) {
(void)putc('\n', stderr);
(void)putc('\n', listf);
vfpart = 0;
}
if (res < 0)
@@ -519,7 +549,7 @@ wr_archive(arcn, is_app)
(*frmt->end_wr)();
wr_fin();
}
(void)sigprocmask(SIG_BLOCK, &s_mask, (sigset_t *)NULL);
(void)sigprocmask(SIG_BLOCK, &s_mask, NULL);
ar_close();
if (tflag)
proc_dir();
@@ -548,7 +578,7 @@ wr_archive(arcn, is_app)
* over write existing files that it creates.
*/
#if __STDC__
#ifdef __STDC__
void
append(void)
#else
@@ -573,7 +603,7 @@ append()
if (get_arc() < 0)
return;
if ((orgfrmt != NULL) && (orgfrmt != frmt)) {
pax_warn(1, "Cannot mix current archive format %s with %s",
paxwarn(1, "Cannot mix current archive format %s with %s",
frmt->name, orgfrmt->name);
return;
}
@@ -612,7 +642,7 @@ append()
* reading the archive may take a long time. If verbose tell the user
*/
if (vflag) {
(void)fprintf(stderr,
(void)fprintf(listf,
"%s: Reading archive to position at the end...", argv0);
vfpart = 1;
}
@@ -674,7 +704,7 @@ append()
* tell the user we are done reading.
*/
if (vflag && vfpart) {
(void)fputs("done.\n", stderr);
(void)fputs("done.\n", listf);
vfpart = 0;
}
@@ -689,7 +719,7 @@ append()
* write a new archive
*/
#if __STDC__
#ifdef __STDC__
void
archive(void)
#else
@@ -720,7 +750,7 @@ archive()
* (except the files are forced to be under the destination directory).
*/
#if __STDC__
#ifdef __STDC__
void
copy(void)
#else
@@ -754,12 +784,12 @@ copy()
drem = PAXPATHLEN - dlen;
if (stat(dirptr, &sb) < 0) {
sys_warn(1, errno, "Cannot access destination directory %s",
syswarn(1, errno, "Cannot access destination directory %s",
dirptr);
return;
}
if (!S_ISDIR(sb.st_mode)) {
pax_warn(1, "Destination is not a directory %s", dirptr);
paxwarn(1, "Destination is not a directory %s", dirptr);
return;
}
@@ -813,7 +843,7 @@ copy()
else
res = 0;
if ((arcn->nlen - res) > drem) {
pax_warn(1, "Destination pathname too long %s",
paxwarn(1, "Destination pathname too long %s",
arcn->name);
continue;
}
@@ -872,7 +902,7 @@ copy()
}
if (vflag) {
(void)fputs(arcn->name, stderr);
(void)fputs(arcn->name, listf);
vfpart = 1;
}
++flcnt;
@@ -887,7 +917,7 @@ copy()
res = chk_same(arcn);
if (res <= 0) {
if (vflag && vfpart) {
(void)putc('\n', stderr);
(void)putc('\n', listf);
vfpart = 0;
}
continue;
@@ -907,7 +937,7 @@ copy()
if (res < 0)
purg_lnk(arcn);
if (vflag && vfpart) {
(void)putc('\n', stderr);
(void)putc('\n', listf);
vfpart = 0;
}
continue;
@@ -918,7 +948,7 @@ copy()
* first open source file and then create the destination file
*/
if ((fdsrc = open(arcn->org_name, O_RDONLY, 0)) < 0) {
sys_warn(1, errno, "Unable to open %s to read",
syswarn(1, errno, "Unable to open %s to read",
arcn->org_name);
purg_lnk(arcn);
continue;
@@ -937,7 +967,7 @@ copy()
rdfile_close(arcn, &fdsrc);
if (vflag && vfpart) {
(void)putc('\n', stderr);
(void)putc('\n', listf);
vfpart = 0;
}
}
@@ -947,7 +977,7 @@ copy()
* patterns were selected block off signals to avoid chance for
* multiple entry into the cleanup code.
*/
(void)sigprocmask(SIG_BLOCK, &s_mask, (sigset_t *)NULL);
(void)sigprocmask(SIG_BLOCK, &s_mask, NULL);
ar_close();
proc_dir();
ftree_chk();
@@ -972,7 +1002,7 @@ copy()
* the specs for rd_wrbuf() for more details)
*/
#if __STDC__
#ifdef __STDC__
static int
next_head(register ARCHD *arcn)
#else
@@ -988,6 +1018,7 @@ next_head(arcn)
register int hsz;
register int in_resync = 0; /* set when we are in resync mode */
int cnt = 0; /* counter for trailer function */
int first = 1; /* on 1st read, EOF isn't premature. */
/*
* set up initial conditions, we want a whole frmt->hsz block as we
@@ -1005,21 +1036,32 @@ next_head(arcn)
if ((ret = rd_wrbuf(hdend, res)) == res)
break;
/*
* If we read 0 bytes (EOF) from an archive when we
* expect to find a header, we have stepped upon
* an archive without the customary block of zeroes
* end marker. It's just stupid to error out on
* them, so exit gracefully.
*/
if (first && ret == 0)
return(-1);
first = 0;
/*
* some kind of archive read problem, try to resync the
* storage device, better give the user the bad news.
*/
if ((ret == 0) || (rd_sync() < 0)) {
pax_warn(1,"Premature end of file on archive read");
paxwarn(1,"Premature end of file on archive read");
return(-1);
}
if (!in_resync) {
if (act == APPND) {
pax_warn(1,
"Archive I/O error, cannot continue");
paxwarn(1,
"Archive I/O error, cannot continue");
return(-1);
}
pax_warn(1,"Archive I/O error. Trying to recover.");
paxwarn(1,"Archive I/O error. Trying to recover.");
++in_resync;
}
@@ -1080,13 +1122,13 @@ next_head(arcn)
*/
if (!in_resync) {
if (act == APPND) {
pax_warn(1,"Unable to append, archive header flaw");
paxwarn(1,"Unable to append, archive header flaw");
return(-1);
}
pax_warn(1,"Invalid header, starting valid header search.");
paxwarn(1,"Invalid header, starting valid header search.");
++in_resync;
}
bcopy(hdbuf+1, hdbuf, shftsz);
memmove(hdbuf, hdbuf+1, shftsz);
res = 1;
hdend = hdbuf + shftsz;
}
@@ -1118,7 +1160,7 @@ next_head(arcn)
* 0 if archive found -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
static int
get_arc(void)
#else
@@ -1175,7 +1217,7 @@ get_arc()
if (!notice) {
if (act == APPND)
return(-1);
pax_warn(1,"Cannot identify format. Searching...");
paxwarn(1,"Cannot identify format. Searching...");
++notice;
}
}
@@ -1210,7 +1252,7 @@ get_arc()
if (!notice) {
if (act == APPND)
return(-1);
pax_warn(1, "Cannot identify format. Searching...");
paxwarn(1, "Cannot identify format. Searching...");
++notice;
}
@@ -1221,7 +1263,7 @@ get_arc()
* portable manner
*/
if (--hdsz > 0) {
bcopy(hdbuf+1, hdbuf, hdsz);
memmove(hdbuf, hdbuf+1, hdsz);
res = BLKMULT - hdsz;
hdend = hdbuf + hdsz;
} else {
@@ -1235,6 +1277,6 @@ get_arc()
/*
* we cannot find a header, bow, apologize and quit
*/
pax_warn(1, "Sorry, unable to determine archive format.");
paxwarn(1, "Sorry, unable to determine archive format.");
return(-1);
}
+59 -53
View File
@@ -47,6 +47,7 @@ static const char rcsid[] =
#include <sys/stat.h>
#include <errno.h>
#include <unistd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "pax.h"
@@ -57,7 +58,7 @@ static const char rcsid[] =
*/
#define MINFBSZ 512 /* default block size for hole detect */
#define MAXFLT 10 /* default media read error limit */
#define MAXFLT 10 /* default media read error limit */
/*
* Need to change bufmem to dynamic allocation when the upper
@@ -68,8 +69,8 @@ static char bufmem[MAXBLK+BLKMULT]; /* i/o buffer + pushback id space */
static char *buf; /* normal start of i/o buffer */
static char *bufend; /* end or last char in i/o buffer */
static char *bufpt; /* read/write point in i/o buffer */
int blksz = MAXBLK; /* block input/output size in bytes */
int wrblksz; /* user spec output size in bytes */
int blksz = MAXBLK; /* block input/output size in bytes */
int wrblksz; /* user spec output size in bytes */
int maxflt = MAXFLT; /* MAX consecutive media errors */
int rdblksz; /* first read blksize (tapes only) */
off_t wrlimit; /* # of bytes written per archive vol */
@@ -83,7 +84,7 @@ off_t rdcnt; /* # of bytes read on current vol */
* 0 if ok, -1 if the user specified write block size violates pax spec
*/
#if __STDC__
#ifdef __STDC__
int
wr_start(void)
#else
@@ -102,15 +103,20 @@ wr_start()
if (!wrblksz)
wrblksz = frmt->bsz;
if (wrblksz > MAXBLK) {
pax_warn(1, "Write block size of %d too large, maximum is: %d",
paxwarn(1, "Write block size of %d too large, maximum is: %d",
wrblksz, MAXBLK);
return(-1);
}
if (wrblksz % BLKMULT) {
pax_warn(1, "Write block size of %d is not a %d byte multiple",
paxwarn(1, "Write block size of %d is not a %d byte multiple",
wrblksz, BLKMULT);
return(-1);
}
if (wrblksz > MAXBLK_POSIX) {
paxwarn(0, "Write block size of %d larger than POSIX max %d, archive may not be portable",
wrblksz, MAXBLK_POSIX);
return(-1);
}
/*
* we only allow wrblksz to be used with all archive operations
@@ -131,7 +137,7 @@ wr_start()
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
rd_start(void)
#else
@@ -147,12 +153,12 @@ rd_start()
buf = &(bufmem[BLKMULT]);
if ((act == APPND) && wrblksz) {
if (wrblksz > MAXBLK) {
pax_warn(1,"Write block size %d too large, maximum is: %d",
paxwarn(1,"Write block size %d too large, maximum is: %d",
wrblksz, MAXBLK);
return(-1);
}
if (wrblksz % BLKMULT) {
pax_warn(1, "Write block size %d is not a %d byte multiple",
paxwarn(1, "Write block size %d is not a %d byte multiple",
wrblksz, BLKMULT);
return(-1);
}
@@ -174,7 +180,7 @@ rd_start()
* set up buffer system for copying within the file system
*/
#if __STDC__
#ifdef __STDC__
void
cp_start(void)
#else
@@ -218,7 +224,7 @@ cp_start()
* 0 for success, -1 for failure
*/
#if __STDC__
#ifdef __STDC__
int
appnd_start(off_t skcnt)
#else
@@ -231,7 +237,7 @@ appnd_start(skcnt)
off_t cnt;
if (exit_val != 0) {
pax_warn(0, "Cannot append to an archive that may have flaws.");
paxwarn(0, "Cannot append to an archive that may have flaws.");
return(-1);
}
/*
@@ -308,10 +314,10 @@ appnd_start(skcnt)
return(0);
out:
pax_warn(1, "Unable to rewrite archive trailer, cannot append.");
paxwarn(1, "Unable to rewrite archive trailer, cannot append.");
return(-1);
}
/*
* rd_sync()
* A read error occurred on this archive volume. Resync the buffer and
@@ -323,7 +329,7 @@ appnd_start(skcnt)
* 0 on success, and -1 on failure
*/
#if __STDC__
#ifdef __STDC__
int
rd_sync(void)
#else
@@ -340,7 +346,7 @@ rd_sync()
if (maxflt == 0)
return(-1);
if (act == APPND) {
pax_warn(1, "Unable to append when there are archive read errors.");
paxwarn(1, "Unable to append when there are archive read errors.");
return(-1);
}
@@ -374,7 +380,7 @@ rd_sync()
* can extract out of the archive.
*/
if ((maxflt > 0) && (++errcnt > maxflt))
pax_warn(0,"Archive read error limit (%d) reached",maxflt);
paxwarn(0,"Archive read error limit (%d) reached",maxflt);
else if (ar_rdsync() == 0)
continue;
if (ar_next() < 0)
@@ -396,7 +402,7 @@ rd_sync()
* pback space is increased.
*/
#if __STDC__
#ifdef __STDC__
void
pback(char *pt, int cnt)
#else
@@ -407,7 +413,7 @@ pback(pt, cnt)
#endif
{
bufpt -= cnt;
bcopy(pt, bufpt, cnt);
memcpy(bufpt, pt, cnt);
return;
}
@@ -419,7 +425,7 @@ pback(pt, cnt)
* 0 if ok, -1 failure, and 1 when EOF on the archive volume was detected.
*/
#if __STDC__
#ifdef __STDC__
int
rd_skip(off_t skcnt)
#else
@@ -494,7 +500,7 @@ rd_skip(skcnt)
* BE a requirement....
*/
#if __STDC__
#ifdef __STDC__
void
wr_fin(void)
#else
@@ -503,7 +509,7 @@ wr_fin()
#endif
{
if (bufpt > buf) {
bzero(bufpt, bufend - bufpt);
memset(bufpt, 0, bufend - bufpt);
bufpt = bufend;
(void)buf_flush(blksz);
}
@@ -520,7 +526,7 @@ wr_fin()
* 0 if buffer was filled ok, -1 o.w. (buffer flush failure)
*/
#if __STDC__
#ifdef __STDC__
int
wr_rdbuf(register char *out, register int outcnt)
#else
@@ -544,7 +550,7 @@ wr_rdbuf(out, outcnt)
* only move what we have space for
*/
cnt = MIN(cnt, outcnt);
bcopy(out, bufpt, cnt);
memcpy(bufpt, out, cnt);
bufpt += cnt;
out += cnt;
outcnt -= cnt;
@@ -563,7 +569,7 @@ wr_rdbuf(out, outcnt)
* -1 is a read error
*/
#if __STDC__
#ifdef __STDC__
int
rd_wrbuf(register char *in, register int cpcnt)
#else
@@ -599,7 +605,7 @@ rd_wrbuf(in, cpcnt)
* state of buffer
*/
cnt = MIN(cnt, incnt);
bcopy(bufpt, in, cnt);
memcpy(in, bufpt, cnt);
bufpt += cnt;
incnt -= cnt;
in += cnt;
@@ -618,7 +624,7 @@ rd_wrbuf(in, cpcnt)
* 0 if ok, -1 if there was a buf_flush failure
*/
#if __STDC__
#ifdef __STDC__
int
wr_skip(off_t skcnt)
#else
@@ -637,7 +643,7 @@ wr_skip(skcnt)
if ((cnt <= 0) && ((cnt = buf_flush(blksz)) < 0))
return(-1);
cnt = MIN(cnt, skcnt);
bzero(bufpt, cnt);
memset(bufpt, 0, cnt);
bufpt += cnt;
skcnt -= cnt;
}
@@ -653,7 +659,7 @@ wr_skip(skcnt)
* it is important that we always write EXACTLY the number of bytes that
* the format specific write routine told us to. The file can also get
* bigger, so reading to the end of file would create an improper archive,
* we just detect this case and pax_warn the user. We never create a bad
* we just detect this case and warn the user. We never create a bad
* archive if we can avoid it. Of course trying to archive files that are
* active is asking for trouble. It we fail, we pass back how much we
* could NOT copy and let the caller deal with it.
@@ -662,7 +668,7 @@ wr_skip(skcnt)
* 0, but "left" is set to be greater than zero.
*/
#if __STDC__
#ifdef __STDC__
int
wr_rdfile(ARCHD *arcn, int ifd, off_t *left)
#else
@@ -699,13 +705,13 @@ wr_rdfile(arcn, ifd, left)
* or the file read failed.
*/
if (res < 0)
sys_warn(1, errno, "Read fault on %s", arcn->org_name);
syswarn(1, errno, "Read fault on %s", arcn->org_name);
else if (size != 0L)
pax_warn(1, "File changed size during read %s", arcn->org_name);
paxwarn(1, "File changed size during read %s", arcn->org_name);
else if (fstat(ifd, &sb) < 0)
sys_warn(1, errno, "Failed stat on %s", arcn->org_name);
syswarn(1, errno, "Failed stat on %s", arcn->org_name);
else if (arcn->sb.st_mtime != sb.st_mtime)
pax_warn(1, "File %s was modified during copy to archive",
paxwarn(1, "File %s was modified during copy to archive",
arcn->org_name);
*left = size;
return(0);
@@ -731,7 +737,7 @@ wr_rdfile(arcn, ifd, left)
* we return a 0 but "left" is set to be the amount unwritten
*/
#if __STDC__
#ifdef __STDC__
int
rd_wrfile(ARCHD *arcn, int ofd, off_t *left)
#else
@@ -756,11 +762,11 @@ rd_wrfile(arcn, ofd, left)
* pass the blocksize of the file being written to the write routine,
* if the size is zero, use the default MINFBSZ
*/
if (fstat(ofd, &sb) == 0) {
if (fstat(ofd, &sb) == 0) {
if (sb.st_blksize > 0)
sz = (int)sb.st_blksize;
} else
sys_warn(0,errno,"Unable to obtain block size for file %s",fnm);
} else
syswarn(0,errno,"Unable to obtain block size for file %s",fnm);
rem = sz;
*left = 0L;
@@ -816,7 +822,7 @@ rd_wrfile(arcn, ofd, left)
* calculated crc to the crc stored in the archive
*/
if (docrc && (size == 0L) && (arcn->crc != crc))
pax_warn(1,"Actual crc does not match expected crc %s",arcn->name);
paxwarn(1,"Actual crc does not match expected crc %s",arcn->name);
return(0);
}
@@ -827,7 +833,7 @@ rd_wrfile(arcn, ofd, left)
* destination file so we can properly copy files with holes.
*/
#if __STDC__
#ifdef __STDC__
void
cp_file(ARCHD *arcn, int fd1, int fd2)
#else
@@ -859,11 +865,11 @@ cp_file(arcn, fd1, fd2)
* pass the blocksize of the file being written to the write routine,
* if the size is zero, use the default MINFBSZ
*/
if (fstat(fd2, &sb) == 0) {
if (fstat(fd2, &sb) == 0) {
if (sb.st_blksize > 0)
sz = sb.st_blksize;
} else
sys_warn(0,errno,"Unable to obtain block size for file %s",fnm);
} else
syswarn(0,errno,"Unable to obtain block size for file %s",fnm);
rem = sz;
/*
@@ -885,15 +891,15 @@ cp_file(arcn, fd1, fd2)
* check to make sure the copy is valid.
*/
if (res < 0)
sys_warn(1, errno, "Failed write during copy of %s to %s",
syswarn(1, errno, "Failed write during copy of %s to %s",
arcn->org_name, arcn->name);
else if (cpcnt != arcn->sb.st_size)
pax_warn(1, "File %s changed size during copy to %s",
paxwarn(1, "File %s changed size during copy to %s",
arcn->org_name, arcn->name);
else if (fstat(fd1, &sb) < 0)
sys_warn(1, errno, "Failed stat of %s", arcn->org_name);
syswarn(1, errno, "Failed stat of %s", arcn->org_name);
else if (arcn->sb.st_mtime != sb.st_mtime)
pax_warn(1, "File %s was modified during copy to %s",
paxwarn(1, "File %s was modified during copy to %s",
arcn->org_name, arcn->name);
/*
@@ -916,7 +922,7 @@ cp_file(arcn, fd1, fd2)
* 0 when finished (user specified termination in ar_next()).
*/
#if __STDC__
#ifdef __STDC__
int
buf_fill(void)
#else
@@ -966,7 +972,7 @@ buf_fill()
* 0 if all is ok, -1 when a write error occurs.
*/
#if __STDC__
#ifdef __STDC__
int
buf_flush(register int bufcnt)
#else
@@ -986,7 +992,7 @@ buf_flush(bufcnt)
* at least one record. We always round limit UP to next blocksize.
*/
if ((wrlimit > 0) && (wrcnt > wrlimit)) {
pax_warn(0, "User specified archive volume byte limit reached.");
paxwarn(0, "User specified archive volume byte limit reached.");
if (ar_next() < 0) {
wrcnt = 0;
exit_val = 1;
@@ -1029,7 +1035,7 @@ buf_flush(bufcnt)
* check for more than 1 block of push, and if
* so we loop back to write again
*/
bcopy(bufend, buf, push);
memcpy(buf, bufend, push);
bufpt = buf + push;
if (push >= blksz) {
push -= blksz;
@@ -1042,14 +1048,14 @@ buf_flush(bufcnt)
/*
* Oh drat we got a partial write!
* if format doesnt care about alignment let it go,
* we pax_warned the user in ar_write().... but this means
* we warned the user in ar_write().... but this means
* the last record on this volume violates pax spec....
*/
totcnt += cnt;
wrcnt += cnt;
bufpt = buf + cnt;
cnt = bufcnt - cnt;
bcopy(bufpt, buf, cnt);
memcpy(buf, bufpt, cnt);
bufpt = buf + cnt;
if (!frmt->blkalgn || ((cnt % frmt->blkalgn) == 0))
return(totcnt);
+22 -18
View File
@@ -76,7 +76,7 @@ static GIDC **grptb = NULL; /* group name to gid cache */
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
uidtb_start(void)
#else
@@ -92,7 +92,7 @@ uidtb_start()
return(-1);
if ((uidtb = (UIDC **)calloc(UID_SZ, sizeof(UIDC *))) == NULL) {
++fail;
pax_warn(1, "Unable to allocate memory for user id cache table");
paxwarn(1, "Unable to allocate memory for user id cache table");
return(-1);
}
return(0);
@@ -105,7 +105,7 @@ uidtb_start()
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
gidtb_start(void)
#else
@@ -121,7 +121,7 @@ gidtb_start()
return(-1);
if ((gidtb = (GIDC **)calloc(GID_SZ, sizeof(GIDC *))) == NULL) {
++fail;
pax_warn(1, "Unable to allocate memory for group id cache table");
paxwarn(1, "Unable to allocate memory for group id cache table");
return(-1);
}
return(0);
@@ -134,7 +134,7 @@ gidtb_start()
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
usrtb_start(void)
#else
@@ -150,7 +150,7 @@ usrtb_start()
return(-1);
if ((usrtb = (UIDC **)calloc(UNM_SZ, sizeof(UIDC *))) == NULL) {
++fail;
pax_warn(1, "Unable to allocate memory for user name cache table");
paxwarn(1, "Unable to allocate memory for user name cache table");
return(-1);
}
return(0);
@@ -163,7 +163,7 @@ usrtb_start()
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
grptb_start(void)
#else
@@ -179,7 +179,7 @@ grptb_start()
return(-1);
if ((grptb = (GIDC **)calloc(GNM_SZ, sizeof(GIDC *))) == NULL) {
++fail;
pax_warn(1,"Unable to allocate memory for group name cache table");
paxwarn(1,"Unable to allocate memory for group name cache table");
return(-1);
}
return(0);
@@ -193,7 +193,7 @@ grptb_start()
* Pointer to stored name (or a empty string)
*/
#if __STDC__
#ifdef __STDC__
char *
name_uid(uid_t uid, int frc)
#else
@@ -242,9 +242,10 @@ name_uid(uid, frc)
ptr->uid = uid;
ptr->valid = INVALID;
# ifdef NET2_STAT
(void)sprintf(ptr->name, "%u", uid);
(void)snprintf(ptr->name, sizeof(ptr->name), "%u", uid);
# else
(void)sprintf(ptr->name, "%lu", (u_long)uid);
(void)snprintf(ptr->name, sizeof(ptr->name), "%lu",
(unsigned long)uid);
# endif
if (frc == 0)
return("");
@@ -270,7 +271,7 @@ name_uid(uid, frc)
* Pointer to stored name (or a empty string)
*/
#if __STDC__
#ifdef __STDC__
char *
name_gid(gid_t gid, int frc)
#else
@@ -319,9 +320,10 @@ name_gid(gid, frc)
ptr->gid = gid;
ptr->valid = INVALID;
# ifdef NET2_STAT
(void)sprintf(ptr->name, "%u", gid);
(void)snprintf(ptr->name, sizeof(ptr->name), "%u", gid);
# else
(void)sprintf(ptr->name, "%lu", (u_long)gid);
(void)snprintf(ptr->name, sizeof(ptr->name), "%lu",
(unsigned long)gid);
# endif
if (frc == 0)
return("");
@@ -346,7 +348,7 @@ name_gid(gid, frc)
* the uid (if any) for a user name, or a -1 if no match can be found
*/
#if __STDC__
#ifdef __STDC__
int
uid_name(char *name, uid_t *uid)
#else
@@ -386,7 +388,8 @@ uid_name(name, uid)
}
if (ptr == NULL)
ptr = (UIDC *)malloc(sizeof(UIDC));
ptr = usrtb[st_hash(name, namelen, UNM_SZ)] =
(UIDC *)malloc(sizeof(UIDC));
/*
* no match, look it up, if no match store it as an invalid entry,
@@ -416,7 +419,7 @@ uid_name(name, uid)
* the gid (if any) for a group name, or a -1 if no match can be found
*/
#if __STDC__
#ifdef __STDC__
int
gid_name(char *name, gid_t *gid)
#else
@@ -455,7 +458,8 @@ gid_name(name, gid)
++gropn;
}
if (ptr == NULL)
ptr = (GIDC *)malloc(sizeof(GIDC));
ptr = grptb[st_hash(name, namelen, GID_SZ)] =
(GIDC *)malloc(sizeof(GIDC));
/*
* no match, look it up, if no match store it as an invalid entry,
+42 -42
View File
@@ -75,7 +75,7 @@ static int swp_head; /* binary cpio header byte swap */
* 0 if ok -1 otherwise (the return values of lnk_start())
*/
#if __STDC__
#ifdef __STDC__
int
cpio_strd(void)
#else
@@ -96,7 +96,7 @@ cpio_strd()
* 0 if a valid trailer, -1 if not a valid trailer,
*/
#if __STDC__
#ifdef __STDC__
int
cpio_trail(register ARCHD *arcn)
#else
@@ -120,7 +120,7 @@ cpio_trail(arcn)
* 0
*/
#if __STDC__
#ifdef __STDC__
static int
com_rd(register ARCHD *arcn)
#else
@@ -175,7 +175,7 @@ com_rd(arcn)
* result of the write of the trailer from the cpio specific write func
*/
#if __STDC__
#ifdef __STDC__
int
cpio_endwr(void)
#else
@@ -188,7 +188,7 @@ cpio_endwr()
/*
* create a trailer request and call the proper format write function
*/
bzero((char *)&last, sizeof(last));
memset(&last, 0, sizeof(last));
last.nlen = sizeof(TRAILER) - 1;
last.type = PAX_REG;
last.sb.st_nlink = 1;
@@ -203,7 +203,7 @@ cpio_endwr()
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
static int
rd_nm(register ARCHD *arcn, int nsz)
#else
@@ -217,7 +217,7 @@ rd_nm(arcn, nsz)
* do not even try bogus values
*/
if ((nsz == 0) || (nsz > sizeof(arcn->name))) {
pax_warn(1, "Cpio file name length %d is out of range", nsz);
paxwarn(1, "Cpio file name length %d is out of range", nsz);
return(-1);
}
@@ -226,7 +226,7 @@ rd_nm(arcn, nsz)
*/
if ((rd_wrbuf(arcn->name,nsz) != nsz) || (arcn->name[nsz-1] != '\0') ||
(arcn->name[0] == '\0')) {
pax_warn(1, "Cpio file name in header is corrupted");
paxwarn(1, "Cpio file name in header is corrupted");
return(-1);
}
return(0);
@@ -240,7 +240,7 @@ rd_nm(arcn, nsz)
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
static int
rd_ln_nm(register ARCHD *arcn)
#else
@@ -255,10 +255,10 @@ rd_ln_nm(arcn)
if ((arcn->sb.st_size == 0) ||
(arcn->sb.st_size >= sizeof(arcn->ln_name))) {
# ifdef NET2_STAT
pax_warn(1, "Cpio link name length is invalid: %lu",
paxwarn(1, "Cpio link name length is invalid: %lu",
arcn->sb.st_size);
# else
pax_warn(1, "Cpio link name length is invalid: %qu",
paxwarn(1, "Cpio link name length is invalid: %qu",
arcn->sb.st_size);
# endif
return(-1);
@@ -269,7 +269,7 @@ rd_ln_nm(arcn)
*/
if (rd_wrbuf(arcn->ln_name, (int)arcn->sb.st_size) !=
(int)arcn->sb.st_size) {
pax_warn(1, "Cpio link name read error");
paxwarn(1, "Cpio link name read error");
return(-1);
}
arcn->ln_nlen = arcn->sb.st_size;
@@ -279,7 +279,7 @@ rd_ln_nm(arcn)
* watch out for those empty link names
*/
if (arcn->ln_name[0] == '\0') {
pax_warn(1, "Cpio link name is corrupt");
paxwarn(1, "Cpio link name is corrupt");
return(-1);
}
return(0);
@@ -297,7 +297,7 @@ rd_ln_nm(arcn)
* 0 if a valid header, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
cpio_id(char *blk, int size)
#else
@@ -321,7 +321,7 @@ cpio_id(blk, size)
* 0 if a valid header, -1 otherwise.
*/
#if __STDC__
#ifdef __STDC__
int
cpio_rd(register ARCHD *arcn, register char *buf)
#else
@@ -404,7 +404,7 @@ cpio_rd(arcn, buf)
* size of trailer header in this format
*/
#if __STDC__
#ifdef __STDC__
off_t
cpio_endrd(void)
#else
@@ -422,7 +422,7 @@ cpio_endrd()
* 0 if ok, -1 otherwise (what dev_start() returns)
*/
#if __STDC__
#ifdef __STDC__
int
cpio_stwr(void)
#else
@@ -442,7 +442,7 @@ cpio_stwr()
* data to write after the header, -1 if archive write failed
*/
#if __STDC__
#ifdef __STDC__
int
cpio_wr(register ARCHD *arcn)
#else
@@ -481,7 +481,7 @@ cpio_wr(arcn)
if (uqd_asc((u_quad_t)arcn->sb.st_size, hd->c_filesize,
sizeof(hd->c_filesize), OCT)) {
# endif
pax_warn(1,"File is too large for cpio format %s",
paxwarn(1,"File is too large for cpio format %s",
arcn->org_name);
return(1);
}
@@ -509,7 +509,7 @@ cpio_wr(arcn)
*/
if (ul_asc((u_long)MAGIC, hd->c_magic, sizeof(hd->c_magic), OCT) ||
ul_asc((u_long)arcn->sb.st_dev, hd->c_dev, sizeof(hd->c_dev),
OCT) ||
OCT) ||
ul_asc((u_long)arcn->sb.st_ino, hd->c_ino, sizeof(hd->c_ino),
OCT) ||
ul_asc((u_long)arcn->sb.st_mode, hd->c_mode, sizeof(hd->c_mode),
@@ -532,7 +532,7 @@ cpio_wr(arcn)
*/
if ((wr_rdbuf(hdblk, (int)sizeof(HD_CPIO)) < 0) ||
(wr_rdbuf(arcn->name, nsz) < 0)) {
pax_warn(1, "Unable to write cpio header for %s", arcn->org_name);
paxwarn(1, "Unable to write cpio header for %s", arcn->org_name);
return(-1);
}
@@ -551,7 +551,7 @@ cpio_wr(arcn)
* next file as we are done.
*/
if (wr_rdbuf(arcn->ln_name, arcn->ln_nlen) < 0) {
pax_warn(1,"Unable to write cpio link name for %s",arcn->org_name);
paxwarn(1,"Unable to write cpio link name for %s",arcn->org_name);
return(-1);
}
return(1);
@@ -560,7 +560,7 @@ cpio_wr(arcn)
/*
* header field is out of range
*/
pax_warn(1, "Cpio header field is too small to store file %s",
paxwarn(1, "Cpio header field is too small to store file %s",
arcn->org_name);
return(1);
}
@@ -578,7 +578,7 @@ cpio_wr(arcn)
* 0 if a valid header, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
vcpio_id(char *blk, int size)
#else
@@ -602,7 +602,7 @@ vcpio_id(blk, size)
* 0 if a valid header, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
crc_id(char *blk, int size)
#else
@@ -625,7 +625,7 @@ crc_id(blk, size)
* 0 if ok -1 otherwise (the return values of lnk_start())
*/
#if __STDC__
#ifdef __STDC__
int
crc_strd(void)
#else
@@ -645,7 +645,7 @@ crc_strd()
* 0 if a valid header, -1 otherwise.
*/
#if __STDC__
#ifdef __STDC__
int
vcpio_rd(register ARCHD *arcn, register char *buf)
#else
@@ -751,7 +751,7 @@ vcpio_rd(arcn, buf)
* size of trailer header in this format
*/
#if __STDC__
#ifdef __STDC__
off_t
vcpio_endrd(void)
#else
@@ -770,7 +770,7 @@ vcpio_endrd()
* 0 if ok, -1 otherwise (what dev_start() returns)
*/
#if __STDC__
#ifdef __STDC__
int
crc_stwr(void)
#else
@@ -791,7 +791,7 @@ crc_stwr()
* NO data to write after the header, -1 if archive write failed
*/
#if __STDC__
#ifdef __STDC__
int
vcpio_wr(register ARCHD *arcn)
#else
@@ -848,7 +848,7 @@ vcpio_wr(arcn)
if (uqd_asc((u_quad_t)arcn->sb.st_size, hd->c_filesize,
sizeof(hd->c_filesize), HEX)) {
# endif
pax_warn(1,"File is too large for sv4cpio format %s",
paxwarn(1,"File is too large for sv4cpio format %s",
arcn->org_name);
return(1);
}
@@ -906,7 +906,7 @@ vcpio_wr(arcn)
if ((wr_rdbuf(hdblk, (int)sizeof(HD_VCPIO)) < 0) ||
(wr_rdbuf(arcn->name, (int)nsz) < 0) ||
(wr_skip((off_t)(VCPIO_PAD(sizeof(HD_VCPIO) + nsz))) < 0)) {
pax_warn(1,"Could not write sv4cpio header for %s",arcn->org_name);
paxwarn(1,"Could not write sv4cpio header for %s",arcn->org_name);
return(-1);
}
@@ -928,7 +928,7 @@ vcpio_wr(arcn)
*/
if ((wr_rdbuf(arcn->ln_name, arcn->ln_nlen) < 0) ||
(wr_skip((off_t)(VCPIO_PAD(arcn->ln_nlen))) < 0)) {
pax_warn(1,"Could not write sv4cpio link name for %s",
paxwarn(1,"Could not write sv4cpio link name for %s",
arcn->org_name);
return(-1);
}
@@ -938,7 +938,7 @@ vcpio_wr(arcn)
/*
* header field is out of range
*/
pax_warn(1,"Sv4cpio header field is too small for file %s",arcn->org_name);
paxwarn(1,"Sv4cpio header field is too small for file %s",arcn->org_name);
return(1);
}
@@ -954,7 +954,7 @@ vcpio_wr(arcn)
* 0 if a valid header, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
bcpio_id(char *blk, int size)
#else
@@ -989,7 +989,7 @@ bcpio_id(blk, size)
* 0 if a valid header, -1 otherwise.
*/
#if __STDC__
#ifdef __STDC__
int
bcpio_rd(register ARCHD *arcn, register char *buf)
#else
@@ -1093,7 +1093,7 @@ bcpio_rd(arcn, buf)
* size of trailer header in this format
*/
#if __STDC__
#ifdef __STDC__
off_t
bcpio_endrd(void)
#else
@@ -1116,7 +1116,7 @@ bcpio_endrd()
* data to write after the header, -1 if archive write failed
*/
#if __STDC__
#ifdef __STDC__
int
bcpio_wr(register ARCHD *arcn)
#else
@@ -1159,7 +1159,7 @@ bcpio_wr(arcn)
t_offt = (off_t)(SHRT_EXT(hd->h_filesize_1));
t_offt = (t_offt<<16) | ((off_t)(SHRT_EXT(hd->h_filesize_2)));
if (arcn->sb.st_size != t_offt) {
pax_warn(1,"File is too large for bcpio format %s",
paxwarn(1,"File is too large for bcpio format %s",
arcn->org_name);
return(1);
}
@@ -1244,7 +1244,7 @@ bcpio_wr(arcn)
if ((wr_rdbuf(hdblk, (int)sizeof(HD_BCPIO)) < 0) ||
(wr_rdbuf(arcn->name, nsz) < 0) ||
(wr_skip((off_t)(BCPIO_PAD(sizeof(HD_BCPIO) + nsz))) < 0)) {
pax_warn(1, "Could not write bcpio header for %s", arcn->org_name);
paxwarn(1, "Could not write bcpio header for %s", arcn->org_name);
return(-1);
}
@@ -1266,7 +1266,7 @@ bcpio_wr(arcn)
*/
if ((wr_rdbuf(arcn->ln_name, arcn->ln_nlen) < 0) ||
(wr_skip((off_t)(BCPIO_PAD(arcn->ln_nlen))) < 0)) {
pax_warn(1,"Could not write bcpio link name for %s",arcn->org_name);
paxwarn(1,"Could not write bcpio link name for %s",arcn->org_name);
return(-1);
}
return(1);
@@ -1275,6 +1275,6 @@ bcpio_wr(arcn)
/*
* header field is out of range
*/
pax_warn(1,"Bcpio header field is too small for file %s", arcn->org_name);
paxwarn(1,"Bcpio header field is too small for file %s", arcn->org_name);
return(1);
}
+22 -8
View File
@@ -48,6 +48,7 @@
* ar_io.c
*/
extern char *arcname;
extern const char *gzip_program;
int ar_open __P((char *));
void ar_close __P((void));
void ar_drain __P((void));
@@ -145,6 +146,7 @@ int unlnk_exist __P((register char *, register int));
int chk_path __P((register char *, uid_t, gid_t));
void set_ftime __P((char *fnm, time_t mtime, time_t atime, int frc));
int set_ids __P((char *, uid_t, gid_t));
int set_lids __P((char *, uid_t, gid_t));
void set_pmode __P((char *, mode_t));
int file_write __P((int, char *, register int, int *, int *, int, char *));
void file_flush __P((int, char *, int));
@@ -155,7 +157,7 @@ int set_crc __P((register ARCHD *, register int));
* ftree.c
*/
int ftree_start __P((void));
int ftree_add __P((register char *));
int ftree_add __P((register char *, int));
void ftree_sel __P((register ARCHD *));
void ftree_chk __P((void));
int next_file __P((register ARCHD *));
@@ -163,9 +165,8 @@ int next_file __P((register ARCHD *));
/*
* gen_subs.c
*/
void ls_list __P((register ARCHD *, time_t));
void ls_list __P((register ARCHD *, time_t, FILE *));
void ls_tty __P((register ARCHD *));
void zf_strncpy __P((register char *, register char *, int));
int l_strncpy __P((register char *, register char *, int));
u_long asc_ul __P((register char *, int, register int));
int ul_asc __P((u_long, register char *, register int, register int));
@@ -174,6 +175,11 @@ u_quad_t asc_uqd __P((register char *, int, register int));
int uqd_asc __P((u_quad_t, register char *, register int, register int));
#endif
/*
* getoldopt.c
*/
int getoldopt __P((int, char **, char *));
/*
* options.c
*/
@@ -183,12 +189,13 @@ void options __P((register int, register char **));
OPLIST * opt_next __P((void));
int opt_add __P((register char *));
int bad_opt __P((void));
char *chdname;
/*
* pat_rep.c
*/
int rep_add __P((register char *));
int pat_add __P((char *));
int pat_add __P((char *, char *));
void pat_chk __P((void));
int pat_sel __P((register ARCHD *));
int pat_match __P((register ARCHD *));
@@ -201,6 +208,7 @@ int set_dest __P((register ARCHD *, char *, int));
extern int act;
extern FSUB *frmt;
extern int cflag;
extern int cwdfd;
extern int dflag;
extern int iflag;
extern int kflag;
@@ -218,12 +226,18 @@ extern int Zflag;
extern int vfpart;
extern int patime;
extern int pmtime;
extern int nodirs;
extern int pmode;
extern int pids;
extern int rmleadslash;
extern int exit_val;
extern int docrc;
extern char *dirptr;
extern char *argv0;
extern FILE *listf;
extern char *tempfile;
extern char *tempbase;
int main __P((int, char **));
void sig_cleanup __P((int));
@@ -246,7 +260,7 @@ int ftime_start __P((void));
int chk_ftime __P((register ARCHD *));
int name_start __P((void));
int add_name __P((register char *, int, char *));
void sub_name __P((register char *, int *));
void sub_name __P((register char *, int *, size_t));
int dev_start __P((void));
int add_dev __P((register ARCHD *));
int map_dev __P((register ARCHD *, u_long, u_long));
@@ -279,7 +293,7 @@ int ustar_wr __P((register ARCHD *));
* tty_subs.c
*/
int tty_init __P((void));
void tty_prnt __P((char *, ...));
void tty_prnt __P((const char *, ...)) __printflike(1, 2);
int tty_read __P((char *, int));
void pax_warn __P((int, char *, ...));
void sys_warn __P((int, int, char *, ...));
void paxwarn __P((int, const char *, ...)) __printflike(2, 3);
void syswarn __P((int, int, const char *, ...)) __printflike(3, 4);
+99 -52
View File
@@ -54,6 +54,7 @@ static const char rcsid[] =
#include <sys/uio.h>
#include <stdlib.h>
#include "pax.h"
#include "options.h"
#include "extern.h"
static int
@@ -75,7 +76,7 @@ mk_link __P((register char *,register struct stat *,register char *, int));
* file descriptor or -1 for failure
*/
#if __STDC__
#ifdef __STDC__
int
file_creat(register ARCHD *arcn)
#else
@@ -122,8 +123,8 @@ file_creat(arcn)
file_mode)) >= 0)
break;
oerrno = errno;
if (chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) {
sys_warn(1, oerrno, "Unable to create %s", arcn->name);
if (nodirs || chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) {
syswarn(1, oerrno, "Unable to create %s", arcn->name);
return(-1);
}
}
@@ -138,7 +139,7 @@ file_creat(arcn)
* 0 for success, -1 for failure
*/
#if __STDC__
#ifdef __STDC__
void
file_close(register ARCHD *arcn, int fd)
#else
@@ -153,7 +154,7 @@ file_close(arcn, fd)
if (fd < 0)
return;
if (close(fd) < 0)
sys_warn(0, errno, "Unable to close file descriptor on %s",
syswarn(0, errno, "Unable to close file descriptor on %s",
arcn->name);
/*
@@ -185,7 +186,7 @@ file_close(arcn, fd)
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
lnk_creat(register ARCHD *arcn)
#else
@@ -201,13 +202,13 @@ lnk_creat(arcn)
* is not a directory, so we lstat and check
*/
if (lstat(arcn->ln_name, &sb) < 0) {
sys_warn(1,errno,"Unable to link to %s from %s", arcn->ln_name,
syswarn(1,errno,"Unable to link to %s from %s", arcn->ln_name,
arcn->name);
return(-1);
}
if (S_ISDIR(sb.st_mode)) {
pax_warn(1, "A hard link to the directory %s is not allowed",
paxwarn(1, "A hard link to the directory %s is not allowed",
arcn->ln_name);
return(-1);
}
@@ -218,14 +219,14 @@ lnk_creat(arcn)
/*
* cross_lnk()
* Create a hard link to arcn->org_name from arcn->name. Only used in copy
* with the -l flag. No pax_warning or error if this does not succeed (we will
* with the -l flag. No warning or error if this does not succeed (we will
* then just create the file)
* Return:
* 1 if copy() should try to create this file node
* 0 if cross_lnk() ok, -1 for fatal flaw (like linking to self).
*/
#if __STDC__
#ifdef __STDC__
int
cross_lnk(register ARCHD *arcn)
#else
@@ -255,7 +256,7 @@ cross_lnk(arcn)
* 0 skip it file exists (-k) or may be the same as source file
*/
#if __STDC__
#ifdef __STDC__
int
chk_same(register ARCHD *arcn)
#else
@@ -279,7 +280,7 @@ chk_same(arcn)
* better make sure the user does not have src == dest by mistake
*/
if ((arcn->sb.st_dev == sb.st_dev) && (arcn->sb.st_ino == sb.st_ino)) {
pax_warn(1, "Unable to copy %s, file would overwrite itself",
paxwarn(1, "Unable to copy %s, file would overwrite itself",
arcn->name);
return(0);
}
@@ -298,7 +299,7 @@ chk_same(arcn)
* allowed option). -1 an error occurred.
*/
#if __STDC__
#ifdef __STDC__
static int
mk_link(register char *to, register struct stat *to_sb, register char *from,
int ign)
@@ -326,7 +327,7 @@ mk_link(to, to_sb, from, ign)
* make sure it is not the same file, protect the user
*/
if ((to_sb->st_dev==sb.st_dev)&&(to_sb->st_ino == sb.st_ino)) {
pax_warn(1, "Unable to link file %s to itself", to);
paxwarn(1, "Unable to link file %s to itself", to);
return(-1);;
}
@@ -335,12 +336,12 @@ mk_link(to, to_sb, from, ign)
*/
if (S_ISDIR(sb.st_mode)) {
if (rmdir(from) < 0) {
sys_warn(1, errno, "Unable to remove %s", from);
syswarn(1, errno, "Unable to remove %s", from);
return(-1);
}
} else if (unlink(from) < 0) {
if (!ign) {
sys_warn(1, errno, "Unable to remove %s", from);
syswarn(1, errno, "Unable to remove %s", from);
return(-1);
}
return(1);
@@ -356,10 +357,10 @@ mk_link(to, to_sb, from, ign)
if (link(to, from) == 0)
break;
oerrno = errno;
if (chk_path(from, to_sb->st_uid, to_sb->st_gid) == 0)
if (!nodirs && chk_path(from, to_sb->st_uid, to_sb->st_gid) == 0)
continue;
if (!ign) {
sys_warn(1, oerrno, "Could not link to %s from %s", to,
syswarn(1, oerrno, "Could not link to %s from %s", to,
from);
return(-1);
}
@@ -380,7 +381,7 @@ mk_link(to, to_sb, from, ign)
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
node_creat(register ARCHD *arcn)
#else
@@ -426,13 +427,12 @@ node_creat(arcn)
/*
* Skip sockets, operation has no meaning under BSD
*/
pax_warn(0,
paxwarn(0,
"%s skipped. Sockets cannot be copied or extracted",
arcn->name);
return(-1);
case PAX_SLK:
if ((res = symlink(arcn->ln_name, arcn->name)) == 0)
return(0);
res = symlink(arcn->ln_name, arcn->name);
break;
case PAX_CTG:
case PAX_HLK:
@@ -442,7 +442,7 @@ node_creat(arcn)
/*
* we should never get here
*/
pax_warn(0, "%s has an unknown file type, skipping",
paxwarn(0, "%s has an unknown file type, skipping",
arcn->name);
return(-1);
}
@@ -465,8 +465,8 @@ node_creat(arcn)
if (++pass <= 1)
continue;
if (chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) {
sys_warn(1, oerrno, "Could not create: %s", arcn->name);
if (nodirs || chk_path(arcn->name,arcn->sb.st_uid,arcn->sb.st_gid) < 0) {
syswarn(1, oerrno, "Could not create: %s", arcn->name);
return(-1);
}
}
@@ -475,10 +475,18 @@ node_creat(arcn)
* we were able to create the node. set uid/gid, modes and times
*/
if (pids)
res = set_ids(arcn->name, arcn->sb.st_uid, arcn->sb.st_gid);
res = ((arcn->type == PAX_SLK) ?
set_lids(arcn->name, arcn->sb.st_uid, arcn->sb.st_gid) :
set_ids(arcn->name, arcn->sb.st_uid, arcn->sb.st_gid));
else
res = 0;
/*
* symlinks are done now.
*/
if (arcn->type == PAX_SLK)
return(0);
/*
* IMPORTANT SECURITY NOTE:
* if not preserving mode or we cannot set uid/gid, then PROHIBIT any
@@ -489,7 +497,7 @@ node_creat(arcn)
if (pmode)
set_pmode(arcn->name, arcn->sb.st_mode);
if (arcn->type == PAX_DIR) {
if (arcn->type == PAX_DIR && strcmp(NM_CPIO, argv0) != 0) {
/*
* Dirs must be processed again at end of extract to set times
* and modes to agree with those stored in the archive. However
@@ -501,7 +509,7 @@ node_creat(arcn)
*/
if (access(arcn->name, R_OK | W_OK | X_OK) < 0) {
if (lstat(arcn->name, &sb) < 0) {
sys_warn(0, errno,"Could not access %s (stat)",
syswarn(0, errno,"Could not access %s (stat)",
arcn->name);
set_pmode(arcn->name,file_mode | S_IRWXU);
} else {
@@ -543,7 +551,7 @@ node_creat(arcn)
* 1 we found a directory and we were going to create a directory.
*/
#if __STDC__
#ifdef __STDC__
int
unlnk_exist(register char *name, register int type)
#else
@@ -571,7 +579,7 @@ unlnk_exist(name, type)
if (rmdir(name) < 0) {
if (type == PAX_DIR)
return(1);
sys_warn(1,errno,"Unable to remove directory %s", name);
syswarn(1,errno,"Unable to remove directory %s", name);
return(-1);
}
return(0);
@@ -581,7 +589,7 @@ unlnk_exist(name, type)
* try to get rid of all non-directory type nodes
*/
if (unlink(name) < 0) {
sys_warn(1, errno, "Could not unlink %s", name);
syswarn(1, errno, "Could not unlink %s", name);
return(-1);
}
return(0);
@@ -601,7 +609,7 @@ unlnk_exist(name, type)
* 0 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
chk_path( register char *name, uid_t st_uid, gid_t st_gid)
#else
@@ -684,7 +692,7 @@ chk_path(name, st_uid, st_gid)
/*
* set_ftime()
* Set the access time and modification time for a named file. If frc is
* non-zero we force these times to be set even if the the user did not
* non-zero we force these times to be set even if the user did not
* request access and/or modification time preservation (this is also
* used by -t to reset access times).
* When ign is zero, only those times the user has asked for are set, the
@@ -693,7 +701,7 @@ chk_path(name, st_uid, st_gid)
* not set request.
*/
#if __STDC__
#ifdef __STDC__
void
set_ftime(char *fnm, time_t mtime, time_t atime, int frc)
#else
@@ -721,14 +729,14 @@ set_ftime(fnm, mtime, atime, frc)
if (!pmtime)
tv[1].tv_sec = (long)sb.st_mtime;
} else
sys_warn(0,errno,"Unable to obtain file stats %s", fnm);
syswarn(0,errno,"Unable to obtain file stats %s", fnm);
}
/*
* set the times
*/
if (utimes(fnm, tv) < 0)
sys_warn(1, errno, "Access/modification time set failed on: %s",
syswarn(1, errno, "Access/modification time set failed on: %s",
fnm);
return;
}
@@ -740,7 +748,7 @@ set_ftime(fnm, mtime, atime, frc)
* 0 when set, -1 on failure
*/
#if __STDC__
#ifdef __STDC__
int
set_ids(char *fnm, uid_t uid, gid_t gid)
#else
@@ -752,7 +760,46 @@ set_ids(fnm, uid, gid)
#endif
{
if (chown(fnm, uid, gid) < 0) {
sys_warn(1, errno, "Unable to set file uid/gid of %s", fnm);
/*
* ignore EPERM unless in verbose mode or being run by root.
* if running as pax, POSIX requires a warning.
*/
if (strcmp(NM_PAX, argv0) == 0 || errno != EPERM || vflag ||
geteuid() == 0)
syswarn(1, errno, "Unable to set file uid/gid of %s",
fnm);
return(-1);
}
return(0);
}
/*
* set_lids()
* set the uid and gid of a file system node
* Return:
* 0 when set, -1 on failure
*/
#ifdef __STDC__
int
set_lids(char *fnm, uid_t uid, gid_t gid)
#else
int
set_lids(fnm, uid, gid)
char *fnm;
uid_t uid;
gid_t gid;
#endif
{
if (lchown(fnm, uid, gid) < 0) {
/*
* ignore EPERM unless in verbose mode or being run by root.
* if running as pax, POSIX requires a warning.
*/
if (strcmp(NM_PAX, argv0) == 0 || errno != EPERM || vflag ||
geteuid() == 0)
syswarn(1, errno, "Unable to set file uid/gid of %s",
fnm);
return(-1);
}
return(0);
@@ -763,7 +810,7 @@ set_ids(fnm, uid, gid)
* Set file access mode
*/
#if __STDC__
#ifdef __STDC__
void
set_pmode(char *fnm, mode_t mode)
#else
@@ -775,7 +822,7 @@ set_pmode(fnm, mode)
{
mode &= ABITS;
if (chmod(fnm, mode) < 0)
sys_warn(1, errno, "Could not set permissions on %s", fnm);
syswarn(1, errno, "Could not set permissions on %s", fnm);
return;
}
@@ -827,7 +874,7 @@ set_pmode(fnm, mode)
* number of bytes written, -1 on write (or lseek) error.
*/
#if __STDC__
#ifdef __STDC__
int
file_write(int fd, char *str, register int cnt, int *rem, int *isempt, int sz,
char *name)
@@ -888,7 +935,7 @@ file_write(fd, str, cnt, rem, isempt, sz, name)
* skip, buf is empty so far
*/
if (lseek(fd, (off_t)wcnt, SEEK_CUR) < 0) {
sys_warn(1,errno,"File seek on %s",
syswarn(1,errno,"File seek on %s",
name);
return(-1);
}
@@ -905,7 +952,7 @@ file_write(fd, str, cnt, rem, isempt, sz, name)
* have non-zero data in this file system block, have to write
*/
if (write(fd, st, wcnt) != wcnt) {
sys_warn(1, errno, "Failed write to file %s", name);
syswarn(1, errno, "Failed write to file %s", name);
return(-1);
}
st += wcnt;
@@ -920,7 +967,7 @@ file_write(fd, str, cnt, rem, isempt, sz, name)
* write the last BYTE with a zero (back up one byte and write a zero).
*/
#if __STDC__
#ifdef __STDC__
void
file_flush(int fd, char *fname, int isempt)
#else
@@ -944,12 +991,12 @@ file_flush(fd, fname, isempt)
* move back one byte and write a zero
*/
if (lseek(fd, (off_t)-1, SEEK_CUR) < 0) {
sys_warn(1, errno, "Failed seek on file %s", fname);
syswarn(1, errno, "Failed seek on file %s", fname);
return;
}
if (write(fd, blnk, 1) < 0)
sys_warn(1, errno, "Failed write to file %s", fname);
syswarn(1, errno, "Failed write to file %s", fname);
return;
}
@@ -959,7 +1006,7 @@ file_flush(fd, fname, isempt)
* reset access time (tflag) do so (the times are stored in arcn).
*/
#if __STDC__
#ifdef __STDC__
void
rdfile_close(register ARCHD *arcn, register int *fd)
#else
@@ -996,7 +1043,7 @@ rdfile_close(arcn, fd)
* 0 if was able to calculate the crc, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
set_crc(register ARCHD *arcn, register int fd)
#else
@@ -1042,13 +1089,13 @@ set_crc(arcn, fd)
* they can create inconsistant archive copies.
*/
if (cpcnt != arcn->sb.st_size)
pax_warn(1, "File changed size %s", arcn->org_name);
paxwarn(1, "File changed size %s", arcn->org_name);
else if (fstat(fd, &sb) < 0)
sys_warn(1, errno, "Failed stat on %s", arcn->org_name);
syswarn(1, errno, "Failed stat on %s", arcn->org_name);
else if (arcn->sb.st_mtime != sb.st_mtime)
pax_warn(1, "File %s was modified during read", arcn->org_name);
paxwarn(1, "File %s was modified during read", arcn->org_name);
else if (lseek(fd, (off_t)0L, SEEK_SET) < 0)
sys_warn(1, errno, "File rewind failed on: %s", arcn->org_name);
syswarn(1, errno, "File rewind failed on: %s", arcn->org_name);
else {
arcn->crc = crc;
return(0);
+41 -25
View File
@@ -91,7 +91,7 @@ static int ftree_arg __P((void));
* 0 if there is at least one valid file arg to process, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
ftree_start(void)
#else
@@ -123,7 +123,7 @@ ftree_start()
ftsopts |= FTS_PHYSICAL;
if (Hflag)
# ifdef NET2_FTS
pax_warn(0, "The -H flag is not supported on this version");
paxwarn(0, "The -H flag is not supported on this version");
# else
ftsopts |= FTS_COMFOLLOW;
# endif
@@ -131,7 +131,7 @@ ftree_start()
ftsopts |= FTS_XDEV;
if ((fthead == NULL) && ((farray[0] = malloc(PAXPATHLEN+2)) == NULL)) {
pax_warn(1, "Unable to allocate memory for file name buffer");
paxwarn(1, "Unable to allocate memory for file name buffer");
return(-1);
}
@@ -150,13 +150,14 @@ ftree_start()
* 0 if added to the linked list, -1 if failed
*/
#if __STDC__
#ifdef __STDC__
int
ftree_add(register char *str)
ftree_add(register char *str, int chflg)
#else
int
ftree_add(str)
ftree_add(str, chflg)
register char *str;
int chflg;
#endif
{
register FTREE *ft;
@@ -166,7 +167,7 @@ ftree_add(str)
* simple check for bad args
*/
if ((str == NULL) || (*str == '\0')) {
pax_warn(0, "Invalid file name arguement");
paxwarn(0, "Invalid file name argument");
return(-1);
}
@@ -176,7 +177,7 @@ ftree_add(str)
* trailing / the user may pass us. (watch out for / by itself).
*/
if ((ft = (FTREE *)malloc(sizeof(FTREE))) == NULL) {
pax_warn(0, "Unable to allocate memory for filename");
paxwarn(0, "Unable to allocate memory for filename");
return(-1);
}
@@ -184,6 +185,7 @@ ftree_add(str)
str[len] = '\0';
ft->fname = str;
ft->refcnt = 0;
ft->chflg = chflg;
ft->fow = NULL;
if (fthead == NULL) {
fttail = fthead = ft;
@@ -200,7 +202,7 @@ ftree_add(str)
* -n and -d processing.
*/
#if __STDC__
#ifdef __STDC__
void
ftree_sel(register ARCHD *arcn)
#else
@@ -239,7 +241,7 @@ ftree_sel(arcn)
* have a selected member (reference count still 0)
*/
#if __STDC__
#ifdef __STDC__
void
ftree_chk(void)
#else
@@ -261,10 +263,10 @@ ftree_chk()
* that never had a match
*/
for (ft = fthead; ft != NULL; ft = ft->fow) {
if (ft->refcnt > 0)
if ((ft->refcnt > 0) || ft->chflg)
continue;
if (wban == 0) {
pax_warn(1,"WARNING! These file names were not selected:");
paxwarn(1,"WARNING! These file names were not selected:");
++wban;
}
(void)fprintf(stderr, "%s\n", ft->fname);
@@ -281,7 +283,7 @@ ftree_chk()
* stdin).
*/
#if __STDC__
#ifdef __STDC__
static int
ftree_arg(void)
#else
@@ -315,13 +317,27 @@ ftree_arg()
*pt = '\0';
} else {
/*
* the user supplied the file args as arguements to pax
* the user supplied the file args as arguments to pax
*/
if (ftcur == NULL)
ftcur = fthead;
else if ((ftcur = ftcur->fow) == NULL)
return(-1);
farray[0] = ftcur->fname;
if (ftcur->chflg) {
/* First fchdir() back... */
if (fchdir(cwdfd) < 0) {
syswarn(1, errno,
"Can't fchdir to starting directory");
return(-1);
}
if (chdir(ftcur->fname) < 0) {
syswarn(1, errno, "Can't chdir to %s",
ftcur->fname);
return(-1);
}
continue;
} else
farray[0] = ftcur->fname;
}
/*
@@ -346,7 +362,7 @@ ftree_arg()
* 0 when contents of arcn have been set with the next file, -1 when done.
*/
#if __STDC__
#ifdef __STDC__
int
next_file(register ARCHD *arcn)
#else
@@ -424,30 +440,30 @@ next_file(arcn)
/*
* fts claims a file system cycle
*/
pax_warn(1,"File system cycle found at %s",ftent->fts_path);
paxwarn(1,"File system cycle found at %s",ftent->fts_path);
continue;
case FTS_DNR:
# ifdef NET2_FTS
sys_warn(1, errno,
syswarn(1, errno,
# else
sys_warn(1, ftent->fts_errno,
syswarn(1, ftent->fts_errno,
# endif
"Unable to read directory %s", ftent->fts_path);
continue;
case FTS_ERR:
# ifdef NET2_FTS
sys_warn(1, errno,
syswarn(1, errno,
# else
sys_warn(1, ftent->fts_errno,
syswarn(1, ftent->fts_errno,
# endif
"File system traversal error");
continue;
case FTS_NS:
case FTS_NSOK:
# ifdef NET2_FTS
sys_warn(1, errno,
syswarn(1, errno,
# else
sys_warn(1, ftent->fts_errno,
syswarn(1, ftent->fts_errno,
# endif
"Unable to access %s", ftent->fts_path);
continue;
@@ -509,7 +525,7 @@ next_file(arcn)
*/
if ((cnt = readlink(ftent->fts_path, arcn->ln_name,
PAXPATHLEN - 1)) < 0) {
sys_warn(1, errno, "Unable to read symlink %s",
syswarn(1, errno, "Unable to read symlink %s",
ftent->fts_path);
continue;
}
@@ -538,7 +554,7 @@ next_file(arcn)
/*
* copy file name, set file name length
*/
arcn->nlen = l_strncpy(arcn->name, ftent->fts_path, PAXPATHLEN+1);
arcn->nlen = l_strncpy(arcn->name, ftent->fts_path, sizeof(arcn->name) - 1);
arcn->name[arcn->nlen] = '\0';
arcn->org_name = ftent->fts_path;
return(0);
+1
View File
@@ -47,5 +47,6 @@
typedef struct ftree {
char *fname; /* file tree name */
int refcnt; /* has tree had a selected file? */
int chflg; /* change directory flag */
struct ftree *fow; /* pointer to next entry on list */
} FTREE;
+30 -56
View File
@@ -76,14 +76,15 @@ static const char rcsid[] =
* list the members of an archive in ls format
*/
#if __STDC__
#ifdef __STDC__
void
ls_list(register ARCHD *arcn, time_t now)
ls_list(register ARCHD *arcn, time_t now, FILE *fp)
#else
void
ls_list(arcn, now)
ls_list(arcn, now, fp)
register ARCHD *arcn;
time_t now;
FILE *fp;
#endif
{
register struct stat *sbp;
@@ -95,8 +96,8 @@ ls_list(arcn, now)
* if not verbose, just print the file name
*/
if (!vflag) {
(void)printf("%s\n", arcn->name);
(void)fflush(stdout);
(void)fprintf(fp, "%s\n", arcn->name);
(void)fflush(fp);
return;
}
@@ -119,8 +120,8 @@ ls_list(arcn, now)
*/
if (strftime(f_date,DATELEN,timefrmt,localtime(&(sbp->st_mtime))) == 0)
f_date[0] = '\0';
(void)printf("%s%2u %-*s %-*s ", f_mode, sbp->st_nlink, UT_NAMESIZE,
name_uid(sbp->st_uid, 1), UT_GRPSIZE,
(void)fprintf(fp, "%s%2u %-*s %-*s ", f_mode, sbp->st_nlink,
UT_NAMESIZE, name_uid(sbp->st_uid, 1), UT_GRPSIZE,
name_gid(sbp->st_gid, 1));
/*
@@ -128,31 +129,31 @@ ls_list(arcn, now)
*/
if ((arcn->type == PAX_CHR) || (arcn->type == PAX_BLK))
# ifdef NET2_STAT
(void)printf("%4u,%4u ", MAJOR(sbp->st_rdev),
(void)fprintf(fp, "%4u,%4u ", MAJOR(sbp->st_rdev),
MINOR(sbp->st_rdev));
# else
(void)printf("%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev),
(void)fprintf(fp, "%4lu,%4lu ", (unsigned long)MAJOR(sbp->st_rdev),
(unsigned long)MINOR(sbp->st_rdev));
# endif
else {
# ifdef NET2_STAT
(void)printf("%9lu ", sbp->st_size);
(void)fprintf(fp, "%9lu ", sbp->st_size);
# else
(void)printf("%9qu ", sbp->st_size);
(void)fprintf(fp, "%9qu ", sbp->st_size);
# endif
}
/*
* print name and link info for hard and soft links
*/
(void)printf("%s %s", f_date, arcn->name);
(void)fprintf(fp, "%s %s", f_date, arcn->name);
if ((arcn->type == PAX_HLK) || (arcn->type == PAX_HRG))
(void)printf(" == %s\n", arcn->ln_name);
(void)fprintf(fp, " == %s\n", arcn->ln_name);
else if (arcn->type == PAX_SLK)
(void)printf(" => %s\n", arcn->ln_name);
(void)fprintf(fp, " => %s\n", arcn->ln_name);
else
(void)putchar('\n');
(void)fflush(stdout);
(void)putc('\n', fp);
(void)fflush(fp);
return;
}
@@ -161,7 +162,7 @@ ls_list(arcn, now)
* print a short summary of file to tty.
*/
#if __STDC__
#ifdef __STDC__
void
ls_tty(register ARCHD *arcn)
#else
@@ -190,44 +191,16 @@ ls_tty(arcn)
return;
}
/*
* zf_strncpy()
* copy src to dest up to len chars (stopping at first '\0'), when src is
* shorter than len, pads to len with '\0'. big performance win (and
* a lot easier to code) over strncpy(), then a strlen() then a
* bzero(). (or doing the bzero() first).
*/
#if __STDC__
void
zf_strncpy(register char *dest, register char *src, int len)
#else
void
zf_strncpy(dest, src, len)
register char *dest;
register char *src;
int len;
#endif
{
register char *stop;
stop = dest + len;
while ((dest < stop) && (*src != '\0'))
*dest++ = *src++;
while (dest < stop)
*dest++ = '\0';
return;
}
/*
* l_strncpy()
* copy src to dest up to len chars (stopping at first '\0')
* copy src to dest up to len chars (stopping at first '\0').
* when src is shorter than len, pads to len with '\0'.
* Return:
* number of chars copied. (Note this is a real performance win over
* doing a strncpy() then a strlen()
* doing a strncpy(), a strlen(), and then a possible memset())
*/
#if __STDC__
#ifdef __STDC__
int
l_strncpy(register char *dest, register char *src, int len)
#else
@@ -245,9 +218,10 @@ l_strncpy(dest, src, len)
start = dest;
while ((dest < stop) && (*src != '\0'))
*dest++ = *src++;
if (dest < stop)
*dest = '\0';
return(dest - start);
len = dest - start;
while (dest < stop)
*dest++ = '\0';
return(len);
}
/*
@@ -260,7 +234,7 @@ l_strncpy(dest, src, len)
* unsigned long value
*/
#if __STDC__
#ifdef __STDC__
u_long
asc_ul(register char *str, int len, register int base)
#else
@@ -311,7 +285,7 @@ asc_ul(str, len, base)
* NOTE: the string created is NOT TERMINATED.
*/
#if __STDC__
#ifdef __STDC__
int
ul_asc(u_long val, register char *str, register int len, register int base)
#else
@@ -374,7 +348,7 @@ ul_asc(val, str, len, base)
* u_quad_t value
*/
#if __STDC__
#ifdef __STDC__
u_quad_t
asc_uqd(register char *str, int len, register int base)
#else
@@ -425,7 +399,7 @@ asc_uqd(str, len, base)
* NOTE: the string created is NOT TERMINATED.
*/
#if __STDC__
#ifdef __STDC__
int
uqd_asc(u_quad_t val, register char *str, register int len, register int base)
#else
+71
View File
@@ -0,0 +1,71 @@
/* $OpenBSD: getoldopt.c,v 1.4 2000/01/22 20:24:51 deraadt Exp $ */
/* $NetBSD: getoldopt.c,v 1.3 1995/03/21 09:07:28 cgd Exp $ */
/*
* Plug-compatible replacement for getopt() for parsing tar-like
* arguments. If the first argument begins with "-", it uses getopt;
* otherwise, it uses the old rules used by tar, dump, and ps.
*
* Written 25 August 1985 by John Gilmore (ihnp4!hoptoad!gnu) and placed
* in the Pubic Domain for your edification and enjoyment.
*/
#ifndef lint
static const char rcsid[] = "$FreeBSD$";
#endif /* not lint */
#include <stdio.h>
#include <string.h>
#include <unistd.h>
int
getoldopt(argc, argv, optstring)
int argc;
char **argv;
char *optstring;
{
static char *key; /* Points to next keyletter */
static char use_getopt; /* !=0 if argv[1][0] was '-' */
char c;
char *place;
optarg = NULL;
if (key == NULL) { /* First time */
if (argc < 2) return EOF;
key = argv[1];
if (*key == '-')
use_getopt++;
else
optind = 2;
}
if (use_getopt)
return getopt(argc, argv, optstring);
c = *key++;
if (c == '\0') {
key--;
return EOF;
}
place = strchr(optstring, c);
if (place == NULL || c == ':') {
fprintf(stderr, "%s: unknown option %c\n", argv[0], c);
return('?');
}
place++;
if (*place == ':') {
if (optind < argc) {
optarg = argv[optind];
optind++;
} else {
fprintf(stderr, "%s: %c argument missing\n",
argv[0], c);
return('?');
}
}
return(c);
}
+632 -104
View File
File diff suppressed because it is too large. Load diff
+69 -33
View File
@@ -49,6 +49,7 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <errno.h>
#ifdef NET2_REGEX
#include <regexp.h>
#else
@@ -98,7 +99,7 @@ static int resub __P((regex_t *, regmatch_t *, char *, char *, char *));
* the list of replacement patterns; -1 otherwise.
*/
#if __STDC__
#ifdef __STDC__
int
rep_add(register char *str)
#else
@@ -119,7 +120,7 @@ rep_add(str)
* throw out the bad parameters
*/
if ((str == NULL) || (*str == '\0')) {
pax_warn(1, "Empty replacement string");
paxwarn(1, "Empty replacement string");
return(-1);
}
@@ -128,7 +129,7 @@ rep_add(str)
* this expression
*/
if ((pt1 = strchr(str+1, *str)) == NULL) {
pax_warn(1, "Invalid replacement string %s", str);
paxwarn(1, "Invalid replacement string %s", str);
return(-1);
}
@@ -137,7 +138,7 @@ rep_add(str)
* and split out the regular expression and try to compile it
*/
if ((rep = (REPLACE *)malloc(sizeof(REPLACE))) == NULL) {
pax_warn(1, "Unable to allocate memory for replacement string");
paxwarn(1, "Unable to allocate memory for replacement string");
return(-1);
}
@@ -147,7 +148,7 @@ rep_add(str)
# else
if ((res = regcomp(&(rep->rcmp), str+1, 0)) != 0) {
regerror(res, &(rep->rcmp), rebuf, sizeof(rebuf));
pax_warn(1, "%s while compiling regular expression %s", rebuf, str);
paxwarn(1, "%s while compiling regular expression %s", rebuf, str);
# endif
(void)free((char *)rep);
return(-1);
@@ -166,7 +167,7 @@ rep_add(str)
regfree(&(rep->rcmp));
# endif
(void)free((char *)rep);
pax_warn(1, "Invalid replacement string %s", str);
paxwarn(1, "Invalid replacement string %s", str);
return(-1);
}
@@ -196,7 +197,7 @@ rep_add(str)
# endif
(void)free((char *)rep);
*pt1 = *str;
pax_warn(1, "Invalid replacement string option %s", str);
paxwarn(1, "Invalid replacement string option %s", str);
return(-1);
}
++pt2;
@@ -226,13 +227,14 @@ rep_add(str)
* 0 if the pattern was added to the list, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
pat_add(char *str)
pat_add(char *str, char *chdname)
#else
int
pat_add(str)
pat_add(str, chdname)
char *str;
char *chdname;
#endif
{
register PATTERN *pt;
@@ -241,7 +243,7 @@ pat_add(str)
* throw out the junk
*/
if ((str == NULL) || (*str == '\0')) {
pax_warn(1, "Empty pattern string");
paxwarn(1, "Empty pattern string");
return(-1);
}
@@ -251,7 +253,7 @@ pat_add(str)
* node to the end of the pattern list
*/
if ((pt = (PATTERN *)malloc(sizeof(PATTERN))) == NULL) {
pax_warn(1, "Unable to allocate memory for pattern string");
paxwarn(1, "Unable to allocate memory for pattern string");
return(-1);
}
@@ -260,6 +262,8 @@ pat_add(str)
pt->plen = strlen(str);
pt->fow = NULL;
pt->flgs = 0;
pt->chdname = chdname;
if (pathead == NULL) {
pattail = pathead = pt;
return(0);
@@ -275,7 +279,7 @@ pat_add(str)
* a selected archive member.
*/
#if __STDC__
#ifdef __STDC__
void
pat_chk(void)
#else
@@ -294,7 +298,7 @@ pat_chk()
if (pt->flgs & MTCH)
continue;
if (!wban) {
pax_warn(1, "WARNING! These patterns were not matched:");
paxwarn(1, "WARNING! These patterns were not matched:");
++wban;
}
(void)fprintf(stderr, "%s\n", pt->pstr);
@@ -317,7 +321,7 @@ pat_chk()
* match, -1 otherwise.
*/
#if __STDC__
#ifdef __STDC__
int
pat_sel(register ARCHD *arcn)
#else
@@ -373,7 +377,7 @@ pat_sel(arcn)
*pt->pend = '\0';
if ((pt->pstr = strdup(arcn->name)) == NULL) {
pax_warn(1, "Pattern select out of memory");
paxwarn(1, "Pattern select out of memory");
if (pt->pend != NULL)
*pt->pend = '/';
pt->pend = NULL;
@@ -421,7 +425,7 @@ pat_sel(arcn)
/*
* should never happen....
*/
pax_warn(1, "Pattern list inconsistant");
paxwarn(1, "Pattern list inconsistant");
return(-1);
}
*ppt = pt->fow;
@@ -442,7 +446,7 @@ pat_sel(arcn)
* looking for more members)
*/
#if __STDC__
#ifdef __STDC__
int
pat_match(register ARCHD *arcn)
#else
@@ -520,7 +524,7 @@ pat_match(arcn)
* Note: *pend may be changed to show where the prefix ends.
*/
#if __STDC__
#ifdef __STDC__
static int
fn_match(register char *pattern, register char *string, char **pend)
#else
@@ -616,7 +620,7 @@ range_match(pattern, test)
int negate;
int ok = 0;
if ((negate = (*pattern == '!')))
if ((negate = (*pattern == '!')) != 0)
++pattern;
while ((c = *pattern++) != ']') {
@@ -651,7 +655,7 @@ range_match(pattern, test)
* 0 continue to process file, 1 skip this file, -1 pax is finished
*/
#if __STDC__
#ifdef __STDC__
int
mod_name(register ARCHD *arcn)
#else
@@ -662,6 +666,38 @@ mod_name(arcn)
{
register int res = 0;
/*
* Strip off leading '/' if appropriate.
* Currently, this option is only set for the tar format.
*/
if (rmleadslash && arcn->name[0] == '/') {
if (arcn->name[1] == '\0') {
arcn->name[0] = '.';
} else {
(void)memmove(arcn->name, &arcn->name[1],
strlen(arcn->name));
arcn->nlen--;
}
if (rmleadslash < 2) {
rmleadslash = 2;
paxwarn(0, "Removing leading / from absolute path names in the archive");
}
}
if (rmleadslash && arcn->ln_name[0] == '/' &&
(arcn->type == PAX_HLK || arcn->type == PAX_HRG)) {
if (arcn->ln_name[1] == '\0') {
arcn->ln_name[0] = '.';
} else {
(void)memmove(arcn->ln_name, &arcn->ln_name[1],
strlen(arcn->ln_name));
arcn->ln_nlen--;
}
if (rmleadslash < 2) {
rmleadslash = 2;
paxwarn(0, "Removing leading / from absolute path names in the archive");
}
}
/*
* IMPORTANT: We have a problem. what do we do with symlinks?
* Modifying a hard link name makes sense, as we know the file it
@@ -703,7 +739,7 @@ mod_name(arcn)
return(res);
if ((arcn->type == PAX_SLK) || (arcn->type == PAX_HLK) ||
(arcn->type == PAX_HRG))
sub_name(arcn->ln_name, &(arcn->ln_nlen));
sub_name(arcn->ln_name, &(arcn->ln_nlen), sizeof(arcn->ln_name));
}
return(res);
}
@@ -718,7 +754,7 @@ mod_name(arcn)
* 0 process this file, 1 skip this file, -1 we need to exit pax
*/
#if __STDC__
#ifdef __STDC__
static int
tty_rename(register ARCHD *arcn)
#else
@@ -775,8 +811,8 @@ tty_rename(arcn)
*/
tty_prnt("Processing continues, name changed to: %s\n", tmpname);
res = add_name(arcn->name, arcn->nlen, tmpname);
arcn->nlen = l_strncpy(arcn->name, tmpname, PAXPATHLEN+1);
arcn->name[PAXPATHLEN] = '\0';
arcn->nlen = l_strncpy(arcn->name, tmpname, sizeof(arcn->name) - 1);
arcn->name[arcn->nlen] = '\0';
if (res < 0)
return(-1);
return(0);
@@ -790,7 +826,7 @@ tty_rename(arcn)
* 0 if ok, -1 if failure (name too long)
*/
#if __STDC__
#ifdef __STDC__
int
set_dest(register ARCHD *arcn, char *dest_dir, int dir_len)
#else
@@ -825,7 +861,7 @@ set_dest(arcn, dest_dir, dir_len)
* 0 if ok, -1 if the final name is too long
*/
#if __STDC__
#ifdef __STDC__
static int
fix_path( char *or_name, int *or_len, char *dir_name, int dir_len)
#else
@@ -856,7 +892,7 @@ fix_path(or_name, or_len, dir_name, dir_len)
--dest;
}
if ((len = dest - or_name) > PAXPATHLEN) {
pax_warn(1, "File name %s/%s, too long", dir_name, start);
paxwarn(1, "File name %s/%s, too long", dir_name, start);
return(-1);
}
*or_len = len;
@@ -897,7 +933,7 @@ fix_path(or_name, or_len, dir_name, dir_len)
* ended up empty)
*/
#if __STDC__
#ifdef __STDC__
static int
rep_name(char *name, int *nlen, int prnt)
#else
@@ -983,7 +1019,7 @@ rep_name(name, nlen, prnt)
< 0) {
# endif
if (prnt)
pax_warn(1, "Replacement name error %s",
paxwarn(1, "Replacement name error %s",
name);
return(1);
}
@@ -1034,7 +1070,7 @@ rep_name(name, nlen, prnt)
*outpt = '\0';
if ((outpt == endpt) && (*inpt != '\0')) {
if (prnt)
pax_warn(1,"Replacement name too long %s >> %s",
paxwarn(1,"Replacement name too long %s >> %s",
name, nname);
return(1);
}
@@ -1071,7 +1107,7 @@ rep_name(name, nlen, prnt)
* -1 if error, or the number of characters added to the destination.
*/
#if __STDC__
#ifdef __STDC__
static int
resub(regexp *prog, char *src, char *dest, register char *destend)
#else
@@ -1129,7 +1165,7 @@ resub(prog, src, dest, destend)
* -1 if error, or the number of characters added to the destination.
*/
#if __STDC__
#ifdef __STDC__
static int
resub(regex_t *rp, register regmatch_t *pm, char *src, char *dest,
register char *destend)
+72 -54
View File
@@ -38,13 +38,13 @@
.\"
.Dd April 18, 1994
.Dt PAX 1
.Os BSD 4.4
.Os
.Sh NAME
.Nm pax
.Nd read and write file archives and copy directory hierarchies
.Sh SYNOPSIS
.Nm
.Op Fl cdnv
.Op Fl cdnvz
.Bk -words
.Op Fl f Ar archive
.Ek
@@ -71,7 +71,7 @@
.Op Ar pattern ...\&
.Nm
.Fl r
.Op Fl cdiknuvDYZ
.Op Fl cdiknuvzDYZ
.Bk -words
.Op Fl f Ar archive
.Ek
@@ -107,7 +107,7 @@
.Op Ar pattern ...\&
.Nm
.Fl w
.Op Fl dituvHLPX
.Op Fl dituvzHLPX
.Bk -words
.Op Fl b Ar blocksize
.Ek
@@ -182,7 +182,7 @@
.Nm Pax
will read, write, and list the members of an archive file,
and will copy directory hierarchies.
.Nm Pax
.Nm Pax
operation is independent of the specific archive format,
and supports a wide variety of different archive formats.
A list of supported archive formats can be found under the description of the
@@ -216,7 +216,7 @@ and is written using single line buffering.
.Nm Pax
extracts the members of the archive file read from the
.Dv standard input ,
with pathnames matching the specified
with pathnames matching the specified
.Ar patterns .
The archive format and blocking is automatically determined on input.
When an extracted file is a directory, the entire file hierarchy
@@ -229,16 +229,16 @@ option.
.It Fl w
.Em Write .
.Nm Pax
writes an archive containing the
writes an archive containing the
.Ar file
operands to
.Dv standard output
using the specified archive format.
When no
When no
.Ar file
operands are specified, a list of files to copy with one per line is read from
operands are specified, a list of files to copy with one per line is read from
.Dv standard input .
When a
When a
.Ar file
operand is also a directory, the entire file hierarchy rooted
at that directory will be included.
@@ -249,7 +249,7 @@ copies the
.Ar file
operands to the destination
.Ar directory .
When no
When no
.Ar file
operands are specified, a list of files to copy with one per line is read from
the
@@ -290,7 +290,6 @@ to locate and process the largest number of archive members possible (see the
.Fl E
option for more details on error handling).
.Sh OPERANDS
.Pp
The
.Ar directory
operand specifies a destination directory pathname.
@@ -307,10 +306,10 @@ operand is used to select one or more pathnames of archive members.
Archive members are selected using the pattern matching notation described
by
.Xr fnmatch 3 .
When the
When the
.Ar pattern
operand is not supplied, all members of the archive will be selected.
When a
When a
.Ar pattern
matches a directory, the entire file hierarchy rooted at that directory will
be selected.
@@ -337,7 +336,6 @@ operand pathnames in a diagnostic message to
.Dv standard error
and then exit with a non-zero exit status.
.Sh OPTIONS
.Pp
The following options are supported:
.Bl -tag -width 4n
.It Fl r
@@ -349,11 +347,11 @@ If any intermediate directories are needed in order to extract an archive
member, these directories will be created as if
.Xr mkdir 2
was called with the bitwise inclusive
.Dv OR
.Dv OR
of
.Dv S_IRWXU , S_IRWXG ,
and
.Dv S_IRWXO
.Dv S_IRWXO
as the mode argument.
When the selected archive format supports the specification of linked
files and these files cannot be linked while the archive is being extracted,
@@ -380,7 +378,7 @@ If an archive format is not specified with a
.Fl x
option, the format currently being used in the archive will be selected.
Any attempt to append to an archive in a format different from the
format already used in the archive will cause
format already used in the archive will cause
.Nm
to exit immediately
with a non-zero exit status.
@@ -403,7 +401,10 @@ block the output at a positive decimal integer number of
bytes per write to the archive file.
The
.Ar blocksize
must be a multiple of 512 bytes with a maximum of 32256 bytes.
must be a multiple of 512 bytes with a maximum of 64512 bytes.
Archives larger than 32256 bytes violate the
.Tn POSIX
standard and will not be portable to all systems.
A
.Ar blocksize
can end with
@@ -418,7 +419,7 @@ can be separated by
to indicate a product.
A specific archive device may impose additional restrictions on the size
of blocking it will support.
When blocking is not specified, the default
When blocking is not specified, the default
.Ar blocksize
is dependent on the specific archive format being used (see the
.Fl x
@@ -472,7 +473,7 @@ If this line consists of a single period, the
file or archive member is processed with no modification to its name.
Otherwise, its name is replaced with the contents of the line.
.Nm Pax
will immediately exit with a non-zero exit status if
will immediately exit with a non-zero exit status if
.Dv <EOF>
is encountered when reading a response or if
.Pa /dev/tty
@@ -484,9 +485,8 @@ Link files.
(The letter ell).
In the
.Em copy
mode (
.Fl r
.Fl w ) ,
mode
.Pq Fl r w ,
hard links are made between the source and destination file hierarchies
whenever possible.
.It Fl n
@@ -497,7 +497,7 @@ No more than one archive member is matched for each
.Ar pattern .
When members of type directory are matched, the file hierarchy rooted at that
directory is also matched (unless
.Fl d
.Fl d
is also specified).
.It Fl o Ar options
Information to modify the algorithm for extracting or writing archive files
@@ -519,7 +519,7 @@ and
.Cm p .
Multiple characteristics can be concatenated within the same string
and multiple
.Fl p
.Fl p
options can be specified.
The meaning of the specification characters are as follows:
.Bl -tag -width 2n
@@ -534,10 +534,10 @@ This is intended to be used by
.Em root ,
someone with all the appropriate privileges, in order to preserve all
aspects of the files as they are recorded in the archive.
The
The
.Cm e
flag is the sum of the
.Cm o
.Cm o
and
.Cm p
flags.
@@ -550,7 +550,7 @@ Preserve the user ID and group ID.
.Sq Preserve
the file mode bits.
This intended to be used by a
.Em user
.Em user
with regular privileges who wants to preserve all aspects of the file other
than the ownership.
The file times are preserved by default, but two other flags are offered to
@@ -564,7 +564,7 @@ extracted file, subject to the permissions of the invoking
process.
Otherwise the attribute of the extracted file is determined as
part of the normal file creation action.
If neither the
If neither the
.Cm e
nor the
.Cm o
@@ -572,7 +572,7 @@ specification character is specified, or the user ID and group ID are not
preserved for any reason,
.Nm
will not set the
.Dv S_ISUID
.Dv S_ISUID
.Em ( setuid )
and
.Dv S_ISGID
@@ -670,13 +670,13 @@ the output has the format:
.Dl <ls -l listing> == <link name>
For pathnames representing a symbolic link, the output has the format:
.Dl <ls -l listing> => <link name>
Where <ls -l listing> is the output format specified by the
Where <ls -l listing> is the output format specified by the
.Xr ls 1
utility when used with the
.Fl l
option.
Otherwise for all the other operational modes (
.Em read , write ,
Otherwise for all the other operational modes
.Em ( read , write ,
and
.Em copy ) ,
pathnames are written and flushed to
@@ -727,7 +727,10 @@ by this format) which may be truncated by this format is detected by
.Nm
and is repaired.
.It Ar tar
The old BSD tar format as found in BSD4.3.
The old
.Bx
tar format as found in
.Bx 4.3 .
The default blocksize for this format is 10240 bytes.
Pathnames stored by this format must be 100 characters or less in length.
Only
@@ -756,6 +759,12 @@ as the result of any specific archive format restrictions.
The individual archive formats may impose additional restrictions on use.
Typical archive format restrictions include (but are not limited to):
file pathname length, file size, link pathname length and the type of the file.
.It Fl z
Use
.Xr gzip 1
to compress (decompress) the archive while writing (reading).
Incompatible with
.Fl a .
.It Fl B Ar bytes
Limit the number of bytes written to a single archive volume to
.Ar bytes .
@@ -776,7 +785,7 @@ to indicate a product.
.Em Warning :
Only use this option when writing an archive to a device which supports
an end of file read condition based on last (or largest) write offset
(such as a regular file or a tape drive).
(such as a regular file or a tape drive).
The use of this option with a floppy or hard disk is not recommended.
.It Fl D
This option is the same as the
@@ -807,7 +816,7 @@ of
will cause
.Nm
to attempt to recover from read errors forever.
The default
The default
.Ar limit
is a small positive number of retries.
.Pp
@@ -825,7 +834,7 @@ name, or when starting with a
a numeric gid.
A '\\' can be used to escape the
.Cm # .
Multiple
Multiple
.Fl G
options may be supplied and checking stops with the first match.
.It Fl H
@@ -838,12 +847,12 @@ Do not follow symbolic links, perform a physical file system traversal.
This is the default mode.
.It Fl T Ar [from_date][,to_date][/[c][m]]
Allow files to be selected based on a file modification or inode change
time falling within a specified time range of
time falling within a specified time range of
.Ar from_date
to
.Ar to_date
(the dates are inclusive).
If only a
If only a
.Ar from_date
is supplied, all files with a modification or inode change time
equal to or younger are selected.
@@ -851,7 +860,7 @@ If only a
.Ar to_date
is supplied, all files with a modification or inode change time
equal to or older will be selected.
When the
When the
.Ar from_date
is equal to the
.Ar to_date ,
@@ -860,7 +869,7 @@ time will be selected.
.Pp
When
.Nm
is in the
is in the
.Em write
or
.Em copy
@@ -877,7 +886,7 @@ The
.Ar c
specifies the comparison of inode change time (the time when the file
inode was last changed; e.g. a change of owner, group, mode, etc).
When
When
.Ar c
and
.Ar m
@@ -918,14 +927,14 @@ The minute field
is required, while the other fields are optional and must be added in the
following order:
.Dl Cm hh , dd , mm , yy .
The
The
.Cm ss
field may be added independently of the other fields.
Time ranges are relative to the current time, so
.Dl Fl T Ar 1234/cm
would select all files with a modification or inode change time
of 12:34 PM today or later.
Multiple
Multiple
.Fl T
time range can be supplied and checking stops with the first match.
.It Fl U Ar user
@@ -936,14 +945,14 @@ name, or when starting with a
a numeric uid.
A '\\' can be used to escape the
.Cm # .
Multiple
Multiple
.Fl U
options may be supplied and checking stops with the first match.
.It Fl X
When traversing the file hierarchy specified by a pathname,
do not descend into directories that have a different device ID.
See the
.Li st_dev
.Li st_dev
field as described in
.Xr stat 2
for more information about device ID's.
@@ -959,8 +968,8 @@ option, except that the modification time is checked using the
pathname created after all the file name modifications have completed.
.El
.Pp
The options that operate on the names of files or archive members (
.Fl c ,
The options that operate on the names of files or archive members
.Fl ( c ,
.Fl i ,
.Fl n ,
.Fl s ,
@@ -998,7 +1007,7 @@ Then the
and
.Fl Z
options will be applied based on the final pathname.
Finally the
Finally the
.Fl v
option will write the names resulting from these modifications.
.Pp
@@ -1014,13 +1023,13 @@ based only on the user specified pathnames as modified by the
.Fl D ,
.Fl G ,
.Fl T ,
and
and
.Fl U
options (the
.Fl D
option only applies during a copy operation).
Then any
.Fl s
.Fl s
and
.Fl i
options will modify in that order, the names of these selected files.
@@ -1065,7 +1074,7 @@ directory hierarchy to
.Pp
The command:
.Dl pax -r -s ',^//*usr//*,,' -f a.pax
reads the archive
reads the archive
.Pa a.pax ,
with all files rooted in ``/usr'' into the archive extracted relative to the
current directory.
@@ -1100,6 +1109,7 @@ utility is a superset of the
.St -p1003.2
standard.
The options
.Fl z ,
.Fl B ,
.Fl D ,
.Fl E ,
@@ -1123,6 +1133,14 @@ and
operations are extensions to the
.Tn POSIX
standard.
.Sh SEE ALSO
.Xr cpio 1 ,
.Xr tar 1
.Sh HISTORY
The
.Nm
utility appeared in
.Bx 4.4 .
.Sh AUTHORS
.An Keith Muller
at the University of California, San Diego
@@ -1132,7 +1150,7 @@ will exit with one of the following values:
.Bl -tag -width 2n
.It 0
All files were processed successfully.
.It 1
.It 1
An error occurred.
.El
.Pp
+51 -8
View File
@@ -53,11 +53,15 @@ static const char rcsid[] =
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <locale.h>
#include <paths.h>
#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include "pax.h"
#include "extern.h"
@@ -73,6 +77,7 @@ static int gen_init __P((void));
int act = DEFOP; /* read/write/append/copy */
FSUB *frmt = NULL; /* archive format type */
int cflag; /* match all EXCEPT pattern/file */
int cwdfd; /* starting cwd */
int dflag; /* directory member match only */
int iflag; /* interactive file/archive rename */
int kflag; /* do not overwrite existing files */
@@ -90,13 +95,18 @@ int Zflag; /* same as uflg except after name mode */
int vfpart; /* is partial verbose output in progress */
int patime = 1; /* preserve file access time */
int pmtime = 1; /* preserve file modification times */
int nodirs; /* do not create directories as needed */
int pmode; /* preserve file mode bits */
int pids; /* preserve file uid/gid */
int rmleadslash = 0; /* remove leading '/' from pathnames */
int exit_val; /* exit value */
int docrc; /* check/create file crc */
char *dirptr; /* destination dir in a copy */
char *argv0; /* root of argv[0] */
sigset_t s_mask; /* signal mask for cleanup critical sect */
FILE *listf = stderr; /* file pointer to print file list to */
char *tempfile; /* tempfile to use for mkstemp(3) */
char *tempbase; /* basename of tempfile to use for mkstemp(3) */
/*
* PAX - Portable Archive Interchange
@@ -218,7 +228,7 @@ sigset_t s_mask; /* signal mask for cleanup critical sect */
* Return: 0 if ok, 1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
main(int argc, char **argv)
#else
@@ -228,12 +238,42 @@ main(argc, argv)
char **argv;
#endif
{
char *tmpdir;
size_t tdlen;
(void) setlocale(LC_ALL, "");
/*
* Keep a reference to cwd, so we can always come back home.
*/
cwdfd = open(".", O_RDONLY);
if (cwdfd < 0) {
syswarn(0, errno, "Can't open current working directory.");
return(exit_val);
}
/*
* Where should we put temporary files?
*/
if ((tmpdir = getenv("TMPDIR")) == NULL || *tmpdir == '\0')
tmpdir = _PATH_TMP;
tdlen = strlen(tmpdir);
while(tdlen > 0 && tmpdir[tdlen - 1] == '/')
tdlen--;
tempfile = malloc(tdlen + 1 + sizeof(_TFILE_BASE));
if (tempfile == NULL) {
paxwarn(1, "Cannot allocate memory for temp file name.");
return(exit_val);
}
if (tdlen)
memcpy(tempfile, tmpdir, tdlen);
tempbase = tempfile + tdlen;
*tempbase++ = '/';
/*
* parse options, determine operational mode, general init
*/
options(argc, argv);
if ((gen_init() < 0) || (tty_init() < 0))
if ((gen_init() < 0) || (tty_init() < 0))
return(exit_val);
/*
@@ -247,6 +287,8 @@ main(argc, argv)
archive();
break;
case APPND:
if (gzip_program != NULL)
err(1, "can not gzip while appending");
append();
break;
case COPY:
@@ -269,7 +311,7 @@ main(argc, argv)
* never....
*/
#if __STDC__
#ifdef __STDC__
void
sig_cleanup(int which_sig)
#else
@@ -285,9 +327,9 @@ sig_cleanup(which_sig)
*/
vflag = vfpart = 1;
if (which_sig == SIGXCPU)
pax_warn(0, "Cpu time limit reached, cleaning up.");
paxwarn(0, "Cpu time limit reached, cleaning up.");
else
pax_warn(0, "Signal caught, cleaning up.");
paxwarn(0, "Signal caught, cleaning up.");
ar_close();
proc_dir();
@@ -302,7 +344,7 @@ sig_cleanup(which_sig)
* when dealing with a medium to large sized archives.
*/
#if __STDC__
#ifdef __STDC__
static int
gen_init(void)
#else
@@ -358,9 +400,10 @@ gen_init()
(sigaddset(&s_mask,SIGINT) < 0)||(sigaddset(&s_mask,SIGHUP) < 0) ||
(sigaddset(&s_mask,SIGPIPE) < 0)||(sigaddset(&s_mask,SIGQUIT)<0) ||
(sigaddset(&s_mask,SIGXCPU) < 0)||(sigaddset(&s_mask,SIGXFSZ)<0)) {
pax_warn(1, "Unable to set up signal mask");
paxwarn(1, "Unable to set up signal mask");
return(-1);
}
memset(&n_hand, 0, sizeof n_hand);
n_hand.sa_mask = s_mask;
n_hand.sa_flags = 0;
n_hand.sa_handler = sig_cleanup;
@@ -397,6 +440,6 @@ gen_init()
return(0);
out:
sys_warn(1, errno, "Unable to set up signal handler");
syswarn(1, errno, "Unable to set up signal handler");
return(-1);
}
+10 -7
View File
@@ -42,15 +42,16 @@
* BSD PAX global data structures and constants.
*/
#define MAXBLK 32256 /* MAX blocksize supported (posix SPEC) */
#define MAXBLK 64512 /* MAX blocksize supported (posix SPEC) */
/* WARNING: increasing MAXBLK past 32256 */
/* will violate posix spec. */
#define MAXBLK_POSIX 32256 /* MAX blocksize supported as per POSIX */
#define BLKMULT 512 /* blocksize must be even mult of 512 bytes */
/* Don't even think of changing this */
#define DEVBLK 8192 /* default read blksize for devices */
#define FILEBLK 10240 /* default read blksize for files */
#define PAXPATHLEN 3072 /* maximum path length for pax. MUST be */
/* longer than the system MAXPATHLEN */
/* longer than the system PATH_MAX */
/*
* Pax modes of operation
@@ -87,7 +88,7 @@ typedef struct {
int bsz; /* default block size. used when the user */
/* does not specify a blocksize for writing */
/* Appends continue to with the blocksize */
/* the archive is currently using.*/
/* the archive is currently using. */
int hsz; /* Header size in bytes. this is the size of */
/* the smallest header this format supports. */
/* Headers are assumed to fit in a BLKMULT. */
@@ -164,6 +165,7 @@ typedef struct {
typedef struct pattern {
char *pstr; /* pattern to match, user supplied */
char *pend; /* end of a prefix match */
char *chdname; /* the dir to change to if not NULL. */
int plen; /* length of pstr */
int flgs; /* processing/state flags */
#define MTCH 0x1 /* pattern has been matched */
@@ -225,7 +227,7 @@ typedef struct oplist {
* General Macros
*/
#ifndef MIN
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b))
#endif
#define MAJOR(x) major(x)
#define MINOR(x) minor(x)
@@ -234,6 +236,7 @@ typedef struct oplist {
/*
* General Defines
*/
#define HEX 16
#define OCT 8
#define _PAX_ 1
#define HEX 16
#define OCT 8
#define _PAX_ 1
#define _TFILE_BASE "paxXXXXXXXXXX"
+43 -43
View File
@@ -78,7 +78,7 @@ static GRPT **grptb = NULL; /* group selection table */
* 0 if this archive member should be processed, 1 if it should be skipped
*/
#if __STDC__
#ifdef __STDC__
int
sel_chk(register ARCHD *arcn)
#else
@@ -109,7 +109,7 @@ sel_chk(arcn)
* 0 if added ok, -1 otherwise;
*/
#if __STDC__
#ifdef __STDC__
int
usr_add(register char *str)
#else
@@ -130,8 +130,8 @@ usr_add(str)
return(-1);
if ((usrtb == NULL) &&
((usrtb = (USRT **)calloc(USR_TB_SZ, sizeof(USRT *))) == NULL)) {
pax_warn(1, "Unable to allocate memory for user selection table");
return(-1);
paxwarn(1, "Unable to allocate memory for user selection table");
return(-1);
}
/*
@@ -144,15 +144,15 @@ usr_add(str)
if ((str[0] == '\\') && (str[1] == '#'))
++str;
if ((pw = getpwnam(str)) == NULL) {
pax_warn(1, "Unable to find uid for user: %s", str);
return(-1);
paxwarn(1, "Unable to find uid for user: %s", str);
return(-1);
}
uid = (uid_t)pw->pw_uid;
} else
} else
# ifdef NET2_STAT
uid = (uid_t)atoi(str+1);
# else
uid = (uid_t)strtoul(str+1, (char **)NULL, 10);
uid = (uid_t)strtoul(str+1, NULL, 10);
# endif
endpwent();
@@ -161,11 +161,11 @@ usr_add(str)
*/
indx = ((unsigned)uid) % USR_TB_SZ;
if ((pt = usrtb[indx]) != NULL) {
while (pt != NULL) {
if (pt->uid == uid)
while (pt != NULL) {
if (pt->uid == uid)
return(0);
pt = pt->fow;
}
pt = pt->fow;
}
}
/*
@@ -177,8 +177,8 @@ usr_add(str)
usrtb[indx] = pt;
return(0);
}
pax_warn(1, "User selection table out of memory");
return(-1);
paxwarn(1, "User selection table out of memory");
return(-1);
}
/*
@@ -188,7 +188,7 @@ usr_add(str)
* 0 if this archive member should be processed, 1 if it should be skipped
*/
#if __STDC__
#ifdef __STDC__
static int
usr_match(register ARCHD *arcn)
#else
@@ -222,7 +222,7 @@ usr_match(arcn)
* 0 if added ok, -1 otherwise;
*/
#if __STDC__
#ifdef __STDC__
int
grp_add(register char *str)
#else
@@ -243,8 +243,8 @@ grp_add(str)
return(-1);
if ((grptb == NULL) &&
((grptb = (GRPT **)calloc(GRP_TB_SZ, sizeof(GRPT *))) == NULL)) {
pax_warn(1, "Unable to allocate memory fo group selection table");
return(-1);
paxwarn(1, "Unable to allocate memory fo group selection table");
return(-1);
}
/*
@@ -257,15 +257,15 @@ grp_add(str)
if ((str[0] == '\\') && (str[1] == '#'))
++str;
if ((gr = getgrnam(str)) == NULL) {
pax_warn(1,"Cannot determine gid for group name: %s", str);
return(-1);
paxwarn(1,"Cannot determine gid for group name: %s", str);
return(-1);
}
gid = (gid_t)gr->gr_gid;
} else
} else
# ifdef NET2_STAT
gid = (gid_t)atoi(str+1);
# else
gid = (gid_t)strtoul(str+1, (char **)NULL, 10);
gid = (gid_t)strtoul(str+1, NULL, 10);
# endif
endgrent();
@@ -274,11 +274,11 @@ grp_add(str)
*/
indx = ((unsigned)gid) % GRP_TB_SZ;
if ((pt = grptb[indx]) != NULL) {
while (pt != NULL) {
if (pt->gid == gid)
while (pt != NULL) {
if (pt->gid == gid)
return(0);
pt = pt->fow;
}
pt = pt->fow;
}
}
/*
@@ -290,8 +290,8 @@ grp_add(str)
grptb[indx] = pt;
return(0);
}
pax_warn(1, "Group selection table out of memory");
return(-1);
paxwarn(1, "Group selection table out of memory");
return(-1);
}
/*
@@ -301,7 +301,7 @@ grp_add(str)
* 0 if this archive member should be processed, 1 if it should be skipped
*/
#if __STDC__
#ifdef __STDC__
static int
grp_match(register ARCHD *arcn)
#else
@@ -357,7 +357,7 @@ grp_match(arcn)
* 0 if the time range was added to the list, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
trng_add(register char *str)
#else
@@ -376,14 +376,14 @@ trng_add(str)
* throw out the badly formed time ranges
*/
if ((str == NULL) || (*str == '\0')) {
pax_warn(1, "Empty time range string");
paxwarn(1, "Empty time range string");
return(-1);
}
/*
* locate optional flags suffix /{cm}.
*/
if ((flgpt = rindex(str, '/')) != NULL)
if ((flgpt = strrchr(str, '/')) != NULL)
*flgpt++ = '\0';
for (stpt = str; *stpt != '\0'; ++stpt) {
@@ -403,7 +403,7 @@ trng_add(str)
++dot;
continue;
}
pax_warn(1, "Improperly specified time range: %s", str);
paxwarn(1, "Improperly specified time range: %s", str);
goto out;
}
@@ -411,7 +411,7 @@ trng_add(str)
* allocate space for the time range and store the limits
*/
if ((pt = (TIME_RNG *)malloc(sizeof(TIME_RNG))) == NULL) {
pax_warn(1, "Unable to allocate memory for time range");
paxwarn(1, "Unable to allocate memory for time range");
return(-1);
}
@@ -434,7 +434,7 @@ trng_add(str)
pt->flgs |= CMPCTME;
break;
default:
pax_warn(1, "Bad option %c with time range %s",
paxwarn(1, "Bad option %c with time range %s",
*flgpt, str);
goto out;
}
@@ -445,13 +445,13 @@ trng_add(str)
/*
* start off with the current time
*/
pt->low_time = pt->high_time = time((time_t *)NULL);
pt->low_time = pt->high_time = time(NULL);
if (*str != '\0') {
/*
* add lower limit
*/
if (str_sec(str, &(pt->low_time)) < 0) {
pax_warn(1, "Illegal lower time range %s", str);
paxwarn(1, "Illegal lower time range %s", str);
(void)free((char *)pt);
goto out;
}
@@ -463,7 +463,7 @@ trng_add(str)
* add upper limit
*/
if (str_sec(up_pt, &(pt->high_time)) < 0) {
pax_warn(1, "Illegal upper time range %s", up_pt);
paxwarn(1, "Illegal upper time range %s", up_pt);
(void)free((char *)pt);
goto out;
}
@@ -474,7 +474,7 @@ trng_add(str)
*/
if (pt->flgs & HASLOW) {
if (pt->low_time > pt->high_time) {
pax_warn(1, "Upper %s and lower %s time overlap",
paxwarn(1, "Upper %s and lower %s time overlap",
up_pt, str);
(void)free((char *)pt);
return(-1);
@@ -492,7 +492,7 @@ trng_add(str)
return(0);
out:
pax_warn(1, "Time range format is: [yy[mm[dd[hh]]]]mm[.ss][/[c][m]]");
paxwarn(1, "Time range format is: [yy[mm[dd[hh]]]]mm[.ss][/[c][m]]");
return(-1);
}
@@ -503,7 +503,7 @@ trng_add(str)
* 0 if this archive member should be processed, 1 if it should be skipped
*/
#if __STDC__
#ifdef __STDC__
static int
trng_match(register ARCHD *arcn)
#else
@@ -578,7 +578,7 @@ trng_match(arcn)
* 0 if converted ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
static int
str_sec(register char *str, time_t *tval)
#else
@@ -592,7 +592,7 @@ str_sec(str, tval)
register char *dot = NULL;
lt = localtime(tval);
if ((dot = index(str, '.')) != NULL) {
if ((dot = strchr(str, '.')) != NULL) {
/*
* seconds (.ss)
*/
+71 -75
View File
@@ -105,7 +105,7 @@ static DEVT *chk_dev __P((dev_t, int));
* 0 if created, -1 if failure
*/
#if __STDC__
#ifdef __STDC__
int
lnk_start(void)
#else
@@ -116,9 +116,9 @@ lnk_start()
if (ltab != NULL)
return(0);
if ((ltab = (HRDLNK **)calloc(L_TAB_SZ, sizeof(HRDLNK *))) == NULL) {
pax_warn(1, "Cannot allocate memory for hard link table");
return(-1);
}
paxwarn(1, "Cannot allocate memory for hard link table");
return(-1);
}
return(0);
}
@@ -134,7 +134,7 @@ lnk_start()
* if found returns 1; if not found returns 0; -1 on error
*/
#if __STDC__
#ifdef __STDC__
int
chk_lnk(register ARCHD *arcn)
#else
@@ -180,8 +180,8 @@ chk_lnk(arcn)
* other links.
*/
arcn->ln_nlen = l_strncpy(arcn->ln_name, pt->name,
PAXPATHLEN+1);
arcn->ln_name[PAXPATHLEN] = '\0';
sizeof(arcn->ln_name) - 1);
arcn->ln_name[arcn->ln_nlen] = '\0';
if (arcn->type == PAX_REG)
arcn->type = PAX_HRG;
else
@@ -216,7 +216,7 @@ chk_lnk(arcn)
(void)free((char *)pt);
}
pax_warn(1, "Hard link table out of memory");
paxwarn(1, "Hard link table out of memory");
return(-1);
}
@@ -227,7 +227,7 @@ chk_lnk(arcn)
* we do not want to accidently point another file at it later on.
*/
#if __STDC__
#ifdef __STDC__
void
purg_lnk(register ARCHD *arcn)
#else
@@ -287,7 +287,7 @@ purg_lnk(arcn)
* write phase
*/
#if __STDC__
#ifdef __STDC__
void
lnk_end(void)
#else
@@ -352,7 +352,7 @@ lnk_end()
* 0 if the table and file was created ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
ftime_start(void)
#else
@@ -360,29 +360,26 @@ int
ftime_start()
#endif
{
char *pt;
if (ftab != NULL)
return(0);
if ((ftab = (FTM **)calloc(F_TAB_SZ, sizeof(FTM *))) == NULL) {
pax_warn(1, "Cannot allocate memory for file time table");
return(-1);
}
paxwarn(1, "Cannot allocate memory for file time table");
return(-1);
}
/*
* get random name and create temporary scratch file, unlink name
* so it will get removed on exit
*/
if ((pt = tempnam((char *)NULL, (char *)NULL)) == NULL)
return(-1);
(void)unlink(pt);
if ((ffd = open(pt, O_RDWR | O_CREAT, S_IRWXU)) < 0) {
sys_warn(1, errno, "Unable to open temporary file: %s", pt);
memcpy(tempbase, _TFILE_BASE, sizeof(_TFILE_BASE));
if ((ffd = mkstemp(tempfile)) < 0) {
syswarn(1, errno, "Unable to create temporary file: %s",
tempfile);
return(-1);
}
(void)unlink(tempfile);
(void)unlink(pt);
return(0);
}
@@ -398,7 +395,7 @@ ftime_start()
* -1 on error
*/
#if __STDC__
#ifdef __STDC__
int
chk_ftime(register ARCHD *arcn)
#else
@@ -436,12 +433,12 @@ chk_ftime(arcn)
* from the scratch file.
*/
if (lseek(ffd,pt->seek,SEEK_SET) != pt->seek) {
sys_warn(1, errno,
syswarn(1, errno,
"Failed ftime table seek");
return(-1);
}
if (read(ffd, ckname, namelen) != namelen) {
sys_warn(1, errno,
syswarn(1, errno,
"Failed ftime table read");
return(-1);
}
@@ -493,11 +490,11 @@ chk_ftime(arcn)
ftab[indx] = pt;
return(0);
}
sys_warn(1, errno, "Failed write to file time table");
syswarn(1, errno, "Failed write to file time table");
} else
sys_warn(1, errno, "Failed seek on file time table");
syswarn(1, errno, "Failed seek on file time table");
} else
pax_warn(1, "File time table ran out of memory");
paxwarn(1, "File time table ran out of memory");
if (pt != NULL)
(void)free((char *)pt);
@@ -523,7 +520,7 @@ chk_ftime(arcn)
* 0 if successful, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
name_start(void)
#else
@@ -534,9 +531,9 @@ name_start()
if (ntab != NULL)
return(0);
if ((ntab = (NAMT **)calloc(N_TAB_SZ, sizeof(NAMT *))) == NULL) {
pax_warn(1, "Cannot allocate memory for interactive rename table");
return(-1);
}
paxwarn(1, "Cannot allocate memory for interactive rename table");
return(-1);
}
return(0);
}
@@ -549,7 +546,7 @@ name_start()
* 0 if added, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
add_name(register char *oname, int onamelen, char *nname)
#else
@@ -567,7 +564,7 @@ add_name(oname, onamelen, nname)
/*
* should never happen
*/
pax_warn(0, "No interactive rename table, links may fail\n");
paxwarn(0, "No interactive rename table, links may fail\n");
return(0);
}
@@ -593,7 +590,7 @@ add_name(oname, onamelen, nname)
(void)free((char *)pt->nname);
if ((pt->nname = strdup(nname)) == NULL) {
pax_warn(1, "Cannot update rename table");
paxwarn(1, "Cannot update rename table");
return(-1);
}
return(0);
@@ -614,7 +611,7 @@ add_name(oname, onamelen, nname)
}
(void)free((char *)pt);
}
pax_warn(1, "Interactive rename table out of memory");
paxwarn(1, "Interactive rename table out of memory");
return(-1);
}
@@ -625,14 +622,15 @@ add_name(oname, onamelen, nname)
* new name (oname is the link to name)
*/
#if __STDC__
#ifdef __STDC__
void
sub_name(register char *oname, int *onamelen)
sub_name(register char *oname, int *onamelen, size_t onamesize)
#else
void
sub_name(oname, onamelen)
sub_name(oname, onamelen, onamesize)
register char *oname;
int *onamelen;
size_t onamesize;
#endif
{
register NAMT *pt;
@@ -649,15 +647,15 @@ sub_name(oname, onamelen)
while (pt != NULL) {
/*
* walk down the hash cahin looking for a match
* walk down the hash chain looking for a match
*/
if (strcmp(oname, pt->oname) == 0) {
/*
* found it, replace it with the new name
* and return (we know that oname has enough space)
*/
*onamelen = l_strncpy(oname, pt->nname, PAXPATHLEN+1);
oname[PAXPATHLEN] = '\0';
*onamelen = l_strncpy(oname, pt->nname, onamesize - 1);
oname[*onamelen] = '\0';
return;
}
pt = pt->fow;
@@ -716,7 +714,7 @@ sub_name(oname, onamelen)
* 0 if successful, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
dev_start(void)
#else
@@ -727,9 +725,9 @@ dev_start()
if (dtab != NULL)
return(0);
if ((dtab = (DEVT **)calloc(D_TAB_SZ, sizeof(DEVT *))) == NULL) {
pax_warn(1, "Cannot allocate memory for device mapping table");
return(-1);
}
paxwarn(1, "Cannot allocate memory for device mapping table");
return(-1);
}
return(0);
}
@@ -743,7 +741,7 @@ dev_start()
* 0 if added ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
add_dev(register ARCHD *arcn)
#else
@@ -770,7 +768,7 @@ add_dev(arcn)
* is returned (indicates an error).
*/
#if __STDC__
#ifdef __STDC__
static DEVT *
chk_dev(dev_t dev, int add)
#else
@@ -813,7 +811,7 @@ chk_dev(dev, add)
* list must be NULL.
*/
if ((pt = (DEVT *)malloc(sizeof(DEVT))) == NULL) {
pax_warn(1, "Device map table out of memory");
paxwarn(1, "Device map table out of memory");
return(NULL);
}
pt->dev = dev;
@@ -835,7 +833,7 @@ chk_dev(dev, add)
* 0 if all ok, -1 otherwise.
*/
#if __STDC__
#ifdef __STDC__
int
map_dev(register ARCHD *arcn, u_long dev_mask, u_long ino_mask)
#else
@@ -955,9 +953,9 @@ map_dev(arcn, dev_mask, ino_mask)
return(0);
bad:
pax_warn(1, "Unable to fix truncated inode/device field when storing %s",
paxwarn(1, "Unable to fix truncated inode/device field when storing %s",
arcn->name);
pax_warn(0, "Archive may create improper hard links when extracted");
paxwarn(0, "Archive may create improper hard links when extracted");
return(0);
}
@@ -985,7 +983,7 @@ map_dev(arcn, dev_mask, ino_mask)
* 0 is created ok, -1 otherwise.
*/
#if __STDC__
#ifdef __STDC__
int
atdir_start(void)
#else
@@ -996,9 +994,9 @@ atdir_start()
if (atab != NULL)
return(0);
if ((atab = (ATDIR **)calloc(A_TAB_SZ, sizeof(ATDIR *))) == NULL) {
pax_warn(1,"Cannot allocate space for directory access time table");
return(-1);
}
paxwarn(1,"Cannot allocate space for directory access time table");
return(-1);
}
return(0);
}
@@ -1010,7 +1008,7 @@ atdir_start()
* entries are for directories READ by pax
*/
#if __STDC__
#ifdef __STDC__
void
atdir_end(void)
#else
@@ -1046,7 +1044,7 @@ atdir_end()
* and chained by inode number. This is for directories READ by pax
*/
#if __STDC__
#ifdef __STDC__
void
add_atdir(char *fname, dev_t dev, ino_t ino, time_t mtime, time_t atime)
#else
@@ -1103,7 +1101,7 @@ add_atdir(fname, dev, ino, mtime, atime)
(void)free((char *)pt);
}
pax_warn(1, "Directory access time reset table ran out of memory");
paxwarn(1, "Directory access time reset table ran out of memory");
return;
}
@@ -1118,7 +1116,7 @@ add_atdir(fname, dev, ino, mtime, atime)
* 0 if found, -1 if not found.
*/
#if __STDC__
#ifdef __STDC__
int
get_atdir(dev_t dev, ino_t ino, time_t *mtime, time_t *atime)
#else
@@ -1202,7 +1200,7 @@ get_atdir(dev, ino, mtime, atime)
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
dir_start(void)
#else
@@ -1210,22 +1208,20 @@ int
dir_start()
#endif
{
char *pt;
if (dirfd != -1)
return(0);
if ((pt = tempnam((char *)NULL, (char *)NULL)) == NULL)
return(-1);
/*
* unlink the file so it goes away at termination by itself
*/
(void)unlink(pt);
if ((dirfd = open(pt, O_RDWR|O_CREAT, 0600)) >= 0) {
(void)unlink(pt);
memcpy(tempbase, _TFILE_BASE, sizeof(_TFILE_BASE));
if ((dirfd = mkstemp(tempfile)) >= 0) {
(void)unlink(tempfile);
return(0);
}
pax_warn(1, "Unable to create temporary file for directory times: %s", pt);
paxwarn(1, "Unable to create temporary file for directory times: %s",
tempfile);
return(-1);
}
@@ -1242,7 +1238,7 @@ dir_start()
* pax spec)
*/
#if __STDC__
#ifdef __STDC__
void
add_dir(char *name, int nlen, struct stat *psb, int frc_mode)
#else
@@ -1264,7 +1260,7 @@ add_dir(name, nlen, psb, frc_mode)
* in the trailer
*/
if ((dblk.npos = lseek(dirfd, 0L, SEEK_CUR)) < 0) {
pax_warn(1,"Unable to store mode and times for directory: %s",name);
paxwarn(1,"Unable to store mode and times for directory: %s",name);
return;
}
@@ -1282,7 +1278,7 @@ add_dir(name, nlen, psb, frc_mode)
return;
}
pax_warn(1,"Unable to store mode and times for created directory: %s",name);
paxwarn(1,"Unable to store mode and times for created directory: %s",name);
return;
}
@@ -1292,7 +1288,7 @@ add_dir(name, nlen, psb, frc_mode)
* by pax
*/
#if __STDC__
#ifdef __STDC__
void
proc_dir(void)
#else
@@ -1338,7 +1334,7 @@ proc_dir()
(void)close(dirfd);
dirfd = -1;
if (cnt != dircnt)
pax_warn(1,"Unable to set mode and times for created directories");
paxwarn(1,"Unable to set mode and times for created directories");
return;
}
@@ -1360,7 +1356,7 @@ proc_dir()
* the hash value of the string MOD (%) the table size.
*/
#if __STDC__
#ifdef __STDC__
u_int
st_hash(char *name, int len, int tabsz)
#else
@@ -1386,7 +1382,7 @@ st_hash(name, len, tabsz)
* spread out the keys)
*/
if (len > MAXKEYLEN) {
pt = &(name[len - MAXKEYLEN]);
pt = &(name[len - MAXKEYLEN]);
len = MAXKEYLEN;
} else
pt = name;
+98 -74
View File
@@ -78,7 +78,7 @@ static int tar_nodir; /* do not write dirs under old tar */
* 0 if ok, -1 otherwise (what wr_skip returns)
*/
#if __STDC__
#ifdef __STDC__
int
tar_endwr(void)
#else
@@ -96,7 +96,7 @@ tar_endwr()
* size of trailer (2 * BLKMULT)
*/
#if __STDC__
#ifdef __STDC__
off_t
tar_endrd(void)
#else
@@ -118,7 +118,7 @@ tar_endrd()
* could never contain a header.
*/
#if __STDC__
#ifdef __STDC__
int
tar_trail(register char *buf, register int in_resync, register int *cnt)
#else
@@ -162,14 +162,14 @@ tar_trail(buf, in_resync, cnt)
* ul_oct()
* convert an unsigned long to an octal string. many oddball field
* termination characters are used by the various versions of tar in the
* different fields. term selects which kind to use. str is BLANK padded
* different fields. term selects which kind to use. str is '0' padded
* at the front to len. we are unable to use only one format as many old
* tar readers are very cranky about this.
* Return:
* 0 if the number fit into the string, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
static int
ul_oct(u_long val, register char *str, register int len, int term)
#else
@@ -215,7 +215,7 @@ ul_oct(val, str, len, term)
}
while (pt >= str)
*pt-- = ' ';
*pt-- = '0';
if (val != (u_long)0)
return(-1);
return(0);
@@ -226,14 +226,14 @@ ul_oct(val, str, len, term)
* uqd_oct()
* convert an u_quad_t to an octal string. one of many oddball field
* termination characters are used by the various versions of tar in the
* different fields. term selects which kind to use. str is BLANK padded
* different fields. term selects which kind to use. str is '0' padded
* at the front to len. we are unable to use only one format as many old
* tar readers are very cranky about this.
* Return:
* 0 if the number fit into the string, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
static int
uqd_oct(u_quad_t val, register char *str, register int len, int term)
#else
@@ -279,7 +279,7 @@ uqd_oct(val, str, len, term)
}
while (pt >= str)
*pt-- = ' ';
*pt-- = '0';
if (val != (u_quad_t)0)
return(-1);
return(0);
@@ -296,7 +296,7 @@ uqd_oct(val, str, len, term)
* unsigned long checksum
*/
#if __STDC__
#ifdef __STDC__
static u_long
tar_chksm(register char *blk, register int len)
#else
@@ -344,7 +344,7 @@ tar_chksm(blk, len)
* 0 if a tar header, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
tar_id(register char *blk, int size)
#else
@@ -385,7 +385,7 @@ tar_id(blk, size)
* 0 if ok -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
tar_opt(void)
#else
@@ -398,9 +398,9 @@ tar_opt()
while ((opt = opt_next()) != NULL) {
if (strcmp(opt->name, TAR_OPTION) ||
strcmp(opt->value, TAR_NODIR)) {
pax_warn(1, "Unknown tar format -o option/value pair %s=%s",
paxwarn(1, "Unknown tar format -o option/value pair %s=%s",
opt->name, opt->value);
pax_warn(1,"%s=%s is the only supported tar format option",
paxwarn(1,"%s=%s is the only supported tar format option",
TAR_OPTION, TAR_NODIR);
return(-1);
}
@@ -409,7 +409,7 @@ tar_opt()
* we only support one option, and only when writing
*/
if ((act != APPND) && (act != ARCHIVE)) {
pax_warn(1, "%s=%s is only supported when writing.",
paxwarn(1, "%s=%s is only supported when writing.",
opt->name, opt->value);
return(-1);
}
@@ -427,7 +427,7 @@ tar_opt()
* 0
*/
#if __STDC__
#ifdef __STDC__
int
tar_rd(register ARCHD *arcn, register char *buf)
#else
@@ -453,13 +453,17 @@ 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(hd->name));
arcn->nlen = l_strncpy(arcn->name, 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);
arcn->sb.st_uid = (uid_t)asc_ul(hd->uid, sizeof(hd->uid), OCT);
arcn->sb.st_gid = (gid_t)asc_ul(hd->gid, sizeof(hd->gid), OCT);
arcn->sb.st_size = (size_t)asc_ul(hd->size, sizeof(hd->size), OCT);
#ifdef NET2_STAT
arcn->sb.st_size = (off_t)asc_ul(hd->size, sizeof(hd->size), OCT);
#else
arcn->sb.st_size = (off_t)asc_uqd(hd->size, sizeof(hd->size), OCT);
#endif
arcn->sb.st_mtime = (time_t)asc_ul(hd->mtime, sizeof(hd->mtime), OCT);
arcn->sb.st_ctime = arcn->sb.st_atime = arcn->sb.st_mtime;
@@ -478,7 +482,7 @@ tar_rd(arcn, buf)
*/
arcn->type = PAX_SLK;
arcn->ln_nlen = l_strncpy(arcn->ln_name, hd->linkname,
sizeof(hd->linkname));
sizeof(arcn->ln_name) - 1);
arcn->ln_name[arcn->ln_nlen] = '\0';
arcn->sb.st_mode |= S_IFLNK;
break;
@@ -490,7 +494,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(hd->linkname));
sizeof(arcn->ln_name) - 1);
arcn->ln_name[arcn->ln_nlen] = '\0';
/*
@@ -499,6 +503,16 @@ tar_rd(arcn, buf)
*/
arcn->sb.st_mode |= S_IFREG;
break;
case DIRTYPE:
/*
* It is a directory, set the mode for -v printing
*/
arcn->type = PAX_DIR;
arcn->sb.st_mode |= S_IFDIR;
arcn->sb.st_nlink = 2;
arcn->ln_name[0] = '\0';
arcn->ln_nlen = 0;
break;
case AREGTYPE:
case REGTYPE:
default:
@@ -550,7 +564,7 @@ tar_rd(arcn, buf)
* data to write after the header, -1 if archive write failed
*/
#if __STDC__
#ifdef __STDC__
int
tar_wr(register ARCHD *arcn)
#else
@@ -575,23 +589,23 @@ tar_wr(arcn)
return(1);
break;
case PAX_CHR:
pax_warn(1, "Tar cannot archive a character device %s",
paxwarn(1, "Tar cannot archive a character device %s",
arcn->org_name);
return(1);
case PAX_BLK:
pax_warn(1, "Tar cannot archive a block device %s", arcn->org_name);
paxwarn(1, "Tar cannot archive a block device %s", arcn->org_name);
return(1);
case PAX_SCK:
pax_warn(1, "Tar cannot archive a socket %s", arcn->org_name);
paxwarn(1, "Tar cannot archive a socket %s", arcn->org_name);
return(1);
case PAX_FIF:
pax_warn(1, "Tar cannot archive a fifo %s", arcn->org_name);
paxwarn(1, "Tar cannot archive a fifo %s", arcn->org_name);
return(1);
case PAX_SLK:
case PAX_HLK:
case PAX_HRG:
if (arcn->ln_nlen > sizeof(hd->linkname)) {
pax_warn(1,"Link name too long for tar %s", arcn->ln_name);
paxwarn(1,"Link name too long for tar %s", arcn->ln_name);
return(1);
}
break;
@@ -607,8 +621,8 @@ tar_wr(arcn)
len = arcn->nlen;
if (arcn->type == PAX_DIR)
++len;
if (len > sizeof(hd->name)) {
pax_warn(1, "File name too long for tar %s", arcn->name);
if (len >= sizeof(hd->name)) {
paxwarn(1, "File name too long for tar %s", arcn->name);
return(1);
}
@@ -621,7 +635,8 @@ tar_wr(arcn)
* a header)
*/
hd = (HD_TAR *)hdblk;
zf_strncpy(hd->name, arcn->name, sizeof(hd->name));
l_strncpy(hd->name, arcn->name, sizeof(hd->name) - 1);
hd->name[sizeof(hd->name) - 1] = '\0';
arcn->pad = 0;
if (arcn->type == PAX_DIR) {
@@ -631,7 +646,7 @@ tar_wr(arcn)
* dirs, so no pad.
*/
hd->linkflag = AREGTYPE;
bzero(hd->linkname, sizeof(hd->linkname));
memset(hd->linkname, 0, sizeof(hd->linkname));
hd->name[len-1] = '/';
if (ul_oct((u_long)0L, hd->size, sizeof(hd->size), 1))
goto out;
@@ -640,7 +655,8 @@ tar_wr(arcn)
* no data follows this file, so no pad
*/
hd->linkflag = SYMTYPE;
zf_strncpy(hd->linkname,arcn->ln_name, sizeof(hd->linkname));
l_strncpy(hd->linkname,arcn->ln_name, sizeof(hd->linkname) - 1);
hd->linkname[sizeof(hd->linkname) - 1] = '\0';
if (ul_oct((u_long)0L, hd->size, sizeof(hd->size), 1))
goto out;
} else if ((arcn->type == PAX_HLK) || (arcn->type == PAX_HRG)) {
@@ -648,7 +664,8 @@ tar_wr(arcn)
* no data follows this file, so no pad
*/
hd->linkflag = LNKTYPE;
zf_strncpy(hd->linkname,arcn->ln_name, sizeof(hd->linkname));
l_strncpy(hd->linkname,arcn->ln_name, sizeof(hd->linkname) - 1);
hd->linkname[sizeof(hd->linkname) - 1] = '\0';
if (ul_oct((u_long)0L, hd->size, sizeof(hd->size), 1))
goto out;
} else {
@@ -656,7 +673,7 @@ tar_wr(arcn)
* data follows this file, so set the pad
*/
hd->linkflag = AREGTYPE;
bzero(hd->linkname, sizeof(hd->linkname));
memset(hd->linkname, 0, sizeof(hd->linkname));
# ifdef NET2_STAT
if (ul_oct((u_long)arcn->sb.st_size, hd->size,
sizeof(hd->size), 1)) {
@@ -664,7 +681,7 @@ tar_wr(arcn)
if (uqd_oct((u_quad_t)arcn->sb.st_size, hd->size,
sizeof(hd->size), 1)) {
# endif
pax_warn(1,"File is too large for tar %s", arcn->org_name);
paxwarn(1,"File is too large for tar %s", arcn->org_name);
return(1);
}
arcn->pad = TAR_PAD(arcn->sb.st_size);
@@ -685,7 +702,7 @@ tar_wr(arcn)
* to be written
*/
if (ul_oct(tar_chksm(hdblk, sizeof(HD_TAR)), hd->chksum,
sizeof(hd->chksum), 2))
sizeof(hd->chksum), 3))
goto out;
if (wr_rdbuf(hdblk, sizeof(HD_TAR)) < 0)
return(-1);
@@ -699,7 +716,7 @@ tar_wr(arcn)
/*
* header field is out of range
*/
pax_warn(1, "Tar header field is too small for %s", arcn->org_name);
paxwarn(1, "Tar header field is too small for %s", arcn->org_name);
return(1);
}
@@ -714,7 +731,7 @@ tar_wr(arcn)
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
ustar_strd(void)
#else
@@ -734,7 +751,7 @@ ustar_strd()
* 0 if ok, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
ustar_stwr(void)
#else
@@ -755,7 +772,7 @@ ustar_stwr()
* 0 if a ustar header, -1 otherwise
*/
#if __STDC__
#ifdef __STDC__
int
ustar_id(char *blk, int size)
#else
@@ -794,7 +811,7 @@ ustar_id(blk, size)
* 0
*/
#if __STDC__
#ifdef __STDC__
int
ustar_rd(register ARCHD *arcn, register char *buf)
#else
@@ -818,6 +835,7 @@ ustar_rd(arcn, buf)
arcn->org_name = arcn->name;
arcn->sb.st_nlink = 1;
arcn->pat = NULL;
arcn->nlen = 0;
hd = (HD_USTAR *)buf;
/*
@@ -826,12 +844,12 @@ ustar_rd(arcn, buf)
*/
dest = arcn->name;
if (*(hd->prefix) != '\0') {
cnt = l_strncpy(arcn->name, hd->prefix, sizeof(hd->prefix));
dest = arcn->name + arcn->nlen;
cnt = l_strncpy(dest, hd->prefix, sizeof(arcn->name) - 2);
dest += cnt;
*dest++ = '/';
cnt++;
}
arcn->nlen = l_strncpy(dest, hd->name, sizeof(hd->name));
arcn->nlen += cnt;
arcn->nlen = cnt + l_strncpy(dest, hd->name, sizeof(arcn->name) - cnt);
arcn->name[arcn->nlen] = '\0';
/*
@@ -840,7 +858,11 @@ ustar_rd(arcn, buf)
*/
arcn->sb.st_mode = (mode_t)(asc_ul(hd->mode, sizeof(hd->mode), OCT) &
0xfff);
arcn->sb.st_size = (size_t)asc_ul(hd->size, sizeof(hd->size), OCT);
#ifdef NET2_STAT
arcn->sb.st_size = (off_t)asc_ul(hd->size, sizeof(hd->size), OCT);
#else
arcn->sb.st_size = (off_t)asc_uqd(hd->size, sizeof(hd->size), OCT);
#endif
arcn->sb.st_mtime = (time_t)asc_ul(hd->mtime, sizeof(hd->mtime), OCT);
arcn->sb.st_ctime = arcn->sb.st_atime = arcn->sb.st_mtime;
@@ -920,7 +942,7 @@ ustar_rd(arcn, buf)
* copy the link name
*/
arcn->ln_nlen = l_strncpy(arcn->ln_name, hd->linkname,
sizeof(hd->linkname));
sizeof(arcn->ln_name) - 1);
arcn->ln_name[arcn->ln_nlen] = '\0';
break;
case CONTTYPE:
@@ -952,7 +974,7 @@ ustar_rd(arcn, buf)
* data to write after the header, -1 if archive write failed
*/
#if __STDC__
#ifdef __STDC__
int
ustar_wr(register ARCHD *arcn)
#else
@@ -969,7 +991,7 @@ ustar_wr(arcn)
* check for those file system types ustar cannot store
*/
if (arcn->type == PAX_SCK) {
pax_warn(1, "Ustar cannot archive a socket %s", arcn->org_name);
paxwarn(1, "Ustar cannot archive a socket %s", arcn->org_name);
return(1);
}
@@ -978,7 +1000,7 @@ ustar_wr(arcn)
*/
if (((arcn->type == PAX_SLK) || (arcn->type == PAX_HLK) ||
(arcn->type == PAX_HRG)) && (arcn->ln_nlen >= sizeof(hd->linkname))){
pax_warn(1, "Link name too long for ustar %s", arcn->ln_name);
paxwarn(1, "Link name too long for ustar %s", arcn->ln_name);
return(1);
}
@@ -987,7 +1009,7 @@ ustar_wr(arcn)
* pt != arcn->name, the name has to be split
*/
if ((pt = name_split(arcn->name, arcn->nlen)) == NULL) {
pax_warn(1, "File name too long for ustar %s", arcn->name);
paxwarn(1, "File name too long for ustar %s", arcn->name);
return(1);
}
hd = (HD_USTAR *)hdblk;
@@ -1002,16 +1024,17 @@ ustar_wr(arcn)
* occur, we remove the / and copy the first part to the prefix
*/
*pt = '\0';
zf_strncpy(hd->prefix, arcn->name, sizeof(hd->prefix));
l_strncpy(hd->prefix, arcn->name, sizeof(hd->prefix) - 1);
*pt++ = '/';
} else
bzero(hd->prefix, sizeof(hd->prefix));
memset(hd->prefix, 0, sizeof(hd->prefix));
/*
* copy the name part. this may be the whole path or the part after
* the prefix
*/
zf_strncpy(hd->name, pt, sizeof(hd->name));
l_strncpy(hd->name, pt, sizeof(hd->name) - 1);
hd->name[sizeof(hd->name) - 1] = '\0';
/*
* set the fields in the header that are type dependent
@@ -1019,9 +1042,9 @@ ustar_wr(arcn)
switch(arcn->type) {
case PAX_DIR:
hd->typeflag = DIRTYPE;
bzero(hd->linkname, sizeof(hd->linkname));
bzero(hd->devmajor, sizeof(hd->devmajor));
bzero(hd->devminor, sizeof(hd->devminor));
memset(hd->linkname, 0, 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))
goto out;
break;
@@ -1031,7 +1054,7 @@ ustar_wr(arcn)
hd->typeflag = CHRTYPE;
else
hd->typeflag = BLKTYPE;
bzero(hd->linkname, sizeof(hd->linkname));
memset(hd->linkname, 0, sizeof(hd->linkname));
if (ul_oct((u_long)MAJOR(arcn->sb.st_rdev), hd->devmajor,
sizeof(hd->devmajor), 3) ||
ul_oct((u_long)MINOR(arcn->sb.st_rdev), hd->devminor,
@@ -1041,9 +1064,9 @@ ustar_wr(arcn)
break;
case PAX_FIF:
hd->typeflag = FIFOTYPE;
bzero(hd->linkname, sizeof(hd->linkname));
bzero(hd->devmajor, sizeof(hd->devmajor));
bzero(hd->devminor, sizeof(hd->devminor));
memset(hd->linkname, 0, 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))
goto out;
break;
@@ -1054,9 +1077,10 @@ ustar_wr(arcn)
hd->typeflag = SYMTYPE;
else
hd->typeflag = LNKTYPE;
zf_strncpy(hd->linkname,arcn->ln_name, sizeof(hd->linkname));
bzero(hd->devmajor, sizeof(hd->devmajor));
bzero(hd->devminor, sizeof(hd->devminor));
l_strncpy(hd->linkname,arcn->ln_name, sizeof(hd->linkname) - 1);
hd->linkname[sizeof(hd->linkname) - 1] = '\0';
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))
goto out;
break;
@@ -1070,9 +1094,9 @@ ustar_wr(arcn)
hd->typeflag = CONTTYPE;
else
hd->typeflag = REGTYPE;
bzero(hd->linkname, sizeof(hd->linkname));
bzero(hd->devmajor, sizeof(hd->devmajor));
bzero(hd->devminor, sizeof(hd->devminor));
memset(hd->linkname, 0, sizeof(hd->linkname));
memset(hd->devmajor, 0, sizeof(hd->devmajor));
memset(hd->devminor, 0, sizeof(hd->devminor));
arcn->pad = TAR_PAD(arcn->sb.st_size);
# ifdef NET2_STAT
if (ul_oct((u_long)arcn->sb.st_size, hd->size,
@@ -1081,14 +1105,14 @@ ustar_wr(arcn)
if (uqd_oct((u_quad_t)arcn->sb.st_size, hd->size,
sizeof(hd->size), 3)) {
# endif
pax_warn(1,"File is too long for ustar %s",arcn->org_name);
paxwarn(1,"File is too long for ustar %s",arcn->org_name);
return(1);
}
break;
}
zf_strncpy(hd->magic, TMAGIC, TMAGLEN);
zf_strncpy(hd->version, TVERSION, TVERSLEN);
l_strncpy(hd->magic, TMAGIC, TMAGLEN);
l_strncpy(hd->version, TVERSION, TVERSLEN);
/*
* set the remaining fields. Some versions want all 16 bits of mode
@@ -1099,8 +1123,8 @@ ustar_wr(arcn)
ul_oct((u_long)arcn->sb.st_gid, hd->gid, sizeof(hd->gid), 3) ||
ul_oct((u_long)arcn->sb.st_mtime,hd->mtime,sizeof(hd->mtime),3))
goto out;
zf_strncpy(hd->uname,name_uid(arcn->sb.st_uid, 0),sizeof(hd->uname));
zf_strncpy(hd->gname,name_gid(arcn->sb.st_gid, 0),sizeof(hd->gname));
l_strncpy(hd->uname,name_uid(arcn->sb.st_uid, 0),sizeof(hd->uname));
l_strncpy(hd->gname,name_gid(arcn->sb.st_gid, 0),sizeof(hd->gname));
/*
* calculate and store the checksum write the header to the archive
@@ -1122,7 +1146,7 @@ ustar_wr(arcn)
/*
* header field is out of range
*/
pax_warn(1, "Ustar header field is too small for %s", arcn->org_name);
paxwarn(1, "Ustar header field is too small for %s", arcn->org_name);
return(1);
}
@@ -1138,7 +1162,7 @@ ustar_wr(arcn)
* the file name is too long
*/
#if __STDC__
#ifdef __STDC__
static char *
name_split(register char *name, register int len)
#else
@@ -1154,7 +1178,7 @@ 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))
return(NULL);
+27 -25
View File
@@ -52,7 +52,7 @@ static const char rcsid[] =
#include <string.h>
#include "pax.h"
#include "extern.h"
#if __STDC__
#ifdef __STDC__
#include <stdarg.h>
#else
#include <varargs.h>
@@ -62,7 +62,7 @@ static const char rcsid[] =
* routines that deal with I/O to and from the user
*/
#define DEVTTY "/dev/tty" /* device for interactive i/o */
#define DEVTTY "/dev/tty" /* device for interactive i/o */
static FILE *ttyoutf = NULL; /* output pointing at control tty */
static FILE *ttyinf = NULL; /* input pointing at control tty */
@@ -72,7 +72,7 @@ static FILE *ttyinf = NULL; /* input pointing at control tty */
* open fails, future ops that require user input will get an EOF
*/
#if __STDC__
#ifdef __STDC__
int
tty_init(void)
#else
@@ -82,7 +82,7 @@ tty_init()
{
int ttyfd;
if ((ttyfd = open(DEVTTY, O_RDWR)) >= 0) {
if ((ttyfd = open(DEVTTY, O_RDWR)) >= 0) {
if ((ttyoutf = fdopen(ttyfd, "w")) != NULL) {
if ((ttyinf = fdopen(ttyfd, "r")) != NULL)
return(0);
@@ -92,7 +92,7 @@ tty_init()
}
if (iflag) {
pax_warn(1, "Fatal error, cannot open %s", DEVTTY);
paxwarn(1, "Fatal error, cannot open %s", DEVTTY);
return(-1);
}
return(0);
@@ -104,18 +104,18 @@ tty_init()
* if there is no controlling terminal, just return.
*/
#if __STDC__
#ifdef __STDC__
void
tty_prnt(char *fmt, ...)
tty_prnt(const char *fmt, ...)
#else
void
tty_prnt(fmt, va_alist)
char *fmt;
const char *fmt;
va_dcl
#endif
{
va_list ap;
# if __STDC__
# ifdef __STDC__
va_start(ap, fmt);
# else
va_start(ap);
@@ -135,7 +135,7 @@ tty_prnt(fmt, va_alist)
* 0 if data was read, -1 otherwise.
*/
#if __STDC__
#ifdef __STDC__
int
tty_read(char *str, int len)
#else
@@ -160,24 +160,24 @@ tty_read(str, len)
}
/*
* pax_warn()
* write a pax_warning message to stderr. if "set" the exit value of pax
* paxwarn()
* write a warning message to stderr. if "set" the exit value of pax
* will be non-zero.
*/
#if __STDC__
#ifdef __STDC__
void
pax_warn(int set, char *fmt, ...)
paxwarn(int set, const char *fmt, ...)
#else
void
pax_warn(set, fmt, va_alist)
paxwarn(set, fmt, va_alist)
int set;
char *fmt;
const char *fmt;
va_dcl
#endif
{
va_list ap;
# if __STDC__
# ifdef __STDC__
va_start(ap, fmt);
# else
va_start(ap);
@@ -189,6 +189,7 @@ pax_warn(set, fmt, va_alist)
* line by itself
*/
if (vflag && vfpart) {
(void)fflush(listf);
(void)fputc('\n', stderr);
vfpart = 0;
}
@@ -199,25 +200,25 @@ pax_warn(set, fmt, va_alist)
}
/*
* sys_warn()
* write a pax_warning message to stderr. if "set" the exit value of pax
* syswarn()
* write a warning message to stderr. if "set" the exit value of pax
* will be non-zero.
*/
#if __STDC__
#ifdef __STDC__
void
sys_warn(int set, int errnum, char *fmt, ...)
syswarn(int set, int errnum, const char *fmt, ...)
#else
void
sys_warn(set, errnum, fmt, va_alist)
syswarn(set, errnum, fmt, va_alist)
int set;
int errnum;
char *fmt;
const char *fmt;
va_dcl
#endif
{
va_list ap;
# if __STDC__
# ifdef __STDC__
va_start(ap, fmt);
# else
va_start(ap);
@@ -229,6 +230,7 @@ sys_warn(set, errnum, fmt, va_alist)
* line by itself
*/
if (vflag && vfpart) {
(void)fflush(listf);
(void)fputc('\n', stderr);
vfpart = 0;
}
@@ -240,6 +242,6 @@ sys_warn(set, errnum, fmt, va_alist)
* format and print the errno
*/
if (errnum > 0)
(void)fprintf(stderr, " <%s>", sys_errlist[errnum]);
(void)fprintf(stderr, " <%s>", strerror(errnum));
(void)fputc('\n', stderr);
}
+2
View File
@@ -32,7 +32,9 @@
*/
#ifndef lint
#if 0
static char sccsid[] = "@(#)nlist.c 8.4 (Berkeley) 4/2/94";
#endif
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
+8 -5
View File
@@ -34,7 +34,7 @@
.\"
.Dd April 18, 1994
.Dt PS 1
.Os BSD 4
.Os
.Sh NAME
.Nm ps
.Nd process status
@@ -79,6 +79,9 @@ The options are as follows:
.Bl -tag -width indent
.It Fl a
Display information about other users' processes as well as your own.
This can be disabled by setting the
.Va kern.ps_showallprocs
sysctl to zero.
.It Fl c
Change the ``command'' column output to just contain the executable name,
rather than the full command line.
@@ -164,9 +167,8 @@ option implies the
.Fl m
option.
.It Fl W
Extract swap information from the specified file instead of the
default
.Pa /dev/drum .
Extract swap information from the specified file instead of
using libkvm.
.It Fl w
Use 132 columns to display information, instead of the default which
is your window size.
@@ -503,7 +505,8 @@ the mount point of
.Xr kvm 3 ,
.Xr strftime 3 ,
.Xr procfs 5 ,
.Xr pstat 8
.Xr pstat 8 ,
.Xr sysctl 8
.Sh BUGS
Since
.Nm
+2 -2
View File
@@ -59,13 +59,13 @@ static const char rcsid[] =
#include <fcntl.h>
#include <kvm.h>
#include <limits.h>
#include <locale.h>
#include <nlist.h>
#include <paths.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
#include <locale.h>
#include <pwd.h>
#include <utmp.h>
@@ -229,7 +229,7 @@ main(argc, argv)
/* FALLTHROUGH */
case 't': {
struct stat sb;
char *ttypath, pathbuf[MAXPATHLEN];
char *ttypath, pathbuf[PATH_MAX];
if (strcmp(optarg, "co") == 0)
ttypath = _PATH_CONSOLE;
+3 -1
View File
@@ -3,6 +3,8 @@
PROG= pwd
LINKS= ${BINDIR}/pwd ${BINDIR}/realpath
MAN1= pwd.1 realpath.1
MAN= pwd.1 realpath.1
WARNS?= 2
.include <bsd.prog.mk>
+4 -6
View File
@@ -37,7 +37,7 @@
.\"
.Dd April 28, 1995
.Dt PWD 1
.Os BSD 4
.Os
.Sh NAME
.Nm pwd
.Nd return working directory name
@@ -55,9 +55,7 @@ Consult the
.Xr builtin 1
manual page.
.Sh DIAGNOSTICS
The
.Nm
utility exits 0 on success, and >0 if an error occurs.
.Ex -std
.Sh STANDARDS
The
.Nm
@@ -71,8 +69,8 @@ flag is not supported.
.Xr builtin 1 ,
.Xr cd 1 ,
.Xr csh 1 ,
.Xr getcwd 3 ,
.Xr sh 1
.Xr sh 1 ,
.Xr getcwd 3
.Sh BUGS
In
.Xr csh 1
+4 -2
View File
@@ -46,11 +46,13 @@ static const char rcsid[] =
#endif /* not lint */
#include <err.h>
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/param.h>
int main __P((int, char *[]));
void usage __P((void));
int
@@ -60,7 +62,7 @@ main(argc, argv)
{
int ch;
char *p;
char buf[MAXPATHLEN];
char buf[PATH_MAX];
/*
* Flags for pwd are a bit strange. The POSIX 1003.2B/D9 document
@@ -85,7 +87,7 @@ main(argc, argv)
err(1, "%s", argv[0]);
(void)printf("%s\n", p);
} else if (argc == 0) {
p = getcwd(NULL, 0);
p = getcwd(NULL, (size_t)0);
if (p == NULL)
err(1, ".");
(void)printf("%s\n", p);
+2 -4
View File
@@ -38,7 +38,7 @@
.\"
.Dd November 24, 2000
.Dt REALPATH 1
.Os FreeBSD
.Os
.Sh NAME
.Nm realpath
.Nd return resolved physical path
@@ -58,9 +58,7 @@ and
in
.Ar path .
.Sh DIAGNOSTICS
The
.Nm
utility exits 0 on success, and >0 if an error occurs.
.Ex -std
.Sh SEE ALSO
.Xr realpath 3
.Sh HISTORY
+1 -1
View File
@@ -46,6 +46,6 @@ char *colon __P((char *));
void lostconn __P((int));
void nospace __P((void));
int okname __P((char *));
void run_err __P((const char *, ...));
void run_err __P((const char *, ...)) __printflike(1, 2);
int susystem __P((char *, int));
void verifydir __P((char *));
+1 -1
View File
@@ -34,7 +34,7 @@
.\"
.Dd May 31, 1993
.Dt RCP 1
.Os BSD 4.3r
.Os
.Sh NAME
.Nm rcp
.Nd remote file copy
+12 -6
View File
@@ -58,6 +58,8 @@ static const char rcsid[] =
#include <err.h>
#include <errno.h>
#include <fcntl.h>
#include <libutil.h>
#include <limits.h>
#include <netdb.h>
#include <pwd.h>
#include <signal.h>
@@ -66,7 +68,6 @@ static const char rcsid[] =
#include <string.h>
#include <string.h>
#include <unistd.h>
#include <libutil.h>
#include "pathnames.h"
#include "extern.h"
@@ -106,10 +107,11 @@ char cmd[CMDNEEDS]; /* must hold "rcp -r -p -d\0" */
#ifdef KERBEROS
int kerberos __P((char **, char *, char *, char *));
void oldw __P((const char *, ...));
void oldw __P((const char *, ...)) __printflike(1, 2);
#endif
int response __P((void));
void rsource __P((char *, struct stat *));
void run_err __P((const char *, ...)) __printflike(1, 2);
void sink __P((int, char *[]));
void source __P((int, char *[]));
void tolocal __P((int, char *[]));
@@ -308,8 +310,10 @@ toremote(targ, argc, argv)
suser = argv[i];
if (*suser == '\0')
suser = pwd->pw_name;
else if (!okname(suser))
else if (!okname(suser)) {
++errs;
continue;
}
(void)snprintf(bp, len,
"%s %s -l %s -n %s %s '%s%s%s:%s'",
_PATH_RSH, host, suser, cmd, src,
@@ -389,8 +393,10 @@ tolocal(argc, argv)
suser = argv[i];
if (*suser == '\0')
suser = pwd->pw_name;
else if (!okname(suser))
else if (!okname(suser)) {
++errs;
continue;
}
}
len = strlen(src) + CMDNEEDS + 20;
if ((bp = malloc(len)) == NULL)
@@ -513,7 +519,7 @@ rsource(name, statp)
{
DIR *dirp;
struct dirent *dp;
char *last, *vect[1], path[MAXPATHLEN];
char *last, *vect[1], path[PATH_MAX];
if (!(dirp = opendir(name))) {
run_err("%s: %s", name, strerror(errno));
@@ -546,7 +552,7 @@ rsource(name, statp)
continue;
if (!strcmp(dp->d_name, ".") || !strcmp(dp->d_name, ".."))
continue;
if (strlen(name) + 1 + strlen(dp->d_name) >= MAXPATHLEN - 1) {
if (strlen(name) + 1 + strlen(dp->d_name) >= sizeof(path)) {
run_err("%s/%s: name too long", name, dp->d_name);
continue;
}
+2 -2
View File
@@ -98,7 +98,7 @@ okname(cp0)
c = *cp;
if (c & 0200)
goto bad;
if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-')
if (!isalpha(c) && !isdigit(c) && c != '_' && c != '-' && c != '.')
goto bad;
} while (*++cp);
return (1);
@@ -123,7 +123,7 @@ susystem(s, userid)
case 0:
(void)setuid(userid);
execl(_PATH_BSHELL, "sh", "-c", s, NULL);
execl(_PATH_BSHELL, "sh", "-c", s, (char *)NULL);
_exit(127);
}
istat = signal(SIGINT, SIG_IGN);
+1
View File
@@ -2,6 +2,7 @@
# $FreeBSD$
PROG= rm
WARNS?= 2
SRCS= rm.c
LINKS= ${BINDIR}/rm ${BINDIR}/unlink
+5 -5
View File
@@ -69,7 +69,7 @@ the exit status to reflect an error.
The
.Fl f
option overrides any previous
.Fl i
.Fl i
options.
.It Fl i
Request confirmation before attempting to remove each file, regardless of
@@ -78,7 +78,7 @@ terminal.
The
.Fl i
option overrides any previous
.Fl f
.Fl f
options.
.It Fl P
Overwrite regular files before deleting them.
@@ -86,14 +86,14 @@ Files are overwritten three times, first with the byte pattern 0xff,
then 0x00, and then 0xff again, before they are deleted.
.It Fl R
Attempt to remove the file hierarchy rooted in each file argument.
The
The
.Fl R
option implies the
.Fl d
option.
If the
.Fl i
option is specified, the user is prompted for confirmation before
option is specified, the user is prompted for confirmation before
each directory's contents are processed (as well as before the attempt
is made to remove the directory).
If the user does not respond affirmatively, the file hierarchy rooted in
@@ -179,7 +179,7 @@ utility differs from historical implementations in that the
.Fl f
option only masks attempts to remove non-existent files instead of
masking a large variety of errors.
The
The
.Fl v
option is non-standard and its use in scripts is not recommended.
.Pp
+1 -1
View File
@@ -183,7 +183,7 @@ rm_tree(argv)
flags |= FTS_NOSTAT;
if (Wflag)
flags |= FTS_WHITEOUT;
if (!(fts = fts_open(argv, flags, (int (*)())NULL)))
if (!(fts = fts_open(argv, flags, NULL)))
err(1, NULL);
while ((p = fts_read(fts)) != NULL) {
switch (p->fts_info) {
+1 -1
View File
@@ -8,7 +8,7 @@ SENDMAIL_DIR=${.CURDIR}/../../contrib/sendmail
PROG= rmail
SRCS= rmail.c
MAN8= rmail.8
MAN= rmail.8
CFLAGS+=-I${SENDMAIL_DIR}/include
.if exists(${.OBJDIR}/../../lib/libsmutil)
+2
View File
@@ -3,4 +3,6 @@
PROG= rmdir
WARNS?= 2
.include <bsd.prog.mk>
+1
View File
@@ -52,6 +52,7 @@ static const char rcsid[] =
#include <string.h>
#include <unistd.h>
int main __P((int, char *[]));
int rm_path __P((char *));
void usage __P((void));
+1 -1
View File
@@ -173,7 +173,7 @@ expcmd(argc, argv)
i = arith(p);
out1fmt("%d\n", i);
out1fmt("%ld\n", i);
return (! i);
}
+1 -1
View File
@@ -85,7 +85,7 @@
#ifdef __STDC__
pointer stalloc(int);
void error(char *, ...);
void error(const char *, ...) __printf0like(1, 2);
#else
pointer stalloc();
void error();
+2 -2
View File
@@ -38,14 +38,14 @@
.\"
.Dd May 4, 1995
.Dt ECHO 1
.Os BSD 4.4
.Os
.Sh NAME
.Nm echo
.Nd produce message in a shell script
.Sh SYNOPSIS
.Nm
.Op Fl n | Fl e
.Ar args...
.Ar args...
.Sh DESCRIPTION
.Nm
prints its arguments on the standard output, separated by spaces.
Loaded 100 of 6754 files, more files were not shown because too many files have changed in this diff. Show more