Compare commits

..
1840 Commits
Author SHA1 Message Date
Jacques Vidrine 2c14da046f MFS 1.10.2.5: Unbreak read/write behavior (introduced in previous revision). 2003-10-04 16:14:25 +00:00
Jacques Vidrine ade7758ade Merge from RELENG_4: kern_subr.c 1.31.2.3, procfs_dbregs.c 1.4.2.4,
procfs_fpregs.c 1.11.2.4, procfs_regs.c 1.10.2.4,
    procfs_rlimit.c 1.5.2.1, procfs_status.c 1.20.2.5, uio.h 1.11.2.2,
    linprocfs_misc.c 1.3.2.9.
Correct several integer underflows/overflows in procfs and linprocfs.
2003-10-03 13:07:38 +00:00
Jacques Vidrine a5f1daf898 MFS 1.55.2.11: Correct a reference counting bug in readv(2). 2003-10-02 16:05:44 +00:00
Ruslan Ermilov ca4b3740d3 Fixed the update target to follow the correct CVS branch.
Approved by:	nectar
2003-09-25 17:09:34 +00:00
Jacques Vidrine ebec73dd7d Bump patch level for updated arplookup fix. 2003-09-25 13:35:48 +00:00
Bruce M Simpson 4c3a1df1ca Fix a logic error in the check to see if arplookup() should free the route.
Noticed by:	Mike Hogsett
Reviewed by:	ru
2003-09-24 21:51:13 +00:00
Bruce M Simpson 86b3a2088e Fix a bug in arplookup(), whereby a hostile party on a locally
attached network could exhaust kernel memory, and cause a system
panic, by sending a flood of spoofed ARP requests.

Approved by:	security-officer, jake (mentor)
Reported by:	Apple Product Security <[email protected]>
2003-09-23 16:54:39 +00:00
Gregory Neil Shapiro a3fd61e4f5 MFC: sendmail address parsing bug fix
Approved by:	so (nectar)
2003-09-17 20:22:03 +00:00
Jacques Vidrine f7d5f8b345 MFC buffer.c 1.2, channels.c 1.16, deattack.c 1.1.1.6,
misc.c 1.1.1.5 (->scp.c), session.c 1.41, ssh-agent.c 1.19:
Correct more cases of allocation size bookkeeping errors.
2003-09-17 14:58:56 +00:00
Jacques Vidrine e745aa7ea0 MFC buffer.c 1.1.1.7: Do not record expanded size before attempting to
reallocate associated memory.
2003-09-16 17:51:06 +00:00
Jacques Vidrine 51deb98c79 Merge from RELENG_4_7 1.51.2.4.2.2:
Fix typo: `uap->data' versus `data'.
2003-08-12 20:24:13 +00:00
Jacques Vidrine ff1bd15fcc MFC 1.24: Validate the iBCS2 statfs(2) length parameter. 2003-08-10 23:35:21 +00:00
Jacques Vidrine 408da93b82 MFC sys_process.c 1.113, spigot.c 1.60:
Add or correct range checking of signal numbers in system calls and
ioctls.
2003-08-10 23:23:57 +00:00
Jacques Vidrine ca0731ec8f realpath(3) bug fix: There was an off-by-one error in computing the
size of the resulting canonical path.
2003-08-03 23:47:39 +00:00
Gregory Neil Shapiro 4b458f5c16 Update FreeBSD Security Advisory Number
Approved by:	so (nectar)
2003-03-29 21:58:11 +00:00
Gregory Neil Shapiro 47f428492d sendmail parsing buffer overflow fix
Advisory number to be filled in later

Approved by:	so (nectar)
2003-03-29 20:13:35 +00:00
Gregory Neil Shapiro e71c20063f FreeBSD-SA-03:04.sendmail: sendmail header parsing buffer overflow
Approved by:    security-officer (nectar)
2003-03-03 17:23:11 +00:00
Gregory Neil Shapiro eeca4eb030 MFC: Fix smrsh bypass bug.
Approved by:	security-officer
2002-10-26 21:08:43 +00:00
Gregory Neil Shapiro b9a77fa560 Add missing note for patch 29 before I add patch 30.
Missed by: trevor
2002-10-26 21:07:00 +00:00
Trevor Johnson 7f484866a2 MFC: fix buffer overflows described in FreeBSD-SA-02:28.resolv.
Reviewed by:	imp
2002-07-10 06:57:44 +00:00
Bruce A. Mah 2a86dbea9c Add cross-references to applicable security advisories. Also
be more consistent about the format of the names we give for advisories.

Approved by:	nectar
2002-05-02 20:37:12 +00:00
Jeroen Ruigrok van der Werven 0bda882c48 Update patchlevel per current count. 2002-04-30 08:55:29 +00:00
Chris D. Faulhaber 3ec7cffb4b MFC 1.12: correct bug introduced in 1.11 where ZFREE was moved to a
point after the structural members were clobbered by stores into a
  union'd structure.
MFC 1.13: correct deflate window size check.
2002-03-24 23:24:46 +00:00
Chris D. Faulhaber f965912d94 MFC sys/net/zlib.c 1.13: correct deflate window size check 2002-03-24 23:24:42 +00:00
Jacques Vidrine 164e0ce6ed Apply fix for OpenSSH off-by-one error (FreeBSD-02:13.openssh). 2002-03-08 13:53:04 +00:00
Chris D. Faulhaber 7c235ec6b0 Note zlib fix, bump patch level (-p27) 2002-02-23 18:35:18 +00:00
Chris D. Faulhaber 05f7d7cde0 Bump patch level (-p27) for zlib fix. 2002-02-23 18:35:00 +00:00
Chris D. Faulhaber aa1fb18efb MFC 1.11: Error handling fixes for inflate. 2002-02-23 00:16:14 +00:00
Chris D. Faulhaber d921867039 MFC 1.3: Error handling fixes for inflate. 2002-02-23 00:15:50 +00:00
Jacques Vidrine 2012d213f7 FreeBSD 4.3 doesn't have __FBSDID. Do it the old-fashioned way instead.
Reported by:	Steven Farmer <[email protected]>
Pointy hat to:	nectar
2002-01-29 17:12:25 +00:00
Warner Losh 8409c38348 Note gzip and sdiff changes, bump patch level. 2002-01-28 02:28:21 +00:00
Jacques Vidrine 1afb631bda MFC 1.2: Fix temporary file handling. 2002-01-28 01:29:51 +00:00
Jacques Vidrine eb4c6c6cc7 MFC 1.6: Use mktemp(1) when creating temporary files. 2002-01-28 01:29:22 +00:00
Crist J. Clark 7b66b3d610 The 'standard-supfile' should track its own branch.
Approved by:	security-officer@
2002-01-28 00:03:14 +00:00
Warner Losh 92f6949432 We're up to p24 and add some colons 2002-01-27 07:33:25 +00:00
Warner Losh 98c455eb08 Add p23 and p24 for the k5su and exec problems. I'd overlooked these
commits somehow.
2002-01-27 07:16:58 +00:00
Warner Losh 873e414b2b Update to what I think is the latest patch number. Also update
advsiories that I can trace to patches.
2002-01-27 07:10:21 +00:00
Jacques Vidrine ea0ac1b430 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 a7ddbd3025 Bump patchlevel for fixes to k5su and fstatfs. 2002-01-17 15:47:04 +00:00
Jacques Vidrine f6380ae853 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 8bb03a5788 MFC 1.1.1.4: Don't use getlogin() to determine whether we are root. 2002-01-17 15:45:27 +00:00
Jacques Vidrine 6c34f2064c Bump patchlevel for fix to pw(8). 2001-12-21 19:47:50 +00:00
Jacques Vidrine be8a6e2d56 MFC 1.18: Use correct mode for temporary file. 2001-12-21 15:23:04 +00:00
Wes Peters 8bf779b28d MFC directory permission fix.
Approved by:	security-officer
2001-12-07 20:57:19 +00:00
Jacques Vidrine 00649b24a6 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 b54dadc714 p21: fix for OpenSSH `UseLogin yes' environment issue. 2001-12-03 13:15:49 +00:00
Jacques Vidrine cea761ff73 MFC 1.18: Do not pass user-defined environmental variables to /usr/bin/login. 2001-12-03 00:54:54 +00:00
Warner Losh 7c698237a6 Back out last commit to RELENG_4_3 branch, that was a mistake 2001-11-06 04:00:55 +00:00
Warner Losh 474e7788d5 Back out last commit to RELENG_4_3 branch, that was a mistake 2001-11-06 03:51:18 +00:00
Warner Losh b393377b2f MFC keyinfo.c to eliminate a setuid perl script in -stable 2001-11-05 18:31:23 +00:00
Warner Losh 245604c3ec p20: login.conf patching. 2001-09-21 03:09:32 +00:00
Robert Watson b7c7b76e4b MFC/MFS per-user .login_conf disable + adjacent comment.
login.conf.5: 1.37
login_cap.c: 1.22, 1.23
2001-09-20 21:21:12 +00:00
Warner Losh 8b2f4755e7 dd's commit semop fixes. 2001-09-11 16:40:36 +00:00
Dima Dorfman 649d123e70 MFC 1.35: make semop()::nsops unsigned to prevent overflow.
Approved by:	kris
2001-09-11 12:19:15 +00:00
Warner Losh c5c73aa8c7 New patch (p18) for uucp stuff. 2001-09-11 03:01:10 +00:00
Matthew Dillon af69ac21fa MFC to RELENG_4_3 security branch
Requested by: kris
2001-09-10 22:30:27 +00:00
Kris Kennaway c6d6fe2095 MFC: Run uustat as the uucp user where it can't do any damage. 2001-09-10 22:02:28 +00:00
Warner Losh 3750bd0a7c Bump to p17 with rmuser correction.
Add advisory number for p16/p17 now that its available.
2001-09-05 17:34:31 +00:00
Kris Kennaway f56ad1df2d MFS: 1.8.2.7 Make rmuser.perl work again after my previous commit
Submitted by:	ghelmer
2001-09-05 05:24:55 +00:00
Warner Losh f2259a0d23 rmuser fix. 2001-09-04 14:43:57 +00:00
Kris Kennaway 3ec619b4c2 MFC: Close race condition when updating /etc/master.passwd.
Forgotten by:	jedgar
2001-09-04 07:46:57 +00:00
Warner Losh 8fd0ff6282 Update to p15 with recent lpd fixes.
Also, include sendmail advisory as fixing p14.
2001-08-30 22:31:40 +00:00
Kris Kennaway eb662f37f1 MFC: Fix buffer overflow in queue file handling 2001-08-30 09:28:35 +00:00
Warner Losh 36c1fec7c9 Update to include the last two security advisories.
Submitted by: Makoto MATSUSHITA-san <[email protected]>
2001-08-30 05:01:23 +00:00
Warner Losh e8d1ab5256 MFC: Merge the repo damage entry from -current. 2001-08-23 15:39:57 +00:00
Warner Losh cd75129894 p13 really was the IRC DCC issue. Add that and move the sendmail
issue to p14.

Submitted by: Makoto `MAR' MATSUSHITA
2001-08-22 15:50:05 +00:00
Warner Losh 96267f5014 Note that p12 is the subject of FreeBSD-SA-01:55. 2001-08-22 08:18:45 +00:00
Warner Losh 25e84efbee p13: sendmail arugment parsing bug fixed by Simon a few minutes ago. 2001-08-22 06:45:19 +00:00
Gregory Neil Shapiro b64a23f5c1 Fix command line processing security problem found by SecurityFocus.
This is already fixed in the HEAD and RELENG_4 by virtue of the
sendmail 8.11.6 import.  Further, it doesn't need to be put in RELENG_3
or earlier as the bug only affects sendmail 8.11.0-8.11.5, none of which
were in anything before RELENG_4.

Approved by:	kris
2001-08-22 05:34:11 +00:00
Ruslan Ermilov 75d0bbfb44 MFC: 1.10: Close the "IRC DCC" security breach.
Approved by:	kris
2001-08-21 11:31:01 +00:00
Warner Losh 40f149d650 Add ipfw me advisory 2001-08-18 04:54:03 +00:00
Warner Losh 137f2ebe30 Fix typo in current patchlevel pointed out by many people 2001-08-17 16:39:15 +00:00
Warner Losh 4e704ab305 Append -p12. This is lexically larger than before without getting
into the issues of -FISH vs -FOUL.  I'll take care of updating this
file when I'm updating UPDATING, but hold no locks like I do on
UPDATING.

Approved by: kris
2001-08-16 15:56:01 +00:00
Warner Losh 67fb079008 Add p10 (ip fragment attack), p11 (nfs filehandle issue) and p12 (procfs)
changes to the 4.3 branch.
2001-08-15 05:09:52 +00:00
Robert Watson e201ec1fbe MFS 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
2001-08-13 19:45:41 +00:00
Peter Wemm e430e4e5d6 MFC: rev 1.101 into RELENG_4_3 branch. (filehandle checking)
Approved by:  kris
2001-08-10 23:06:10 +00:00
Jesper Skriver 695cd75e17 MFS
src/sys/netinet/ip_input.c      rev 1.130.2.22
src/sys/netinet6/frag6.c        rev 1.2.2.4
src/sys/netinet6/in6_proto.c    rev 1.6.2.4

  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.

Approved by:	security-officer (kris)
Obtained from:  NetBSD (partially)
2001-08-05 23:08:38 +00:00
Warner Losh 12fd6b6705 Note that p7 and FreeBSD-SA-01:51 are related.
Submitted b: kris
2001-07-31 07:26:11 +00:00
Warner Losh bde7e57807 Preliminary attempt to codify the changes made to RELENG_4_3 tree.
There appear to have been 9 commits to the tree after 4.3 release was
finalized.  In the future, I plan on committing here shortly after
changes I notice and also after advisories are released.

Approved in concept by: kris
Slightly reviewed by: rwatson
2001-07-29 06:13:45 +00:00
Kris Kennaway 00ae699d0b MFC: Correct semantics of output_data*() and netflush() to ensure
deterministic operation
2001-07-23 22:12:45 +00:00
Kris Kennaway de937fd243 MFC: Prevent remotely exploitable buffer overflow in telnetd 2001-07-21 23:02:06 +00:00
Kris Kennaway 1f562dfcd1 Add PRNG security patch to prevent guessing of internal state.
Obtained from:  OpenSSL
2001-07-19 21:01:08 +00:00
Ruslan Ermilov 2251a7cfe4 MFS: ipfw `me' fix. 2001-07-18 06:56:22 +00:00
Warner Losh d313203e85 MFS: don't share shared signal handlers accross the exec 2001-07-10 08:18:03 +00:00
Bill Fenner b68d3b22b2 Don't allow STROUT() to use a negative string length.
Use fn_print() and fn_printn() to print strings from the packet.

Approved by:	kris
2001-07-09 01:44:37 +00:00
Kris Kennaway 93a3746af7 MFC: Unbreak paranoid host checking 2001-07-04 20:18:54 +00:00
Kris Kennaway bd70e161ef MFC: Protect the remaining instance of chdir() using fts_safe_changedir(). 2001-06-01 21:57:51 +00:00
Kris Kennaway 9aa793839e MFC: stat() after chdir("..") to ensure we end up in a known location. 2001-05-30 20:41:47 +00:00
Jordan K. Hubbard 157f0596b9 Update for 4.3-RELEASE
Reminded by:	Makoto MATSUSHITA <[email protected]>
2001-04-21 05:50:01 +00:00
Jordan K. Hubbard f13857e123 MFS: bring in msmith's 11th hour controller cam fix 2001-04-21 04:15:24 +00:00
Jordan K. Hubbard f4e1d598ee This branch is now at 4.3-RELEASE 2001-04-21 03:45:18 +00:00
cvs2svn e3c26b9cfe This commit was manufactured by cvs2svn to create branch 'RELENG_4_3'. 2001-04-21 00:04:30 +00:00
Luigi Rizzo 8242c1a553 Updated picobsd manpage, reflecting reality a bit more than
the previous one.

Not-explicitly-approved-by-but-I-hope-it's-ok: jkh
2001-04-21 00:04:29 +00:00
Brian S. Dean b9afdbead7 MFC Rev 1.8: Eliminate the null mount for /etc for diskless clients.
This works around the stabilily problems of null mounts.

Approved by:	jkh
2001-04-20 23:21:11 +00:00
Luigi Rizzo 105bfbd881 Updated manpage for diskless, reflecting the state of
affairs in RELENG_4

Approved-by: jkh
2001-04-20 23:15:25 +00:00
Jordan K. Hubbard b8dc4d3d38 MFC: Add Greece 2001-04-20 15:05:34 +00:00
Hajimu UMEMOTO f0a77f9e12 MFC 1.23->1.24:
- Fix to receive icmp6 echo reply within the host itself to ff02::1.
- Fix to receive icmp6 echo reply to link-local of itself.

Approved by:	jkh
2001-04-20 00:17:51 +00:00
Bruce A. Mah d885968393 MFC: Fix problem with tests of the form "1.0" vs. "1.0a".
pkg_version.pl		1.17->1.18
	test-pkg_version.sh	1.1->1.2

Approved by:	jkh
2001-04-19 23:53:46 +00:00
Sheldon Hearn 5261a13b7f MFC rev 1.10: "if" is a sh(1) builtin 2001-04-19 11:19:14 +00:00
Wolfram Schneider e1dc02ccdd Update FreeBSD 4.3 release date. 2001-04-19 08:55:50 +00:00
Jordan K. Hubbard c7ff3fd523 MFC: dump flag bogon 2001-04-19 01:39:48 +00:00
Alfred Perlstein 734e90a66a MFC: do not allow user applications to give aio bogus signals, fix some
possible memory leakage of aio structures
PR: kern/17152
Approved by: jkh
2001-04-19 01:38:35 +00:00
David E. O'Brien 9aeccfd647 Back out rev 1.149.2.2, which was committed to -current (and thus MFCed)
by mistake.

Reviewed by:	phk
Approved by:	jkh
2001-04-18 23:17:41 +00:00
Bruce A. Mah 9279892f3c MFC: TCP ISS randomization from OpenBSD, tail(1) large file support,
3ware Escalade 7000 support.
2001-04-18 22:49:09 +00:00
Wilko Bulte 4c5992ae6e DS20 embedded Adaptec SCSI chips are unfortunately not enabled when SRM
5.9 is installed.

Approved by:	jkh (implicitly)
2001-04-18 21:47:31 +00:00
Akinori MUSHA f280165ba1 MFC: (rev.1.24) Reinstall the alternate signal stack after a fork.
Confirmed by:	deischen
Approved by:	jkh
2001-04-18 18:40:54 +00:00
Kris Kennaway 7c60d0c16f MFC: Better TCP initial sequence number randomness from OpenBSD.
Approved by:	jkh
2001-04-18 17:55:24 +00:00
Ruslan Ermilov d6f0f8f4a1 MFC: mdoc(7) police: fix markup. 2001-04-18 13:21:08 +00:00
David Malone 0b572706f5 MFC: Make tail work on files bigger than 2GB.
Approved by:	jkh
2001-04-18 09:32:08 +00:00
Søren Schmidt e3f9415702 MFC:
Add support the the Intel ICH2 mobile.

Approved by: jkh
2001-04-18 07:06:47 +00:00
Søren Schmidt c25b66c25d MFC:
The VIA 586 chip does UDMA from rev 0x3 onwards.

Approved by: jkh
2001-04-18 07:02:20 +00:00
Warner Losh 0ba6f9276f MFC: 1.60 Generalize Sony memory stick entry.
Approved by: jkh
2001-04-18 03:48:53 +00:00
Nick Sayer 3c443da558 Actually correctly turn SRA back on by placing the revert correctly.
Approved by:	jkh
2001-04-18 00:10:32 +00:00
Brian S. Dean 718920841a MFC rev 1.7 : Re-order how files are copied into the new /etc
directory.  Copy default first, then network-specific,
              finally followed by host-specific files.

Approved by:	jkh
2001-04-17 22:53:34 +00:00
Wilko Bulte 1fbfdfe348 Document potential issues with PCI bridge chips and adapter/hose placement
for AS4100. Requesting send-pr reports for any bad experiences. Given the
limited number of AS4100 with FreeBSD out there this is as good as it gets..

Suggested by: mjacob
2001-04-17 21:10:45 +00:00
Bruce A. Mah 14c8d2aa93 Update for security advisories: 01:32 and 01:33.
alpha only:  Rearrange two items in the security fixes section; somehow
the alpha and i386 files got out of sync.

Approved by:	jkh (implicitly)
2001-04-17 20:35:40 +00:00
Alfred Perlstein 5e69c556b2 The comment for the MSGMNB option is misleading, it's not "max
characters per message", rather it's "max characters per message
queue"

Pointed out by: alex <[email protected]>
2001-04-17 19:55:44 +00:00
Jens Schweikhardt a00e7195b9 MFC: fixed typos.
Approved by:	jkh
2001-04-17 19:19:40 +00:00
Chris D. Faulhaber e716797d8e MFC: Limit number of paths returned via glob() for authorized users
Approved by:	jkh
2001-04-17 18:03:52 +00:00
Jesper Skriver 4732628037 MFC:
Fix typo  s/thissystem/this system/

Submitted by:	Stephen <[email protected]>
Approved by:	jkh
2001-04-17 17:48:57 +00:00
Luigi Rizzo 3ec302d1b7 Fixes for diskless support.
in /etc/rc, let rc.diskless2 do the necessary mounts instead of
running mount -a -t nonfs

in /etc/rc.diskless2, do the various mounts in the right order

Approved-by: jkh
2001-04-17 15:52:28 +00:00
Luigi Rizzo 6828b6bac3 MFC: bring in sample script to create a shared readonly root partition
for diskless client. With this, and the patches to /etc/rc and
/etc/rc.diskless2, diskless support should be working out of the
box on 4.3R

Approved-by: jkh
2001-04-17 15:50:31 +00:00
Luigi Rizzo 72212958da Partly back out previous commit: keep IPV6 support even if
RELEASE_CRUNCH is defined.

Approved-By: jkh
2001-04-17 15:21:02 +00:00
cvs2svn 7b1e8f699b This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-04-17 14:31:57 +00:00
Bruce A. Mah 7709c0bba9 MFC: s/Over 4500 ports/Over 5000 ports/
Approved by:	jkh (implicitly)
2001-04-17 02:24:03 +00:00
Jordan K. Hubbard 15501cd057 It's now over 5000 ports. 2001-04-16 21:49:42 +00:00
Jordan K. Hubbard c4aa41c97d Add windowmaker and sawfish to "must have" package set on disc1 2001-04-16 21:27:52 +00:00
Greg Lehey d7fde8f51b open_drive: Recognize drives located on Mylex RAID controllers.
Reported by:	Matt Groener <[email protected]>
Approved by:	jkh
2001-04-16 05:29:54 +00:00
Bruce A. Mah 1d17add651 Reorder some of the release notes items so that related items are
adjacent (as an example, pkg_* items were scattered throughout the
file).  Hopefully done without adding or subtracting items from
each architecture's release notes.  This is no substitute for a more
coherent organization, but it will do for now.

Fix some minor grammar and punctuation nits.
2001-04-15 00:33:00 +00:00
Jordan K. Hubbard 8754aa9c5a MFC: crypto checksums go to correct file 2001-04-14 22:29:49 +00:00
Bruce A. Mah 2c624398fd MFC: dc(4)-supported cards update, amr(0) supports Dell PERC 3/DCL,
properly capitalize "Ethernet", sysinstall(8) default partition sizes.

Approved by:	jkh (implicitly)
2001-04-14 16:45:06 +00:00
Dirk Froemberg daeaabc881 MFC: Log denied IXFR.
Approved by:	jkh
2001-04-14 13:45:08 +00:00
Jordan K. Hubbard 81c341d8c0 Properly redraw the options screen when this option is selected.
Submitted by:	olgeni
2001-04-14 12:21:56 +00:00
Wilko Bulte 326d4a7e80 Update boot capabilities for Adaptec 2940-series
Approved by:	jkh (implicitely)
Obtained from:  [email protected] / [email protected]
2001-04-14 08:29:23 +00:00
Jordan K. Hubbard fe3130bc74 MFC: load streams before svr4 2001-04-14 02:32:22 +00:00
Ben Smithurst 4f71bade49 MFC rev 1.31: Allow ident requests with trailing junk following
the terminating "\n".

Approved by:	jkh
2001-04-13 17:59:48 +00:00
Nate Williams 4193fb2fe7 MFC: Correct identify denied secondary zone transfer messages.
PR:             misc/26529
Approved by:	jkh
2001-04-13 16:49:34 +00:00
Bruce A. Mah 73a83b2709 MFC: Fix typo s/maestreo3/maestro3/, SA-01:31, add missing C-Media
and Crystal Semiconductor sound chips.

Approved by:	jkh (implicitly)
2001-04-13 16:13:10 +00:00
Nik Clayton 2077b9b2ef Consensus on -stable (and #fightclub) is that "standard-supfile" should
default to the branch from which the code came.  So if you pull down
RELENG_4 it defaults to RELENG_4, get -current and 'tag=.'.  And when
we get the 'bug fix only' branch for 4.3, standard-supfile on that
branch should point specifically at that branch.

Approved by:	jkh
2001-04-11 21:50:13 +00:00
Bruce A. Mah 13f7244988 MFC: gcc-2.95.3, clarify ESS Maestro-3/Allegro loading issues.
Approved by:	jkh (implicitly)
2001-04-11 16:25:23 +00:00
Hajimu UMEMOTO 635b3fc142 MFC 1.21 -> 1.23
- Make per-address input packet counts for lo0 work.
  - Reject packets to fe80::xxxx%lo0 (xxxx != 1).

Approved by:	jkh
2001-04-10 19:32:19 +00:00
David E. O'Brien 1fa470027f MFC: bring in GCC 2.95.3 + official sjlj exception fixes.
Approved by:	jkh

The the setjump/longjump exception handling fixes are from GCC 2.95.3.test3
and were removed from GCC 2.95.3.test4 and the subsequent release due
to bootstrap problems on HP-UX.  However, they were very well tested and
fixed major problems on all other platforms.  Including all the all the BSD's.
OpenBSD and FreeBSD 5-current both use these official sjlj patches.

W/o this upgrade the following program segmentation faults if compiled
with -O2 (but not -Os or -O or -O0) on 4.2FreeBSD.
There are some large C++ libraries where segfaults also occur, even at -O.

#include <stdio.h>

class A {
public:
  A() { printf("c'tor A\n"); }
  ~A(){ printf("d'tor A\n"); }
};

class foo : public A {
public:
  foo()  { printf("C'tor foo\n"); throw 8; }
  ~foo() { printf("D'tor foo\n"); }
};

int main(){
  try { foo fii; }
  catch (int){ printf("catch ...\n"); }
  return 0;
}
2001-04-10 19:23:41 +00:00
Bruce A. Mah 73d68b270c MFC: VLAN bugfixes, Vinum bugfixes, pkg_version comparison fix and -t
option, portmap -h, GNATS update.

Approved by:	jkh (implicitly)
2001-04-10 17:04:17 +00:00
George C A Reid 296b3757ba Add another ID to the badcards (non-ac97) table
Approved by:	jkh
2001-04-10 15:56:45 +00:00
David E. O'Brien 0fb777c987 MFC revs 1.79 (cut-n-paste + embellish), 1.78 (sable/lynx `clear_error')
Requested by:	wilko
Approved by:	jkh (vicariously thru wilko)
2001-04-10 10:38:35 +00:00
Matthew Dillon 270f35cc34 Late edition: rpcinfo, mount, and umount are using different mechanisms
to do portmap lookups.  Some use tcp connections to portmap, others use
udp.   In anycase, using udp for RPC requests causes the old 'reply from the
wrong IP address' problem to rear its ugly head so this commit is a quick
hack to add the -h option to portmap.  The semantics are the same as -h in
nfsd (including backwards compatibility if you don't use -h).

portmap no longer exists in current so this is 4.x only.  I will check
current's new rpc mechanism to see if it has the same problem and fix it
there if it does.

Approved: jkh
2001-04-09 23:35:19 +00:00
Bruce A. Mah de251f4ac7 MFC: Fix pkg_version(1) version comparison, pkg_version -t,
make test target for testing.

	Makefile		1.7->1.8
	pkg_version.1		1.14->1.15
	pkg_version.pl		1.17->1.18
	test-pkg_version.sh	1.1

Approved by:	jkh
2001-04-09 22:29:10 +00:00
cvs2svn 07c847a65c This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-04-09 21:29:45 +00:00
Ruslan Ermilov 1f4a35bb24 MFC: merge latest CSRG revisions.
Approved by:	jkh
2001-04-09 17:08:20 +00:00
Jordan K. Hubbard ee1acc8a10 MFC: xfer stats 2001-04-09 16:50:09 +00:00
Matt Jacob 0b0038cc5f MFC: Correctly initialize free_ccbq so that if we fail to attach (as is
possible for some systems where the device is there, but the BIOS
hasn't allocated memory resources for it), we don't panic.

Approved by: jkh
2001-04-09 05:43:49 +00:00
Jordan K. Hubbard 1494c90c10 MFC: correct metrics reporting 2001-04-08 20:43:22 +00:00
Matt Jacob c8424f82ca MFC:insert a magical second memory barrier prior to calling draina() in
badaddr_read().  This fixes 'machine check in pal mode' halts on
ev5 2100As.

Approved by:	jkh
2001-04-08 19:24:41 +00:00
Orion Hodson 67f5de5b44 MFC sample rate fixes and 4 speaker audio for release.
Approved by:	jkh
2001-04-08 18:24:49 +00:00
Bruce A. Mah 4ea2c8ec9c MFC: Fix IPFilter fragment cache.
Semi-MFC:  ata(4) supports ATA66/ATA100 on Acer chipsets (not noted in
-CURRENT because this note covered by existing items).

Approved by:	jkh (implicitly)
2001-04-08 04:31:30 +00:00
Greg Lehey ff439ad3c4 struct drive:
Workaround size mismatch in struct drive on alpha platform only.
  This struct is shared between kernel and userland and contains a
  dev_t, which now refers to a completely different structure in
  userland and kernel: int the kernel, userland dev_t is called
  udev_t, and dev_t is struct specinfo *.  In practical terms, kernel
  dev_t is a pointer and userland dev_t is an int, which on the alpha
  are different sizes.

  As stated, this is a workaround.  The correct fix would be in two
  parts:

  1.  Don't define structures in the kernel with the same name and a
      different content as a userland structure.  This is a
      kernel-wide issue: kernel dev_t needs another name.

  2.  Don't export unnecessary kernel structures to userland.  This
      can be done within Vinum.  It is currently on the tuit queue.

Sleuth work by:      Normand Leclerc <[email protected]>
Tested by:	     Normand Leclerc <[email protected]>
Blanket approved by: jkh
2001-04-08 02:18:14 +00:00
Dag-Erling Smørgrav e4e1c16c44 MFC: set us->size to -1 when server's response is unparseable.
Approved by:	jkh
2001-04-07 17:30:48 +00:00
Peter Wemm f4d284073b Add missing KMODDEPS=snd_pcm for two drivers in RELENG_4
PR:		kern/26394
Approved by:	jkh
2001-04-07 16:48:51 +00:00
Orion Hodson 612b1a1db6 MFC sample rate fixes for release.
Approved by:	jkh
2001-04-07 14:16:31 +00:00
Brian Feldman 9ea56c37d1 MFC: add "csshd"
Approved by:	jkh
2001-04-07 11:46:51 +00:00
Ruslan Ermilov 8ee0e14d7b MFC: (rev 1.21) Execute this script in a "C" locale environment.
Approved by:	jkh
2001-04-07 11:09:28 +00:00
Darren Reed 4948859b5f fix security hole created by fragment cache 2001-04-07 03:40:32 +00:00
Søren Schmidt e4f72e020c MFC:
Add ATA66 & ATA100 support for Acer chipsets.
2001-04-06 19:23:47 +00:00
Chris D. Faulhaber e78fdc849d MFC revs 1.3 and 1.4:
- Correct off-by-one error and buffer underflow from previous fix
  - int -> unsigned char fixes
  - Prevent potential syslog DoS

Approved by:	jkh
2001-04-06 17:51:27 +00:00
Bruce Evans 9481d9d5f0 MFC (rev.1.14: don't follow the null pointer went the server sends an
unparseable timestamp).

PR:		25243
Approved by:	jkh
2001-04-06 11:34:03 +00:00
Bruce A. Mah d93cd1f5ff MFC: ata(4) loader tunables.
Update hardware lists from isp(4) manpage.

Approved by:	jkh (implicitly)
2001-04-05 18:14:25 +00:00
Nick Sayer 53414023af 1. Revert the removal of SRA
2. MFC sys_bsd.c v1.5 - fix the bug that started the fuss. Make SIGINT
and SIGQUIT follow the state of SIGTSTP, thus making SRA abortable.

Approved by:	jkh
2001-04-05 17:27:08 +00:00
Søren Schmidt cbc068405f MFC:
Update to reflect the new tunables instead of options.
2001-04-05 17:24:48 +00:00
Søren Schmidt 65e98365ab MFC:
remove opsolete WC/TAGS/ATAPI_DMA options, they are now tuneables

Approved by: jkh
2001-04-05 17:23:43 +00:00
Søren Schmidt 63e798b7dd MFC:
Add tunables to control DMA/WC/TAGS/ATAPI_DMA and associated
sysctl's to read settings.

Approved by: jkh
2001-04-05 17:21:54 +00:00
Ruslan Ermilov be36b420e9 MFC:
- rev 1.17 (off-by-nine error when building a list of include files)
- rev 1.18 (fix to rev 1.17)
- rev 1.20 (search for include files in lexicographical order)

Approved by:	jkh
2001-04-05 08:04:40 +00:00
Bruce A. Mah 514b84b685 MFC: ntpd(8) vulnerability fix, correct fetch(1)/ftp(1) typo.
Approved by:	jkh (implicitly)
2001-04-05 01:38:36 +00:00
Assar Westerlund e87467cb38 MFC: 1.19: disable RSA
Approved by:	jkh
2001-04-05 00:37:06 +00:00
Poul-Henning Kamp 708ed5a0ff MFC: Fix a potential ROOT-exploit in NTPD. 2001-04-04 23:09:10 +00:00
Bruce A. Mah 45284d5b4c MFC: Fix ABOUT.TXT to be consistent with LAYOUT.TXT with respect to
the sized of an unpacked ports collection.

Approved by:	jkh
2001-04-04 16:55:01 +00:00
Ruslan Ermilov 31c5afc00b MFC: mdoc(7) formatting fixes. 2001-04-04 09:54:17 +00:00
Greg Lehey adad77c719 vinumlock: Catch a potential race condition where one process is
waiting for a lock, and between the time it is woken and
	   it retries the lock, another process gets it and places it
	   in the first entry in the table.

	   This problem has not been observed, but it's possible, and
	   it's easy enough to fix.

Submitted by:	tegge

vinumunlock: Catch a real bug capable of hanging a system.  When
             releasing a lock, vinumunlock() called wakeup_one.  This
             caused wakeups to sometimes get lost.  After due
             consideration, we think that this is due to the fact that
             you can't guarantee that some other process is also
             waiting on the same address.  This makes wakeup_one a
             very dangerous function to use.

These changes have not yet been committed to -CURRENT.  In view of the
seriousness of the second one and the imminent 4.3-RELEASE, it seems
excusable to commit to -STABLE first.

36 hour test by:  grog
Suggested by:     alfred
Suffered by:      Andrew Gordon <[email protected]>
Approved by:      jkh
2001-04-04 06:27:11 +00:00
Chris Timmons ceba99ef09 MFC: Document LOG_CONSOLE. Approved-by: jkh 2001-04-03 16:25:59 +00:00
Bruce A. Mah 8239442d90 MFC: New libfetch port range, ftp(1) -U.
Approved by:	jkh (implicitly)
2001-04-03 14:12:50 +00:00
Bruce A. Mah 1efd6f45e8 MFC: Clarify instructions for using a CD-ROM equipped machine to support a
FreeBSD install and add a warning about enabling anonymous FTP.

Submitted by:	nik
Approved by:	jkh
2001-04-03 14:09:58 +00:00
Gregory Neil Shapiro 16646e2e72 MFC: The userdb database is different from the rest of the databases. It
*must* be a btree.

     Revision  Changes    Path
     1.14      +7 -3      src/etc/mail/Makefile
2001-04-02 17:14:42 +00:00
Wilko Bulte 54740a0b30 Note that AS1200 and AS8400 have problems booting from the
install media (like the Rawhide servers).

Approved by:	jkh (implicitly)
2001-03-31 14:22:18 +00:00
Jeffrey Hsu e954b74e5b MFC: Pull in STAILQ_LAST changes.
Approved by:	jkh, phk
2001-03-31 03:33:44 +00:00
Greg Lehey dd51b77b8a MFC: Allocate lock table for striped plexes as well as parity plexes.
This was forgotten in the last slew of MFCs, and caused an immediate
panic when starting a striped plex.

Suffered by:	"John J. Rushford Jr" <[email protected]>
Approved by:	jkh
2001-03-30 05:41:39 +00:00
Gregory Neil Shapiro c4a3a028d3 MFC: Forgot to update this README when I imported 8.11.3
Revision  Changes    Path
     1.4       +5 -5      src/contrib/sendmail/FREEBSD-upgrade

Approved by:	jkh
2001-03-30 05:40:19 +00:00
Jordan K. Hubbard 9038e0add5 MFC: correct message 2001-03-29 19:56:34 +00:00
Yaroslav Tykhiy 9bfdcb2c75 MFC: (1.26) Fix a number of minor bugs in the VLAN code:
* Initialize the "struct sockaddr_dl sdl" correctly in vlan_setmulti().

* The driver used to call malloc(..., M_NOWAIT), but to not check the
  return value. Change malloc(..., M_NOWAIT) to malloc(..., M_WAITOK)
  because the corresponding part of code is called from the upper
  half of the kernel only.

* Make sure a parent interface is up and running before invoking
  its if_start() routine in order to avoid system panic.

* Do not copy all the flags from a parent mindlessly.

* Do not call if_down() on a parent interface if it's already down.
  Call if_down() at splimp because if_down() needs that.

Approved by:	jkh
2001-03-29 10:33:00 +00:00
Jesper Skriver 6e708d3eb7 MFC
src/sys/netinet/ip_icmp.c  rev 1.56
src/sys/netinet/tcp_subr.c rev 1.96

This should fix the case where port unreachables for udp returned
ENETRESET instead of ECONNREFUSED

Approved by:	jkh
2001-03-29 10:10:02 +00:00
Yaroslav Tykhiy a4b44658cf Advance the output byte and multicast counters on a parent
interface, since we mimic ether_output() in vlan_start().

Increment the output packet counter of a vlan interface
in the right place.

PR:		kern/22178
Reviewed by:	wollman
Approved by:	jkh
2001-03-29 10:06:16 +00:00
Yaroslav Tykhiy aa14565ee1 MFC: (1.79) Add a missing m_pullup() before an mtod() in in_arpinput().
Approved by:	jkh
2001-03-29 09:51:16 +00:00
Yaroslav Tykhiy c8ac075429 MFC: (1.104) Don't bypass notifying a corresponding interface
when leaving a link-layer multicast group.

Approved by:	jkh
2001-03-29 09:45:04 +00:00
Peter Wemm 06335e3cbf MFC rev 1.17 2001-03-29 01:46:57 +00:00
Brian Somers e5bba7f366 MFC: Bring the PPPoE interface UP if required
Approved by: jkh
2001-03-29 00:02:33 +00:00
Brian Somers 678d3c37dd Don't document the ``set socket'' features that haven't yet been MFC'd
Pointed out by: George W. Dinolt <[email protected]>
Approved by: jkh
2001-03-28 23:58:32 +00:00
Dag-Erling Smørgrav 3994b32e85 MFC: bring usage message in synch with reality.
PR:		bin/26160
Approved by:	jkh
2001-03-28 21:22:47 +00:00
Dag-Erling Smørgrav 429a792422 Back out part of previous commit - it doesn't even work on -CURRENT... 2001-03-28 21:07:55 +00:00
Peter Wemm 88ab938697 MFC rev 1.15-1.16; fix g_Ctoc() etc.
Approved by: jkh
2001-03-28 16:34:13 +00:00
Kris Kennaway c73498eba0 s/${_CFLAGS}/${_CPUCFLAGS}/, looks like I committed an earlier version
of my patch from the wrong tree.

Submitted by:	Glenn Johnson <[email protected]>
Approved by:	jkh
2001-03-28 09:24:06 +00:00
Hidetoshi Shimokawa 9b83afc73c MFC: Replace dyn_fin_lifetime with dyn_ack_lifetime for half-closed state.
(ip_fw.c rev.163)

Approved by: jkh
2001-03-28 05:19:00 +00:00
Andrew Gallatin 92406b9b55 MFC: fix linux_times() on alpha
Approved by: jkh
2001-03-28 02:33:47 +00:00
Scott Long abdaf54b39 MFC rev 1.296 and 1.297, add the -f flag to ln when creating the afaN device.
Approved by:	jkh
2001-03-27 22:14:53 +00:00
Jordan K. Hubbard 2af99f0419 MFC: update acknowledgements 2001-03-27 22:08:00 +00:00
Joerg Wunsch 7e99bf2a8b MFC: rev 1.66, fix a blatant bug where a null password would always
succeed in PAP authentication.

Approved by:	jkh
2001-03-27 21:42:51 +00:00
David E. O'Brien d58191d30f MFC: rev 1.599 (add ttyd0 to MFSROOT's /dev for serial fix-its)
Approved by:	jkh
2001-03-27 16:49:58 +00:00
Wolfram Schneider b3bff8301d merge up to rev 1.40 2001-03-26 19:36:25 +00:00
Bruce A. Mah 1af056b992 MFC: netstat(1) -W, sockstat(1) -c and -l, FFS/EXT2FS security fixes
(FreeBSD-SA-01:30).

Approved by:	jkh
2001-03-26 18:09:39 +00:00
Bruce A. Mah 1e97085fd6 Fix omission of Comtrol Rocketport cards in hardware list (was already
in release notes).

Submitted by:	Chris Williams <[email protected]>
Approved by:	jkh
2001-03-26 18:08:32 +00:00
Jordan K. Hubbard 45c98cca85 MFC: add apsfilter to cdrom packages, note DEC EtherWorks II/III situation 2001-03-26 17:44:07 +00:00
Ian Dowse f722e7b989 Clean up properly when a `vn' module is kldunloaded to avoid panics
later. We now call cdesw_remove() to unregister the device, NULL
out any pointers to the vn_softc that exist in dev_t `si_drv1'
fields, and perform a destroy_dev() corresponding to the initial
make_dev().

This is not an MFC; vn(4) is no longer in -current.

PR:		kern/18270, i386/26049
Submitted by:	[email protected], [email protected]
Reviewed by:	phk
Approved by:	jkh
2001-03-26 16:58:47 +00:00
Dirk Froemberg f3555df91e MFC: Fix .Xr sd -> da.
Approved by:	jkh
2001-03-25 21:32:40 +00:00
Warner Losh 7fd882aa50 Fix typo. I'm sorry, but I lost the mail that contained this patch,
so I don't know who sent this to me.
2001-03-25 20:35:17 +00:00
Warner Losh 5d6bf03421 MFC: Add OZ6832 cardbus ids.
Approved by: jkh
2001-03-25 20:20:31 +00:00
Peter Wemm 02fdbd9592 MFC: s/Over 3000 ports/Over 4500 ports/
Approved by: jkh
2001-03-25 17:56:59 +00:00
Ian Dowse e0bba691d8 MFC: pccard.c r1.117, pccard_beep.c r1.7
Avoid duplicate or incorrect beep tones. Don't depend on undefined
C behaviour, and use 0 instead of NULL for an integer zero.

Approved by:	jkh
2001-03-25 15:32:39 +00:00
Ian Dowse 088027a6e8 MFC: 1.11: Fix usage line.
Approved by:	jkh
2001-03-25 15:23:54 +00:00
Mark Murray 1dd8c1ec0e Relax the requirement that superuser privelige is required for
_all_ ioctl's. SU is only required for the ones that set, unset
or show priveliged state or information.

Approved by:	jkh
2001-03-25 06:52:46 +00:00
Satoshi Asami ef180eb349 MFC (science and ukrainian categories).
Approved by:	jkh
2001-03-24 22:09:58 +00:00
Joerg Wunsch f00bae8df8 MFC: rev 1.65, synthesize a tls if we get an Open in stopped state.
Fixes a deadlock situation several people were observing for IPCP.

Reviewed by:	brian (thanks!)
Approved by:	jkh
2001-03-24 20:46:55 +00:00
David Malone 3b65b08205 Check return value from zinit.
PR:		26000
Submitted by:	Andrew Lambeth <[email protected]>
Approved by:	jkh
2001-03-24 20:28:24 +00:00
Jordan K. Hubbard a8f2757d96 Remove the warning-fixing cast; it (very oddly) breaks on the alpha. 2001-03-24 18:49:42 +00:00
Dag-Erling Smørgrav a4d3934b76 MFC: port range usage.
Approved by:	jkh
2001-03-24 17:28:57 +00:00
Jordan K. Hubbard d812acbe76 MFC: spelling fixes, afterstep desktop, ssh dir preservation 2001-03-24 05:43:08 +00:00
FUJISHIMA Satsuki cf421e63b5 MFC: sync with XFree86-4.0.3.
Approved by:	jkh
2001-03-24 02:15:31 +00:00
Peter Wemm 9baa3eea69 MFC rev 1.8,1.9 - deal with compat3x.${MACHINE_ARCH}
Approved by: jkh
2001-03-23 22:09:37 +00:00
Jordan K. Hubbard 2d8639f0cd MFC: include the correct compat dists 2001-03-23 21:47:35 +00:00
Jordan K. Hubbard 5825c6de40 Turn building port readmes in releases off by default. It breaks
on too many of my test machines and they're not strictly necessary to the
proper operation of ports.  Deliberately not turning it off in -current
yet since we may yet be able to fix this there.
2001-03-23 09:13:54 +00:00
Scott Long 6dee87c350 MFC rev 1.295. Create symlink for afaN device.
Approved by:	jkh
2001-03-23 08:59:38 +00:00
Jordan K. Hubbard 6a2c725953 MFC: sane tty in wizard mode 2001-03-23 08:27:10 +00:00
Jordan K. Hubbard 9e702614d0 MFC: fix soft update script bogon, eliminate warning 2001-03-23 08:08:24 +00:00
Cameron Grant 7dea1630e8 remove the lines referring to snd_pcm and snd_sbc - both will be autoloaded
as dependancies when required.

be more descriptive of the function of each snd_* module

Approved by:	jkh
2001-03-22 22:22:04 +00:00
David E. O'Brien c3f684bfb0 Revert rev 1.7 which used "console' rather than ttyv0' so there will
always be a getty on the console reguardless of the type of console.
Instead always run a getty on ttyd0.

Reviewed by:	gallatin
Approved by:	jkh
2001-03-22 22:15:26 +00:00
Wilko Bulte 4f86254283 Document AS4[01]00 install media boot anomaly & workaround.
Approved by:	jkh
2001-03-22 19:32:12 +00:00
Dag-Erling Smørgrav a37b0fbe1a MFC: all changes (-l and -u options, use netstat's new -W option) 2001-03-22 13:49:51 +00:00
Dag-Erling Smørgrav 05e8b8d68d MFC: most changes (-W option, trimdomain -> libutil, queue.h cleanup) 2001-03-22 13:48:44 +00:00
Jordan K. Hubbard 03e6ffa645 MFC: back out 2001-03-22 10:52:10 +00:00
Mark Murray 7527479d39 Punt to attic stuff that is not used by us.
OK''ed by:	jkh
2001-03-22 09:28:34 +00:00
Jordan K. Hubbard c54e3e650f MFC: one contraversial and one non-contraversial change. rwatson and
I will take the fall for the contraversial one if it looks like
     it has onwonted side-effects. :)
2001-03-22 09:02:32 +00:00
Jordan K. Hubbard 76db01ec4d MFC: include X docs 2001-03-22 05:38:14 +00:00
Jordan K. Hubbard 6616e0146f MFC: don't bogusly install kerberos bits. 2001-03-22 05:34:21 +00:00
Bruce A. Mah 452249dae6 MFC: OpenSSH traffic analysis resistance, rc(8) dependency handling
framework.

Fix trailing whitespace bogons in alpha release notes.

Sync up hardware devices with the commit message from
etc/defaults/pccard.conf 1.98.2.19.  (prompted by imp)

Approved by:	jkh (implicitly)
2001-03-22 02:43:34 +00:00
Paul Saab f14b02f7d6 MFC: libssl and libcrypto compat4x libraries.
Approved by:	jkh
2001-03-22 01:43:47 +00:00
Brian Feldman e81d2d3140 Report that we're not exactly OpenSSH 2.3.0. 2001-03-22 00:30:56 +00:00
Brian Feldman fffb11d2b5 MFC: resilience against traffic analysis 2001-03-22 00:28:35 +00:00
Brian Feldman c07932d500 MFC: Fix LP64 problem in Kerberos 5 TGT passing 2001-03-22 00:27:18 +00:00
Brian Feldman 966b85c4fe MFC: fix core on invalid user (not security risk) 2001-03-22 00:26:17 +00:00
Jordan K. Hubbard 08afcc114b MFC: put this back 2001-03-21 21:17:48 +00:00
cvs2svn f149ce3a5b This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-03-21 21:16:19 +00:00
Bruce A. Mah 0d6295c3ac MFC: ahc(4) bugfixes, NFS FNV hash, glob(3) limits, make(1)
bugfixes.

Approved by:	jkh
2001-03-21 21:14:30 +00:00
Jordan K. Hubbard 982dadd9a6 We are now going into "release candidate" status. 2001-03-21 21:06:19 +00:00
Warner Losh 4fe6e7b70f MFC: Merge supported devices. (1.181):
ata:
# Panasonic Flash ATA BN-040ABP3	auto doesn't work sometimes
ed:
# I-O DATA PCET/TX
# I-O DATA PCET/TX-R
# I-O DATA PCLA/TE
nsp:
# Hewlett Packard M820e (CD-writer)
wi:
# 3com 3crwe737A AirConnect Wireless LAN PC Card	might not work
# Corega KK Wireless LAN PCCA-11
# Intel PRO/Wireless 2011 LAN PC Card			might not work
# IO Data WN-B11/PCM
# NEC WL11C (PC-WL/11C)
# NEC Corporation PK-WL001

Approved by: jkh

# Note: the RELNOTES.TXT hardware list may need to be updated on -stable.
2001-03-21 16:51:16 +00:00
Jonathan Lemon 402329e164 MFC: globbing limits for ftpd.
Approved by: jkh
2001-03-21 14:40:37 +00:00
Jonathan Lemon c9038eeff1 MFC: Allow user to specify glob limits, default to unlimited matches. 2001-03-21 14:33:56 +00:00
Kris Kennaway d56cffbaae MFC: Pentium II does not support SSE
Approved by:	jkh
2001-03-21 11:43:20 +00:00
Yoshihiro Takahashi 2e34c4d83e MFC: Always call resource_int_value function for getting portsize and msize.
Approved by:	jkh
2001-03-21 11:18:25 +00:00
Peter Wemm 1f22f17d04 MFC: fnv hash improvements for nfsnode hash etc.
Requested by:	jkh
2001-03-21 10:50:59 +00:00
Maxim Sobolev f180e8447a MFC: k6/k7 do have mmx extension.
Approved by:	jkh
2001-03-21 08:36:54 +00:00
Kris Kennaway d4d0b6065f MFC: CPUTYPE support for COPTFLAGS plus disabling switch
Approved by:	jkh
2001-03-21 08:28:09 +00:00
Justin T. Gibbs 9ad2bee6a3 MFC rev 1.115. Don't allow our DMA engine to be re-enabled late in the
shutdown phase of a data transfer by the idle loop fetching
		an S/G segment.

Approved by:	jkh
2001-03-21 05:00:00 +00:00
Bruce A. Mah a14282abc4 MFC: pkg_create(1) dependencies in dependency order, fix "lprm -" for
remote queues, mergemaster(8) updates, ftpd(8) updates.

Fix typos:  net.inet.ip.check_interface defaults to off, not on.
wi(4) is now BSS mode by default, not if(4).

Other:  Fix ESS Maestro-3/Allegro in hardware listings.

Approved by:	jkh
2001-03-21 04:33:43 +00:00
Wilko Bulte ad261b310a Document situation around Adaptec SCSI cards more accurately. Esp.
for 164SX machines.

Approved by:	jkh
2001-03-20 22:58:41 +00:00
Stephen McKay cb3b5e5d58 Revert part of the 1.51 merge. What looked like an obvious fix to an
obvious bug turned out to have ill effects on PNIC and Davicom cards.
A better fix will appear eventually, after more analysis.
2001-03-20 22:38:29 +00:00
Jordan K. Hubbard e4bf058f40 By doing "ipf -P -f -", a user can cause the box to panic if they have
the right perms to /dev/ipf (it should generally be 0600 anyway).
This fixes that.  This is deliberately going into -stable first since it
will be fixed in -current by simply importing the next revision of ipfilter.

Submitted by:	darrenr
2001-03-20 21:09:51 +00:00
Bruce A. Mah 2a8eb16bf8 MFC: mly(4) fixes, Kerberos compatability in OpenSSH, dump(8) nodump
flag inheritance, ISC DHCP client 2.0pl5, stty(1) erase2, split(1)
large file support, units(1) update, netstat(1) per-address packet
counts, manpage fixups, fix Adaptec and DPT SCSI RAID texts.

Approved by:	jkh
2001-03-20 17:35:40 +00:00
Bruce Evans a67ad36ea0 MFC (1.185: fix access()).
Approved by:	jkh
2001-03-20 11:45:01 +00:00
Maxim Sobolev 17c32e2f94 MFC:
When creating package sort dependencies in dependency order rather than in the
order specified on the command line. This should allow ``pkg_add -r'' to
work seamlessly with packages created after this change.

Tested by:	bento
Approved by:	jkh
2001-03-20 09:45:55 +00:00
cvs2svn ff688e9db1 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-03-20 02:10:19 +00:00
Wilko Bulte fa292f05f5 Note fix for 'going nowhere without my init' bug. 2001-03-19 22:34:33 +00:00
Kris Kennaway 6688f3557b MFC: Better compilation of asm code, fixes problems with -j builds.
Approved by:	jkh
2001-03-19 21:42:02 +00:00
Bruce A. Mah 3bc0ea6994 MFC: ESS Maestro-3, if(4)/an(4) default to BSS mode, timed(8) bugfix
(FreeBSD-SA-01:28), rwhod(8) bugfix (FreeBSD-SA-01:29), tftpd(8)
-c/-C options and >65536 block transfers, lastlogin(1), BSD_daemon/
graphic, bc 1.06, pkg_update(1), savecore(8) -k and sparse dumps,
tcsh 6.10, CVS_RSH default now ssh, pkg_delete globbing plus -a and -i,
Kerberos IV 1.0.5, Heimdal 0.3e, CPUTYPE make.conf variable, OpenSSL
asm code.

Approved by:	jkh
2001-03-19 21:33:29 +00:00
John Baldwin 050c0133d7 MFC: rev 1.14: whitespace fix. 2001-03-19 21:10:47 +00:00
Poul-Henning Kamp 7e11fb5892 MFC: add return value check to ipv6 code to stop netstat from freaking
out in jails.

Approved by:	jkh
2001-03-19 19:33:19 +00:00
Justin T. Gibbs 7ccd2814d8 MFC: Fix phase table lookup and PCI 2.1 retry bug workaround.
Approved by:	jkh
2001-03-19 15:09:26 +00:00
Hajimu UMEMOTO 9671e039e3 MFC: Add `ipv6_ifconfig_IFN_aliasN' directive to allow multiple aliases.
etc/defaults/rc.conf:	1.94 -> 1.95
	etc/rc.network6:	1.16 -> 1.17

Approved by:	jkh
2001-03-19 09:33:59 +00:00
Hajimu UMEMOTO 9b83cef058 MFC 1.4 -> 1.5: Correct typo in usage.
Approved by:	jkh
2001-03-19 09:30:08 +00:00
Jordan K. Hubbard bcd867a0b6 MFC: properly document loadConfig 2001-03-19 02:14:00 +00:00
David E. O'Brien e62d7b52a3 MFC: don't call err() on the Alpha.
Approved by:	jkh
2001-03-18 22:39:23 +00:00
Cameron Grant 296959c47d MFC:
fake.c rev 1.7
feeder.c rev 1.14
sound.c rev 1.40

don't leak memory allocated for feeders at module unload
kill the fake channel when unregistering

Approved by:	jkh
2001-03-18 17:16:55 +00:00
Cameron Grant 1b85102dcc MFC: rev 1.30
destroy child devices on detach to prevent ever-increasing
numbers of pcm/midi devices trying to attach if the module
is repeatedly loaded and unloaded.

Approved by:	jkh
2001-03-18 17:09:54 +00:00
Cameron Grant 2e7f43d122 MFC: rev 1.65
fix a typo preventing the second dma channel being released
use isa_dma_release when releasing dma channels

Approved by:	jkh
2001-03-18 17:08:29 +00:00
Scott Long 4c6485b211 MFC rev 1.12. Fix a race condition in the interrupt handler that can cause
commands to become standed until another I/O happens. Allows an aac container
to be mounted as root.

Approved by:	jkh
Obtained from:	gibbs
2001-03-18 16:10:54 +00:00
Nick Sayer b7d83b925e Fix incorrect unapproved commit from last night.
Approved by: jkh
2001-03-18 15:10:34 +00:00
Nick Sayer 902fa7f921 Fix a crash noted in -stable with 'auth disable SRA' 2001-03-18 09:35:43 +00:00
Jordan K. Hubbard eaaa1bfb3c MFC: nuke gratuitous xterm from fvwm profile 2001-03-18 04:57:22 +00:00
Jun Kuriyama 95e0784d1e MFC: Merge from kame (1.175 -> 1.176):
cope with freebsd4 bridge code.

Approved by:	jkh
2001-03-18 03:25:41 +00:00
Alan Cox 8e11b67fc6 MFC: revision 1.97 of kern/vfs_aio.c and revision 1.24 of sys/aio.h
Corrects numerous problems including buffer corruption, signal delivery,
 and some race conditions.

PR:		25617
Submitted by:	tegge
Approved by:	jkh
2001-03-17 22:17:03 +00:00
Murray Stokely b649ce5d39 MFC: Document FTP installation through an HTTP proxy
Approved by:	jkh
2001-03-17 11:22:13 +00:00
Peter Wemm ab27c8dff5 MFC: 4MB kernel fixes (the temp stack must be mapped while switching
into paging mode when the text segment pushes the data segment with
the stack beyond the first 4MB)

Approved by:	jkh
2001-03-17 10:48:59 +00:00
Peter Wemm 38d9eaeaca MFC: revs 1.71, 1.73, 1.74, 1.75: Fix up bogus poll() pollfd array limits.
Approved by:	jkh
2001-03-17 10:39:32 +00:00
Kenneth D. Merry c532a51c6f MFC, rev 1.108:
In xpt_set_transfer_settings(), force async if either the period or the
offset is set to 0.

Re-arrange the DT limiting code so that we don't end up setting the period
to 0xa if the user really wants async.  The previous behavior seemed to
confuse the aic(4) driver.

PR:		kern/22733
Reviewed by:	gibbs
Approved by:	jkh
2001-03-17 05:24:51 +00:00
Jordan K. Hubbard d17f90fe48 Remove duplicate text about packages and bzip2.
PR:		docs/25864
Submitted by:	[email protected]
2001-03-17 01:21:00 +00:00
Hajimu UMEMOTO 85e0436356 MFC 1.9 -> 1.10: nuke IPSEC_SRCSEL which does not do the right thing.
adjust state->ro if the tunnel endpoint is offlink.
KAME PR 233.

Approved by:	jkh
2001-03-16 19:23:32 +00:00
Jonathan Lemon 419ad7f632 MFC; limit number of pathnames returned from glob.
Approved by:  jkh   "aaaaand approved for MFC! :)"
2001-03-16 19:18:10 +00:00
Ruslan Ermilov 82c5aaa3ac MFC: -mdoc formatting fixes. 2001-03-16 14:13:37 +00:00
Paul Richards 12ffaebbf0 This was MFCd from -current without fixing the fact that it only ran
with perl 5.6.0. Make the necessary changes so it works in -stable.

PR:		25302
Submitted by:	Independently by Anton Berezin and Ilya Martynov
2001-03-16 04:36:01 +00:00
Yoshihiro Takahashi 20520f559c MFC: Moved '#endif' to correct position.
Approved by:	jkh
2001-03-16 00:11:56 +00:00
Dag-Erling Smørgrav 046fcd4e7f MFC: print status when SIGINFO is received. 2001-03-15 23:55:10 +00:00
Dag-Erling Smørgrav f20bb260b8 MFC: support {ftp,http}_proxy for compatibility reasons.
fix EINTR handling bug.
2001-03-15 23:54:09 +00:00
John Baldwin 2d2b1688b1 MFC: Better descriptions for the accept filter modules.
Approved by:	jkh
2001-03-15 20:10:49 +00:00
Maxim Sobolev 6c0e636f5d MFC: sync with 1.3.
Fix an absence of proper error reporting when user tries to reference
non-existing package.

Approved by:	jkh
2001-03-15 11:18:02 +00:00
Jeroen Ruigrok van der Werven c296f999f4 MFC: Remove double ssh.
PR:		25743
Submitted by:	David Wolfskill <[email protected]>
Approved by:	jkh
2001-03-15 09:27:00 +00:00
Paul Saab c91c5fdc31 MFC: [rev 1.18] Don't set the gateway address if the netmask is
zero or we're on the same network.

Approved by:	jkh
2001-03-15 08:35:54 +00:00
Jordan K. Hubbard bfd2b41958 MFC: unbreak fvwm 2001-03-15 07:14:17 +00:00
Peter Wemm 18d8920a64 MFC: rev 1.13 - detach properly at startup.
Approved by:  jkh
2001-03-15 04:10:40 +00:00
Dima Dorfman c5bcfb2612 MFC 1.6: point people looking to upgrade using source to the Handbook.
Approved by:	jkh
2001-03-15 01:42:04 +00:00
Daniel C. Sobral 55a6c21fca Improve comments about sound modules a bit.
Correct accf lines.

Approved by:	jkh
2001-03-14 22:46:04 +00:00
Cameron Grant 59412f1720 MFC: fix a panic triggerable by anyone with read/write access to the audio
devices.  opening /dev/{dsp,dspW,audio}0 and then opening a different device
from that list and closing it resulted in a panic when any operation is
performed on the first fd.

we prevent this happening by denying the second open unless it uses the same
minor device as the first.

PR:             kern/25519
Approved by:	jkh
2001-03-14 15:18:58 +00:00
Boris Popov 8278d7c1b3 MFC: Provide userland interface for broken Joilet disks.
Approved by:	jkh
2001-03-14 12:05:01 +00:00
Boris Popov 43b8e05b0a MFC: relax checks for slighlty broken Joilet disks.
Approved by:	jkh
2001-03-14 12:03:50 +00:00
Boris Popov ecdfebf7fa MFC rev 1.16 and 1.18: Fix possible deadlocks on rename and update
file name on attributes update.

Approved by:	jkh
2001-03-14 11:26:59 +00:00
Jimmy Olgeni 0a3f18614d Fix typo: compatability -> compatibility.
Approved by:	jkh
2001-03-14 07:44:22 +00:00
Matthew Dillon 746412ff80 MFC lock reversal fix related to threaded programs.
Submitted by: tegge
Tested by: tegge
Approved: jkh
2001-03-14 07:05:06 +00:00
Matthew Dillon aea9c68ace MFC 1.196 - undo a small piece of 1.194 to temporarily work around
longstanding problems with vm_map_growstack().

Reported by: tegge
Tested by: tegge
Approved: jkh
2001-03-14 06:14:08 +00:00
Jordan K. Hubbard 0b188c74ad MFC: only sort rc.conf at installation time. 2001-03-14 03:27:18 +00:00
Gregory Neil Shapiro 706471c463 MFC: Read information from local rc.conf file(s) to get proper settings for
'make start'.

     Revision  Changes    Path
     1.13      +2 -2      src/etc/mail/Makefile

Quick MFC requested by: jkh
Approved by:	jkh
2001-03-14 03:22:59 +00:00
Poul-Henning Kamp c933341bea MFC: Update to latest.
Approved by:	jkh
2001-03-13 22:05:36 +00:00
Luigi Rizzo abbb1aef87 Fix breakage in bridging introduced in 1.70.2.13:
when doing bridging, we want to receive packets from all
interfaces in the same cluster, so the MAC address check
does not apply (it is already done in the bridging functions).

May I ask, for the future, a bit more thinking to the side effects
of your changes before committing them ???

Approved-by: jkh
2001-03-13 22:00:32 +00:00
Luigi Rizzo da4e8cfc1a Add -s labels to vnconfig. Remove some unused error messages.
Reported-By: Bruce Montague and others
Approved-By: jkh
2001-03-13 21:45:26 +00:00
Garance A Drosehn 097519c068 (MFC) Fix "lprm -" (remove all jobs) processing for remote printer queues
in time for 4.3-release  (1.15)

PR:		bin/25544
Approved by:	Jordan Hubbard <[email protected]>
2001-03-13 20:36:33 +00:00
Ruslan Ermilov 135b2ef2a2 MFC: .St -p1003.1g -> .St -p1003.1g-2000. 2001-03-13 18:00:09 +00:00
Ruslan Ermilov aac7feb0c6 Synch the mdoc(7) code with CURRENT. This includes recent
bugfixes and updates to the standards (St macro) database.

Approved by:	jkh
2001-03-13 17:54:18 +00:00
Jonathan Lemon 192c6a3018 MFC: r1.56; Unbreak LINT
Approved by: jkh
PR: 25651, 25758
2001-03-13 14:47:26 +00:00
Jordan K. Hubbard 18f79786e9 minor typo correction.
Submitted by:	"Christopher M. Giordano" <[email protected]>
2001-03-13 07:41:02 +00:00
Jordan K. Hubbard 094c4e9397 MFC: document `F' 2001-03-13 06:52:19 +00:00
Jordan K. Hubbard 686e3c8dd2 MFC: small cosmetic tweaks to rc.conf 2001-03-13 06:43:19 +00:00
Assar Westerlund 61f722b186 MFC: 1.11: update default from adhoc to bss
Approved by:	jkh
2001-03-13 03:45:18 +00:00
Assar Westerlund d2b5f14ad8 MFC: 1.8: change default from adhoc to bss
Approved by:	jkh
2001-03-13 03:43:52 +00:00
Greg Lehey e8a86854a0 Catch up with -CURRENT. I've left it very late to MFC a number of
problems which are fixed in -CURRENT.  Now's still not a good time to
do it, so I'd be grateful if people would hammer on this stuff.

Approved by:   jkh
Pointy hat to: grog
2001-03-13 03:04:06 +00:00
Dag-Erling Smørgrav 4119b9c836 MFC: Add unaligned_print option (alpha only).
All the other bits (rc.alpha, rc.conf.5) have already been MFCed.

PR:		21649
Approved by:	jkh
2001-03-13 01:29:29 +00:00
Scott Long 90768379ee Add the aac module so that it is built with all the other modules.
Noticed by:	gibbs
Approved by:	jkh
2001-03-13 01:26:22 +00:00
Jordan K. Hubbard ede384634c MFC: add tunefs (gack, should have done this yesterday) 2001-03-13 00:25:00 +00:00
Jordan K. Hubbard 8363123c05 MFC: fix fvwm desktop.
Add back some code for moving kernels which I rather mistakenly MFC'd
out of existence in 1.268.2.20.
2001-03-12 22:50:04 +00:00
Poul-Henning Kamp aa5d0a2077 MFC: rev 1.82: Correctly cleanup in case of failure to bind a pcb.
Approved by:	jkh
2001-03-12 22:10:51 +00:00
Jordan K. Hubbard cad707bb11 MFC: very simple change to give the holographic shell a disable knob. 2001-03-12 21:19:06 +00:00
Justin T. Gibbs f179f9ac98 Correct the check of the seeprom signature that tells us that the
termination level setting can be found in the seeprom.  The old code
could get some false positives causing the termination to be set incorrectly.
This was already in -current, but was missed in the last merge.
2001-03-12 18:46:33 +00:00
Nik Clayton d638cf764c MFC: urio.4
Approved by:	n_hibma (it's USB stuff), jkh
2001-03-12 18:01:44 +00:00
Justin T. Gibbs 6ce16e221f MFC: Update to top of tree.
Approved by: jkh
2001-03-12 14:57:44 +00:00
MIHIRA Sanpei Yoshiro 68e95ee4d4 MFC: Add GVC1601(rev.1.328) and IOD0081(rev.1.327)
Approved by:	jkh
2001-03-12 13:47:29 +00:00
Maxim Sobolev 168b84e479 MFC: put in MODULE_VERSION(), so unicode kld modules work as expected.
MFC approved by:	jkh
2001-03-12 13:44:55 +00:00
Thomas Gellekum 3180db55c4 Call local startup scripts with the `stop' option on shutdown.
Approved by:	jkh
2001-03-12 13:29:24 +00:00
Jordan K. Hubbard 23fcc3ff7a MFC: OK, reviewing all of these changes actually shows them to be
more benign than first thought and they certainly provide a number
      of important bug fixes.  The modules code will probably remain
      dormant in 4.3 but it helps code maintainance to keep it synced up
      anyway.  The softupdates support code also turned out to be so
      trivial that it's a low-risk feature addition.
2001-03-12 12:10:35 +00:00
Assar Westerlund a587a28748 MFC: change default to bss (infrastructure) from adhoc
Approved by:	jkh
2001-03-12 11:05:52 +00:00
Assar Westerlund 1a03967786 MFC: change the default to bss (infrastructure) from adhoc 2001-03-12 11:03:45 +00:00
Ruslan Ermilov a96cd6a3a6 MFC: lastlogin(8) utility.
Approved by:	jkh
2001-03-12 11:00:15 +00:00
Ruslan Ermilov ba68cc5d70 MFC: kill the undead.
Approved by:	jkh
2001-03-12 10:52:16 +00:00
Assar Westerlund 193200a579 MFC 1.6: enable auto-negotiation of encrypt and decrypt
Approved by:	jkh
2001-03-12 10:49:23 +00:00
Assar Westerlund 3edaae409b MFC: 1.17: reset uid back to the user before doing kerberised change
password.  root permission is not needed and the kerberos library is
paranoid about access control to the ticket file

PR:		bin/20779

Approved by:	jkh
2001-03-12 10:48:08 +00:00
Assar Westerlund c77e13a96e MFC: 1.2: initialize pointers to NULL and sized to 0 to avoid free:ing invalid memory.
PR:		bin/20779

Approved by:	jkh
2001-03-12 10:47:11 +00:00
Jordan K. Hubbard 2dd681d070 MFC: fix security profile categories 2001-03-11 23:47:59 +00:00
Ian Dowse 6809f3da65 MFC: 1.122->1.223 Set up `ia' properly for dummynet packets to avoid
dereferencing an unitialised pointer.

This change includes some over-defensive checks not present in the
patch applied to -current; we set `ia' to NULL at the start of
ip_output(), check that the dummynet route is non-NULL, and that
`ia' is non-NULL before it is dereferenced. This are just safety
measures which can be removed when the per-ifaddr stats code has
had a bit more testing time in -current.

Approved by:	jkh
2001-03-11 22:18:00 +00:00
Robert Watson 477ab8fc4f MFC 1.23, modify build instructions to recommend "make world" rather
than more fragile part-wise instructions.

Submitted by:	FUJISHIMA Satsuki <[email protected]>
Reviewed by:	phk
Approved by:	jkh
Also pointed out by:	Phil Kernick <[email protected]>
2001-03-11 20:39:02 +00:00
Bosko Milekic b44a742a07 MFC: mbuf leaks fixes
Approved by: jkh
2001-03-11 06:35:49 +00:00
Jordan K. Hubbard 4bf3cea5c7 Use correct snd_foo_load options rather than snd_foo.
PR:		25659
Submitted by:	Garrett Rooney <[email protected]>
2001-03-11 02:32:02 +00:00
Matt Jacob 7accaab001 MFC: Fix a botch where we wrote the year register with > 2 digits.
Approved by:	[email protected]
2001-03-10 19:21:41 +00:00
Daniel Eischen d66f8b3cf0 MFC: Correct a race condition where it was possible for a signaled
thread to become stranded and not placed in the run queue.

Approved by:	jkh
2001-03-10 19:13:05 +00:00
Kris Kennaway e6ba456475 MFC: Add libdata
Approved by: jkh
2001-03-10 03:45:22 +00:00
Gregory Neil Shapiro 4de9ec1e85 MFC: Use the correct path to the SASL .h files as installed by the SASL port.
Revision  Changes    Path
     1.151     +2 -2      src/etc/defaults/make.conf

Approved by:	jkh
2001-03-10 03:34:21 +00:00
Ian Dowse 17d51dc3de MFC: 1.195 Fix panic that occurs when mmap(2) is used with MAP_INHERIT.
Approved by:	jkh
2001-03-09 22:18:13 +00:00
Jonathan Lemon 9ef52dc580 MFC: let protocol layer decide how to handle accept() on a disconnected socket. 2001-03-09 16:41:20 +00:00
Jonathan Lemon 45e6b9c8bb MFC: r1.161; fix for byte swapped RST sequence number. 2001-03-09 16:37:36 +00:00
Ruslan Ermilov dcfbc52795 MFC: (rev 1.5) fixed typo: setsid() -> getsid().
Approved by:	jkh
2001-03-09 15:14:15 +00:00
David E. O'Brien a53e70fec2 Use -m 1' over -m 0' as in -current as it may be safer.
Covered under previously approved MFC by jkh
2001-03-09 12:10:34 +00:00
Yoshihiro Takahashi 2f1d3f1698 Merged from sys/i386/conf/GENERIC revision 1.246.2.22 and 1.246.2.23.
Approved by:	jkh
2001-03-09 10:04:21 +00:00
David E. O'Brien f4537f8902 MFC: rev 1.30: newfs with `-m 1'
Approved by:	jkh
2001-03-09 01:54:27 +00:00
Thomas Moestl db428241d9 MFC of rev 1.17: fix two bugs that could make insertion and rebuilding
of null-suffix rules fail after the suffix list had been cleared.

Approved by:	jkh, rwatson
2001-03-09 01:13:24 +00:00
Ian Dowse 3625647c09 MFC: Fix mbuf free-list corruption problem in icmp_error(). For
now, tone down the new sanity check in icmp_error from a panic to
a non-fatal printf; this protects us somewhat from the tiny risk
that other such problems have been going undetected until now.

Approved by:	jkh
2001-03-08 23:14:54 +00:00
Archie Cobbs 9ea986746a MFC: fix potential crash caused by packets with bogus ACK's.
Approved by:	jkh
2001-03-08 22:34:49 +00:00
David E. Cross 1576464209 Submitted by: Ian Dowse <[email protected]>, David Cross <[email protected]>
Reviewed by:	David Cross <[email protected]>, jkh <[email protected]>
Approved by:	jkh <[email protected]>
Obtained from:	Ian Dowse <[email protected]>, David Cross <[email protected]>
We have been running this patch on a production NIS server for 2.5 weeks now.
Normally we would have ypserv die at least once a week, and often many times
a day.

This patch treats and error from select as zeroing out the FD_SET to indicate
that no fds are ready for reading.  This is safe because the rpc code
always re-inits the FDSET before calling select.
2001-03-08 14:04:43 +00:00
Jordan K. Hubbard 898d43c772 MFC: security profile message correction, documentation 2001-03-08 10:43:50 +00:00
Wes Peters 4e1a031502 Add short announcement of pkg_sign and pkg_check to RELNOTES for 4.3
Approved by:	jkh
2001-03-08 08:37:01 +00:00
Kris Kennaway 9b9cda0970 MFC: Add a WANT_OPENSSL_MANPAGES knob to enable building the OpenSSL
documentation.  These aren't built by default because they spam a number
of system manpages, but some creative games with MANDIR can install them
to a directory of your choosing.

Approved by:	jkh
2001-03-08 08:09:30 +00:00
Kris Kennaway 82644126f1 Belatedly bump the SHLIB_MAJOR of libcrypto and libssl. This should have
been done soon after the OpenSSL 0.9.6 import when I first found out it
broke backwards compatibility, but better late than never -- at least it
won't trip up people who upgrade from 4.2-RELEASE to 4.3-RELEASE.

Approved by:	jkh
2001-03-08 07:56:37 +00:00
Gregory Neil Shapiro 0ee4472562 Undo Revision 1.97.2.40: make.conf(5) has been added to RELENG_4
(I did say "yet" didn't I? :)

Approved by:	jkh
2001-03-08 05:49:45 +00:00
David E. O'Brien 3dcb9b1b33 Update the BASE.
Approved by:	jkh
2001-03-08 05:46:26 +00:00
David E. O'Brien c6394c1063 MFC: let make.conf.5 rejoice in the 4.3 fun.
Approved by:	jkh
2001-03-08 05:44:45 +00:00
David E. O'Brien d09eee1f1b MFC: add the Alpha knobs.
Approved by:	jkh
2001-03-08 05:44:15 +00:00
Gregory Neil Shapiro cda2fb8b56 Remove comment regarding updating make.conf(5) as that man page doesn't
exist in RELENG_4 (yet).

Approved by:	jkh
2001-03-08 05:11:36 +00:00
Julian Elischer c118ebb0f4 MFC some -current compatibility macros.
Approved by: jkh

These macros are not used by -stable code, but including
them allows new nodes in -current to be more easily
backported by users of 4.3 should they need them.
2001-03-08 05:08:25 +00:00
Jordan K. Hubbard 5537d35ee7 MFC: proper pkg_check references. 2001-03-08 02:27:42 +00:00
Scott Long 992504bbf4 MFC: Reduce si_iosize_max to 64K.
Approved by:	jkh
2001-03-07 21:58:59 +00:00
Nick Sayer b1701b4428 MFC: v1.12.
Don't needlessly indirect the apm soft state.

Approved by:	jkh
2001-03-07 21:47:24 +00:00
Josef Karthauser ce652bcfa5 MFC: revision 1.38
When displaying interface statistics with -i show a '-' for any
values that aren't updated for a particular network-layer address.

Approved by:	jkh
2001-03-07 21:08:43 +00:00
Bill Paul b048b0bc00 MFC: remember to program the RX filter in vr_init() so setting the
ethernet address with ifconfig(8) actually works.

Approved by:	jkh
2001-03-07 21:00:15 +00:00
Søren Schmidt 1718a6cd94 MFC:
Update with latest chipset support and options.

approved by: jkh
2001-03-07 20:21:28 +00:00
Jordan K. Hubbard 3b453271bc MFC: move dev_mkdb earlier to avoid warnings. 2001-03-07 20:13:56 +00:00
Jordan K. Hubbard 03516eaf6d Try for a less scary and more politically correct disclaimer about
CPUTYPE and CFLAGS variables.
2001-03-07 11:05:17 +00:00
Daniel C. Sobral 2b180efefe List a few additional modules.
Submitted by:	David Yeske <[email protected]>
Approved by:	jkh
2001-03-07 10:09:17 +00:00
Ruslan Ermilov fadb5da80e MFC: In soshutdown(), use SHUT_* constants instead of FREAD and FWRITE.
Also, return EINVAL if `how' is invalid, as required by POSIX.

Approved by:	jkh
2001-03-07 08:43:45 +00:00
Jordan K. Hubbard 732aa3b965 Put a warning into this file concerning the setting of CPUTYPE.
Tripped over by: "Hartmann, O." <[email protected]>
2001-03-07 08:39:29 +00:00
Ruslan Ermilov 0c8c7c7466 MFC: (rev 1.44) fix a formatting bug. 2001-03-07 08:11:06 +00:00
Warner Losh 8f6ad6bc23 Add awi to GENERIC and LINT. It was mistakenly not done when awi was MFC'd.
Move xe a little in GENERIC.

Approved by: jkh (he hopes that this won't overflow the floppy)
2001-03-07 08:08:42 +00:00
Jordan K. Hubbard c5d7f090df MFC: Add NO_X. Remove obsolete USA_RESIDENT stuff. 2001-03-07 07:45:46 +00:00
Gregory Sutter eab333c9fe Spelling fixes.
Submitted by:	Andy Farkas <[email protected]> (partial)
Reviewed by:	gshapiro, jake, jhb, rwatson
Approved by:	jkh
2001-03-07 06:43:55 +00:00
Alan Cox b50153c890 MFC:
sys/aio.h: Remove outdated comments that describe aio_cancel() as
  unimplemented.  Remove a duplicate function prototype for aio_error().
  [revisions 1.21, 1.23, and 1.24]

 kern/vfs_aio.c: Add a missing splx() to aio_fphysio().
  [revision 1.94]

Approved by:	jkh
2001-03-07 06:37:25 +00:00
Jordan K. Hubbard 0a2b6d6a3b MFC: fix gnome+sawfish desktop option. 2001-03-06 21:46:30 +00:00
Duncan Barclay 1bcd11f56b MFC: activate raycontrol
Submitted by:	gshapiro
2001-03-06 21:19:11 +00:00
Duncan Barclay bfbe915716 MFC Control program for ray devices (overlooked when driver was MFC'd).
Approved by:	jkh
2001-03-06 20:14:50 +00:00
Ruslan Ermilov d69dcfa19e MFC: recent mdoc(7) fixes. 2001-03-06 19:08:23 +00:00
Ruslan Ermilov ac622e6f7b MFC: recent mdoc(7) fixes. 2001-03-06 16:54:05 +00:00
Ruslan Ermilov 0d8324cd36 MFC: recent mdoc(7) fixes. 2001-03-06 16:46:24 +00:00
Ruslan Ermilov 1367cb73f5 MFC: recent mdoc(7) fixes. 2001-03-06 14:21:49 +00:00
Ruslan Ermilov 260fa1380b MFC: recent mdoc(7) fixes. 2001-03-06 12:53:06 +00:00
Ruslan Ermilov 6ff9b9432a MFC: recent mdoc(7) fixes. 2001-03-06 12:09:31 +00:00
Ruslan Ermilov a38ab12363 MFC: recent mdoc(7) fixes. 2001-03-06 12:00:18 +00:00
Peter Wemm a84fc1714a MFC: rev 1.113 tcpip.c, 1.202 sysinstall.h. ($network_interfaces handling)
Approved by:	jkh
2001-03-06 09:58:08 +00:00
John Baldwin 5257014d21 MFC: Support for VERASE2, OCRNL, ONOCR, and ONLRET.
Forgotten by:	jkh
2001-03-06 06:50:48 +00:00
John Baldwin c271fd717b MFC: Various mdoc fixes and document OCRNL, ONOCR, and ONLRET.
Forgotten by:	jkh
2001-03-06 06:48:39 +00:00
John Baldwin 8aa65a95fe MFC: Define OCRNL, ONOCR, ONLRET, and VERASE2.
Forgotten by:	jkh
2001-03-06 06:31:44 +00:00
Jordan K. Hubbard 4ffe00b6f8 MFC: support for ERASE2 2001-03-06 03:37:08 +00:00
Jordan K. Hubbard 5daa3d3853 MFC: support for erase2 char and miscellaneous cleanup. 2001-03-06 03:36:19 +00:00
Jordan K. Hubbard 14b76c5005 -stable specific work-around to unbreak support for this device.
Submitted by:	cp
2001-03-06 03:35:47 +00:00
Jordan K. Hubbard 063c14018a MFC: gratituous style diff 2001-03-06 03:17:38 +00:00
David E. O'Brien e0143ec3ca MFC: support daily sendmail -q run 2001-03-06 02:46:16 +00:00
David E. O'Brien e5989b7318 MFC: 1.1: Suport daily sendmail -q run 2001-03-06 02:45:41 +00:00
David E. O'Brien 9d43313a6a MFC: 1.5: Add missing redirection to /dev/null to prevent disturbing display
Approved by:	jkh
2001-03-06 02:42:05 +00:00
David E. O'Brien daf150a47f Style sync with -current
Approved by:	jkh
2001-03-06 02:40:29 +00:00
Bill Fumerola 052494aafe in the spirit r1.160, fix code dealing with fragmented packets and tcpoptions
thanks to matt ayres <[email protected]> for unwittingly making me remember this.
2001-03-06 02:39:09 +00:00
David E. O'Brien 06723fbdee MFC: 1.21: Added "minimum3": spare room for multilingual installer and
driver floppy.  The size is 3 x 1.44MB.
2001-03-06 02:39:02 +00:00
David E. O'Brien fa9ee5d27c MFC: 1.8: Add a unaligned_print option & document osf1_enable
Approved by:	jkh
2001-03-06 02:37:27 +00:00
David E. O'Brien 018ca69c9e MFC: 1.10: support running sendmail -q daily
Approved by:	jkh
2001-03-06 02:36:04 +00:00
David E. O'Brien 0ce876feb8 MFC: 1.130: Add commented-out entries for FTP_PROXY and HTTP_PROXY 2001-03-06 02:29:50 +00:00
David E. O'Brien ed94826917 MFC: 1.47: Show denied secondary bind transfer attempts 2001-03-06 02:23:24 +00:00
David E. O'Brien fbdc071537 MFC: 1.11: Add com1-4 as finger friendly shortcuts for /dev/cuaa0-3. 2001-03-06 02:22:39 +00:00
David E. O'Brien f88e0de177 I really did a number on adding the copyrights... 2001-03-06 02:22:00 +00:00
David E. O'Brien 10ee1514d8 Grrr. patch really did a number on me with these. 2001-03-06 02:15:04 +00:00
David E. O'Brien 778e7342b4 MFC: 1.230: Only whack pseudo-terminals into shape if they exist. They might
not yet exist in the DEVFS case.
     1.244: Apply a more consistent style to the echo statements in /etc/
2001-03-06 02:13:30 +00:00
Gregory Neil Shapiro f309c9c8a0 Remove trailing whitespace 2001-03-06 02:12:59 +00:00
Gregory Neil Shapiro 60f9e2f53f MFC: Use a different example to avoid confusion
Revision  Changes    Path
     1.150     +2 -2      src/etc/defaults/make.conf
2001-03-06 02:06:38 +00:00
David E. O'Brien f14c722075 Blah! got double copyrights on this one 2001-03-06 02:06:05 +00:00
David E. O'Brien fe5c350aff MFC: 1.11: update documentation, expamples, and be more protective. 2001-03-06 02:04:52 +00:00
Gregory Neil Shapiro f5be86e410 MFC: Do not change the directory permissions for the source area, just the
install area.

     Revision  Changes    Path
     1.3       +2 -2      src/share/sendmail/Makefile
2001-03-06 02:03:55 +00:00
David E. O'Brien 457ad99c7e MFC: 1.57: run pccard for laptop users 2001-03-06 02:02:08 +00:00
Dag-Erling Smørgrav 0fc7b4bf03 MFC: restore -c option. 2001-03-06 01:59:31 +00:00
Gregory Neil Shapiro b685495eb6 MFC: RELENG_4 now has sendmail 8.11.3
Revision  Changes    Path
     1.142     +2 -2      src/release/texts/alpha/RELNOTES.TXT
     1.215     +2 -2      src/release/texts/i386/RELNOTES.TXT
2001-03-06 01:58:48 +00:00
David E. O'Brien 9404eed8a4 MFC: add copyright notices 2001-03-06 01:58:45 +00:00
David E. O'Brien 882cd71ced fix style nit 2001-03-06 01:58:02 +00:00
Gregory Neil Shapiro 3927e02382 MFC: Move installation of sendmail helpfile into etc/sendmail/Makefile. It is
a user configurable file and it would benefit from mergemaster.

     Revision  Changes    Path
     1.9       +7 -2      src/etc/sendmail/Makefile
     1.31      +1 -5      src/usr.sbin/sendmail/Makefile
2001-03-06 01:56:47 +00:00
Gregory Neil Shapiro 84dec389a2 MFC: Fix dependencies and cleanup spacing in the file
Revision  Changes    Path
     1.8       +21 -27    src/etc/sendmail/Makefile
2001-03-06 01:54:56 +00:00
Gregory Neil Shapiro d96d3cb5a8 MFC: Add comments regarding enabling IPv6
Revision  Changes    Path
     1.18      +5 -1      src/etc/sendmail/freebsd.mc
2001-03-06 01:52:17 +00:00
Gregory Neil Shapiro 57e39d5c9e MFC: Fix dependencies and use a better variable name
Revision  Changes    Path
     1.12      +5 -7      src/etc/mail/Makefile
2001-03-06 01:49:56 +00:00
Gregory Neil Shapiro 3e0fa3bdf7 MFC: Finish MFC of 1.243 (started by obrien).
Don't build/install sendmail related items if NO_SENDMAIL is set.
2001-03-06 01:47:29 +00:00
Gregory Neil Shapiro 23ebb9c859 MFC: ip6fw doesn't support -q if reading from a file so don't use ${fw6cmd}
which may have a -q if ${ipv6_firewall_quiet} is set.

     Revision  Changes    Path
     1.3       +3 -2      src/etc/rc.firewall6
2001-03-06 01:44:59 +00:00
David E. O'Brien bfca19c5bf MFC: 1.243: Don't build/install sendmail related items if NO_SENDMAIL is set. 2001-03-06 01:41:58 +00:00
David E. O'Brien c9abd89f36 MFC: more unit2major fixes 2001-03-06 01:40:08 +00:00
Jordan K. Hubbard defd3518ad MFC: fix problem with checksums in crypto distribution 2001-03-06 01:39:44 +00:00
Gregory Neil Shapiro 10ba3bce71 MFC: Import sendmail 8.11.3 2001-03-06 01:38:57 +00:00
David E. O'Brien 3617283fa4 MFC: 1.268: add unit2minor() and use it where appropriate so that we handle
units > 255 properly.
2001-03-06 01:35:59 +00:00
David E. O'Brien 2d486ab1bf MFC: style cleanups 2001-03-06 01:04:04 +00:00
David E. O'Brien d2523383f5 MFC: 1.22: Initialize rn_mklist in rn_newpair(). The undocumented assumption
seems to be that the nodes are bzero'd beforehand, but the submitter
found that this was not always the case, and in any event defensive
programming here costs epsilon squared.

PR:		22244
Submitted by:	Dave Gillam <[email protected]>
2001-03-06 00:56:50 +00:00
David E. O'Brien 5bd3e6344c Back out the 1.22 MFC, the change touches more areas than I thought. 2001-03-06 00:55:07 +00:00
David E. O'Brien f95310f842 MFC: 1.22: Do some cleanups of the HARP atm codes interface into the system 2001-03-06 00:54:04 +00:00
David E. O'Brien 78ce939610 MFC: remove <sys/kernel.h> 2001-03-06 00:51:33 +00:00
David E. O'Brien 2293751e34 MFC: 1.21-22: Use <sys/queue.h> macro api rather than fondle its implementation
1.20: Exterminate the use of PSEUDO_SET() with extreme prejudice.
2001-03-06 00:50:46 +00:00
John Baldwin ea7da1f875 MFC: Workaround broken colors on the alpha.
Requested by:		gallatin
2001-03-06 00:47:18 +00:00
David E. O'Brien 26a5c2eff4 MFC:
1.87-88: Another round of the <sys/queue.h> FOREACH transmogriffer.
1.80: Have tuninit() return an error if an interface address is NULL.
      SIOCGIFSTATUS was returning at splimp(); fix this.  (to be MFC'd)
2001-03-06 00:42:44 +00:00
David E. O'Brien a8a498bf9b MFC: 1.27: Exterminate the use of PSEUDO_SET() with extreme prejudice. 2001-03-06 00:32:09 +00:00
David E. O'Brien 0eeee12f0f MFC:
1.14-15: another round of the <sys/queue.h> FOREACH transmogriffer.
1.12: remove "register" specifiers to supress compiler warning.
1.11: remove ~60 unneeded #include <sys/malloc.h>
2001-03-06 00:29:26 +00:00
David E. O'Brien c4e0f12178 MFC: 1.12-14:
Santize a size variable passed to kernel malloc.
Since we know there's always an upper bound we force that bound.
Protect against negative numbers as well
2001-03-06 00:23:21 +00:00
David E. O'Brien 0ec67b4932 MFC: 1.11: another round of the <sys/queue.h> FOREACH transmogriffer
(sorry, should have been with previous commit)
2001-03-06 00:19:40 +00:00
David E. O'Brien eb115c2fc8 MFC: 1.10: use <sys/queue.h> macro api rather than fondle its implementation 2001-03-06 00:17:35 +00:00
David E. O'Brien 4dc0ca9e56 Enter 4.3FreeBSD 2001-03-06 00:07:55 +00:00
Nick Sayer 76e1110b0b MFC v1.39 - use stateful filtering instead of
pass udp from any 53 to ___
2001-03-05 23:26:02 +00:00
Don Lewis 23d7f14119 MFC: 1.158 - 1.161
Block packets with a 127/8 destination arriving via an exernal interface.

Disable IP address vs. arrival interface consistency checking for unicast
packets when IP forwarding is enabled and for packets forwarded by 'ipfw fwd'.

Always perform broadcast IP address vs. arrival interface checking.  This
was the historical behavior, but has been broken for quite a while.

Attempt to optimize the order of the tests.

Also, disable unicast IP address vs. arrival interface checking by default
for POLA reasons.

Approved by:	jkh
2001-03-05 23:18:47 +00:00
David E. O'Brien c533cd080a MFC: mpool.c(1.6-7) & mpool.h(1.8): use TAILQ instead of CIRCLEQ 2001-03-05 23:05:08 +00:00
Mark Murray 1f354f72d5 MFC: insert much-needed app. 2001-03-05 22:48:36 +00:00
John Baldwin ec2b94fe95 MFC: Cosmetic tweaks to the pccard startup script to be more consistent
with other rc scripts.
2001-03-05 22:27:54 +00:00
David E. O'Brien 15ca46c2ff Crud, fix an editoro 2001-03-05 21:28:25 +00:00
Andrew Gallatin 15f9f7b38e MFC: handle opDecs
This is a new feature, so an immediate MFC isn't really all that bad...
2001-03-05 21:24:16 +00:00
David E. O'Brien 4366ba25f0 MFC: 1.41: deny 127.0.0.0/8 going out 2001-03-05 21:11:51 +00:00
Doug Barton c6f8994bdd MFC the return to grep instead of ident for CVS $Id tags, and the
requested features of source'ing /etc/mergemaster.rc and prompting
the user to run recommended commands like 'newaliases' as needed.
2001-03-05 20:33:28 +00:00
Mike Smith 3d68f3f6aa MFC: queueing changes, concurrency improvements, stability fixes. 2001-03-05 20:17:24 +00:00
Ruslan Ermilov 455595dae7 MFC: recent mdoc(7) fixes. 2001-03-05 19:33:58 +00:00
Assar Westerlund a83dd1fb11 MFC 1.149: remove warning abougt heimdal 2001-03-05 18:57:33 +00:00
Ruslan Ermilov a84e15bbe1 MFC: recent mdoc(7) fixes. 2001-03-05 18:22:01 +00:00
Ruslan Ermilov a3c5bdcc78 MFC: recent mdoc(7) fixes. 2001-03-05 18:10:24 +00:00
Ruslan Ermilov 35fbb7b196 MFC: recent mdoc(7) fixes. 2001-03-05 18:01:05 +00:00
Cameron Grant 267bc0ddc7 MFC: conditionalize powerstate meddling on __FreeBSD_version 2001-03-05 17:47:30 +00:00
Andrew Gallatin 99549c7490 back out last revision, it was comitted accidentally 2001-03-05 16:45:14 +00:00
Andrew Gallatin 868cbccfaa MFC: 1.51 - fix unaligned stores of zeros 2001-03-05 16:38:17 +00:00
Cameron Grant fbae6041ec MFC: enable per-device sysctls and add (currently unused) no-op snd_mtx*
functions for compatibility with future newpcm drivers
2001-03-05 16:25:22 +00:00
Cameron Grant 6fc1aaf3fa MFC: set speaker volume 2001-03-05 16:21:23 +00:00
Cameron Grant 19cb61b70d MFC: add alaw<->ulaw feeder 2001-03-05 15:55:27 +00:00
Cameron Grant d59e3ca27c MFC: fix for attempting to set impossible rate/format combinations 2001-03-05 15:52:35 +00:00
Stephen McKay 1fc5d5d589 MFC (revs 1.47 to 1.49): Return quickly from dc_intr if there is nothing
to do, plus a spelling fix.  Also add a redundant "return" I forgot to
bring over with the previous MFC.
2001-03-05 13:50:00 +00:00
Jeroen Ruigrok van der Werven b9f4090858 MFC: Add some keybindings for tcsh. 2001-03-05 13:36:53 +00:00
Jeroen Ruigrok van der Werven f7e16927ba MFC: Fix comment about FreeBSD/BIND and sandboxes. 2001-03-05 13:34:52 +00:00
Jeroen Ruigrok van der Werven 43a08ff8e3 MFC: Add decent PATH. 2001-03-05 13:33:00 +00:00
Jeroen Ruigrok van der Werven e36e114da4 MFC: Fix typo: loppgin->login. 2001-03-05 13:26:46 +00:00
David E. O'Brien 250ca53067 MFC:
Convert all users of fldoff() to offsetof().  fldoff() is bad
because it only takes a struct tag which makes it impossible to
use unions, typedefs etc.

Define __offsetof() in <machine/ansi.h>
Define offsetof() in terms of __offsetof() in <stddef.h> and <sys/types.h>
2001-03-05 13:09:13 +00:00
Ruslan Ermilov dc6a64b2e8 MFC: fix setlocale(3) so that LC_ALL environment variable (if set
and not NULL) is preferred over other LC_* environment variables,
as required by POSIX.
2001-03-05 13:08:48 +00:00
David E. O'Brien cab169372f MFC: 1.129: Be extra certain that "#include <osreldate.h>" must not be used
in kernel code.
2001-03-05 12:54:39 +00:00
David E. O'Brien 26b26d84bb MFC: 1.4: Fix typo: seperate -> separate. 2001-03-05 12:47:48 +00:00
Jeroen Ruigrok van der Werven d79e4f87e8 MFC: Add displaying of /etc/issue. 2001-03-05 12:47:39 +00:00
David E. O'Brien 6b1c3780e2 MFC: 1.6: Fix typo: compatability -> compatibility. 2001-03-05 12:46:40 +00:00
David E. O'Brien a2bf8af6ef Fix style nit I introduced. 2001-03-05 12:45:48 +00:00
Ruslan Ermilov 908795eb5e MFC: LC_TIME specifies the locale, not the format string for strftime(3). 2001-03-05 12:30:41 +00:00
Ruslan Ermilov 2965b1ae63 MFC: Install manpages into machine-specific (i386) subdir. 2001-03-05 12:23:03 +00:00
Ruslan Ermilov ba9ca6d884 MFC: Remove (now unnecessary) MLINKS. 2001-03-05 12:19:29 +00:00
Kris Kennaway dd51a35919 MFC: 1.2 through 1.6: sync with -current 2001-03-05 12:18:27 +00:00
Kris Kennaway de409c8025 MFC: 1.5: correct typo 2001-03-05 12:17:23 +00:00
Kris Kennaway 41211762a6 Minimize diffs with current 2001-03-05 12:17:00 +00:00
Kris Kennaway 49f4801b29 MFC: 1.8: fix style bug 2001-03-05 12:12:24 +00:00
Kris Kennaway 165645f18d MFC: 1.2: fix typo 2001-03-05 12:11:40 +00:00
Kris Kennaway 4c857da656 MFC: 1.8: fix typo 2001-03-05 12:11:14 +00:00
Ruslan Ermilov 85ecc0a53e MFC: (rev 1.216) Add missing .../cat?/alpha directories. 2001-03-05 12:08:49 +00:00
Ruslan Ermilov 96b45a5316 MFC: Create directory infrastructure required to format, display
and store preformatted /usr/share/man manual pages in 8-bit
     iso-8859-1 charset for all *_*.ISO_8859-1 (Latin-1) locales.
2001-03-05 12:06:11 +00:00
Ruslan Ermilov ace497be94 Reduce diffs to -current.
Reviewed by:	mtree -cdin -k uname,gname,mode
2001-03-05 11:59:02 +00:00
Kris Kennaway b7bc521bf8 MFC: 1.2: correct a typo 2001-03-05 11:57:26 +00:00
Kris Kennaway 7d9d6d05e8 MFC: 1.9, 1.10: clean up warnings 2001-03-05 11:54:10 +00:00
Kris Kennaway 3f158a9864 MFC: Lots of new fortunes! 2001-03-05 11:52:37 +00:00
David E. O'Brien 112c5746d7 MFC: style sync with -current 2001-03-05 11:45:51 +00:00
Kris Kennaway 5fb02371e7 MFC: Clean up warnings 2001-03-05 11:45:36 +00:00
David E. O'Brien 970ce70577 MFC: 1.15: document EINTR 2001-03-05 11:44:37 +00:00
David E. O'Brien 5ee963226b MFC: 1.8: clarify comments referring to strlcat() usage 2001-03-05 11:39:51 +00:00
David E. O'Brien e4d7af4b16 MFC: 1.3
- Reverse the order of two loop invariant to ensure strlcat() does not
  attempt to read memory when siz is 0
- Clarify comments referring to strlcat() usage
2001-03-05 11:38:46 +00:00
Kris Kennaway fe1dd0d9d1 MFC: r1.7: string paranoia 2001-03-05 11:37:25 +00:00
David E. O'Brien 9d3a526da2 MFC: style sync to current 2001-03-05 11:37:21 +00:00
Kris Kennaway e3c1eab321 MFC: r1.6: fix typo 2001-03-05 11:36:01 +00:00
Kris Kennaway 0937b6ebaf MFC: 1.14, 1.15: strcpy() -> strlcpy(), fix typo 2001-03-05 11:35:42 +00:00
Kris Kennaway 9d9e782097 Add $FreeBSD$ to remove diff 2001-03-05 11:34:44 +00:00
Kris Kennaway 1e7a5b47fa MFC: r1.8: fix typo 2001-03-05 11:34:08 +00:00
David E. O'Brien b494e831a9 MFC: style sync with -current 2001-03-05 11:33:57 +00:00
David E. O'Brien 3d3be09f56 MFC: 1.57: remove sizeof(void *) == sizeof(int) assumptions 2001-03-05 11:31:30 +00:00
David E. O'Brien 23bf17ef09 MFC: style sync with -current 2001-03-05 11:27:49 +00:00
Jeroen Ruigrok van der Werven 1cb60e524c MFC: Fix mdoc usage. 2001-03-05 11:27:28 +00:00
Kris Kennaway 35e57cd600 MFC: r1.10: fix typo 2001-03-05 11:27:12 +00:00
Kris Kennaway 7be7053b93 MFC: r1.27: fix typo 2001-03-05 11:26:45 +00:00
Kris Kennaway 2a2d3fa7e3 MFC: r1.29: constify sccsid, bcopy -> memmove 2001-03-05 11:26:10 +00:00
Kris Kennaway 8d654c7c52 MFC: 1.10, 1.11, 1.12: constify sccsid, bcopy -> memmove, correct typo 2001-03-05 11:25:26 +00:00
Kris Kennaway 93c3f5616b MFC: r1.9: bcopy -> memmove 2001-03-05 11:22:57 +00:00
Kris Kennaway d77511d13b MFC: r1.35: fix typo 2001-03-05 11:20:59 +00:00
Kris Kennaway 895fb5543b MFC: r1.22 Update manpage 2001-03-05 11:20:11 +00:00
Kris Kennaway 06fdeaf755 MFC: r1.20: various cleanups 2001-03-05 11:19:10 +00:00
cvs2svn 10c98e97cb This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-03-05 11:18:36 +00:00
Jeroen Ruigrok van der Werven a1bc809793 Fix repetition of a piece of code, which isn't present in CURRENT.
Smack my butt and call me Woody, but I have no idea how this happened.
2001-03-05 11:17:54 +00:00
Kris Kennaway a3f1c1c8f3 MFC: r1.10: update includes 2001-03-05 11:17:52 +00:00
Kris Kennaway 7e42f0da87 MFC: r1.32: check some function return values 2001-03-05 11:17:08 +00:00
Kris Kennaway 231e5a377d MFC: About 9 months worth of updates. Major features: -r(eadonly) mode,
-E(PSV) disable mode, fixes to reduce information leakage, ability to
specify compile-time port ranges
2001-03-05 11:14:50 +00:00
Maxim Sobolev d94b7beaf9 MFC:
- globs/regexs in pkg_delete(1);
- interactive confirmation in pkg_delete(1);
- `-a' option for pkg_delete;

Sync up with following revisions:
src/usr.sbin/pkg_install/delete/delete.h	-> 1.6
src/usr.sbin/pkg_install/delete/main.c		-> 1.21
src/usr.sbin/pkg_install/delete/perform.c	-> 1.27
src/usr.sbin/pkg_install/delete/pkg_delete.1	-> 1.24
src/usr.sbin/pkg_install/info/info.h		-> 1.18
src/usr.sbin/pkg_install/info/perform.c		-> 1.36
src/usr.sbin/pkg_install/lib/Makefile		-> 1.7
src/usr.sbin/pkg_install/lib/lib.h		-> 1.32
2001-03-05 11:11:38 +00:00
Jeroen Ruigrok van der Werven 9bd5190caa MFC: Implement <> redirector. 2001-03-05 11:05:49 +00:00
Ruslan Ermilov 74d89837e7 MFC:
o If both full-locale-name and short-locale-name searches
  fail, look the manpage in the en.<charset> subdirectory.

o Look for manpages in architecture specific directories
  first.  MACHINE envorinment variable could be used to
  specify non-default architecture.
2001-03-05 11:02:22 +00:00
Kris Kennaway 25ec23bc1e MFC: r1.36: don't look in a make-believe path which doesn't exist 2001-03-05 11:01:13 +00:00
Kris Kennaway 9626cc7467 MFC: r1.17: check malloc return values 2001-03-05 10:59:50 +00:00
Kris Kennaway 966dde0e53 MFC: Constify 2001-03-05 10:58:59 +00:00
David E. O'Brien eb94e5866d MFC: style sync to current 2001-03-05 10:57:52 +00:00
David E. O'Brien 1e1ffd8910 FMC: style sync to -current 2001-03-05 10:56:58 +00:00
David E. O'Brien 63201a3fc5 mFC: remove register and use proper include style 2001-03-05 10:54:53 +00:00
Kris Kennaway e6fd7a291e MFC: 1.7: fix typos 2001-03-05 10:54:15 +00:00
David E. O'Brien 64369cae23 MFC: remove register and style sync to -current 2001-03-05 10:53:51 +00:00
Kris Kennaway 831a520f90 MFC: r1.15: don't hard-code a buffer size 2001-03-05 10:53:23 +00:00
Kris Kennaway 86a24df8ac MFC: 1.3: Don't attempt to free non-alloced memory 2001-03-05 10:51:46 +00:00
David E. O'Brien b3445a236b MFC: style fix 2001-03-05 10:51:22 +00:00
David E. O'Brien bb301577f9 MFC: don't use errno.h. 2001-03-05 10:50:36 +00:00
Kris Kennaway 6b88c166a6 Now that RELENG_4 has the new improved mkstemp() there's no need to
use so many X's for the tempfile name
2001-03-05 10:50:26 +00:00
David E. O'Brien aa430e7b5c MFC: find errno.h in the proper place 2001-03-05 10:48:28 +00:00
David E. O'Brien 4be18f39ec MFC: remove unused <errno.h> & add FreeBSD id 2001-03-05 10:47:11 +00:00
Ruslan Ermilov 3ad6d9e00c MFC:
o Make the ``arp -d hostname proxy'' really do something useful.

o Print a diagnostic message if no interface could be determined
  when attempting to create a published ARP entry.

o Remove extraneous h_errno declaration.

o Fix manpage.
2001-03-05 10:45:20 +00:00
David E. O'Brien cce8ea604c MFC: 1.3: Fix typo: compatability -> compatibility. 2001-03-05 10:44:53 +00:00
Kris Kennaway b1bdc06156 MFC: Various changes, including the following:
* Update to gnats 3.113
* Add 'update' and 'maintainer-update' as valid classes for use in
  submitting ports PRs
2001-03-05 10:44:05 +00:00
David E. O'Brien 9de6174536 MFC: 1.18: remove unused <errno.h> 2001-03-05 10:40:42 +00:00
David E. O'Brien d10b72c0cc MFC: minor style changes to reduce diff to -current 2001-03-05 10:39:19 +00:00
Mark Murray 201e62d752 Grrr. Really add files that CVS managed to well hide from the MFC. 2001-03-05 10:33:40 +00:00
Kris Kennaway c2e1d301af MFC: r1.13, r1.14: -Wall cleanups and add missing include 2001-03-05 10:28:10 +00:00
David E. O'Brien 2537fd902b MFC: 1.5: remove unused <errno.h> 2001-03-05 10:27:18 +00:00
David E. O'Brien 8419238dc9 MFC: remove duplicate FreeBSD id 2001-03-05 10:26:22 +00:00
David E. O'Brien 733ef6e6c4 MFC: add freeBSD id 2001-03-05 10:26:02 +00:00
David E. O'Brien 6d6a88d37f MFC: 1.3: remove unneeded <errno.h> & add FreeBSD id 2001-03-05 10:25:03 +00:00
David E. O'Brien 492aece3d9 MFC: 1.4: remove unneeded <errno.h> 2001-03-05 10:22:45 +00:00
David E. O'Brien 2f20595c38 MFC: add $FreeBSD$ 2001-03-05 10:21:18 +00:00
Jeroen Ruigrok van der Werven fe94e2a66b MFC: Remove ``file ...'' from Ar argument. 2001-03-05 10:16:38 +00:00
David E. O'Brien 10d1c95060 MFC: remove the HPFPLIB copyright which we have never used. 2001-03-05 10:13:24 +00:00
David E. O'Brien 8d6a3401e8 MFC: fix style bug 2001-03-05 10:10:22 +00:00
David E. O'Brien b3535d79a1 MFC: Patchlevel 5 of the ISC 2.0 dhcp client. 2001-03-05 10:09:33 +00:00
Jeroen Ruigrok van der Werven f9feb34cbb MFC: Fix English usage: seperate -> separate. 2001-03-05 10:08:33 +00:00
Jeroen Ruigrok van der Werven 320344e065 MFC: Fix some mdoc usage. 2001-03-05 10:05:00 +00:00
David E. O'Brien fc7fee03f2 MFC: 1.5: remove unneeded <errno.h> 2001-03-05 10:02:54 +00:00
David E. O'Brien ce1ce8c09a MFC: 1.6: prefix the register argument of indirect 'jmp's with a * 2001-03-05 09:58:04 +00:00
Jeroen Ruigrok van der Werven 3d8e974f65 MFC: No need to repeat the Ar command. 2001-03-05 09:55:59 +00:00
David E. O'Brien 5c9595ebef Add $FreeBSD$'s to match -current. These were all added in the wrong
style to -current.  But for now, we are just trying to reduce the diffs.
2001-03-05 09:52:13 +00:00
David E. O'Brien 8807b29b95 MFC: 1.8: include <stdio.h>
1.7: style fixes
2001-03-05 09:44:34 +00:00
Jeroen Ruigrok van der Werven 5907ae4ac4 MFC: Update POSIX comment for X.
Remove extraneous ``file ...'' from .Ar argument, it is default.
2001-03-05 09:43:00 +00:00
David E. O'Brien aeca2383d4 MFC: 1.17: remove register and add $freeBSD$ 2001-03-05 09:39:59 +00:00
David E. O'Brien d541821e7d Add $FreeBSD$ 2001-03-05 09:34:53 +00:00
David E. O'Brien edca05b33a MFC: 1.6: remove unneeded <errno.h> 2001-03-05 09:34:10 +00:00
David E. O'Brien a4750536b5 MFC: 1.9: remove register 2001-03-05 09:32:28 +00:00
David E. O'Brien 600e522d96 MFC: 1.15: remove unneeded <errno.h> 2001-03-05 09:19:38 +00:00
David E. O'Brien 22b4679b52 style tweaks to reduce diff to -current 2001-03-05 09:17:52 +00:00
David E. O'Brien 408e56099d MFC: Do not set a default ELF syscall ABI fallback.
If one runs an un-branded Linux static binary that calls Linux's fcntl
the machine will reboot when interupted by the FreeBSD syscall ABI.
2001-03-05 09:11:58 +00:00
David E. O'Brien e539ff49e7 MFC: getlogin rev 1.5
Change the interface of getlogin_r to return an int.  The former
interface was based on a draft version of POSIX whereas the final
(1996) version of POSIX specified that the error is returned.

While I'm here, fix getlogin_r so that it works for more than just
the first time it's called.
2001-03-05 09:06:51 +00:00
David E. O'Brien 24b62be1ac style changes to reduce diffs to -current 2001-03-05 08:56:02 +00:00
David E. O'Brien 80eb52b12a MFC: sync with -current. 2001-03-05 08:42:22 +00:00
David E. O'Brien dcb07e3d2a MFC: 1.10: remove errno.h 2001-03-05 08:40:47 +00:00
David E. O'Brien 5b674a64df MFC: 1.10: remove 'const' from 'telldir(const DIR *)'
1.9:  whitespace only change: trim trailing whitespace
2001-03-05 08:39:54 +00:00
David E. O'Brien 6b203b4256 MFC: 1.3: find device names which were not present when dev_mkdb(8) was run 2001-03-05 08:37:39 +00:00
David E. O'Brien 73df02e395 MFC: 1.9: include <sys/stat.h> 2001-03-05 08:32:26 +00:00
David E. O'Brien e07b90bb49 MFC: 1.7 style changes and don't use a pointer after freeing it. 2001-03-05 08:29:56 +00:00
David E. O'Brien 65276a5e6c Style change to reduce diff from -current. 2001-03-05 08:23:58 +00:00
David E. O'Brien 3a1a887fa8 MFC: sysctlnametomib() 2001-03-05 08:13:28 +00:00
Kris Kennaway 7239d162f8 MFC: r1.4: default CVS_RSH to use ssh for transport 2001-03-05 07:42:02 +00:00
David E. O'Brien c757625b05 MFC: add a man page for the dbm_* functions, and update the Makefile to
link it in.
2001-03-05 07:40:20 +00:00
David E. O'Brien d3e8692f06 MFC: 1.5: don't need errno.h 2001-03-05 07:38:05 +00:00
Kris Kennaway ba03850bc0 Add a file which was missing from the kerberosIV merge. Hopefully
unbreaks world.
2001-03-05 07:35:37 +00:00
David E. O'Brien e1c01da2e8 remove trailing `.' in SEE ALSO list 2001-03-05 07:29:07 +00:00
David E. O'Brien 61b5a59b27 MFC: 1.6: style changes 2001-03-05 07:28:35 +00:00
David E. O'Brien c4c5594de8 MFC: 1.36: use off_t for the size variable used to calculate the size of
the partition and use ULL suffix for constants to ensure that
			we use 64 bit math to reduce overflow in disk space calculations
2001-03-05 07:07:43 +00:00
David E. O'Brien e93ceeb90a MFC: add el_GR.ISO_8859-7 needed by Tcsh version 6.10 2001-03-05 06:42:46 +00:00
Kris Kennaway 00a4d5047d MFC: r1.8: typo fix 2001-03-05 06:32:25 +00:00
Kris Kennaway 40a566e8fa MFC: r1.12: use *snprintf() instead of *sprintf() 2001-03-05 06:31:44 +00:00
Kris Kennaway 8784f3f788 MFC: r1.21: typo fixes 2001-03-05 06:30:23 +00:00
Kris Kennaway 28243295c8 MFC: r1.4: $Id$ -> $FreeBSD$ 2001-03-05 06:29:52 +00:00
Kris Kennaway 78a0611910 MFC: r1.5: handle a failure case 2001-03-05 06:28:48 +00:00
Kris Kennaway 4c089c3eac MFC: r1.5: format string paranoia 2001-03-05 06:27:44 +00:00
Kris Kennaway bfa2caee03 MFC: r1.4: Don't unconditionally enable debugging of the network device 2001-03-05 06:27:18 +00:00
Kris Kennaway a0d6ce46ba MFC: r1.2: fix typo 2001-03-05 06:26:07 +00:00
Kris Kennaway f951358c9b MFC: r1.25: NOINET6 support 2001-03-05 06:25:11 +00:00
Kris Kennaway 490a9c38f1 MFC: remaining part of r1.3: fix gratuitous whitespace diff 2001-03-05 06:23:39 +00:00
Kris Kennaway b1181f7dea MFC: r1.3, r1.4: fix typos 2001-03-05 06:21:40 +00:00
Warner Losh d2205c73c0 MFC: Fix .o's depending on the *DIRECTORY* for the modules so we don't
rebuild everything when files in src/sys or src/sys/ARCH/include
change, which is all the time.
2001-03-05 06:14:21 +00:00
Yoshihiro Takahashi c6458a8a2e Merged from sys/i386/include/bus_at386.h revision 1.8.2.2. 2001-03-05 06:05:10 +00:00
Doug Barton 9e2b50a161 MFC the ability to tell rc to fsck -y if the initial preen
of the filesystems fail.
2001-03-05 06:04:22 +00:00
Doug Barton 99eb29cf73 MFC the ability to specify the specific cron program to run, and
flags to supply to it.
2001-03-05 05:56:51 +00:00
David E. O'Brien 23efdd8d8a MFC: update to version 6.10 2001-03-05 05:50:14 +00:00
David E. O'Brien 2d9a7ef1bc MFC: 1.179: fix cross-building once again 2001-03-05 05:45:35 +00:00
David E. O'Brien eda1faab9c MFC: turn dkcksum() into an __inline function 2001-03-05 05:42:19 +00:00
Warner Losh 044688c498 MFC: Split ex driver into isa and pccard. We now support and old
olicomm card by doing this.  The pccard.conf changes have already been
MFC'd.

Submitted by: iwasaki-san
2001-03-05 05:33:20 +00:00
David E. O'Brien 4f7eeed01c MFC: 1.5: fix a "#ifdef" where a comparison operator was used. 2001-03-05 05:01:11 +00:00
Kris Kennaway 27e62c847c MFC: r1.15: fix style bugs 2001-03-05 04:44:42 +00:00
Kris Kennaway 48ef9d7dac MFC: r1.10: correct search path 2001-03-05 04:36:36 +00:00
Wes Peters 1d79387c99 OK, so the signing stuff IS built by default now, as long as OpenSSL
is included in the build.

Prodded by: wca
2001-03-05 04:33:54 +00:00
Stephen McKay 68d53a550c MFC (rev 1.18): Document that cp (especially -R) drops hard links. 2001-03-05 04:32:59 +00:00
Stephen McKay 7ab46d32a6 MFC (if_dcreg.h 1.19, if_dc.c 1.51): Faster recovery from underruns. 2001-03-05 04:17:24 +00:00
Kris Kennaway 6e3ae16402 MFC: Fix up prototypes and includes
Covers the following revisions:

libc/rpc/rpc.3          1.13
libc/stdlib/tsearch.3   1.5
libc/xdr/xdr.3          1.10
libdisk/libdisk.3       1.20
libftpio/ftpio.3        1.27
libposix1e/posix1e.3    1.11
libusb/usb.3            1.5
libutil/logout.3        1.8
2001-03-05 04:15:27 +00:00
Warner Losh f82fe43c22 Commit the forward compat stuff. We add aliases for __sF[0123] as
__stdin, __stdout and __stderr.  Note, we don't generate references to
them (yet).  That will be done in 6.0, so don't panic just yet.
2001-03-05 04:08:46 +00:00
Kris Kennaway 4afbf68222 MFC: r1.4: add missing prototypes and include 2001-03-05 04:03:02 +00:00
Kris Kennaway 607dfcae5c MFC: r1.7: fix C error in manpage 2001-03-05 03:51:26 +00:00
Kris Kennaway bf74fc5d55 MFC: r1.5: fix typo 2001-03-05 03:50:02 +00:00
Kris Kennaway d7877734c4 MFC: r1.4: sprinkle some consts around 2001-03-05 03:48:00 +00:00
Kris Kennaway 55e7c5a645 MFC: r1.6: Ignore leading witespace in the string given to PacketAliasProxyRule(). 2001-03-05 03:47:29 +00:00
Wes Peters a410836d72 MFC package signing tools. Not built by default. 2001-03-05 03:43:53 +00:00
David E. O'Brien 6d7f696889 MFC: (turn dkcksum() into an __inline function) 2001-03-05 03:15:10 +00:00
Bosko Milekic 806269e100 MFC: Call rtfree() not only if initial two conditions fail, but
also if the ref count is > 1 and the two conditions pass.

(Revision 1.81 of HEAD)
2001-03-05 02:46:24 +00:00
Peter Wemm 050c8e3915 MFC: rev 1.38; Add USB_PRODUCT_MELCO_LUATX5 device ID. 2001-03-05 02:30:35 +00:00
David E. O'Brien 02d08ef8dd MFC: 1.16: respect user's choice to quit the pager 2001-03-05 02:27:01 +00:00
Dag-Erling Smørgrav 3722443804 MFC: -k option, sparse dumps 2001-03-05 02:00:50 +00:00
Kris Kennaway f697276f00 MFC: Fix buffer overflow in $HOME 2001-03-05 00:19:13 +00:00
Alfred Perlstein 53629b01f8 MFC: mark pthread_exit() as a non-returning function 2001-03-04 22:38:48 +00:00
Matt Jacob c01e9af837 MFC: Update copyright. Handles are 16, not 32 bits. Remove usage of
isp_unit/isp_name (just use device_t). Get isp_portwwn or isp_nodewwn
environment variables instead of a plain isp_wwn variable. Update target
mode to handle the new handle passthru for parallel SCSI. Use all
device_printf's or isp_prt's instead of plain printf.
2001-03-04 22:21:12 +00:00
Matt Jacob 054bef1407 MFC: Role core minor. Handles are 16, not 32 bits. Add the ISPCTL_RUN_MBOXCMD
isp_control functio. Add the ISPASYNC_UNHANDLED_RESPONSE response async
event code.
2001-03-04 22:18:19 +00:00
Matt Jacob e59a3b2b25 MFC: The flag ICBOPT_BOTH_WWNS is more descriptive than ICBOPT_USE_PORTNAME. 2001-03-04 22:17:17 +00:00
Matt Jacob 1a35ab099c MFC: Update copyright. Accomodate changes to Qlogic parallel SCSI target
mode spec (half of what had been a 32 bit 'driver reserved' value is now
a 16 bit handle that is used to correllate CTIOs with a specific ATIO- we
have to make sure we pass it on thru. Propagate back proper at2_entry
format (instead of one derived from an at_entry). Handles are 16, not
32 bits.
2001-03-04 22:16:47 +00:00
Matt Jacob 5ddfbcea8a MFC: rev copyright. propage Asmodai's spelling correction. Handles
are 16 not 32 bits now.
2001-03-04 22:15:08 +00:00
Matt Jacob b711ef9a90 MFC: handles are 16 not 32 bits now. 2001-03-04 22:14:39 +00:00
Matt Jacob 4cee15893a Roll platform minor.
MFC: Remove name/unit from softc- replace with device_t from probe. Store
default WWWs for both port && node.
2001-03-04 22:14:09 +00:00
Matt Jacob 6a1af8098d MFC: Remove usage of isp->isp_name/isp->isp_unit (use isp->isp_dev). Remove
stray newline in foormat string. Note the we don't support 2nd channel
on 12160/1280 cards in target mode yet. Clean up target mode so that it
more or less works again. Remove nearly all printfs and use device_printf
or isp_prt. Handles are 16- not 32 bits now. We can now cope with at least
the latest Qlogic 1040 Target Mode f/w (12160/1X80 not working yet).
2001-03-04 22:13:12 +00:00
Matt Jacob f9bdfd9842 MFC: Update Copyright. Change handles from 32 to 16 bits. Catch a
longstanding bug about making sure that we're using both WWNs (port
and node). Add ISPCTL_RUN_MBOXCMD isp_control function.
2001-03-04 22:10:32 +00:00
Ian Dowse a61c54dfe7 MFC: 1.63: Hold a vnode reference corresponding to `rootvnode'.
This is a cut-down version of the associated -current changes; it
just fixes the `vrele:  negative ref cnt' panics that occur on
reboot if a filesystem was mounted directly over /.
2001-03-04 21:27:12 +00:00
David E. O'Brien 62af25ba44 MFC: 1.23: change the spelling of .' to .' from .OBJDIR
1.22: remove ${DESTDIR} from _PATH_TCSHELL, it is call path
           add gethost to build-tools to help cross-building
     1.21: 6.10 changes
2001-03-04 21:23:16 +00:00
David E. O'Brien b26bb97dd6 MFC: 6.10 needed bits. 2001-03-04 21:20:14 +00:00
Josef Karthauser a52d4e90e5 MFC: Keep stats on interface address traffic for ipv4 and ipv6 packets.
usr.bin/netstat/if.c:		revision 1.34
	sys/net/if_var.h:		revision 1.27
	sys/netinet6/ip6_input.c:	revision 1.17
	sys/netinet6/ip6_output.c:	revisions 1.19, 1.20
	sys/netinet/ip_input.c:		revision 1.144
	sys/netinet/ip_output.c:	revisions 1.112, 1.114, 1.116
2001-03-04 21:09:47 +00:00
Mark Murray 84c79c9b20 Yet another repair to "make world".
MFC: file removed when sbin/disklabel was MFC'd (.path: problem).
2001-03-04 20:18:36 +00:00
Gerard Roudier 14627849df MFC: merge sym_hipd.c -j1.23 -j1.24 2001-03-04 19:21:48 +00:00
Poul-Henning Kamp deab7659e7 MFC: rwatson moved jails to struct ucred in -current, but not in -stable,
consequently the same patch shouldn't be used verbatim.

Submitted by:	iedowse
2001-03-04 18:26:35 +00:00
Daniel Eischen 88bdc854fc MFC: Limit threads clock resolution to no less than 1000usec (1000Hz).
PR:	25300
2001-03-04 18:10:01 +00:00
Mark Murray 7de9e379ae Fix make world. bin/csh has no build-tools target. 2001-03-04 17:57:33 +00:00
Mark Murray cac3fa155c MFC: Minor diff-reduction. 2001-03-04 15:19:43 +00:00
Mark Murray 2e3fd02d87 MFC: Decent Kerberos(5) compatability (with MIT and SSH.COM) 2001-03-04 15:13:08 +00:00
Mark Murray 32abd1b1d0 MFC: don't build kerberos stuff that can't be built. 2001-03-04 14:49:04 +00:00
Mark Murray 45d8eec86d MFC: Heimdal 0.3e build stuff. 2001-03-04 13:50:12 +00:00
Mark Murray f64561b795 MFC: Heimdal 0.3e (MIT mucho-compatible) upgrade. 2001-03-04 13:29:36 +00:00
David E. O'Brien 5550d6099c MFC: disklabel.8 rev 1.25, disklabel.c rev 1.3{3,5}
* Allow for easier configuration when using disklabel.
	   (ie, allow use of meg and gig to specify size)
     * Turn dkcksum() into an __inline function.
2001-03-04 13:22:40 +00:00
Chris D. Faulhaber 35d6e40326 MFC 1.20:
limit commands when not logged in
2001-03-04 13:12:07 +00:00
Mark Murray 425bad7d63 MFC: Take into account the newer code. 2001-03-04 12:53:52 +00:00
Mark Murray cc29ebe05a MFC: Bring KerberosIV up to the latest-and-greatest bugfix level. 2001-03-04 12:52:51 +00:00
David E. O'Brien 40988a0408 MFC: 1.19[12]: document MACHINE_ARCH
1.187(partial): sleep as in -current
     1.179: fix cross-building once again
     1.177(partial): new distribworld target
     1.176(partial): bootstrap-tools and cross-tools targets avoid
                     building profiled and shared libraries; and build
                     static binaries instead of shared binaries
2001-03-04 12:39:26 +00:00
Wilko Bulte 3408624ac8 Sync RELENG4 version with HEAD. Only relevant change: DEFPA FDDI support. 2001-03-04 11:33:50 +00:00
Wilko Bulte 60930321b5 AS2100A support has been added. 2001-03-04 11:30:44 +00:00
David E. O'Brien e0adfe97cf MFC: 1.32: support inheritance of the "nodump" flag down a hierarchy 2001-03-04 11:00:52 +00:00
David E. O'Brien 268fb34cce MFC: 1.12: support inheritance of the "nodump" flag down a hierarchy 2001-03-04 11:00:33 +00:00
Kris Kennaway c37c65bd6e MFC: OpenSSL ASM support 2001-03-04 09:41:39 +00:00
Kris Kennaway 7965184842 MFC: CPUTYPE infrastructure, modulo IA64 support 2001-03-04 09:40:33 +00:00
Kris Kennaway 259f01e883 MFC: bc 1.06 2001-03-04 09:36:18 +00:00
Kris Kennaway d299ef7f10 MFC: r1.2: typo fix 2001-03-04 09:27:26 +00:00
Kris Kennaway 59baa93d20 MFC: r1.40: Use the correct timestamp for the -C -p case when the comparison fails. 2001-03-04 09:26:23 +00:00
Kris Kennaway 5e5e98b9d0 MFC: major updates. Covers units.1 r1.11, r1.12; units.c r1.8;
units.lib r1.7-r1.9
2001-03-04 09:22:35 +00:00
Poul-Henning Kamp 409b03ece3 MFC: add Beastie under share/examples. 2001-03-04 09:20:11 +00:00
Poul-Henning Kamp f90c0e12d6 MFC: Add Beastie graphic. 2001-03-04 09:19:24 +00:00
Kris Kennaway 7bc791d697 MFC: r1.11: correct typo in comment 2001-03-04 09:18:23 +00:00
Kris Kennaway 925a710947 MFC: r1.8: remove extraneous externs 2001-03-04 09:17:45 +00:00
Kris Kennaway b9aa3374f8 MFC: Allow chrooting of tftpd, support file transfers >32MB, correct
"first appeared in" to 4.3 from 5.0
Covers revisions r1.17, r1.18 of tftpd.c, r1.10, r1.11 of tftpd.8
2001-03-04 09:15:27 +00:00
Poul-Henning Kamp 69601f9bd0 MFC: fix jails. 2001-03-04 09:15:21 +00:00
cvs2svn 9db7fe37ea This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-03-04 09:13:18 +00:00
Kris Kennaway 744264dca7 MFC: tftp.1 r1.6, tftp.c r1.6: support transferring of files >32MB 2001-03-04 09:12:14 +00:00
Kris Kennaway 1ebdd6398b MFC: Typo fixes, remove extraneous externs 2001-03-04 09:10:39 +00:00
Kris Kennaway 7200ef67da MFC: r1.6: remove extraneous externs 2001-03-04 09:07:50 +00:00
Kris Kennaway e76bf58568 MFC: r1.9: remove extraneous externs 2001-03-04 09:05:54 +00:00
Kris Kennaway 8609bf3787 MFC: r1.7: give split the ability to split a >2GB file 2001-03-04 09:05:26 +00:00
Assar Westerlund b99448e26b MFC: Make zalloc and zfree non-inline functions. This avoids having to
have the code calling these be compiled with the same setting for
  INVARIANTS and SMP.

vm_zone.c:1.36
vm_zone.h:1.14
2001-03-04 09:04:39 +00:00
Kris Kennaway ee0e1f05b8 MFC: r1.3: correct typo 2001-03-04 09:04:15 +00:00
Kris Kennaway 2343ba237a MFC: r1.12: remove extraneous extern 2001-03-04 09:03:46 +00:00
Kris Kennaway f8a8832cdb MFC: rsh.1 r1.14, rsh.c r1.23
Update usage information
2001-03-04 09:01:45 +00:00
Kris Kennaway c9b2ccac08 MFC: r1.10: remove extraneous externs 2001-03-04 09:00:23 +00:00
Kris Kennaway 4f07fc78e6 MFC: r1.5: update includes 2001-03-04 08:59:50 +00:00
Kris Kennaway 6765551080 MFC: Correct usage documentation, remove extraneous externs
rlogin.1 r1.14, rlogin.c r1.25, r1.26
2001-03-04 08:59:03 +00:00
Kris Kennaway c6e78fecb5 MFC: r1.6: remove extraneous extern 2001-03-04 08:56:30 +00:00
Kris Kennaway 947756fbca MFC: r1.15: #if 0 sccsid 2001-03-04 08:55:53 +00:00
Kris Kennaway 78099f0e7e MFC: r1.10: correct typo in comment 2001-03-04 08:54:51 +00:00
Kris Kennaway 9adbd0872c MFC: r1.14, r1.15: remove extraneous externs and correct typo in comment 2001-03-04 08:54:10 +00:00
Kris Kennaway 3197b41a71 MFC: r1.16: remove extraneous externs 2001-03-04 08:53:19 +00:00
Kris Kennaway 9d3c490d51 MFC: Rename offsetof() to boffsetof()
Covers revisions def.h r1.5, edit.c r1.3, fio.c r1.3
2001-03-04 08:50:43 +00:00
Kris Kennaway 1b6dfd8022 MFC: main.c r1.9, misc.c r1.6: remove extraneous externs 2001-03-04 08:49:20 +00:00
Kris Kennaway b18b43490d MFC: r1.13: remove extraneous externs 2001-03-04 08:47:25 +00:00
Kris Kennaway d8bb76f0f4 MFC: r1.12: Remove extraneous externs 2001-03-04 08:46:46 +00:00
Kris Kennaway 85c7ddbee5 MFC: r1.10: update includes and improve error reporting 2001-03-04 08:45:00 +00:00
Kris Kennaway 925781fb96 MFC: r1.19: correct getopt return value 2001-03-04 08:44:01 +00:00
Kris Kennaway 4e4b887383 MFC: r1.20: update includes and improve error reporting 2001-03-04 08:43:10 +00:00
Kris Kennaway c4271e4e53 MFC: r1.11: don't use fldsiz() 2001-03-04 08:40:37 +00:00
Kris Kennaway d6c5ccece3 MFC: r1.14, r1.15: use queue macro API, remove extraneous externs 2001-03-04 08:39:25 +00:00
Assar Westerlund 906f2e1138 MFC: translate the flags in recvfrom and recvmsg from linux to bsd ones
linux_socket.h: 1.1
	linux_socket.c: 1.25
2001-03-04 08:38:20 +00:00
Kris Kennaway 473b2a7ae2 MFC: r1.5-r1.7: various overflow fixes and style cleanups 2001-03-04 08:37:38 +00:00
Kris Kennaway a2887e9181 MFC: r1.14: remove extraneous externs 2001-03-04 08:36:35 +00:00
Kris Kennaway e38ec26c8c MFC: r1.7: various fixes 2001-03-04 08:35:48 +00:00
Kris Kennaway c8143355fe MFC: r1.10: typo in comment 2001-03-04 08:34:49 +00:00
Kris Kennaway 584fbebff6 MFC: r1.5: remove extraneous getopt externs 2001-03-04 08:33:59 +00:00
Kris Kennaway 564fbf5447 MFC: r1.32, 1.33: remove extraneous extern, update includes 2001-03-04 08:32:34 +00:00
Kris Kennaway c239fc454e MFC: r1.4: remove unneeded extern optind, optarg definitions 2001-03-04 08:30:53 +00:00
Kris Kennaway 6f30f365fb MFC: lprint.c r1.15, sprint.c r1.15, util.c r1.12
Update headers and RCSID insertion
2001-03-04 08:30:07 +00:00
Kris Kennaway 9d0d90a594 MFC: r1.11: check strdup return values 2001-03-04 08:27:25 +00:00
Kris Kennaway 223d34ce72 MFC: r1.23: update headers and RCSID insertion 2001-03-04 08:22:20 +00:00
Kris Kennaway 75d3b6a586 Correct a gratuitous whitespace difference with HEAD 2001-03-04 08:19:38 +00:00
Scott Long e2a3f58887 Add the KMODDEPS line so that this module will properly load in the
snd_pcm module.
2001-03-04 08:19:02 +00:00
Kris Kennaway 111ccbc265 MFC: Correct typos 2001-03-04 08:17:49 +00:00
Kris Kennaway 925fd1b33e MFC: r1.5: use queue macro API 2001-03-04 08:16:48 +00:00
Scott Long 80fca64709 MFC of the maestro3 sound driver. Only build as a module due to the GPL'd
firmware.
2001-03-04 08:15:29 +00:00
Kris Kennaway 8457153dfe MFC: r1.10, r1.11, r1.12: fix warnings and general cleanups 2001-03-04 08:14:30 +00:00
Kris Kennaway b989d26435 MFC: r1.10: update includes 2001-03-04 08:13:06 +00:00
Kris Kennaway e25fc5d680 MFC: r1.12: update includes 2001-03-04 08:12:27 +00:00
Kris Kennaway 4821813810 MFC: r1.14: remove extern int optind; 2001-03-04 08:11:20 +00:00
Kris Kennaway 9d2a75c753 MFC: r1.17: typo fix 2001-03-04 08:10:34 +00:00
Kris Kennaway 0e0df65dfc MFC: r1.44: add some extra newlines 2001-03-04 08:07:08 +00:00
Kris Kennaway 930b751807 MFC: r1.19, r1.20: correct headers, don't give up on write errors 2001-03-04 08:06:11 +00:00
Kris Kennaway 1cb669847b MFC: r1.16: correct header 2001-03-04 08:04:32 +00:00
Kris Kennaway 781bd58bdd MFC: r1.10: update counting 2001-03-04 07:33:22 +00:00
Kris Kennaway 82200d22a0 A previous MFC incompletely merged r1.16 (missing an include) 2001-03-04 07:31:47 +00:00
Kris Kennaway 3227b16de0 MFC: r1.21: update usage string 2001-03-04 07:29:58 +00:00
Kris Kennaway 6bc18d63c4 MFC: r1.4: eliminate common declaration 2001-03-04 07:28:48 +00:00
Kris Kennaway 97a852ca68 MFC: r1.7: eliminate common declaration 2001-03-04 07:26:48 +00:00
Kris Kennaway e89d2e559c MFC: r1.7 (handle malloc failure) 2001-03-04 07:20:33 +00:00
Kris Kennaway 2e88be26cf MFC: r1.33 (Handle malloc() failure) 2001-03-04 07:19:52 +00:00
Kris Kennaway 41328b2b94 MFC r1.8, r1.9: comment fixes 2001-03-04 07:15:30 +00:00
Assar Westerlund 4d631d78f7 sync flags with reality 2001-03-04 07:14:26 +00:00
Kris Kennaway da6e578ccd MFC r1.20
Special case the error reporting when errno is ENOTDIR or ENOENT.

This makes "mkdir /nonexistant/foo" complain that /nonexistant
doesn't exist rather than /nonexistant/foo which doesn't make much
sense.
2001-03-04 07:02:55 +00:00
Kris Kennaway 110c89b0e6 MFC: r1.31 (fix includes) 2001-03-04 07:01:15 +00:00
Kris Kennaway 57e6059f8a MFC: Clarify MAKE_IDEA comments. 2001-03-04 06:06:40 +00:00
David E. O'Brien 16ba681658 MFC: rev 1.7 (make the stack 12K, rename 'stack' to 'stackbase') 2001-03-04 05:23:01 +00:00
David E. O'Brien 9d81e61cad MFC: rev 1.11 (move init of booted_kernel to bootinfo.c) 2001-03-04 05:21:25 +00:00
David E. O'Brien e2c8dc2fac MFC: rev 1.11 (init booted_kernel from environment kernelname) 2001-03-04 05:20:26 +00:00
David E. O'Brien 6cc7f5c9fc MFC: rev 1.12 (steal 512KB more from system memory for heap instead of 256KB) 2001-03-04 05:14:50 +00:00
David E. O'Brien f04d1c4690 MFC: rev 1.11 (remove an unnecessary .PATH entry) 2001-03-04 05:12:40 +00:00
David E. O'Brien e80d851238 MFC: rev 1.6 (fix typo: seperate -> separate) 2001-03-04 05:08:21 +00:00
David E. O'Brien 96638c25e3 MFC: rev 1.3 ("it's" --> "its" (possessive) & correct a malformed sentence) 2001-03-04 05:07:22 +00:00
David E. O'Brien 37a4788029 MFC: use the proper optimization depending on the object format. 2001-03-04 05:04:33 +00:00
David E. O'Brien 7b6e55048a MFC: rev 1.8 (remove period from SEE ALSO) 2001-03-04 05:01:15 +00:00
David E. O'Brien 1a747675cd MFC: add some Pp's 2001-03-04 04:59:44 +00:00
David E. O'Brien 1923c76a7e MFC: (don't use the Gawkism strftime()) 2001-03-04 04:55:10 +00:00
David E. O'Brien 601d81e92f MFC: document more files and add warning. 2001-03-04 04:52:00 +00:00
David E. O'Brien 1e968f43f0 MFC: rev 1.27 (change NOFORTH comment character from # to \ followed by space) 2001-03-04 04:46:18 +00:00
David E. O'Brien 99206649bd MFC: rev 1.10 (give the network device a print method) 2001-03-04 04:44:42 +00:00
David E. O'Brien e2d8bb2352 MFC: rev 1.4 (preceed/preceeding are not english words) 2001-03-04 04:40:41 +00:00
Andrew Gallatin bd7f77196a MFC: proper support for Alphserver 2x00 systems. This gets AlphaServer
2100A ("lynx") systems working.

I've left the irq mapping from -current out, because, as I understand
it, it is not required on machines running production versions of the SRM
console.
2001-03-04 00:28:07 +00:00
Kris Kennaway a153d35c30 MFC: IP option length validation. Covers the following revisions:
ah_core.c   1.6, 1.7
ah_output.c 1.5, 1.6
dest6.c     1.5
nd6.c       1.6, 1.7
2001-03-04 00:13:22 +00:00
Andrew Gallatin 1d6eef44f3 MFC: 1.157 - move vm_page_array and vm_page_buckets to the end of the
largest chunk.  This allows isa bounce buffer allocation to succeed on
large memory alphas which need isa bounce buffers.
2001-03-03 23:06:09 +00:00
Matt Jacob aea8fdce54 MFC: include paths.h for _PATH_DEV 2001-03-03 21:26:56 +00:00
John Hay e651f346ad MFC: rev 1.9, The secure temporary directory is always created, so always
remove it.
2001-03-03 15:37:22 +00:00
Noriaki Mitsunaga 4ca3480c64 [MFC]
Catch up with current.
dev/ncv/ncr53c500.c		1.1 -> 1.3
dev/ncv/ncr53c500_pccard.c 	1.2 -> 1.6
dev/ncv/ncr53c500var.h		1.1 -> 1.3

dev/nsp/nsp.c			1.2 -> 1.4
dev/nsp/nsp_pccard.c 		1.2 -> 1.6
dev/nsp/nspvar.h		1.1 -> 1.2

dev/stg/tmc18c30.c		1.2 -> 1.4
dev/stg/tmc18c30_pccard.c 	1.2 -> 1.6
dev/stg/tmc18c30var.h		1.1 -> 1.2

cam/scsi/scsi_low.c	1.1 -> 1.8
cam/scsi/scsi_low.h 	1.2 -> 1.3
2001-03-03 14:45:02 +00:00
Bruce A. Mah c1e6c4bade Back out a release note; recent signal-handling fixes for Linux
were i386-specific.

Submitted by:	gallatin
2001-03-02 23:06:44 +00:00
Bruce A. Mah 2729242b80 MFC: TCP NewReno, TCP more agressive timeouts for SYN segments,
IP verifies destination address of received packets against ingress
interface, ipfstat(8) -t.
2001-03-02 23:03:29 +00:00
Jonathan Lemon c6b780841f MFC: r1.157; net.inet.ip.check_interface sysctl 2001-03-02 20:55:14 +00:00
Andrew Gallatin 31a0dd427d MFC: 1.3: Magnetic tape ioctls from Clem Cole
1.4: Use queue macros
2001-03-02 19:51:21 +00:00
Andrew Gallatin 1ce383ac1a MFC: 1.2 - M_ZERO malloc option
1.3 - return -1 rather than ENOEXEC for unclaimed images
2001-03-02 19:49:53 +00:00
Jonathan Lemon 6c79edfb69 MFC: correct test ordering for first EISCONN. 2001-03-02 19:31:59 +00:00
Matthew Dillon 59e267d43e MFC 1.88 - free lock in early return. This can occur if we block getting
the lock and another process deals with the worklist before we do.
(obvious bug, so quick MFC)
2001-03-02 17:22:26 +00:00
Tor Egge 6d84726ecf MFC: Update unused __dtoa prototypes to match reality. 2001-03-02 17:14:15 +00:00
Tor Egge 4b6f9d6fe3 MFC: Ensure that RLIMIT_NPROC limits are at least 1 to avoid bad
interaction with chgproccnt.
2001-03-02 17:12:35 +00:00
Matthew Dillon 8300c0364f MFC vfs_bio.c/1.273, kern/vfs_cluster.c/1.105, nfs/nfs_vnops.c 1.164,
Fix lockup for loopback NFS mounts.
2001-03-02 16:45:12 +00:00
Matthew Dillon 585da45061 MFC 1.116 - VM fault resulting in writable page sets PG_NOSYNC properly,
even if it was not a write-fault.

Original Patch by: Andrew Gallatin
2001-03-02 16:42:46 +00:00
Matthew Dillon bbb6b29510 MFC 1.13 - linux emulation uses MAP_NOSYNC by default to mimic linux. 2001-03-02 16:40:27 +00:00
Nicolas Souchu 7ec09b8e03 MFC. Improve mode detection of ZIP drives. Fix the PS/2 mode support
for the ZIP+.
2001-03-02 16:04:38 +00:00
Nicolas Souchu a705155067 MFC. Fix PS/2 mode configuration when parallel port chip is in ECP
by BIOS.
2001-03-02 16:03:25 +00:00
David E. O'Brien 77151c2072 MFC: Impliment the ISO-C99 strto[u]ll()
and rewrite strto[u]q() in terms of it.
2001-03-02 09:45:20 +00:00
David E. O'Brien 6d79b06050 MFC: rev 1.11 (fix endless looping on garbage in) 2001-03-02 09:35:44 +00:00
David E. O'Brien 89cd5774c7 MFC: rev 1.8 (remove `r' devices) 2001-03-02 09:34:57 +00:00
David E. O'Brien 8ece660b8d MFC: rev 1.13 (update HISTORY) 2001-03-02 09:34:01 +00:00
David E. O'Brien ddc67cccf2 MFC: rev 1.14 (fix rcsid) 2001-03-02 09:32:13 +00:00
David E. O'Brien 01a18ce58c MFC: rev 1.39 (gcc.295)
Move the obvious bits of mixed ELF and a.out support down into this MD
header to reduce the difference of our sources to the stock GNU/FSF ones.
While the mix binary format support was nice to have in the FreeBSD MI
header as a frame work, it just clutters up too much and makes the FreeBSD
MI header more different from the FSF/GNU stock one than it needs to be.
2001-03-02 09:27:49 +00:00
David E. O'Brien a29072d92a MFC: rev 1.34 (gcc.295)
Push as much as was easy of the mixed ELF & a.out support for the i386
into the i386 MD FreeBSD header.  Also comment tweaking, continuation line
style changes, and other minor changes to make this closer to the latest
FSF/GNU 3.0 sources (to reduce my headache when 3.0 is imported).
2001-03-02 09:26:44 +00:00
David E. O'Brien 152693b520 MFC: rev 1.51 (include `dbxelf.h' via tm.h) 2001-03-02 09:24:15 +00:00
David E. O'Brien 0e26dd885d MFC: rev 1.3 (do not define "VERSION" here) 2001-03-02 09:23:09 +00:00
David E. O'Brien 70e1636302 MFC: rev 1.50 (include platform elf.h if exists) 2001-03-02 09:21:12 +00:00
David E. O'Brien ab950b5987 MFC: rev 1.53 (comment about one requirement of i386 64-bit `long') 2001-03-02 09:18:22 +00:00
David E. O'Brien 578f7334be MFC: Define "FREEBSD_NATIVE" in freebsd-native header rather than on CC
invocation command line
2001-03-02 09:16:44 +00:00
Jordan K. Hubbard 25a0593933 MFC: make ibcs2 coff loader load by default (when ibcs2 support enabled) 2001-03-02 08:24:01 +00:00
David E. O'Brien 3b303a6512 Reduce symbol pollution needed for gcc 2.95.3 tst3.
(this is a simular change to one I made in the FSF/GNU CVS tree)
2001-03-02 06:06:12 +00:00
Matthew N. Dodd f9c1d1d0b2 MFC 1.13: Fix bus_space_write_multi_2 2001-03-02 05:37:50 +00:00
Matt Jacob 7c59cd9e88 MFC: Fix isp_print_qentry to print all four lines- it's been broken for months. 2001-03-02 04:56:56 +00:00
Andrew Gallatin d499b3c05e MFC: 1.70 Correct a misnamed argument hidden behind a #ifdef DEBUG
I missed this in my mass signal MFC

PR: i386/25483
2001-03-02 03:18:10 +00:00
Warner Losh 30264d0abe Use new KERNCONF= in building rather than old KERNEL=.
Submitted by: [email protected]
2001-03-02 00:37:32 +00:00
Jonathan Lemon b97d9e7989 MFC: r1.156; verify incoming packet is arriving on correct interface. 2001-03-01 23:39:31 +00:00
Jacques Vidrine 6c80942cae MFC 1.5: Enable `state top' in ipfstat.
PR:		bin/20074
2001-03-01 22:53:05 +00:00
Jonathan Lemon e26cbfc9dc MFC: r1.40; use a slightly more aggressive timeout for initial TCP connection 2001-03-01 22:17:39 +00:00
Bruce A. Mah b24a51ff8b MFC: pcm(4) support for CMI8338/CMI8738 and CS4281 chips,
signal-handling fixes for Linux, ISO-9660 Unicode, ICMP TCP RSTs,
ida crashdumps, rc.syscons, login(1) exports PAM environment variables.

Updated release notes:  ahc(4).
2001-03-01 22:13:31 +00:00
Jonathan Lemon 6f09e04ca5 MFC: another component of TCP newreno I overlooked in last commit. 2001-03-01 22:11:14 +00:00
Jonathan Lemon af8a7c9b5a MFC: TCP New Reno algorithm 2001-03-01 22:08:42 +00:00
Jonathan Lemon a22fe6d13f MFC: r1.26; correct linux connect() emulation. 2001-03-01 21:52:26 +00:00
Jonathan Lemon dfdc393e76 MFC: r1.93; drop TCP connection on conversion of soft error to hard error. 2001-03-01 20:10:09 +00:00
Jonathan Lemon 69c980603e MFC: r1.80; relocate do_tcpdrain sysctl. 2001-03-01 20:06:50 +00:00
Jonathan Lemon edcace5c2b MFC: new handling of ICMP packets 2001-03-01 20:00:11 +00:00
Jonathan Lemon 1a563708df Return revents in ascpoll, not 0.
PR: 25465
2001-03-01 03:22:39 +00:00
Paul Saab fc73f1c408 MFC: Add crashdump support.
Approved by:	jlemon
2001-03-01 01:57:33 +00:00
John Hay 249670dc74 MFC: rev 1.47 Fix clock selection for X.21 interfaces. 2001-02-28 19:08:56 +00:00
David E. O'Brien 3bbc0461d5 MFC: rev 1.240-243 & 1.246 which adds an auto dependency framework and
entries for NFS and NIS services.
2001-02-28 18:44:47 +00:00
Ruslan Ermilov 925cc760fd MFC (rev 1.18): Change "PERL_THREADED=yes" to "PERL_THREADED=true".
PR:		gnu/25458
2001-02-28 17:49:17 +00:00
Jonathan Lemon 197e3e903d MFC: r1.18; EV_SET() macro usage 2001-02-28 16:18:13 +00:00
Jonathan Lemon 07d80e62f3 MFC: r1.40; initialize structure. 2001-02-28 15:48:29 +00:00
David Malone 9084ad9802 MFC: 1.11 Stop pac dereferencing a null pointer if accounting is not enabeled. 2001-02-28 14:57:33 +00:00
David Malone 1ede608d48 MFC: 1.2 Use magic in syslog.h for getting syslog facility names & levels. 2001-02-28 14:43:21 +00:00
David Malone 24b660fa47 MFC: Sync inetd with -current, except xucred change.
(Includes: fakeid -F flag, cleanups for ident code, don't mention
/etc/protocols, type and prototype cleanups).
2001-02-28 12:16:37 +00:00
David Malone 0ff77a8425 MFC: 1.41 uname is in section 3 of the man pages. 2001-02-28 11:48:58 +00:00
Warner Losh 948a3f3cc0 Add notes about KERNEL -> KERNCONF.
Suggest -DNOPERL in upgrade, but that's not likely enough.  More to come,
maybe.
2001-02-28 05:49:40 +00:00
Matthew Dillon 43e232eb19 MFC 1.82, 1.83, 1.84 (convert manual loops to LIST/FOREACH macros)
MFC 1.85, 1.86, 1.87 - fixes for inodedep races, done check, and
			making sure we free the lock before panicing.

Testing by: ps, peter, dillon
Approved by: mckusick
2001-02-28 03:53:50 +00:00
Gregory Neil Shapiro 19f2be983d MFC: Add a pointer to the ORBS web site for more DNS black hole lists.
Revision  Changes    Path
     1.17      +4 -1      src/etc/sendmail/freebsd.mc

Submitted by:	Rob Simmons <[email protected]>
2001-02-28 02:50:54 +00:00
David E. O'Brien 0c4c0ed09d MFC: rev 1.9 ("ELFOSABI_NONE") 2001-02-28 02:30:46 +00:00
Gregory Neil Shapiro 3be2dfda00 MFC: Fixup some of the commented out examples:
1) blackholes.mail-abuse.org is the same as FEATURE(dnsbl), so specifying
     it in the "Other DNS based black hole lists" section leads to confusion of
     specifying it twice.

     2) Formatting issues. If error diagnostic not enclosed in double quotes,
     varius visual artefacts appearse like 1) no space after ; and 2) redundant
     space after ? (in CGI request), so I add quotes where needed.

     3) FEATURE(dnsbl) directly use error code 550 by default, so I made other
     dnsbl variants use the same error code too.

     4) Comment relays.* list as "open relays" list, just "other" word is not
     explain enough.

     (immediate MFC as they are all comments and the final output isn't
      changed by this commit)

     Revision  Changes    Path
     1.16      +8 -6      src/etc/sendmail/freebsd.mc
2001-02-28 02:30:44 +00:00
Gregory Neil Shapiro 940040e0ae MFC: Add release notes for the sendmail-related build infrastructure changes.
Revision  Changes    Path
     1.141     +9 -1      src/release/texts/alpha/RELNOTES.TXT
     1.214     +9 -1      src/release/texts/i386/RELNOTES.TXT
2001-02-28 01:53:19 +00:00
Gregory Neil Shapiro 9566714a24 MFC: Clean up freebsd.mc to make it easier for users to read and modify.
The freebsd.cf from this new freebsd.mc is functionally equivalent.

     Revision  Changes    Path
     1.15      +29 -20    src/etc/sendmail/freebsd.mc
2001-02-27 21:37:26 +00:00
Gregory Neil Shapiro 8d5a47b757 MFC: Revamp /etc/mail/Makefile:
+ Add support for the new SENDMAIL_MC make.conf knob
     + Add the ability to build .cf files from .mc files
     + Generalize map rebuilding
     + Add the ability to rebuild the aliases file
     + Add the ability to stop, start, and restart sendmail

     Revision  Changes    Path
     1.11      +146 -22   src/etc/mail/Makefile
2001-02-27 21:34:07 +00:00
Gregory Neil Shapiro 017978e3c9 MFC: Need one additional make.conf knob, SENDMAIL_ADDITIONAL_MC to satisfy
bug report (PR bin/19897).  It allows building multiple .cf files at
     build time.

     Revision  Changes    Path
     1.142     +6 -1      src/etc/defaults/make.conf
     1.7       +6 -1      src/etc/sendmail/Makefile
2001-02-27 21:32:00 +00:00
Gregory Neil Shapiro 6790e0804c MFC: Add a new make knob, SENDMAIL_MC, which is meant to replace SENDMAIL_CF
as users should be configuring via m4 now.  If set, use m4 to create
     the .cf file.  Also, if either SENDMAIL_MC or SENDMAIL_CF is set,
     'make install' or 'make distribution' in src/etc/sendmail/ will install
     the appropriate .cf as /etc/mail/sendmail.cf.  This fixes some
     mergemaster problems.

     Revision  Changes    Path
     1.139     +9 -1      src/etc/defaults/make.conf
     1.141     +3 -3      src/etc/defaults/make.conf
     1.6       +33 -9     src/etc/sendmail/Makefile
2001-02-27 21:29:42 +00:00
Gregory Neil Shapiro 621959d008 MFC: Move creation of the sendmail statistics file from the usr.sbin/sendmail
Makefile to the etc/sendmail Makefile to be consistent with all of the
     other /var file creations.  In doing so, change the Makefile target from
     etc-sendmail.cf to distribution as it installs more than just the
     sendmail.cf.

 Revision  Changes    Path
  1.242     +2 -2      src/etc/Makefile
  1.4       +4 -2      src/etc/sendmail/Makefile
  1.30      +1 -3      src/usr.sbin/sendmail/Makefile
2001-02-27 21:20:21 +00:00
Gregory Neil Shapiro de9577f140 MFC: 1.2: Document the vacation -d and -l options 2001-02-27 21:09:46 +00:00
Gregory Neil Shapiro c98d3f4cd6 MFC: 1.6: Return to the code as distributed by sendmail.org. This eliminates a
warning on Alphas.  It is still not the perfect solution for machines
          which sizeof(u_long) != sizeof(void *) but it is as close as we are
          going to get for now and consistent with the rest of the code.  8.12
          has solved this problem by providing a portable snprintf() which
          understands %p.
2001-02-27 21:08:11 +00:00
David E. O'Brien ec98793c0f MFC: rev 1.38 (give example of password_format as the feature isn't well
documented by its author)
     and 1.40 (support display of /etc/COPYRIGHT)
2001-02-27 20:40:41 +00:00
John Baldwin b6960125b9 MFC: Move the syscons configuration to a machine independent rc.syscons. 2001-02-27 20:03:30 +00:00
Bruce A. Mah ab5a5bd1d5 Fix typo: s/TAR_SSH/TAR_RSH/
Submitted by:	knu
2001-02-27 19:26:02 +00:00
cvs2svn ef28c9d67b This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-02-27 18:40:08 +00:00
Bruce A. Mah 534245964d MFC: TCP delayed ACK fixes, ata(4) updates, kqueue(2) enhancements and
updates, ICMP fixes, find(1) case-insensitive and regexp matches,
pkg_info(1) globbing, burncd(8) -m and related support, tar(1)
TAR_SSH, make(1) fixes.
2001-02-27 15:10:09 +00:00
Peter Wemm 3f0d75fae4 MFC: add KINGSTON KNU101TX device id. (already in usbdevs) 2001-02-27 14:22:27 +00:00
Maxim Sobolev 630ed2add8 MFC:
Sync with 1.16 (knob to load an unicode conversion time as a kld).
2001-02-27 12:36:34 +00:00
Yoshihiro Takahashi 0745cfe1db MFC: supported pcmcia modem card. 2001-02-27 12:20:59 +00:00
Yoshihiro Takahashi 97a994ecca Merged from sys/isa/sio.c revision 1.291.2.15. 2001-02-27 12:13:08 +00:00
Jeroen Ruigrok van der Werven 376226a4c1 *sigh*
Put these files back in the Attic since I don't want them.
2001-02-27 09:47:45 +00:00
Jeroen Ruigrok van der Werven 28cd934b3f MFC: Update BIND documentation to 8.2.3-REL. 2001-02-27 09:42:45 +00:00
Poul-Henning Kamp 0c0bc247b7 MFC various trivial/textual changes. 2001-02-27 09:41:15 +00:00
Poul-Henning Kamp 493a13108a MFC:
1.68 fix for UDP i jail (PR: 20167, 19839, 20946)
	<sys/queue.h> macro-API
2001-02-27 07:44:21 +00:00
Cameron Grant 0ae101c267 create devnodes for snd0 in the 'all' target.
with this change, owners of supported pnp/pci sound cards can simply
'kldload snd' and use sound with no other setup required.
2001-02-27 05:29:28 +00:00
Cameron Grant 4ea5ed12fa connect sound modules to the build- we now support modular usage of newpcm 2001-02-27 04:49:40 +00:00
Cameron Grant 6c98e2c9b1 add a meta-module to the sound module system. when sound modules are built,
one can now load all drivers and infrastructure by kldloading snd.
2001-02-27 04:47:48 +00:00
Cameron Grant ceb56ebe64 * move functionality of csapcm into csa
* move functionality of es1888 into ess
* move functionality of gusc into mss

none of these were complete drivers- es1888 and gusc just allowed ess and
mss to detect additional cards, and csa was useless being a bridge driver
with no children to control the card.
2001-02-27 04:31:29 +00:00
Cameron Grant 31b7cef204 connect cmi8738 and cs4281 drivers to build of sound modules 2001-02-27 04:14:55 +00:00
Cameron Grant 8dc75984a9 MFC of cs4281 driver 2001-02-27 03:57:53 +00:00
Cameron Grant a10061d935 MFC of cmi8738 driver 2001-02-27 03:42:29 +00:00
Bill Paul d45246f5ca MFC: fix for proper handling of pseudo PCnet device in VMware. 2001-02-26 22:24:42 +00:00
Mike Smith 7f1e644afe MFC: typo fix.
Submitted by:	Joel Jacobson <[email protected]>
2001-02-26 20:14:04 +00:00
John Hay 4b614d5385 MFC: rev 1.63. Make leased line operation more robust. 2001-02-26 16:24:42 +00:00
Poul-Henning Kamp 4f686dbcfd MFC: Change console logging example from "/var/log/console" to the more
consistent "/var/log/console.log".
2001-02-26 09:26:11 +00:00
Hajimu UMEMOTO 84a86d5d93 MFC: Introduce $TAR_RSH to enable use of ssh as transport.
gnu/usr.bin/tar/Makefile:	1.13->1.14
	gnu/usr.bin/tar/rtapelib.c:	1.2->1.3
	gnu/usr.bin/tar/tar.1:		1.35->1.36
2001-02-26 07:48:39 +00:00
Hajimu UMEMOTO 33b5af9c35 MFC 1.8->1.9: some reasoning why we separated ping(8) and ping6(8)
comments/additions/corrections are welcome.
2001-02-26 07:40:49 +00:00
Hajimu UMEMOTO 2df8e2724f MFC 1.58->1.59: if no address is setted, do not call ioctl(SIOCAIFADDR) 2001-02-26 07:37:27 +00:00
Hajimu UMEMOTO 5e58195b50 MFC: Enable AI_ADDRCONFIG as a valid flag of getaddrinfo(3). Some
applications specify AI_ADDRCONFIG and fail to run under FreeBSD.
Latest mnews is known.  Now, getaddrinfo(3) behaves according to
AI_ADDRCONFIG.

	include/netdb.h:		1.16->1.17
	lib/libc/net/getaddrinfo.c:	1.16->1.17
2001-02-26 07:34:09 +00:00
Hajimu UMEMOTO 5c27b72a56 MFC: Correct 2nd argument of getnameinfo(3) to socklen_t.
include/netdb.h:		1.15->1.16
	lib/libc/net/getnameinfo.c:	1.6->1.7
	sys/alpha/include/ansi.h:	1.10->1.12
	sys/i386/include/ansi.h:	1.19->1.21
	sys/sys/socket.h:		1.47->1.49
2001-02-26 07:24:22 +00:00
cvs2svn 9b901cc90c This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-02-26 07:13:02 +00:00
Hidetoshi Shimokawa b4134c25b6 MFC: Better detection of duplicated initialization(rev 1.6). 2001-02-26 04:59:16 +00:00
Jonathan Lemon 90cd906f76 MFC: sync to current. 2001-02-26 04:23:54 +00:00
Jonathan Lemon d2180fd164 MFC: sync kq up to current (extend to device layer, plus other fixes) 2001-02-26 04:23:21 +00:00
Jonathan Lemon d1c1cd368b MFC: Better approach for registering EVFILT_AIO type kq events. 2001-02-26 03:32:12 +00:00
Jimmy Olgeni 28767e5c60 MFC: Fix my ambiguous message about ECONNABORTED. 2001-02-25 23:57:48 +00:00
Jimmy Olgeni a93d37c39b Some typo fixes for LINT (ATA driver section). 2001-02-25 23:39:07 +00:00
Jimmy Olgeni 9dd9080aea Spelling: Signalling -> Signaling. 2001-02-25 22:29:33 +00:00
Jimmy Olgeni db3a7ab702 MFC: Add ECONNABORTED to the ERRORS section. 2001-02-25 22:23:00 +00:00
Akinori MUSHA 460ae1a13f MFC:
Add -E, -iname, -ipath, -regex, and -iregex.
2001-02-25 21:57:00 +00:00
Søren Schmidt 1b53fa5eaf MFC:
document new ATA options.
2001-02-25 21:42:47 +00:00
Søren Schmidt 1ce83634fe MFC:
New option -m to select multisession mode.
WARNING: until now all disks was closed as multisession disks, this is
no longer the case, if the -m option isn't used disks are closed as
singlesession. The reason is that some drives wont close a disk
with one large image on in multisession mode, probably because it
"knows" that a new session wont fit on the media resonably.

Also update burncd with new stuff from various places that I've collected
and modified to my taste, its actually amasing how many thinks up the
same enhancements (none mentioned none forgotten):

Allow '-' to be used as filename for using stdin.

Add 'l' option to take a list of image files from 'filename'
2001-02-25 21:39:13 +00:00
Søren Schmidt 4e2b687169 MFC:
Get the ata drive in sync with -current to the following versions:

ata-all.c       1.102 (minus 1.100)
ata-all.h       1.37
ata-disk.c      1.92
ata-disk.h      1.31
ata-dma.c       1.57
ata-raid.c      1.10
ata-raid.h      1.4
atapi-all.c     1.63 (minus 1.62)
atapi-all.h     1.32
atapi-cd.c      1.76 (minus progress stuff)
atapi-cd.h      1.22 (minus progress stuff)
atapi-fd.c      1.57
atapi-fd.h      1.13
atapi-tape.c    1.49
atapi-tape.h    1.14
2001-02-25 21:35:21 +00:00
Søren Schmidt fd106a8206 MFC:
add type to blank ioctl, and session to disk_close ioctl.
2001-02-25 21:34:04 +00:00
Søren Schmidt 32cfb910ab MFC:
Add ATA_ENABLE_WC option
2001-02-25 21:25:28 +00:00
Gary Jennejohn de04cb02ad MFC: r1.17, avoid overflowing array on stack. 2001-02-25 20:10:12 +00:00
Jonathan Lemon c58531efc1 MFC: r1.124, delayed ack fix. 2001-02-25 15:20:31 +00:00
Dag-Erling Smørgrav 5e2b331a0c MFC: fix bibliographic references. 2001-02-25 11:46:04 +00:00
Noriaki Mitsunaga 901ffb51b4 [MFC]
1.2->1.3: Remove unused #includes.
1.3->1.4: Use <sys/queue.h> macro APIs.
2001-02-25 06:17:33 +00:00
Noriaki Mitsunaga c97c36bfce [MFC] 1.2->1.3
select() DKI is now in <sys/selinfo.h>.
2001-02-25 05:53:44 +00:00
Cameron Grant 2d38c66a1f alter sndbuf_clear to clear 1 byte at a time instead of 2.
this fixes the panics that have been observed with sb16 cards and certain
wav files where sndbuf_clear was asked to clear an odd number of bytes- a
condition that *should* never occur and i'm still investigating.  however,
this fixes the symptom for now.
2001-02-25 03:55:01 +00:00
Cameron Grant ff8dbec795 don't compile the initialised data generated by the kobj system into each
module, otherwise each module gets its own copy of the method descriptors.
this results in the upper layer code being unable to find the implementation
of any method in any object, which is a bad thing.

this commit makes newpcm drivers as modules actually work under 4.x
2001-02-24 21:49:05 +00:00
Bosko Milekic cc9fac87b4 MFC: Clean up RST ratelimiting (1.51 in HEAD).
Submitted by: Mike Silbersack <[email protected]>
2001-02-24 21:35:18 +00:00
Justin T. Gibbs e69b039fb6 MFC: In the SCSI_NO_SENSE_STRINGS case, properly fill the table with the
asc and ascq pair rather than asc, asc.

PR: 25291
Submitted by: Stephen Ferrari <[email protected]>
2001-02-24 19:25:30 +00:00
Jordan K. Hubbard ade84da806 MFC: stop yes/no buttons from jumping around. 2001-02-24 18:53:49 +00:00
Jonathan Lemon 15e6a96389 MFC: have accept return ECONNABORTED for sockets which are now gone. 2001-02-24 18:37:26 +00:00
Jesper Skriver 9fe3e875bd MFC:
src/sys/netinet/in_pcb.c     rev 1.78
src/sys/netinet/in_pcb.h     rev 1.36
src/sys/netinet/tcp_subr.c   rev 1.91
src/sys/netinet/udp_usrreq.c rev 1.86

Without this a attacker sending ICMP messages, where the attached
IP header (+ 8 bytes) has the address and port numbers == 0, would
have the ICMP message applied to all sessions.

The changes broken down:

  - remove 0 as a wildcard for addresses and port numbers in
    src/sys/netinet/in_pcb.c:in_pcbnotify()
  - add src/sys/netinet/in_pcb.c:in_pcbnotifyall() used to notify
    all sessions with the specific remote address.
  - change
    - src/sys/netinet/udp_usrreq.c:udp_ctlinput()
    - src/sys/netinet/tcp_subr.c:tcp_ctlinput()
    to use in_pcbnotifyall() to notify multiple sessions, instead of
    using in_pcbnotify() with 0 as src address and as port numbers.
  - remove check for src port == 0 in
    - src/sys/netinet/tcp_subr.c:tcp_ctlinput()
    - src/sys/netinet/udp_usrreq.c:udp_ctlinput()
    as they are no longer needed.
  - move handling of redirects and host dead from in_pcbnotify() to
    udp_ctlinput() and tcp_ctlinput(), so they will call
    in_pcbnotifyall() to notify all sessions with the specific
    remote address.

Approved by:    kris
Inspired by:    NetBSD
2001-02-24 18:36:01 +00:00
Cameron Grant c9634a08ef remove old unified sb8/sb16 driver. it isn't used anymore. 2001-02-24 01:29:46 +00:00
Wilko Bulte 17bdb812c1 Correct CS20 section.
Reviewed by:	Peter Petrakis <[email protected]>
2001-02-23 22:08:35 +00:00
Wilko Bulte 03787f2562 ispell-ify .. 2001-02-23 21:46:57 +00:00
Bill Paul b23b24cff4 MFC: fix typo/compiler warning 2001-02-23 20:06:25 +00:00
Ruslan Ermilov 96fab1bece MFC: (rev 1.16) Fix broken -L for short locale names. 2001-02-23 09:40:42 +00:00
Ruslan Ermilov 03bacd0e38 MFC: make ``groff -man'' work again for both man(7) and mdoc(7) manpages. 2001-02-23 09:39:21 +00:00
Alfred Perlstein 3a2b5a00da MFC: 1.83 2001-02-23 03:44:10 +00:00
Brian Somers 8771025e31 MFC: 120 seconds -> 180 seconds 2001-02-22 23:28:42 +00:00
Scott Long 4d724575d1 MFC the aac man page
Noticed by: [email protected]
2001-02-22 18:33:20 +00:00
Dag-Erling Smørgrav c3d4a64679 MFC: 'anonymous' instead of 'ftp'; sort references 2001-02-22 16:24:24 +00:00
Dag-Erling Smørgrav 1e8c55733f MFC: 'anonymous' instead of 'ftp' 2001-02-22 16:23:52 +00:00
Wolfram Schneider ea31bdc3d9 MFC: revision 1.13: Off by one error in reading mmap data. 2001-02-22 13:28:52 +00:00
Wolfram Schneider 8684cb0374 merge up to rev 1.39 2001-02-22 13:23:39 +00:00
Daniel C. Sobral 37fc265bca MFC: we have gone the way of of=/dev/fd0 instead of of=/dev/rfd0. 2001-02-22 11:05:40 +00:00
Boris Popov 6507352b96 MFC: Use macros from sys/queue.h and take advantage of M_ZERO flag. 2001-02-22 09:44:18 +00:00
John Baldwin 938c47ea3f MFC: 1.102 kern_sysctl.c 1.88 sysctl.h
Fixes for the dynamic sysctl macros to handle dynmaically generated
names and to add a few needed 'const's.
2001-02-22 09:29:42 +00:00
Boris Popov 75639daeec MFC: Use macros from sys/queue.h and take advantage of M_ZERO flag. 2001-02-22 09:27:04 +00:00
Boris Popov 5af6f832e2 MFC: Take advantage of M_ZERO flag. 2001-02-22 09:21:20 +00:00
Boris Popov bc39b42849 MFC: Use macros from sys/queue.h 2001-02-22 09:19:19 +00:00
Boris Popov 4552d833e8 MFC: Remove unused includes. 2001-02-22 09:14:12 +00:00
Boris Popov 0fa802f50d MFC: Option -N do not requires an argument 2001-02-22 09:09:51 +00:00
Boris Popov d4a4d1fab9 Remove unused #include 2001-02-22 08:57:58 +00:00
Boris Popov d80ac295ee MFC: use SLIST* macro instead of accessing fields directly. 2001-02-22 08:54:11 +00:00
Boris Popov 0aa87da3fd MFC: use M_ZERO flag. 2001-02-22 08:47:28 +00:00
John Baldwin 043df5f441 Convert three instances of 8 spaces to tabs, one as a MFC, and two to
minimize diffs with -current due to cut 'n' paste bogons in a previous
MFC.
2001-02-22 08:14:08 +00:00
Hajimu UMEMOTO 330cd0a9a8 MFC: make it clearer that rtadvd.conf is optional (configs are
grabbed from kernel).

	rtadvd.conf.5:	1.4->1.5
	rtadvd.conf:	1.2->1.3
2001-02-22 07:51:05 +00:00
Ruslan Ermilov 27fd719c4e MFC: realpath(1) will first appear in FreeBSD 4.3. 2001-02-22 07:31:17 +00:00
Ruslan Ermilov 5a745063b4 MFC: all recent mdoc(7) fixes. 2001-02-22 07:25:49 +00:00
Matt Jacob d5aeea6c08 MFC: Restore a print_sense=FALSE that got nuked by accident in last delta. 2001-02-22 06:44:54 +00:00
Marcel Moolenaar 878f646900 MFC: ABI dependent MINSIGSTKSZ.
Maintain forward compatibility on the -stable branch by
not doing an MFC of the machine dependent MINSIGSTKSZ.
This guarantees that binaries compiled on systems that
include this MFC will run on older systems.

Reviewed by: gallatin
2001-02-22 05:15:12 +00:00
Gregory Neil Shapiro 942703cf81 MFC: Give some additional DNS black hole possibilities as comments. 2001-02-22 03:36:33 +00:00
Brian Somers c5a1802160 MFC: Reset MPPE_MasterKeyValid when the bundle closes
Don't try to negotiate MPPE when CHAP81 hasn't been agreed
     Don't drop to state DATALINK_READY when we close a link that
     never actually opened
     Tone down some MPPE diagnostics
     Various man page fixes
     Handle sa_len == 0 from accept()
2001-02-22 01:19:19 +00:00
Brian Somers 59bc6e5d55 MFC: Deal with RADIUS accounting failures gracefully 2001-02-22 01:10:04 +00:00
Brian Somers 9252cb47c8 MFC: Make some comments clearer 2001-02-22 01:06:21 +00:00
Brian Somers baf064167c MFC: Correct the call to PacketAliasProxyRule() 2001-02-22 01:04:47 +00:00
Brian Somers 4882bd9d4f MFC: Handle the rejection of our secondary DNS IP when the first is accepted. 2001-02-22 01:02:23 +00:00
Brian Somers 4472fea066 MFC: Some format bogon fixes from NetBSD 2001-02-22 01:00:30 +00:00
Brian Somers 5b27764308 MFC: Handle state changes resulting from executing commands in ppp.linkdown 2001-02-22 00:14:53 +00:00
Brian Somers fc26543731 MFC: Identify sockets on descriptor 0 properly. 2001-02-21 23:37:00 +00:00
Andrew Gallatin 3c370fdcdf MFC: regen after signal handling MFC 2001-02-21 23:02:57 +00:00
Andrew Gallatin 64cab157b3 MFC: Linux signal handling fixes from current. This should improve
emulation of signal intensive Linux apps (such as Java).  This allows an
older version of the IBM JDK to run on -stable and gets rid of the
"cannot uninstall sigaltstack" message from the Sun Linux JDK 1.3

Reviewed by: marcel
Approved by: marcel
2001-02-21 23:01:57 +00:00
Brian Somers 0e97467f81 MFC: Some minor whitespace changes 2001-02-21 22:50:42 +00:00
Brian Somers 774d851a8f MFC: Make catmsgs() work as expected. 2001-02-21 22:48:23 +00:00
Bill Paul 6236f5e761 MFC: fix for DP83815 chips (Netgear FA311/FA312 cards) to disable PME mode
to avoid problems on some motherboards
2001-02-21 22:17:51 +00:00
Bill Paul 8ab9489101 MFC a change from the head that lets us detect whether we're in 16bit
or 32bit mode in pcn_probe() and allows us to read the chip ID from devices
in 16-bit mode without getting them stuck in 32-bit mode. (Everyone follow
that?) This has been in -current for some time.
2001-02-21 22:13:07 +00:00
Bruce A. Mah 022148a502 New features MFCed from -CURRENT: ipfilter 3.4.16, ipfw(8) me,
format string paranoia and temporary file fixes, gperf 2.7.2,
bzip2(1) packages, pkg_add PACKAGEROOT, lpr/lpd/syslogd/logger IPv6-
capable, sysinstall preserves /etc/mail, pkg_delete works in
dependency order.
2001-02-21 22:10:58 +00:00
David E. O'Brien 407cced963 MFC: OS name is "freebsd", not "freebsdelf" 2001-02-21 21:35:41 +00:00
Justin T. Gibbs f0e32523b0 MFC: Sync with HEAD as of today. 2001-02-21 20:51:28 +00:00
Luigi Rizzo c0161a27d0 Always try to make the kernel, in case something has changed in the
kernel sources.
2001-02-21 15:43:18 +00:00
Luigi Rizzo 8e69d51a32 Reintroduce the check for log_arp_wrong_iface, deleted by
mistake in a previous commit.

Reported-by: Peter Brezny
2001-02-21 15:15:44 +00:00
Yoshihiro Takahashi 333df6d938 MFC: Added pc98 support. 2001-02-21 11:24:27 +00:00
Yoshihiro Takahashi a6b413cacc MFC: Use rman_get_start() to get the start address of resource. 2001-02-21 11:23:24 +00:00
Martin Cracauer 38b915ceb2 MFC: In script mode, don't continue with next command when
child receives SIGSTOP.
2001-02-21 10:00:36 +00:00
Jordan K. Hubbard 8d0ec6b662 MFC: properly preserve /etc/mail directory on upgrade 2001-02-21 07:48:21 +00:00
Maxim Sobolev c482ae8eda MFC:
Fix a typo, that in some cases may lead to incorrect packages reordering.
2001-02-21 02:04:36 +00:00
Jonathan Lemon 856188669b MFC: clean up warning 2001-02-21 00:24:46 +00:00
Jordan K. Hubbard 92d26b1f3a MFC: various goodness from -current, modulo some of the stuff like "sign"
which is still not in the default build path.
2001-02-20 23:32:50 +00:00
Poul-Henning Kamp cc3243bb4b MFC: ipfw "me" functionality.
I forgot this #include in the last commit.
2001-02-20 21:00:35 +00:00
Luigi Rizzo 5d0ac62801 Not needed anymore 2001-02-20 17:19:30 +00:00
Poul-Henning Kamp 25311bfd96 MFC: The ipfw src/dst "me" keyword support. 2001-02-20 11:39:17 +00:00
Kris Kennaway 113a26d096 Previous commit was
Submitted by:	NAKAMURA Kazushi <[email protected]>
PR:		kern/25146
2001-02-20 11:13:03 +00:00
Kris Kennaway 0883de4ce6 Typo fix: compatability -> compatibility 2001-02-20 11:12:02 +00:00
David E. O'Brien f6868208a6 Back out a commit in controversy. 2001-02-20 09:08:18 +00:00
Luigi Rizzo e26d2d038f The previous solution for relative paths would clutter the
source directory -- crunchgen still generate relative paths
which is not what we want.
For the time being, use the following trick: in crunch.conf,
prefix relative paths by the string CWD which will be replaced
by the absolute path during the build process.
2001-02-20 07:47:53 +00:00
Luigi Rizzo ee88d8f126 More cleanup, including run crunchgen in the same directory as
crunch.conf so relative path have a better chance of working
2001-02-20 07:03:19 +00:00
Luigi Rizzo 08412382d0 Remove Makefile, it has been broken for quite some time and
its presence is confusing.
Remove "clean", its functions are now implemented by the main
"picobsd" script.
2001-02-20 04:37:56 +00:00
Luigi Rizzo 198044855f Miscellaneous cleanups of the script. 2001-02-20 03:31:04 +00:00
Luigi Rizzo 001e0393ef Take initial files from either mfs or floppy. 2001-02-20 03:24:30 +00:00
Luigi Rizzo 704663d00e Fix a relative pathname 2001-02-20 02:53:35 +00:00
Luigi Rizzo 6e78aa7830 Adapt to new scripts 2001-02-20 02:52:45 +00:00
Luigi Rizzo 10d65e62c9 Missing MD_ROOT_SIZE in kernel config file,
fix relative pathname in crunch.conf,
add missing mountpoints for /fd ad /wd in mfs.mtree
2001-02-20 00:45:51 +00:00
Luigi Rizzo 2753381fdd Missing MD_ROOT_SIZE in kernel config file, and removed a
relative pathname in crunch.conf
2001-02-20 00:34:17 +00:00
Luigi Rizzo 9c774d4485 Adapt to new picobsd build scripts. 2001-02-20 00:11:30 +00:00
Luigi Rizzo f0e35c2ae6 Remove this file, the description is now outdated, the structure
is much simpler and documented in the build script, and hopefully
sometime in the future in a manpage.
2001-02-20 00:10:56 +00:00
Luigi Rizzo d17d15afa1 Do not try to copy everything from the floppy... In fact
the only thing to exclude is the kernel, but for the time being
let's assume that the useful stuff is just in /etc/ and /root/
2001-02-20 00:10:07 +00:00
Luigi Rizzo 2e98b41a7a Adapt to new picobsd build scripts 2001-02-20 00:08:04 +00:00
Luigi Rizzo 4a74dbc467 Adapt to new scripts 2001-02-20 00:05:57 +00:00
Luigi Rizzo 809459e51e Adapt to the new build script -- some work is still necessary to
properly handle the "lang" specific parts.
2001-02-19 23:53:25 +00:00
Luigi Rizzo 26938f5935 Add the new picobsd build script, and remove the old ones.
This script should be a significant improvement over the old
ones for the following reasons (modulo bugs...):

 + it can be run from anywhere;
 + a single script does everything including cleanup;
 + removes the need for a number of makefiles used before;
 + it does not write anymore into /usr/src/release/picobsd/ ;
 + all the files produced by the compilation are put into a single
   directory (plus OBJDIR as specified by the various programs);
 + it has slightly better diagnosting and debugging modes;
 + it permits PicoBSD configurations to be placed anywhere;
 + configurations can now be as simple as two files -- PICOBSD
   and crunch.conf, thus removing the need for supporting
   language-specific versions. You just define a new floppy
   type and populate the tree.
2001-02-19 23:49:54 +00:00
Luigi Rizzo 6d9173dc64 Adapt the Makefile for kernel builds to the new script.
I am not convinced a Makefile is really the way to go for
building the kernel, but will fix that (if needed) in the future.
2001-02-19 23:36:35 +00:00
Luigi Rizzo 6fd8d3bfb9 Add new config file for picobsd build script 2001-02-19 23:35:24 +00:00
Luigi Rizzo ef0235e0c9 These Makefiles are not needed anymore 2001-02-19 23:32:57 +00:00
Luigi Rizzo c7999db915 Not needed anymore, the right defaults are in /etc/profile 2001-02-19 23:32:14 +00:00
Luigi Rizzo 2f3d26b201 Provide a default motd 2001-02-19 23:31:20 +00:00
Luigi Rizzo b3e4c80c36 New configuration files for picobsd 2001-02-19 23:24:30 +00:00
Luigi Rizzo 4bf29bfe55 Not needed anymore, this file is now in the main directory 2001-02-19 23:21:54 +00:00
Luigi Rizzo f53459faf8 not needed anymore. 2001-02-19 23:21:19 +00:00
Tor Egge 3bd012778a MFC: Remove freelists managed by Balloc/Bfree. Change __dtoa internal API.
PR:		15070
2001-02-19 22:48:29 +00:00
Jeroen Ruigrok van der Werven b4b11de193 MFC: Mention CVSROOT for successful make releases. 2001-02-19 14:27:06 +00:00
Archie Cobbs d44139f1eb MFC: example showing how to configure a node from the command line. 2001-02-19 04:08:04 +00:00
Kris Kennaway 54d9ae0b80 MFC: Format string paranoia (part of r1.3)
Approved by:	n_hibma
2001-02-18 23:45:27 +00:00
Hajimu UMEMOTO 1472aec126 MFC: IPv6 support for logger.
usr.bin/logger/Makefile:	1.1->1.2
	usr.bin/logger/logger.1:	1.6->1.8
	usr.bin/logger/logger.c:	1.6->1.7
2001-02-18 16:28:13 +00:00
Hajimu UMEMOTO e7394e7702 MFC: IPv6 support for syslogd.
usr.sbin/syslogd/Makefile:	1.3->1.4
	usr.sbin/syslogd/syslogd.8:	1.28->1.30
	usr.sbin/syslogd/syslogd.c:	1.73->1.74
2001-02-18 16:22:59 +00:00
Hajimu UMEMOTO 450f6836f3 MFC: IPv6 support for lpr.
usr.sbin/lpr/Makefile.inc:		1.5->1.6
	usr.sbin/lpr/common_source/lp.h:	1.13->1.14
	usr.sbin/lpr/common_source/net.c:	1.4->1.5
	usr.sbin/lpr/lpd/lpd.8:			1.16->1.17
	usr.sbin/lpr/lpd/lpd.c			1.17->1.18
2001-02-18 16:15:44 +00:00
Hajimu UMEMOTO 94ff4a0657 MFC 1.29->1.30
- __ivaliduser_sa() was introduced for IPv6 support to lpd
- iruserok_sa() and __ivaliduser_af() were re-organized to use
  __ivaliduser_sa()
- __icheckhost() was re-written to use getaddrinfo() instead of
  getipnodebyname()
- better handling of multiple destination addresses in rcmd()
2001-02-18 16:01:49 +00:00
Hajimu UMEMOTO ea6ca37b4c MFC: Add mibs to hold the number of forks since boot. New mibs are:
vm.stats.vm.v_forks
	vm.stats.vm.v_vforks
	vm.stats.vm.v_rforks
	vm.stats.vm.v_kthreads
	vm.stats.vm.v_forkpages
	vm.stats.vm.v_vforkpages
	vm.stats.vm.v_rforkpages
	vm.stats.vm.v_kthreadpages

	sys/kern/kern_fork.c:		1.92->1.93
	sys/sys/vmmeter.h:		1.21->1.22
	sys/vm/vm_meter.c:		1.43->1.44
	usr.bin/vmstat/vmstat.c:	1.41->1.42
2001-02-18 15:41:11 +00:00
Hajimu UMEMOTO 1e5a70b33d MFC 1.116->1.117: Export cp_time ("CPU time statistics") using SYSCTL_OPAQUE.
Approved by:	rwatson
2001-02-18 15:29:14 +00:00
Hajimu UMEMOTO 4c0c1e7f2d MFC 1.5->1.6: zero-cleared allocated prefix information when configured. 2001-02-18 15:24:32 +00:00
Hajimu UMEMOTO 5393ec4a14 MFC 1.15->1.16
- Don't try to send RA to lo0, gifN and faithN.
- ipv6_network_interfaces has all available interfaces to work for
  static configuration even if the host is end host.  When rtsol is
  invoked, singleness of interface is checked.
2001-02-18 15:21:32 +00:00
Hajimu UMEMOTO 70e99634dc MFC 1.87->1.88: Mention about rtadvd_interfaces. It should be
specified if you want use rtadvd.
2001-02-18 15:19:30 +00:00
Hajimu UMEMOTO 04c8b87383 MFC 1.4->1.5: on in6_ifdetach(), do not remove default route mistakenly 2001-02-18 15:12:47 +00:00
Hajimu UMEMOTO 84de7b5068 MFC: avoid conflicting #define symbol (s/FW_IFNLEN/IP6&/).
sbin/ip6fw/ip6fw.c:	1.2->1.3
	sys/netinet6/ip6_fw.c:	1.8->1.9
	sys/netinet6/ip6_fw.h:	1.8->1.9
2001-02-18 15:10:35 +00:00
Hajimu UMEMOTO 5a0e46287d MFC 1.1->1.2: Room to hold rules should be dynamically allocated. 2001-02-18 15:04:20 +00:00
Hajimu UMEMOTO 18fb8cf494 MFC 1.22->1.23: When ip6_fw_ctl() or soopt_mcopyout() return without success,
don't free mbuf.  It is already freed by these routins.
2001-02-18 15:02:12 +00:00
Hajimu UMEMOTO a1ce9148da MFC 1.7->1.8: permit icmp6 type <= 256 (was 32). 2001-02-18 14:53:38 +00:00
Jeroen Ruigrok van der Werven 95814dbbf0 MFC: Do not try to install dns-setup anymore. 2001-02-18 10:31:47 +00:00
Jeroen Ruigrok van der Werven a7a1245290 MFC: Remove seriously out of date DNS setup document. We have long
passed the BIND 4 days.
2001-02-18 10:29:22 +00:00
Luigi Rizzo 3684c3e289 mfsinfo is not used in RELENG_4. mfs info is contained in the kernel config
file.
2001-02-18 08:17:49 +00:00
Luigi Rizzo 6b2d4cee4d MFC: remove unused data structure definition 2001-02-18 07:12:25 +00:00
Luigi Rizzo d6992c0340 MFC: correct entry for atapi disks 2001-02-18 06:51:52 +00:00
Luigi Rizzo 287c275095 MFC: make correct entries for atapi disks 2001-02-18 06:48:54 +00:00
Luigi Rizzo d68dd08888 sync version number with -CURRENT 2001-02-18 06:47:07 +00:00
Kris Kennaway 92d06b2f00 My previous commit was overenthusiastic - it does not apply to RELENG_4.
Pointy hat to:	kris
2001-02-18 05:31:16 +00:00
Kris Kennaway 02bad996fb Back out previous revision, I had an old message from bde indicating
problems with it.
2001-02-18 04:06:49 +00:00
Gregory Sutter a1a0b618cb osreldate.h --> sys/param.h
Reviewed by:	peter, imp
2001-02-18 03:42:38 +00:00
Kris Kennaway 0f02abaf67 MFC: Correct definition of MAXHOSTNAMELEN 2001-02-18 03:00:12 +00:00
Kris Kennaway bd44089b88 MFC: Update definition of MAXHOSTNAMELEN, prevent buffer overflow in
long hostname
2001-02-18 02:58:15 +00:00
Kris Kennaway b443129b0c MFC: Update definition of MAXHOSTNAMELEN 2001-02-18 02:57:30 +00:00
Kris Kennaway e5725e9616 MFC: Format string paranoia 2001-02-18 02:54:35 +00:00
Kris Kennaway e713760dc5 MFC: Update definition of MAXHOSTNAMELEN, format string paranoia,
L_SET -> SEEK_SET
2001-02-18 02:54:11 +00:00
Kris Kennaway 0a27318d47 MFC: Format string paranoia 2001-02-18 02:47:49 +00:00
Kris Kennaway bdeddb9514 MFC: Correct reference to MAXHOSTNAMELEN 2001-02-18 02:44:42 +00:00
Kris Kennaway 560195e116 MFC: sprintf() -> snprintf() 2001-02-18 02:39:46 +00:00
Kris Kennaway 94857b28e3 MFC: MAXPATHNAMELEN -> MAXPATHLEN 2001-02-18 02:38:41 +00:00
Kris Kennaway 6a8f6f7e65 MFC: Fix memory leak 2001-02-18 02:37:32 +00:00
Kris Kennaway 159dbe3a95 MFC: Don't advocate use of getpid() in constructing tempfile names 2001-02-18 02:36:34 +00:00
Kris Kennaway 7e9f45a97b MFC: sprintf() -> snprintf() 2001-02-18 02:30:57 +00:00
Kris Kennaway cfd2524c39 Previous commit should have read:
MFC: Format string paranoia
2001-02-18 02:29:52 +00:00
Kris Kennaway 03930333d4 MFC: r1.16: code cleanups 2001-02-18 02:28:31 +00:00
Kris Kennaway bba1f0c35c MFC: r1.9: code cleanups 2001-02-18 02:27:54 +00:00
Kris Kennaway b6d98c3472 MFC: Format string paranoia 2001-02-18 02:26:48 +00:00
Kris Kennaway 1915c4bb18 MFC: Don't use insecure temporary files 2001-02-18 02:26:20 +00:00
Kris Kennaway 63762e8e48 MFC: vsprintf() -> vsnprintf() 2001-02-18 02:24:44 +00:00
Kris Kennaway 6e6c7372ef MFC: Better handling of tempfiles 2001-02-18 02:19:22 +00:00
Kris Kennaway 027778cd48 MFC: Correct definition of MAXHOSTNAMELEN in uncompiled code 2001-02-18 02:13:50 +00:00
Kris Kennaway 55164c94c1 *** empty log message *** 2001-02-18 02:13:14 +00:00
Kris Kennaway bab6dadf00 MFC: 120 seconds is not 3 minutes 2001-02-18 02:11:57 +00:00
Kris Kennaway 8221b008b1 MFC: Use secure tempfiles during build 2001-02-18 02:10:18 +00:00
Paul Saab 5e899a32c2 MFC: [rev 1.19] Make ConnectionsPerPeriod non-fatal for real. 2001-02-18 01:39:05 +00:00
Darren Reed 02285b6c83 remove include for <sys/osreldate.h> when compiling kernel 2001-02-17 20:54:50 +00:00
Darren Reed b9de0d228a merge changes from 3.4.8 to 3.4.16 2001-02-17 20:42:08 +00:00
Darren Reed 788ae9e368 Merge changes from 3.4.8 to 3.4.16 2001-02-17 20:36:38 +00:00
David E. O'Brien cc5e924c9a Support GCC 3.0. 2001-02-17 20:24:37 +00:00
David E. O'Brien 671b77bdf3 MFC: rev 1.32 (add `PACKAGEROOT')
This version is enhanced a little so the same code will work on RELENG_3
(should someone care to MFC it), RELENG_4, and -CURRENT.
2001-02-17 20:03:02 +00:00
Justin T. Gibbs ab77e6c3a0 MFC: Only honor the CHANNEL_B_PRIMARY flag for twin channel devices. 2001-02-17 01:53:59 +00:00
Andrew Gallatin 3c39b47126 MFC: fix interrupt handling on AS1000 and AS1000A. This is an MFC of
1.8 and 1.9
2001-02-17 00:04:03 +00:00
Bruce A. Mah 1dd139bfba MFC: Prevent "pkg_version -c | sh" abuse.
pkg_version.pl: 1.15->1.16
2001-02-16 17:52:34 +00:00
Archie Cobbs 99bbda2438 MFC: (rev. 1.89): relocate unicast Ethernet frame hardware addresss check. 2001-02-16 17:41:59 +00:00
Archie Cobbs adae01ddd1 MFC: fix an erroneous comment. 2001-02-16 17:37:48 +00:00
Ruslan Ermilov ac8053467b MFC: (rev 1.12) do not include non-absolute pathnames in manpath. 2001-02-16 12:12:20 +00:00
David E. O'Brien 970085df31 MFC: version 2.7.2 2001-02-15 12:38:21 +00:00
David E. O'Brien 11d1b88d45 MFC: version 2.7.2 2001-02-15 12:32:05 +00:00
Luigi Rizzo 7c45737684 MFC: do not enter an infinite loop with /32 routes, and
support a dummy flag (-n) for compatibility with standard
netstat.
2001-02-15 00:06:52 +00:00
Luigi Rizzo 39e8084baa New files from floppy.tree 2001-02-14 23:47:02 +00:00
Luigi Rizzo 35337a9990 It is better to have these files to mfs_tree, as they are likely
to be unaltered in most installations.
2001-02-14 23:44:06 +00:00
Luigi Rizzo 984142a61b mount floppy over /fd, so that in case the mount fails we might
still find some useful files in that place.
Remove files which have a matching compressed one (or gunzip complains).
2001-02-14 23:35:11 +00:00
Luigi Rizzo 50dde81063 now that the loader is not used anymore these two files are useless. 2001-02-14 23:32:52 +00:00
Luigi Rizzo 69553037e5 enable command line editing 2001-02-14 23:31:03 +00:00
Luigi Rizzo eca3f811cf Rearrange the script so that a copy of the floppy.tree can
also be stored into the mfsroot image at /fd , which is also
used as a mountpoint for the floppy. This way, the initial
/etc/rc script can try to mount a floppy, and even if it fails
you will find some useful stuff there.

This lets you boot a picobsd /kernel over NFS using etherboot
or perhaps pxeboot.

The copy is controlled by a variable at the beginning of the script,
depending on what you place there the space overhead is very
limited (and potentially you can save something).
2001-02-14 23:29:58 +00:00
Jonathan Lemon 1b4eb1cbe0 MFC: r1.29, coredump fix. 2001-02-14 18:55:31 +00:00
Jeroen Ruigrok van der Werven 8de861c62a MFC: Fix typo, insersion -> insertion 2001-02-14 13:24:38 +00:00
Jeroen Ruigrok van der Werven 9aabf18f4f MFC: Fix typo and comma placement in comment. 2001-02-14 13:17:21 +00:00
Adrian Chadd 79d01374ee Add the vlan pseudo-device to LINT.
It exists in NOTES (in -current) but it wasn't added when the vlan code
came in - instead, it was added by peter when he did a config(8) change.
(1.782 -> 1.783)
2001-02-14 11:38:40 +00:00
Brian Somers f373ba4e2c MFC: Implement $daily_status_security_output 2001-02-13 23:15:00 +00:00
Tor Egge 0bd83ec873 MFC: Enable use of DHCP extensions. 2001-02-13 22:33:44 +00:00
Tor Egge 4154bebeba MFC: Defer assignment of low level interrupt handlers for PCI interrupts. 2001-02-13 22:32:45 +00:00
Brian Somers 4f38b61f14 MFC: purgedir /var/run rather than rm /var/run/* 2001-02-13 22:31:19 +00:00
Doug Barton b7f557c07c MFC 1.28 which adds rotation for the console log. There
are also some gratuitous ws diffs, but might as well
reduce the diff to -current while I'm here.
2001-02-13 20:55:44 +00:00
Bruce A. Mah b1b31f5591 MFC: isp(4) update, OpenSSH vulnerability from SA-01:24 fixed, compat3x
distribution updated.
2001-02-13 19:28:37 +00:00
Jacques Vidrine b2c43554ea MFC 1.56: Export environmental variables set by PAM modules. 2001-02-13 13:05:20 +00:00
Jacques Vidrine 21c9967e5d MFC 1.14: HAVE_PAM_GETENVLIST 2001-02-13 13:04:59 +00:00
Warner Losh 5aed45e21e MFC: make xe driver depend on card also being configured. 2001-02-13 04:41:51 +00:00
Will Andrews 60b0893a9b MFC: 8 months of bugfixes by myself, des, kris, wsanchez, and a few PR
submissions.  Style changes were purposefully avoided.
2001-02-13 03:13:58 +00:00
Jimmy Olgeni 4becac882c Ran a check with ispell, found some typos. 2001-02-12 20:49:15 +00:00
Jimmy Olgeni 9b1a6aed3f Remove spaces at end of lines (whitespace only) 2001-02-12 20:27:15 +00:00
Brian Somers 0e103afd12 MFC: Make realhostname*() trimdomain() properly. 2001-02-12 13:12:53 +00:00
Alexey Zelkin 66fb915b3e MFC: use .Rv macro 2001-02-12 08:43:29 +00:00
Kris Kennaway 3c6515cac1 MFC: Prevent Bleichenbacher attack. 2001-02-12 06:45:42 +00:00
Jordan K. Hubbard 269c85c4de MFC: document IPFILTER_DEFAULT_BLOCK
PR:	21777
2001-02-12 02:36:35 +00:00
Archie Cobbs 4d5b3b299d MFC: note that packets read as outgoing have invalid IP header checksums. 2001-02-12 02:04:47 +00:00
Matt Jacob 20e1eade16 MFC: fixing SSD_KEY_RECOVERED_ERROR to be the non-error it is and making
MFC: sure we're chatty on ABORTED COMMAND errors.
2001-02-12 01:28:30 +00:00
Matt Jacob cf34018b30 MFC: removal of ISP2100_FABRIC. Insertion of extra loop states. More
MFC: isp_control functions && defines && explanations. Ditto isp_control.
2001-02-12 01:19:52 +00:00
Matt Jacob 6a5d39b7f2 MFC: FC-AL position map structure. 2001-02-12 01:19:04 +00:00
Matt Jacob 507bd2d42e MFC: implementation of isp_fc_runstate function. 2001-02-12 01:18:43 +00:00
Matt Jacob 2e702e04a9 Roll version minor. MFC: removal of ISP2100_FABRIC. 2001-02-12 01:18:24 +00:00
Matt Jacob 74186a304f MFC: cleanup of adapter role, 'fixing' of target mode. 2001-02-12 01:17:55 +00:00
Matt Jacob a00496ebe1 MFC: major rework of loop events. 2001-02-12 01:16:49 +00:00
Matt Jacob 7e41d12a39 MFC: removal of MAINTAINER (let the games begin!) 2001-02-12 01:13:21 +00:00
Matt Jacob 2846a2e273 MFC: update to latest && greatest f/w 2001-02-12 01:11:50 +00:00
Warner Losh 91a6fdb508 1.141.2.20 changed WMAKEENV to KMAKEENV in the kernel build targets.
This breaks make buildkernel on a 4.0-release box due to the binutils
issue.  Add KMAKEENV kernel definitions from current.  With the the
conditional definition of OBJFORMAT_PATH, this effectively merges
1.184 from -current.  This makes the window of breakage at 8 days
(2001-02-02 through 2001-02-10).
2001-02-11 03:51:45 +00:00
Matthew Dillon e9edab82e9 MFC 1.22, finish draining input to avoid unsightly broken pipe errors from
gzcat.  makewhatis should not assume large pipes or gzcat-exits-first
process semantics  This will slow makewhatis down by about 15%, but makewhatis
is not considered a critical program.
2001-02-10 20:42:46 +00:00
Wilko Bulte 184648d779 -Document DS20 serial/graphics console (as it bit me yesterday.. again.. grr)
-CS20 can have 2 CPUs but we don't have SMP currently on alpha
2001-02-10 20:22:06 +00:00
Josef Karthauser f38819782d MFC: Deprecate the use of the CD_DRIVE, CDPLAY, DISC and MUSIC_CD
environment variables in favour of CDROM.

Discussed on:	[email protected]
2001-02-10 18:56:19 +00:00
Justin T. Gibbs 46af6dad77 MFC: Merge to HEAD as of today. 2001-02-10 18:11:36 +00:00
Ian Dowse a57b976829 MFC: Improve detection and handling of ffs directory corruption.
1.44:  Fix test for a read-only filesystem in ufs_dirbad().
 1.45:  Check that directory entries fit within their DIRBLKSIZ block.
2001-02-10 17:43:29 +00:00
David E. O'Brien 8f8da89c8a Reformat the lib list. 2001-02-10 06:49:54 +00:00
David E. O'Brien bd84d9ae31 MFC: add 3.5.1 libs that don't exist in 4.2-RELEASE (most do in 4.0-R).
These are:  libalias.so.3 libfetch.so.1 libss.so.2 libvgl.so.1
2001-02-10 06:49:26 +00:00
cvs2svn 6f4aeda1c1 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-02-10 06:42:00 +00:00
David E. O'Brien b4674fde4d MFC: add libc_r.so.4 2001-02-10 06:33:04 +00:00
cvs2svn 8a69f5ef79 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-02-10 06:29:54 +00:00
David E. O'Brien f442eca5f9 MFC: 3.5.1 libs. 2001-02-10 06:26:57 +00:00
Kris Kennaway 309ea5649d MFC: Note the difference between crypto/ and secure/ 2001-02-10 04:48:38 +00:00
Bruce A. Mah 5569751367 MFC: ed(4) bugfix, vidcontrol(1) -g, rfork_thread(3). 2001-02-09 23:50:15 +00:00
Luigi Rizzo 7305e73113 Convert to the use of <sys/queue.h> macros.
In the process, change a couple of variable and field names
so we do not use the same exact name for types, variable and fields
and hopefully can understand which is which.

On passing, simplify the logic in a few places.
This commit has no functional changes.
2001-02-09 23:18:09 +00:00
Luigi Rizzo 0e0019a1fe Convert to the use of <sys/queue.h> macros.
Do not dispose mbuf that the firewall denies, the upper layers
might have some good use for them.
2001-02-09 23:13:41 +00:00
Bill Paul e176da6369 MFC: add support for reading the station address from the APC CMOS RAM
on boards with the SiS630E chipset.
2001-02-09 19:41:23 +00:00
Jeroen Ruigrok van der Werven 50b4581544 MFC: Fix memory leaks due to device_get_children() calling and not
free()'ing.
2001-02-09 09:50:15 +00:00
Matthew Dillon e14e2af09b All the world is not an i386. MFC buffer_map = system map for alpha
and pc98.
2001-02-09 06:12:52 +00:00
Peter Wemm 2ad496b5a3 MFC: 1.95,1.96: All the VFS are not UFS. This stops tail -f from
doing silly things on an NFS file.
2001-02-09 04:50:03 +00:00
Matthew Dillon dda8d86ef5 MFC Tor's buffer cache fixes. This turns buffer_map into a system map,
gets rid of bogus allocations of backing VM objects for it, and makes
a minor bug fix to the buffer cache KVM hysteresis.
2001-02-09 02:58:49 +00:00
Luigi Rizzo ce14c0ab74 MFC: fix a serious bug in the ed driver when very short packets are
received (with bpf or bridging active). Some code was erroneously
assuming that the packet contained at least the ethernet header,
and as a result a negative length was later written into the mbuf
header, eventually resulting in random panics.

This bug has been reported for some time, but i was never able to
reproduce it locally because I had the code fixed in my sources
a couple of weeks ago, and just forgot to commit the fix.
2001-02-08 23:00:23 +00:00
Maxim Sobolev 93aa2c36e1 MFC:
New option `-g' to allow selecting custom text geometry in VESA_800x600 raster
text mode.
2001-02-08 18:58:12 +00:00
Maxim Sobolev 5c006f430e MFC: Don't hardcode geometry of VESA_800x600 raster text mode (80x25). 2001-02-08 18:57:38 +00:00
Yoshihiro Takahashi 6b7ce2194a MFC: Added pc98 apm support. 2001-02-08 13:43:41 +00:00
Jacques Vidrine 1ac316a81c MFC 1.55: Call pam_setcred. 2001-02-08 12:50:58 +00:00
Jeroen Ruigrok van der Werven 85499cec5c MFC: Add list.h to the list of to be installed header files. 2001-02-07 21:10:19 +00:00
Poul-Henning Kamp cc98723fd2 Use correct index when counting short errors. 2001-02-07 08:44:42 +00:00
Cameron Grant 098b25cdf7 mfc of rev 1.49: modify default buffer size heuristic to not max out at 4k.
mpg123 and other apps that do not explicitly request a block size should now
behave better under load.
2001-02-07 07:19:34 +00:00
Luigi Rizzo ff37e7d684 Another sweep at the bridge/ipfw/dummynet code, thanks to the bug
reports received over the last days. Among other things, this
commit should avoid some of the problems with ARP replies being
copied to the wrong interface.

In detail (and modulo errors)

bridge.c:
 + comment out some verbose debugging messages;
 + improve handling of configurations with multiple interface clusters.
   Do not permit leaks of packets from one cluster to another.
 + simplify the structure of bdg_forward()

net/if_ethersubr.c:
 + minor simplifications related to the change of interface in bdg_forward();

netinet/if_ether.c
 + minor simplifications in the arp error handling code.

netinet/ip_fw.c
netinet/ip_fw.h
 + #define and use a symbolic constant for the return value from ip_fw_chk

netinet/ip_input.c
netinet/ip_output.c
 + same as above, plus improve error handling in case the firewall
   decides to change the mbuf pointer.
2001-02-07 01:03:13 +00:00
Paul Saab eb8cbcced5 MFC: [rev 1.15] Add pointers to rfork_thread(3). 2001-02-07 00:59:41 +00:00
Peter Wemm 3fd8f519b6 Fix a typo. Obviously this has never been used before, as results would
have not been satisfactory.
2001-02-07 00:26:52 +00:00
Peter Wemm 736ede7e2b MFC: rfork_thread(3) 2001-02-07 00:12:45 +00:00
Ian Dowse 824ec587f7 MFC: Properly range-check the inode 'di_size' field.
PR:		kern/15065
2001-02-06 20:39:09 +00:00
Cameron Grant 8fc82fc475 conditionalize 'hwptr went backwards' message 2001-02-06 02:26:08 +00:00
Dirk Froemberg b14ceb373a Fix detection of flags. Otherwise directory names containing '-'
are handled improperly.

PR:		kern/24868
Submitted by:	Andre Albsmeier <[email protected]>
2001-02-05 23:04:57 +00:00
Bruce A. Mah 4b00088f9d Note that find -empty works on files, not just directories.
Submitted by:	olgeni
2001-02-05 22:06:33 +00:00
Bruce A. Mah 4c1f0a3778 MFC: pcm(4) changes including kobj and new SoundBlaster drivers,
pkg_create(1)/pkg_install(1) and bzip2-ed packages, pkg_info(1) -g.
2001-02-05 21:59:00 +00:00
Julian Elischer a4101c58e1 MFC: 1.76->1.77 fix bad patch 2001-02-05 21:30:20 +00:00
Julian Elischer 9f3df5bf86 Shuffle brackets (should be same meaning as last) 2001-02-05 16:01:30 +00:00
Julian Elischer 73356596e2 oops left an extra ')' in there 2001-02-05 15:47:13 +00:00
Chris D. Faulhaber f65c779d6e MFC 1.12:
use more secure temporary files
2001-02-05 13:53:03 +00:00
David Malone 9d1d37ea7e MFC: Stop syslogd looping messages to the console.
PR:		24704
Tested by:	Tony Byrne <[email protected]>
2001-02-05 13:36:12 +00:00
Maxim Sobolev 781abe9529 MFC: add ability to handle bzip2-compressed packages. 2001-02-05 10:02:52 +00:00
Maxim Sobolev a74945b35b MFC:
- Add a missed prototype for the recently added show_cksum() function;
- put in "explicit braces to avoid ambitious else" suggested by gcc(1).
2001-02-05 09:58:28 +00:00
Julian Elischer d88f71c5e9 reverse last commit.. I was on something... (gotta get a better suppler!..)
Obviously on the same stuff: Archie
2001-02-05 07:10:07 +00:00
Julian Elischer 354cb077ee Fix bug introduced recently in node name lookup.
Submitted by: [email protected]
2001-02-05 07:01:23 +00:00
Jordan K. Hubbard 4897d00941 MFC: add -g flag to pkg_info for verifying checksums. 2001-02-05 02:42:05 +00:00
Archie Cobbs eb321b51ad MFC: add a note that "proxy" is required with "-d" in some instances. 2001-02-05 00:51:31 +00:00
Brian Feldman 7efda93dc3 MFC: 1.9, sun_addr corection
Submitted by:	Alexander Leidinger <[email protected]>
2001-02-04 20:24:33 +00:00
Brian Feldman ece89435b9 MFC: Don't return nothing from a non-void function. 2001-02-04 20:21:06 +00:00
Dan Moschuk e35ea3868e MFC: small typo "mount a" ==> "mount an" 2001-02-04 20:07:47 +00:00
Robert Watson ad1582248f o MFC of 1.10, add a commented pam_kerberosIV.so entry that can be
uncommented to enabled KerberosIV login via SSH.  This is required
  as of a move to using PAM for sshd, and was left out in the original
  PAM/SSH commit.
2001-02-04 16:52:16 +00:00
David Malone 24c43eb482 MFC: Robuster argument parsing. Better easter calculation. 2001-02-04 14:58:29 +00:00
David Malone aece6d1b10 MFC: Add wimpy version of the M_WRITABLE macro to -stable. Use it
to allow compression into mbufs with a single reference.
2001-02-04 14:49:59 +00:00
Wilko Bulte b95bf6c105 Document API CS20. 2001-02-04 12:11:56 +00:00
Julian Elischer d9f779b46c MFC: 1.74->1.75
Make the code act the same in the case of BRIDGE being defined, but not
turned on, and the case of it not being defined at all.
i.e. Disabling bridging re-enables some of the checks it disables.

Submitted by: "Rogier R. Mulhuijzen" <[email protected]>
2001-02-04 09:25:14 +00:00
Robert Watson 1f0e5aaa2b A recent commit (1.131.2.13) removed the security fix associated with
FreeBSD-SA-01:08, breaking the "established" TCP matching flag even
more than it was prior to the security advisory.  Reinstate the fix by
restoring the conditional assocated with entering tcpflg_match().

Reported by a number of people via send-pr, security-officer,
et al., including:

  Steven Farmer <[email protected]>
  Bernd Luevelsmeyer <[email protected]>
  Andrew Gordon <[email protected]>

Thanks to those people for bringing this to our attention in such a
timely manner.  An updated advisory and/or announcement to the
freebsd-stable mailing list will be forthcoming, once all parties have
confirmed that this resolves the problems they were experiencing.

PR:		24833
Approved by:	security-officer
Slap on the wrist to:	luigi
2001-02-04 05:48:59 +00:00
Toshihiko ARAI 057ec4cafd MFC (1.23): Add support for PC-card router configuration. (MFPAO) 2001-02-04 04:41:34 +00:00
Toshihiko ARAI b98b69138e MFC: Add support for SMC91C100FD chip of MELCO LPC-TX. 2001-02-04 04:38:38 +00:00
Brian S. Dean 7553e3eff5 MFC: rev 1.16 - print out the device name when the mount fails 2001-02-03 21:22:39 +00:00
Brian S. Dean 75fd39c28f MFC: rev 1.20 - print out the device name when the mount fails 2001-02-03 21:21:55 +00:00
Wilko Bulte 35d4156d60 Document API CS20 support.
HARDWARE.TXT update to follow.
2001-02-03 18:38:24 +00:00
Søren Schmidt e204686fa8 MFC:
Add acdNt* device nodes.
2001-02-03 16:16:40 +00:00
Gerard Roudier c384defe2f MFC: from sym_hipd.c revision 1.23 2001-02-03 16:16:27 +00:00
Cameron Grant bb13b297c2 properly #ifdef dynamic sysctl stuff 2001-02-03 02:56:36 +00:00
Cameron Grant 6ceebbb3c8 remove old sb driver, add new sb8/sb16 drivers 2001-02-03 02:14:47 +00:00
Cameron Grant 1c28aedc96 remove old sb newpcm driver 2001-02-03 02:13:03 +00:00
Cameron Grant 38a9462b1b new newpcm driver modules for sb8/sb16 2001-02-03 02:09:24 +00:00
Cameron Grant d8071b6677 update sound modules for new code 2001-02-03 02:07:12 +00:00
Cameron Grant 840f6d6857 oops, left these out of my previous commit. 2001-02-03 01:40:27 +00:00
Cameron Grant bfb17e24c0 MFC of many improvements, including kobjification, new sb8/sb16 code,
setblocksize support for lower latencies.  this is the sound code from
-current as of 01:00GMT 2001/02/03.
2001-02-03 01:29:12 +00:00
David Malone 5bcbd901fe MFC: 1.27 Allow overallocated programs to lower their memory usage. 2001-02-02 21:26:38 +00:00
Matthew Dillon ae035384d8 MFC 1.81, fix race between syncer and umount. 2001-02-02 21:22:44 +00:00
Matthew Dillon a71847a4e5 MFC 1.148, 1.149 - use mark/scan to avoid cpu loop waiting for interrupt when
a buffer is skipped due to being busy.  Continue to ensure that a MNT_WAIT
fsync drains all buffers to avoid panic in umount/vinvalbuf
2001-02-02 21:20:24 +00:00
Matthew Dillon c0e4843fec MFC 1.19, imply -c when -S is specified. 2001-02-02 21:16:34 +00:00
David Malone 6c0c1c59cc MFC: 1.39 Fix up references to lint. 2001-02-02 21:06:51 +00:00
Cameron Grant 664bf01dab MFC: kobj functionality
this does not change the general driver interface or affect any system other
than altering the build process slightly.

the process of generating .c and .h files from .m files is changed by the
introduction of makeops.pl which simply determines if it is being run on a
device interface .m file or a kobj .m file and calls makedevops.pl or
makeobjops.pl as appropriate.  the determination is done by checking for the
presence of 'KOBJ' in the first line of the file- this should be in a
comment.

Approved by:	dfr (in principle), -arch
2001-02-02 19:49:14 +00:00
Bruce A. Mah 6ad6bade17 MFC: "make buildkernel" changes (especially KERNEL->KERNCONF). 2001-02-02 17:34:35 +00:00
Bruce A. Mah 17f5171eb9 BIND update now has security advisory number. 2001-02-02 17:08:05 +00:00
Joerg Wunsch 79787f07c7 MFC: rev 1.103, prevent the Maxoptix Tahiti 1 from responding on all LUNs. 2001-02-02 16:12:58 +00:00
Julian Elischer 3784f19592 MFC: Don't dereferrence freed structures. 2001-02-02 11:59:27 +00:00
Peter Wemm 6b5f32027f MFC a few things related to buildkernel:
- add the reinstallkernel target (does a make reinstall)
- prefer KERNCONF to KERNEL, but accept KERNEL anyway (with a pointer
  to KERNCONF, but not as annoying as on -current)
- use 'make clean' instead of 'config -r'
- add a NO_KERNELCLEAN option to avoid a clean. NOCLEAN is respected.
- buildkernel checks to see if a kernel name was supplied
- Allow changing the installed kernel name..
  eg: make buildkernel KERNCONF=GENERIC INSTKERNNAME=kernel.GENERIC

These should largely be transparent and should not break anything
or anyone.  It should enable consistant doc targets between -current
and RELENG_4 now.
2001-02-02 08:33:47 +00:00
Luigi Rizzo a6e634875a Assorted bridge+ipfw+dummynet fixes. The general goal of this set
of patches is to reduce the number of places where shared mbuf
clusters are modified.

In detail:
ip_fw.c:
    modified the ip_fw_chk interface (so that it does not consume
    the buffer unless strictly necessary).

ip_input.c, ip_output.c, bridge.c:
    reflect above changes.

if_ethersubr.c:
    avoid dereferencing pointers to an mbuf chain after it has been
    freed. Also fix some bugs when interfaces are not part of
    a bridging cluster.

ip_dummynet.[ch]
    largely simplified the WF2Q+ implementation removing a redundant
    data structrure.

bridge.[ch]
    fix the forwarding loop to avoid modifying the packet when
    possible.
2001-02-01 20:25:09 +00:00
Gregory Neil Shapiro 1a743d69f3 sendmail has been upgraded to 8.11.2 2001-02-01 01:00:55 +00:00
Gregory Neil Shapiro 520d449f8a MFC: Import sendmail 8.11.2 2001-02-01 00:54:55 +00:00
Ruslan Ermilov 0ec0902008 MFC: (rev 1.15) Do not call freeaddrinfo(res0) twice.
PR:		bin/21476, bin/24745
2001-01-31 08:24:39 +00:00
Luigi Rizzo 407cff2d11 Make sure files on the floppy have root as owner (or things
like sshd might not work, e.g. prevent you from logging in).
2001-01-31 01:56:44 +00:00
Poul-Henning Kamp e732875dba Add musycc 2001-01-30 16:52:59 +00:00
Bruce A. Mah 9fc484e1f7 MFC: cs(4) updates, bridge(4)/dummynet(4) updates, ahc(4) updates,
cd(4) support for writeable devices, find(1) -empty, ldconfig directory
ownership/permissions checks.
2001-01-30 16:20:03 +00:00
Peter Wemm 2a3b222dc2 MFC: -empty switch for searching for empty directories. (From OpenBSD) 2001-01-30 14:45:02 +00:00
Jeroen Ruigrok van der Werven d413a1b204 MFC: Update port_after.h to reflect FreeBSD values. 2001-01-30 12:28:46 +00:00
Bruce A. Mah 91f35f48d3 Update for security advisories: 01:11, 01:12, BIND update/bugfix. 2001-01-29 23:55:49 +00:00
Luigi Rizzo 0c0a695964 Update the kernel config file with a reasonable set of
devices and options.

Put a good set of utilities in crunch.conf and document what you
need and why and what are the options.
2001-01-29 22:40:02 +00:00
Jeroen Ruigrok van der Werven e74e87177b MFC: BIND 8.2.3 2001-01-29 21:46:22 +00:00
Jeroen Ruigrok van der Werven 848e24a134 MFC: BIND 8.2.3 plus support fixes 2001-01-29 20:40:22 +00:00
Søren Schmidt 00b91253f6 MFC:
Dont close tray on open.
When blocksize is set to 2352, alwas read 2352 bytes. VCD support.
2001-01-29 18:07:18 +00:00
Jun Kuriyama 3351a1eecc MFC:
Return exit value 0 on success when PID is specified.
2001-01-29 08:07:26 +00:00
Kenneth D. Merry d216be6fb5 MFC, rev 1.44:
Turn off the load_eject bit in cdstartunit().  It causes an `Invalid
field in CDB' error when attempting to start a caddy-type CD drive.

Submitted by:	joerg
2001-01-29 01:53:55 +00:00
Kenneth D. Merry ca28f35d1a MFC, writeable CD support.
This allows writing to DVD-RAM, PD and similar drives that probe as CD
devices.  Note that these are randomly writeable devices, not
sequential-only devices like CD-R/CD-RW drives, which are supported
by cdrecord.

The following files/revisions have been merged:

scsi_cd.c:		the rest of 1.42 and all of 1.43
subr_diskslice.c:	1.92
diskslice.h		1.40

Reviewed by:	bde (original changeset)
2001-01-29 01:50:53 +00:00
cvs2svn 236d1970e3 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-01-28 23:00:23 +00:00
John Polstra e4f2e2ff24 MFC 1.77 -> 1.79: Document the "ldconfig_insecure" variable. 2001-01-28 20:58:32 +00:00
John Polstra 65810868ec MFC: Add a knob "ldconfig_insecure" to control whether the ldconfig
security checks are bypassed or not.

Merges in the following revisions from the main branch:

    rc                  1.224
    defaults/rc.conf    1.74
2001-01-28 20:57:35 +00:00
John Polstra ddaeb1b8c2 MFC: Make ldconfig check directory ownerships and permissions for
greater security.  Add -i option to disable these checks.

Merges in the following revisions from the main branch:

    elfhints.c          1.4, 1.5, 1.6
    ldconfig.8          1.21, 1.22, 1.25
    ldconfig.c          1.33, 1.34
    ldconfig.h          1.3
2001-01-28 20:55:09 +00:00
Wilko Bulte ae8db0f715 Document which options to use for API UP1[01]00 2001-01-28 19:21:46 +00:00
Wilko Bulte 2748c6bf11 API UP1100 mainboard has been verified to work OK. 2001-01-28 10:07:51 +00:00
Wilko Bulte 472e9bb8f2 API UP1100 mainboard has been tested and found to work fine on FreeBSD. 2001-01-28 10:05:51 +00:00
Justin T. Gibbs d1a2954da1 MFC: Pull all changes in from the head. 2001-01-27 20:56:28 +00:00
Matthew Dillon 9dc1646b5d MFC 1.113 - protect vm_pager_page_unswapped(). 2001-01-27 20:54:19 +00:00
Mark Murray af7586fe23 Allow non-superusers to do the basic (block/poll) ioctls. 2001-01-27 09:02:52 +00:00
Brian Feldman e860ede10a Issue an error message about ConnetionPerPeriod's being deprecated,
but don't exit.  Disable canonical name redirection for now.
2001-01-27 07:48:28 +00:00
Luigi Rizzo f74ce85f57 enable handling of arrow keys for the shell. 2001-01-27 03:10:53 +00:00
Archie Cobbs e3f04353ab MFC: (rev. 1.2) fix bug showing data beyond the end of certain NBT packets. 2001-01-26 23:58:42 +00:00
Luigi Rizzo 32ef32f4c2 Do not terminate if it fails to clean something. 2001-01-26 20:57:23 +00:00
Luigi Rizzo d71ae3aa30 Better formatting of the final report. 2001-01-26 20:56:19 +00:00
Luigi Rizzo 2260c20a99 Be more silent when building the objects, and do not block
if fails to clean something.
2001-01-26 20:55:34 +00:00
Bruce A. Mah 31f3169e15 Catch up release notes with security advisories: 00:77 (mistakenly
numbered as 00:78), 01:08, 01:09.
2001-01-26 20:26:01 +00:00
Luigi Rizzo b1dbb72d84 MFC: bring in latest bunch of bugfixes and patches to make bridging
and dummynet work. Once again the reason for this quick MFC is that
nobody that I know is testing this code in -CURRENT (though I
tested it briefly and it seems to work there as well), whereas there
is a number of people using it in -STABLE.

In detail, the changes to the code (committed to both -CURRENT and -STABLE)
over the last week have been the following:

 + bridge.c: assorted bugfixes, and several performance improvements
   aimed at reducing the number of copies and mbuf usage. For what
   matters, the time spent in bdg_forward is now cut by more than 50%
   in the common cases, and most of the packets are kept contiguous
   in a single cluster from entry to exit.

 + ip_dummynet.c: final cleanup to the weighted fair queueing code,
   which now seems to work reliably.

 + ip_fw.c: removed the #ifdef STATEFUL lines, since there is really
   no way to compile this file without stateful support.
   Also try to reduce the number of places where ipfw depends on
   fields in host order. This is in an attempt to make the shared
   parts of mbuf chains as much as possible readonly.
2001-01-26 19:57:06 +00:00
Jeroen Ruigrok van der Werven 7f4a4613cd MFC: Fix MAXHOSTNAMELEN, fix strcpy. 2001-01-26 15:40:50 +00:00
Yoshihiro Takahashi 6815b63283 Merged from sys/conf/files.i386 revision 1.307.2.9. 2001-01-26 13:53:05 +00:00
Yoshihiro Takahashi a3ad9fce31 Merged from sys/i386/isa/isa_compat.h revision 1.27.2.7. 2001-01-26 13:52:25 +00:00
Hajimu UMEMOTO 0a4a7cf13d MFC 1.7->1.8: s/err1/errx/.
http://X68000.startshop.co.jp/~68user/cgi-bin/wwwboard.cgi?log=1673
2001-01-26 13:48:54 +00:00
Julian Elischer 9703cd7660 MFC 1.40->1.41 Don't pagefault when a module load fails. 2001-01-26 11:51:35 +00:00
Julian Elischer eaad747263 Make documentation match code. 2001-01-26 11:37:09 +00:00
Julian Elischer 567d052125 Swap egress hooks for packets entering on monitor hooks 2001-01-26 11:36:30 +00:00
Jordan K. Hubbard bc4b33554a MFC: use proper proxy URLs and description. 2001-01-26 08:47:30 +00:00
Alexey Zelkin 464585a37e Really disconnect morse.6 from build 2001-01-25 21:08:30 +00:00
Warner Losh fb9afb33eb MFC: Merge the -current cs driver to stable. All of the current
driver has been merged, except for the now only in -current
OLDCARD/NEWCARD compatibiltiy code.  The isa attachment appears to
work.  The pccard attachment is believed to work on IBM EtherJet
pccards.

Yea!  We have one fewer isa compat drivers in -stable :-).
2001-01-25 20:13:52 +00:00
Warner Losh 751c39de81 Partial merge of 1.5:
change driver module name from sn to if_sn.
2001-01-25 19:40:27 +00:00
Warner Losh 47cf9ba953 MFC: 1.3->1.10. This eliminates a bunch of unnecessary includes, changes
the module name to if_sn and makes isa attach correctly and work.
2001-01-25 19:38:18 +00:00
Alexey Zelkin 64e4dcee83 temporary disconnect morse.6 from build (unitl repo-copy) 2001-01-25 13:25:20 +00:00
Alexey Zelkin 2bd98ab152 MFC: split morse(6) to own manual page 2001-01-25 13:17:51 +00:00
Alexey Zelkin 6a175e10c7 MFC: man(7) -> mdoc(7) 2001-01-25 13:16:20 +00:00
Alexey Zelkin fcb9cc9909 MFC: typo 2001-01-25 13:15:43 +00:00
David Malone 61d4e5003e MFC: v1.9 pmcd_value is actually a quad_t. 2001-01-25 12:48:38 +00:00
Alexey Zelkin 2c0d3e0312 MFC: rev. 1.5, rewording 2001-01-25 12:13:08 +00:00
Alexey Zelkin 6e0373a149 MFC: rev. 1.6, rewording, use .St macro 2001-01-25 12:12:42 +00:00
Ben Smithurst 382f079756 MFC: remove reference to nonexistent ugen(4) 2001-01-25 10:45:26 +00:00
Luigi Rizzo 92f2bc0595 Pass up errors returned by dummynet. 2001-01-25 02:09:05 +00:00
Luigi Rizzo df8f9267f7 Fix panics in previous version of dummynet when trying to use
fair queueing. In passing, add a lot of documentation.
This is an extensive patch, but it makes no good to put it into
current first, as nobody would test it there.
2001-01-25 02:01:55 +00:00
Luigi Rizzo 6943307361 bugfix: remove a source of corrupt headers in bridging (related to
interface problems in ether_input() ).
Remove some unused diagnostic variables, and add a new one.
2001-01-25 01:35:29 +00:00
John Polstra 076814c9fe MFC 1.16 -> 1.17: Note that rmdir(2) does not follow symbolic links. 2001-01-24 23:54:08 +00:00
Bruce A. Mah 7f0080b037 Fix typo: fsck is still fsck in RELENG_4, not fsck_ffs.
Noticed by:  iedowse
2001-01-24 20:17:45 +00:00
Bruce A. Mah 1aa92eb8a3 MFC: FFS bug for large filesystems corrected, awk->3.0.4, fsck_ffs
SIGINFO, realpath(1), unified libgcc, config(8) fixes, sshd_config.
2001-01-24 18:01:25 +00:00
Jeroen Ruigrok van der Werven d997a15b14 MFC: Synch with CURRENT, add $FreeBSD$ 2001-01-24 14:49:19 +00:00
Jeroen Ruigrok van der Werven be072e6f48 MFC: gawk 3.0.6, test cases/regression tests. 2001-01-24 13:37:13 +00:00
Ruslan Ermilov 232930b7e2 MFC: remove the extraneous debug line. 2001-01-24 12:24:28 +00:00
Ruslan Ermilov f28033087d Synch with -CURRENT (mostly cosmetics). 2001-01-24 08:41:14 +00:00
Matthew Dillon 7aa7fcbab7 MFC 1.103. Do not cluster with B_LOCKED buffers. This appears to fix
a background write panic bug though I can't figure out how.  Since it's
a very good idea anyway (and seems to fix a bug), I'm MFCing it.
2001-01-24 06:19:09 +00:00
Ian Dowse 4f38b635f3 MFC: Add a SIGINFO handler, which causes fsck to output progress
information on receipt of a SIGINFO (normally via Ctrl-T).

This differs slightly from the -current change, in that we reset
the 'got_siginfo' flag at the start of checkfilesys(). RELENG_4's
fsck can fork after calling checkfilesys(), so this avoids spurious
extra status messages.
2001-01-23 23:11:07 +00:00
Jeroen Ruigrok van der Werven 9c1462e438 MFC: gawk 3.0.6.
This includes all later fixes after import as well.
2001-01-23 22:09:01 +00:00
Kris Kennaway f967117434 Fix the vulnerability with TCP ECE packets recently fixed in ipfw.
This is untested, but believed to work.
2001-01-23 21:11:28 +00:00
Mike Smith a2139c68c3 MFC: teach libdisk about 'aac'. 2001-01-23 18:42:11 +00:00
Jeroen Ruigrok van der Werven cffb3cc47d MFC: Let the pwd program double as realpath(1).
This includes the string paranoia and mdoc(7) police fixes.
2001-01-23 15:46:00 +00:00
Jeroen Ruigrok van der Werven 72c141dba2 MFC: Remove leading dot from .Xr. 2001-01-23 15:13:08 +00:00
Jeroen Ruigrok van der Werven a5e50f2d62 MFC: Support multiple (comma separated) names as arguments to -U. 2001-01-23 15:08:37 +00:00
Jeroen Ruigrok van der Werven d18ba519f7 MFC: Constify an array. 2001-01-23 15:00:15 +00:00
Jeroen Ruigrok van der Werven 58df7be4b8 MFC: #include <sys/types.h> 2001-01-23 14:38:31 +00:00
Jeroen Ruigrok van der Werven ca7db76922 MFC: Allow negative seek offsets for files that can be seeked upon. 2001-01-23 14:23:55 +00:00
Jeroen Ruigrok van der Werven b515ebdfa1 MFC: Reparent a kernel thread to init during kthread_exit() so that the
zombie can be reaped.

	This MFC also includes an #include to <sys/ptrace.h> to avoid
	the implicit declaration of proc_reparent().  It might be that
	CURRENT at this point has different header files due to SMPng.
2001-01-23 13:02:46 +00:00
Poul-Henning Kamp 4b013fcb25 Bring the musycc driver over from -current, modulus netgraph API changes. 2001-01-23 12:49:13 +00:00
Poul-Henning Kamp 367935de98 MFC: identical to -current modulus netgraph API changes. 2001-01-23 12:47:09 +00:00
cvs2svn 32ad97f92b This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-01-23 12:37:16 +00:00
Greg Lehey a4719ae1eb MFC from revision 1.17: Initialize ofin.fin_v every time before
calling fr_makefrip, not just once.

There's probably a whole lot of other stuff hiding behind commit
messages such as "fix conflicts" (+700 -241).

Forgotten by:	darrenr
2001-01-23 08:43:56 +00:00
Peter Wemm 50782ca086 Convert various warnings that should have been errors into actual fatal
errors with an exit code so that buildkernel doesn't quitely ignore it
and build a bogus kernel without a human to read the errors.
2001-01-23 00:09:32 +00:00
Jordan K. Hubbard e2d0a0ae32 MFC: kernel time reporting. 2001-01-22 23:26:15 +00:00
Luigi Rizzo 5480648b8e MFC (bugfix): change critical section protection from splnet() to splimp()
so we do not get inconsistencies (leading to traffic stalls)
when dummynet is used with bridging.

The error was reported by quite a few people over time.
2001-01-22 23:07:36 +00:00
Luigi Rizzo a156864393 MFC: bring in some fixes which cure multicast/broadcast corruption
and some other things (essentially restore some of the code which
was there in 4.0 times)
2001-01-22 22:40:48 +00:00
Bill Paul 91cd33e306 MFC: merge in bug fixes
if_dc: conditionalize code for MX98713 so that it doesn't screw up
       other chips
if_sf & if_vr: check & handle return values from encap routines correctly
2001-01-22 19:13:16 +00:00
Ben Smithurst eb5fed4896 MFC: mdoc police. 2001-01-22 18:38:44 +00:00
Ian Dowse 97c4f779f6 MFC: Avoid superblock corruption on very large filesystems. 2001-01-22 18:10:28 +00:00
Matt Jacob b91a8a181a MFC:
PRs 24220, 24221, 24222:
Propagate residuals (even if overflowing) into mt_resid.
Use the residual from spacing to figure out where we
really ended up. Save residuals from spacing. Make sure
position isn't updated twice (in case of a ILI check
condition after a read).

Read or Set of logical/hardware block condition now clears
"Tape Frozen" state. Only do filemark count 0 flushing if
a read position is for hardware blocks.
2001-01-22 18:06:51 +00:00
Matt Jacob 5005e8cbfe MFC: Make residuals signed.
PR:		24221
2001-01-22 18:02:47 +00:00
Matt Jacob e467277469 MFC: Print out resid portion of MTIOCGET returned data. 2001-01-22 18:01:26 +00:00
Ruslan Ermilov a29971daa0 MFC (rev 1.17): mdoc(7) formatting fixes. 2001-01-22 17:58:03 +00:00
Ruslan Ermilov 9da402d26f MFC: man(7) -> mdoc(7). 2001-01-22 17:46:05 +00:00
Josef Karthauser 6fbd06ba82 MFC: Revision 1.25: Many style(9) clean ups. 2001-01-21 21:09:42 +00:00
Josef Karthauser 951c4f977e MFC: Merge revision 1.24
Flag an error and remove the program from the list if there is
     no source directory or no objects can be determined.

     Initialise a structure variable.
2001-01-21 20:53:59 +00:00
Gregory Neil Shapiro 2593235e70 MFC: Add commentary about shared SASL files versus sendmail compilation.
Submitted by:	Scot W. Hetzel <[email protected]>
2001-01-21 19:39:06 +00:00
MIHIRA Sanpei Yoshiro 0f8431d796 MFC: add new PC-Card entry
ELECOM Laneed LD-CDL/TX
	COREGA FEther PCC-TXD
	Melco/Buffalo LPC2-CLT
2001-01-21 12:22:32 +00:00
MIHIRA Sanpei Yoshiro b856a93cda MFC: Fix mistake for IC-CARD (rev: 1.171) 2001-01-21 12:15:33 +00:00
MIHIRA Sanpei Yoshiro 10f917a2d7 add 0x80000 flags for Linksys EtherFast 10/100 PC Card (PCMPC100),
model V2 and V3

Submitted by:	Pat Wendorf <[email protected]>
2001-01-21 12:12:51 +00:00
Cameron Grant 028407b373 MFC: bugfix for cards not supporting the default rate (8khz). previously,
attempting to set the sample format before the speed on such cards would
result in an error.
2001-01-21 03:24:17 +00:00
John Polstra 09862d72d7 MFC 1.50 -> 1.51: Make it possible to call dlclose from a
destructor.
2001-01-21 00:56:29 +00:00
Ben Smithurst 55a20f12dc MFC: add missing parameter and fix typos. 2001-01-20 21:39:18 +00:00
Toshihiko ARAI 4332ed7bea MFC: 1.164 -> 1.169: cleanup of pccard database. 2001-01-20 17:57:14 +00:00
Hajimu UMEMOTO 760097bdac MFC 1.23->1.24: fixed possibility of panic at key_acquire().
key_acquire() does not require a secpolicy structure.
2001-01-20 15:53:23 +00:00
Kris Kennaway 4615ac02e9 MFC: Use a denser encoding to obtain a larger file namespace in mktemp()
and family.
2001-01-20 09:35:24 +00:00
Søren Schmidt cbd72bf200 MFC:
Properly backspeed DMA on the ACER chips.
2001-01-19 22:54:00 +00:00
Mike Smith f3816cb016 Add an entry for 'aac' in the driver table. Note that it's probably time
to reformat this table, as it's still ISA-centric...
2001-01-19 17:38:39 +00:00
Ruslan Ermilov b3510b6a51 MFC: mdoc(7) police: removed leading whitespaces that are not inside Bd/Ed. 2001-01-19 16:01:56 +00:00
Maxim Sobolev 886d00bc23 MFC:
- Fix a nasty bug where pkg_create doesn't gzip package if lengh of package
  name is less than 5;
- style cleanups.
2001-01-19 11:08:57 +00:00
Matthew Dillon c00c5f852f MFC 1.872. Add a dire comment about making NSWAPDEV too large and
reduce it to something reasonable.
2001-01-19 05:02:04 +00:00
Brian Feldman f935f5725b MFC: finish deprecating ConnectionsPerPeriod in favor of MaxStartups. 2001-01-18 22:36:53 +00:00
Bruce A. Mah 7a59a99fe8 MFC: syslogd(8) and LOG_CONSOLE, cdcontrol(1) and CDROM environment
variable, package origin directives, Linksys ed(4) flags.
2001-01-18 19:59:00 +00:00
Ruslan Ermilov f6fcdfeeab MFC: mdoc(7) police: add missing .Ed call. 2001-01-18 17:31:56 +00:00
Ruslan Ermilov ac33ac2896 MFC: man(7) -> mdoc(7). 2001-01-18 16:06:05 +00:00
Ruslan Ermilov 4760575b4c MFC: man(7) -> mdoc(7). 2001-01-18 12:57:42 +00:00
Ben Smithurst 7280ae5c11 MFC: remove .Xr screenmap 5 2001-01-18 11:59:50 +00:00
Ruslan Ermilov 0f30ed4887 MFC: deprecate rstat(1) and rstat_svc(8), convert the rest to mdoc(7). 2001-01-18 10:20:24 +00:00
Luigi Rizzo 01d450ef76 MFC of some old dummynet patches, plus put in some diagnostic code
to detect, log and recover from the pipe stalls that someone
reported. I have been unable to find a bug or reproduce the problem myself,
so this code is not a fix but at least should tell us something on
what is going on.
2001-01-18 01:21:07 +00:00
Nick Hibma 195865d440 MFC r1.285:
Give the USB devices sensible default permissions.
2001-01-18 00:46:50 +00:00
Nick Hibma 9801a5fd8c MFC r1.61:
Add the 'No 6 byte commands' quirk for the Yano ATAPI USB bridge
2001-01-18 00:28:47 +00:00
Nick Hibma d27a16f682 MFC r.1.28: device_resume should be connected to bus_generic_resume not
*_suspend.
2001-01-18 00:25:11 +00:00
Nick Hibma 8fdecd829d MFC r1.14:
fix the layout of function headers (noticable in long headers).
2001-01-18 00:23:57 +00:00
Nick Hibma a12653e10f MFC r1.88: Reset the devclass if attach fails. 2001-01-18 00:19:50 +00:00
Nick Hibma c577d76b20 MFC (r1.42 partial):
Clean up allocated path after use.
2001-01-18 00:08:38 +00:00
Ben Smithurst 1931690ae0 MFC: document time changing restrictions in high secure modes. 2001-01-17 21:28:52 +00:00
Ben Smithurst c53c51ac3b MFC: document EHOSTDOWN. 2001-01-17 21:03:24 +00:00
Wilko Bulte 8678fcb8bc Note fix for isp that made certain CDROM attach fail.
PR:		22650
2001-01-17 20:42:29 +00:00
Matt Jacob 68a0016c84 MFC: roll to 2.01.26 level. Actually, it really *is* a lot better than
2.01.17- sorry about the update enchilada though...
2001-01-17 19:39:17 +00:00
Matt Jacob 131c44749a MFC: constify some strings (for better compile time checking support).
Reset FPM/FBM for 2X00 cards in isp_reset. Implement HBA role support.
Some isp_prt argument cleanup. Change some fabric stuff to use targets
0..125 in F-port topologies, notice when fabric devices go away.
Register FC4 types with the name server (so we can work with McData
switches). Yet again fool around with some more WWN default stuff.
2001-01-17 19:34:09 +00:00
Matt Jacob 3ea1281525 MFC: fix for overflowing 32 bit timeout tick values (on high HZ alphas).
Fix some isp_prt missing/misplaced arguments. Accomodate recent changes
to Fabric Support.
2001-01-17 19:30:37 +00:00
Matt Jacob 70526551f1 MFC: Roll platform version. Wait longer for mailbox commands to time out.
Print out opcode if we imeout.
MFC fix for 22650 (remember to set CAM_AUTOSNS_VALID if we have sense data).
2001-01-17 19:28:57 +00:00
Matt Jacob 32ec061231 Add in offsets for ATIO2 WWPN && ATIO2 OXIDs... 2001-01-17 19:27:36 +00:00
Matt Jacob 1ec95f4e73 MFC: add some specific 2X00 status request defines. Add in the SNS
offsets && sizes for REGISTER FC4 SNS subcommands.
2001-01-17 19:27:14 +00:00
Matt Jacob 2c48c29606 MFC: add enough bits to access and reset the FPM and FBM modules. 2001-01-17 19:26:36 +00:00
Matt Jacob 240162d25f MFC: Add in HBA roles. Shuffle some fabric stuff so that ISPASYNC_PDB_CHANGED
is gone and replaced by ISPASYNC_LOGGED_INOUT, and ISPASYNC_CHANGE_NOTIFY
covers both fabric and local loop stuff.

Declare isp_rpt to be a printf like function (for GNUC compilers only).
Hey- it helped catch some missing arg cases.
2001-01-17 19:26:11 +00:00
Matt Jacob 141b1e5619 MFC: initialize default role for HBA (to ISP_DEFAULT_ROLES). If booting
verbose, remember to set ISP_LOGINFO for printing messages as well
as ISP_LOGCONFIG. Add a missing argument to an error message.
2001-01-17 19:24:06 +00:00
Mike Smith e076f70cda MFC: remove a mismatched splbio() from aac_start. 2001-01-17 18:52:11 +00:00
Ruslan Ermilov 5948a585fb MFC: Add librpcsvc. 2001-01-17 18:20:46 +00:00
Warner Losh dfcb6ce27a Catch up:
o ipfw interface change.
o ssh pam stuff
o Linksys MFC
2001-01-17 18:00:17 +00:00
Toshihiko ARAI af9469750e MFC: Additional flag 0x80000 for Linksys type cards. 2001-01-17 13:28:50 +00:00
MIHIRA Sanpei Yoshiro 4a2fa40caf [MFC] Add webgear aviator card(rev.1.157)
Submitted by	Duncan Barclay <[email protected]>
2001-01-17 10:16:35 +00:00
Ruslan Ermilov ce4d5a9bf4 MFC: man(7) -> mdoc(7). 2001-01-17 09:19:21 +00:00
Ruslan Ermilov 0582215061 MFC: mdoc(7) police: compact a few lists for better output. 2001-01-17 09:10:48 +00:00
Ben Smithurst d7f801d3a7 MFC: minor grammar nit. 2001-01-16 22:42:59 +00:00
Ben Smithurst b769bad986 MFC: SIGABRT != abort() 2001-01-16 22:27:08 +00:00
Ben Smithurst 48d433c52e MFC: document -M and -N a bit better. 2001-01-16 22:10:20 +00:00
Ben Smithurst ce3abeb726 MFC: document EFAULT error. 2001-01-16 21:59:22 +00:00
Ruslan Ermilov 26eb5a32f0 MFC: man(7) -> mdoc(7). 2001-01-16 17:35:52 +00:00
Ruslan Ermilov cbac79fc2e MFC: man(7) -> mdoc(7). 2001-01-16 15:36:41 +00:00
Brian Somers 429e4cfec5 MFC: Handle ``multiple version'' lines output from pkg_version 2001-01-16 13:41:24 +00:00
Ruslan Ermilov f210dbaa18 MFC: man(7) -> mdoc(7). 2001-01-16 13:14:38 +00:00
Yoshihiro Takahashi 27e1f1b164 MFC: use __i386__ instead of i386 2001-01-16 12:42:45 +00:00
Poul-Henning Kamp 576bf65630 MFC: logging of /dev/console output to syslogd. Disabled by default. 2001-01-16 12:26:22 +00:00
Ruslan Ermilov 7a18e907dc MFC: mdoc(7) police: fixed broken references. 2001-01-16 12:11:16 +00:00
Ruslan Ermilov fdf2756069 MFC: Prepare for mdoc(7)NG. 2001-01-16 10:42:38 +00:00
Scott Long 931256f811 Ugh! Fix aac device breakage from my last commit 2001-01-16 04:57:34 +00:00
Scott Long 77c90ba835 MFC the /dev entries for the aac controller and disks 2001-01-15 23:49:10 +00:00
Luigi Rizzo 20f9f7bf32 limit coredumpsize to 0 for picobsd, there is not much
room by default on the filesystems...
2001-01-15 22:36:15 +00:00
Ruslan Ermilov 67e8e255b0 MFC: Simplify some mdoc(7) constructs. 2001-01-15 17:21:09 +00:00
Ruslan Ermilov 0388d43289 MFC: mdoc(7) police: fix the unbalanced Bk/Ek. 2001-01-15 17:04:14 +00:00
Ruslan Ermilov 899c6618af MFC: fix the weird mdoc(7) construct. 2001-01-15 16:54:48 +00:00
Maxim Sobolev fc63ac4f50 MFC:
Fix a bug where pkg_create does not make an md5 entry for the last item in
the packing list. Also use switch() instead of zillion "else if ()" and for()
loop instead of while() loop for traversing through linked list.
2001-01-15 14:13:18 +00:00
Ben Smithurst f0fd17515a MFC: only try to install sysinstall.8 if the release/sysinstall directory
exists.  This should fix the world for people without that directory.
2001-01-15 11:38:38 +00:00
David Malone 80c7abf8ff MFC: Use tabs not spaces. 2001-01-15 10:21:33 +00:00
Maxim Sobolev 1aca38527e MFC:
Fix a bug arised from the ')' in the wrong place when calling printf()-like
varargs function, which lead to one of the arguments was left out. This resulted
in failure when inwoking mtree, warning message "mtree returned a non-zero
status - continuing" and probably is the reason for zillion mtree errors on
bento.
2001-01-15 09:55:18 +00:00
Garance A Drosehn 2922e022ff (MFC from 2000/12/01) - Fix error-handling logic so ferror is called before
fclose, instead of immediately after it.         (1.13)

PR:		bin/22965
2001-01-15 06:48:09 +00:00
David Malone 6d4feaf15e MFC: Update for 2001. 2001-01-14 23:05:34 +00:00
Josef Karthauser b3f48b8767 MFC: Document interaction with CDROM environment variable. 2001-01-14 16:31:51 +00:00
Josef Karthauser db9666cedc MFC: If no device is specified, check the CDROM environment variable
before picking the default device.  (rev 1.29)
2001-01-14 16:18:22 +00:00
Doug Barton 5e1a911d3d MFC 1.11 and 1.12. Make sure that if a user is in the db rmuser can
remove them. My fix is more aggressive than the originator's.

PR:		misc/22278
Submitted by:	Kevin Way <[email protected]>
2001-01-14 10:21:11 +00:00
Doug Barton 2b80fc8b9c MFC, Apply a more consistent style to the echo statements in /etc/ scripts. 2001-01-14 09:47:57 +00:00
Doug Barton 89fcb993b8 MFC, Apply a more consistent style to the echo statements in /etc/ scripts.
Also MFC, Test whether /var/msgs/bounds is a link before overwriting it
2001-01-14 09:45:24 +00:00
Doug Barton a4d9dd191b MFC 1.6
Submitted by:	Peter Avalos <[email protected]>
2001-01-14 08:43:04 +00:00
Doug Barton 120bc356b8 MFC 1.12
PR:		misc/23451
Submitted by:	Ben Rosengart, [email protected]
2001-01-14 08:41:19 +00:00
Poul-Henning Kamp 902beb5fb9 Oops, broke floppy generation with my last fix. 2001-01-14 08:24:48 +00:00
Doug Barton 895a3ffa32 MFC 1.90, ipf/ipnat related cleanups
PR:		conf/22937
Submitted by:	Andre Albsmeier <[email protected]>
2001-01-14 08:21:07 +00:00
Noriaki Mitsunaga 2aadb6190d [MFC]
Remove conflicts between unsigned char *s and int s.
It was possible cause of kernel panic.

Pointed Out by: [email protected]
2001-01-14 06:59:59 +00:00
Ben Smithurst d2cfd334c2 MFC: fix typo; file -> files. 2001-01-13 17:53:41 +00:00
Brian Feldman 03ac989581 Add the documentation for ENABLE_SUID_SSH.
PR:		24275
Submitted by:	Andre Albsmeier <[email protected]>
2001-01-13 01:18:49 +00:00
Scott Long b22b640636 Add the aac driver to GENERIC. 2001-01-12 23:45:14 +00:00
Bruce A. Mah 0016a3d637 MFC: aac(4). 2001-01-12 23:06:10 +00:00
Bruce A. Mah 027fab4e30 MFC: aac(4), OpenSSH 2.3.0. 2001-01-12 23:05:16 +00:00
Poul-Henning Kamp 7ad549d712 MFC: bring mtree up to current level. 2001-01-12 19:17:18 +00:00
Ruslan Ermilov d25803664f MFC: man(7) -> mdoc(7). 2001-01-12 18:06:50 +00:00
Ruslan Ermilov 53f9e54837 MFC: mdoc(7) police: Ft/Vt now accept punctuation-type arguments. 2001-01-12 16:16:02 +00:00
Ruslan Ermilov 7799c55bd1 MFC: man(7) -> mdoc(7). 2001-01-12 15:41:19 +00:00
Ruslan Ermilov 1d13d57b8a Synch with -CURRENT. 2001-01-12 15:27:40 +00:00
Poul-Henning Kamp 993f0f9f97 MFC: -a option to dmesg(8) to show entire buffer. 2001-01-12 12:40:28 +00:00
Poul-Henning Kamp 7cec2e4dbe Make it possible to run the doFS.sh from -stable on a -current system.
This script does some nasty DIY things with mknod, it really shouldn't
have to.
2001-01-12 11:31:32 +00:00
Paul Saab 448d50bb2f MFC: [rev 1.9] Update for OpenSSH 2.3.0.
Forgotten by:	green
2001-01-12 10:13:59 +00:00
Ruslan Ermilov 821eddc96a MFC: man(7) -> mdoc(7). 2001-01-12 08:30:10 +00:00
Brian Feldman 653195e11f MFC: OpenSSH 2.3.0
Reviewed by:	freefall
2001-01-12 04:26:22 +00:00
Steve Price 10e33bd2b6 MFC: spell declarations correctly. 2001-01-12 02:50:39 +00:00
David Malone 13db574438 MFC: 1.68 and 1.70. Don't corrupt pipe_zone if pipe creation fails. 2001-01-11 20:46:50 +00:00
Andrew Gallatin ae4a523b1c MFC: cleanup apecs.c
- eliminate code that's been ifdef'ed out since day 1
- use a constant (APECS_PCI_CONF) for pci config space access rather
  than the softc.  This gets us access to pci config space very early
  (eg when syscons is probing adapters), which will be needed for
  the forthcoming TGA console driver.

This file has diverged substantially in -current due to the busspace
rewrite that Doug did.  This is somewhat of an MFC as Doug has made
these changes already in -current.

Tested by: "Andrew M . Miklic" <[email protected]>
2001-01-11 18:04:22 +00:00
Doug Barton 63cab27035 MFC, fix a small typo 2001-01-11 13:06:22 +00:00
Ruslan Ermilov 30c27efeb4 MFC: Teach man(1) how to look inside compressed manuals
for preprocessor directives.  Avoid use of cat(1).
2001-01-11 11:27:03 +00:00
Julian Elischer 55a784280f Don't list zombie nodes in reports.
Submitted by: [email protected] (Archie Cobbs)
2001-01-10 23:31:49 +00:00
Luigi Rizzo d6cf8f665c let make ignore crunchgen errors, some are non fatal 2001-01-10 22:35:11 +00:00
Luigi Rizzo ef1ba231df ssh-keygen1 is now ssh-keygen 2001-01-10 22:34:38 +00:00
Guy Helmer 8257deac86 MFC login_ok.c rev 1.8: Pass the number of bytes needed, not simply the
number of login time structures.  Forward the name of the deny capability
rather than hard-coding it in login_hostok.
2001-01-10 21:01:30 +00:00
Archie Cobbs 50298ffde5 MFC: (rev. 1.6) call yyrestart() in lex_init(). 2001-01-10 17:43:41 +00:00
David E. O'Brien 54c28b5405 MFC: Bump __FreeBSD_version for libgcc/linking changes. 2001-01-10 17:42:12 +00:00
Archie Cobbs b7d9848d18 MFC: (rev. 1.23) fix bugs in the handling of > 8 positional arguments. 2001-01-10 17:40:13 +00:00
Ruslan Ermilov 294c0d20da MFC: Prepare for mdoc(7)NG. 2001-01-10 16:54:02 +00:00
Ruslan Ermilov 3c2c05b5e1 MFC: Prepare for mdoc(7)NG. 2001-01-10 14:20:43 +00:00
Ruslan Ermilov a298c971b0 MFC: Prepare for mdoc(7)NG. 2001-01-10 14:11:03 +00:00
Andrey A. Chernov bbde9e1133 MFC: fix lseek arg, error checking 2001-01-10 08:10:27 +00:00
Julian Elischer 3d2c2f21dc Fix memory leak 2001-01-10 07:16:09 +00:00
Ben Smithurst f848bdbcb2 MFC: remove unused directories. 2001-01-10 05:32:02 +00:00
Robert Watson c0ec10a75a o MFC of ECN flag handling fixes in IPFW, respectively:
Revision  Changes    Path
  1.98      +3 -4      src/sbin/ipfw/ipfw.c
  1.151     +14 -6     src/sys/netinet/ip_fw.c
  1.54      +3 -3      src/sys/netinet/ip_fw.h

Prior commit message:

  o IPFW incorrectly handled filtering in the presence of previously
    reserved and now allocated TCP flags in incoming packets.  This
    patch stops overloading those bits in the IP firewall rules, and
    moves colliding flags to a seperate field, ipflg.  The IPFW userland
    management tool, ipfw(8), is updated to reflect this change.  New
    TCP flags related to ECN are now included in tcp.h for reference,
    although we don't currently implement TCP+ECN.

  o To use this fix without completely rebuilding, it is sufficient to
    copy ip_fw.h and tcp.h into your appropriate include directory,
    then rebuild the ipfw kernel module, and ipfw tool, and install
    both.  Note that a mismatch between module and userland tool will
    result in incorrect installation of firewall rules that may have
    unexpected effects.  This bug does not appear to affect ipfilter.

Reviewed by:  security-officer, billf, jedgar
Reported by:  Aragon Gouveia <[email protected]>
2001-01-10 03:43:34 +00:00
Robert Watson e3adb292e1 o style(9) cleanup of newly committed TCP flags to make consistent with
-CURRENT.  Sorry about that.
2001-01-09 18:25:18 +00:00
Robert Watson 84b6186caa o MFC tcp.h 1.15 -- add constants for new ECN TCP flags 2001-01-09 18:20:22 +00:00
Robert Watson fdbec716cc o Backport the fw_ipflg ipfw rule flag from -CURRENT so that it is
available for the recently committed TCP flags fix.  I have only
  backported the variable, and not all of the current use in -CURRENT,
  so that will need to be seperately MFC'd, if desirable.

o This change modifies the ipfw configuration ABI meaning that you
  need to keep your userland ip_fw.h, ipfw tool, and kernel code
  in synch.
2001-01-09 18:11:40 +00:00
Poul-Henning Kamp dba51dc020 MFC: Always printf diskerrors. 2001-01-09 12:26:17 +00:00
Poul-Henning Kamp 8d1e8e0f65 MFC: add the NGM_TEXT_CONFIG primitive. 2001-01-09 06:52:25 +00:00
Poul-Henning Kamp 088cf0dfd6 MFC: Add LOG_CONSOLE and make sure it doesn't end up on /dev/console. 2001-01-09 06:51:37 +00:00
Scott Long 446dd1e724 MFC the AAC module makefile 2001-01-09 01:04:00 +00:00
Scott Long dfd472be82 Add the AAC driver to LINT 2001-01-09 01:03:31 +00:00
Scott Long b6fff2656e MFC the AAC driver. Since msmith's latest round of bugfixes, it seens to be
working very well.
2001-01-09 01:03:09 +00:00
Scott Long d5de11e021 Wire in the files for the aac driver 2001-01-09 01:01:46 +00:00
Julian Elischer b0a55ddfaa Missing FREE(); 2001-01-09 00:52:45 +00:00
Justin T. Gibbs c9e5dd02df MFC: Use scb rather than hscb to reference sense buffer so error recovery
actions do not perterb our index to the sense buffer.
2001-01-09 00:46:55 +00:00
Hajimu UMEMOTO 2aeecb407d MFC 1.5->1.6: do not touch ra_addr if it is NULL. from IIJ SEIL team 2001-01-08 15:41:37 +00:00
Hajimu UMEMOTO 7c4c8699be MFC 1.80->1.81: fix problem with vmware DAD. reported by many, tested
@ IETF49 with help from Florent Parent <[email protected]>.
2001-01-08 15:37:59 +00:00
Yoshihiro Takahashi ee31746b02 MFC: Correct typo. 2001-01-08 09:21:01 +00:00
David E. O'Brien 0364d44355 MFC: VCS id style consistency 2001-01-08 06:25:28 +00:00
David E. O'Brien 4e78a56e6f MFC: remove seconds types 2001-01-08 06:19:13 +00:00
cvs2svn d56ff1e784 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-01-08 05:34:07 +00:00
Justin T. Gibbs afe634e2d4 MFC: Sync perforce ids. 2001-01-07 22:52:36 +00:00
Justin T. Gibbs c882f2ee8f MFC: Fix for brkadrint panic on cold boot for 2940 narrow adapters.
Several timeout handling bug fixes.  A few performance improvements.
     This brings stable to the same code level as my 1/5/2001 commit to
     current.
2001-01-07 22:50:47 +00:00
Justin T. Gibbs fffd4ef1bf MFC: Add a define for the capability pointer register on header type 0 devices. 2001-01-07 22:48:44 +00:00
Brian Feldman d211e8bdc6 MFC recent fixes (up to HEAD r1.11) 2001-01-07 21:42:17 +00:00
Nick Hibma f5d4f65ac0 MFC:
K&R -> ANSI
2001-01-07 19:46:02 +00:00
Nick Hibma 036e61c05b MFC r.1.45.
Implement basic support for isochronous transfers. From NetBSD.

Submitted by:	Christopher Masto <[email protected]>
2001-01-07 18:45:59 +00:00
Ben Smithurst 6cedfff86d (null commit)
The previous commit was, of course, an MFC of revisions 1.6 and 1.7, not
1.16 and 1.17 which don't exist in this file.
2001-01-07 17:29:34 +00:00
Ben Smithurst 110f515795 MFC: rev 1.16, 1.17: prevent segfault and other possible problems by
checking data received from the network more carefully.
2001-01-07 17:26:10 +00:00
Søren Schmidt f56f378f01 MFC:
Add BurnProof(tm) support for ATAPI burners that has that feature.
2001-01-07 16:55:20 +00:00
Søren Schmidt 763f94863e MFC:
On open try to close the drivetray and wait for drive ready.
2001-01-07 16:50:53 +00:00
Brian Somers 6b5abf5d74 MFC: Handle $daily_clean_disks_files specs with more than one word. 2001-01-07 01:09:21 +00:00
Nick Hibma 133f439e4c MFC:
Re-enable the setting of the CM over Data mode.
2001-01-06 23:32:58 +00:00
David E. O'Brien 2eb5cf515f MFC: use a unified libgcc and ensure strong references to pthread functions
weakly referenced in libgcc.
2001-01-06 23:16:57 +00:00
Nick Hibma 2759026e03 MFC:
Bring the uscanner driver up to date with the changes up to r1.10
Add the ID for the Epson 1640
Set the configuration to 1 not 0.
2001-01-06 22:49:41 +00:00
Nick Hibma a0a22da268 MFC:
Regen. after MFC.
Adjust one id in if_aue.c.
2001-01-06 22:39:44 +00:00
Nick Hibma 6e1ce1d284 MFC:
rev.1.45
2001-01-06 22:37:48 +00:00
Nick Hibma aa2904474f MFC:
Avoid panicing when UMASS_DEBUG is set.

rev.1.37	umass.c
rev.1.34	usb_port.h

PR:		24044
Submitted by:	Mike Bristow <[email protected]>
2001-01-06 22:36:15 +00:00
Nick Hibma 71e1a5e73e MFC rev.1.14 (partially):
The HEADER section was not emitted.
2001-01-06 22:04:03 +00:00
Matthew Dillon 5967981c84 MFC 1.163 - client-side fix for bogus access time with O_EXCL|O_CREAT opens 2001-01-06 18:58:29 +00:00
Wilko Bulte 27004d5541 Try, as much as possible, the messy situation around SCSI adapters on the
EB164 family. The mess is such that it is hard to document, but try to do the
best we can.

Submitted by:   Christian Weisgerber <[email protected]>
2001-01-06 18:19:14 +00:00
Alexander Langer 4b8a2442c3 Include <sys/sysent.h>, which defines SCARG. 2001-01-06 16:07:01 +00:00
Ian Dowse ba04107286 MFC: r1.33 Fix panic that can occur when device detaches while
sleeping in ulptopen.

Reviewed by:	n_hibma
2001-01-06 15:20:26 +00:00
Alfred Perlstein 35db16d326 MFC: limit utrace 2001-01-06 09:58:24 +00:00
Alfred Perlstein 1c9dc20b0b MFC: sysctl to quiet arp messages 2001-01-06 05:50:06 +00:00
Ben Smithurst edaff99d57 MFC: fix printf(1) for the case with a long string with no format characters
followed by a "%d" format.
2001-01-05 22:09:53 +00:00
Ben Smithurst fceac8f0cd MFC: install sysinstall.8 2001-01-05 22:06:29 +00:00
Brian Somers 3a554ce653 MFC: Show the correct idle time
Treat domain names as case insensitive
2001-01-05 21:52:39 +00:00
Brian Somers 1c27b967fe MFC: Show the correct idle time 2001-01-05 21:52:20 +00:00
Joerg Wunsch cae5274958 MFC: rev 1.25, don't call ptrace(PT*DBREGS) except for targets of type
"child" or "freebsd-uthreads".
2001-01-05 17:51:06 +00:00
Matt Jacob eb2638a654 MFC: revision 1.26 (bring back perform function)... I have no idea
how 4.2 for alpha could have built w/o this.
2001-01-05 17:43:21 +00:00
Matt Jacob 58f9c6bbbf MFC: revision 1.4 (Fix some of the arcdisk devsw functions ...)
I dunno how 4.2 for alpha could have been built w/o this.
2001-01-05 17:37:51 +00:00
Søren Schmidt 3440e82321 MFC:
Oops the test in the Acer code should be >= not >.
2001-01-05 15:23:23 +00:00
Luigi Rizzo 44aaab8431 MFC: merge 1.23 into RELENG_4 2001-01-05 10:49:02 +00:00
John Polstra c174f648bc MFC 1.71 -> 1.72: Make read() on a bpf device in non-blocking mode
return the correct value and errno when no data is available.
2001-01-05 04:49:09 +00:00
Søren Schmidt a5cc9f722f MFC:
Proberly calculate the RAID structure on the Promise Fasttrak.
2001-01-04 09:11:42 +00:00
Søren Schmidt 3710c2ecd0 MFC:
Proberly back down DMA modes on the Acer Aladdin.
2001-01-04 09:08:56 +00:00
Bruce A. Mah 732f77130a MFC: ray(4)/raycontrol(8). 2001-01-03 20:04:57 +00:00
Alfred Perlstein aab7d121d6 MFC: fix for disconnected sockets 2001-01-03 19:52:37 +00:00
Ben Smithurst 9513439741 MFC: more(3) -> more(1) 2001-01-03 18:33:27 +00:00
Ian Dowse 18dfb33e61 MFC: Avoid looping under certain error conditions.
PR:		bin/14250
2001-01-03 14:36:08 +00:00
Duncan Barclay b6eae25b45 Re-MFC of correct header file. 2001-01-03 10:45:39 +00:00
Duncan Barclay 6541ba93d4 Backout previous merge as I got the wrong file.
Submitted by:	Johan Huldtgren <[email protected]>
2001-01-03 10:39:22 +00:00
Duncan Barclay ff4b9c9ac5 Add missing header file. Should allow -stable to build now. 2001-01-03 09:09:07 +00:00
Duncan Barclay dc52f5ce6a Activate ray driver 2001-01-02 23:11:52 +00:00
Duncan Barclay e0811dcaff MFC 2001-01-02 23:10:22 +00:00
Duncan Barclay f11084bb52 Activate ray driver 2001-01-02 22:53:53 +00:00
Duncan Barclay 95f23a810a Add new method for ray driver.
Approved by:	imp
2001-01-02 22:49:15 +00:00
Duncan Barclay f737b45b35 MFC of support for attribute and common memory manipulations required
for the ray driver.

Approved by:	imp
2001-01-02 22:44:13 +00:00
Duncan Barclay 9a23b8c998 Bring the driver for Webgear Aviator cards across from -current.
Approved by:	imp
2001-01-02 22:33:02 +00:00
cvs2svn ae5e841a83 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2001-01-02 20:29:26 +00:00
David E. O'Brien 7dff9172db MFC: don't abuse SCCS magic 2001-01-02 09:11:10 +00:00
Peter Wemm 7a6c7140c5 MFC: rev 1.5 - fix handling of R_IAFTER
Forgotten by: green
2001-01-02 05:13:25 +00:00
Peter Wemm 6c5a513bf2 MFC: rev 1.3; fix rec_get for > 64k offsets
Forgotten-by: obrien
2001-01-02 05:12:37 +00:00
Ben Smithurst e9fc7119b4 MFC: minor layout fixes. 2001-01-01 23:31:56 +00:00
Ben Smithurst 82a95294df MFC: fix typo: ispec -> ipsec 2001-01-01 23:27:08 +00:00
David E. O'Brien 1a30266a52 MFC: sort some of the _BSD_* types. 2001-01-01 22:28:38 +00:00
David E. O'Brien 33924f1694 MFC: sync with rev 1.8. 2001-01-01 21:57:44 +00:00
David E. O'Brien 734cd3ffdd MFC: s/rsa0/sa0/g 2001-01-01 19:52:02 +00:00
Maxim Sobolev 853e5f55e2 We are now in the year 2001, so ajust copyrights.
Happy New Year!
2001-01-01 08:05:48 +00:00
Ben Smithurst 797a723631 MFC: clarify how asprintf returns its allocated pointer. 2001-01-01 05:22:43 +00:00
Bill Fumerola d49676c5f9 MFC (cosmetic, rev 1.91): correct typos.
PR:		kern/23987
2000-12-31 22:10:45 +00:00
Bruce A. Mah a4c320b755 MFC: Update list of AMI MegaRAID controllers to reflect reality.
Submitted by:	msmith
2000-12-30 20:14:33 +00:00
Ben Smithurst 5968d4e843 MFC: stringlist.3 MLINKS 2000-12-30 18:27:02 +00:00
Yoshihiro Takahashi 9b9c8d5895 Merged from the following changes.
sys/boot/i386/Makefile.inc             1.1.2.2
sys/boot/i386/btx/btx/Makefile         1.7.2.2
sys/boot/i386/btx/btx/btx.s            1.15.2.4
sys/boot/i386/libi386/Makefile         1.15.2.3
sys/boot/i386/libi386/biosdisk.c       1.26.2.6
sys/boot/i386/libi386/biosmem.c        1.4.2.1
sys/boot/i386/libi386/comconsole.c     1.7.2.1
sys/boot/i386/libi386/gatea20.c        1.2.2.1
sys/boot/i386/libi386/time.c           1.3.2.1
sys/boot/i386/libi386/vidconsole.c     1.12.2.1
sys/boot/i386/loader/main.c            1.17.2.5
2000-12-30 12:01:07 +00:00
Yoshihiro Takahashi 2ebd97850d Merged from sys/i386/i386/userconfig.c revision 1.175.2.5. 2000-12-30 11:32:10 +00:00
Matthew Dillon c3f85defef MFC vfs_bio.c 1.269 and friends. This MFC's the better launder limiting
solution.  See commitlogs/sys '2000/12/26 11:41:38 PST'
2000-12-30 01:51:12 +00:00
Brian Somers 59a4506e07 MFC: Log the ``MPPE: MasterKey is invalid...'' message as a CCP
diagnostic rather than a warning.
2000-12-29 22:27:09 +00:00
Ruslan Ermilov f796e00479 MFC: Prepare for mdoc(7)NG. 2000-12-29 14:45:07 +00:00
Ruslan Ermilov 248ebf7c84 MFC (rev 1.16): Document what Idle=* means in a short format display. 2000-12-29 13:34:39 +00:00
Ruslan Ermilov 8f3897e5e6 MFC: mdoc(7) fixes. 2000-12-29 11:01:37 +00:00
Jeroen Ruigrok van der Werven 1da543867f MFC: Fix CMSG and ALIGN macro usage. 2000-12-29 10:59:21 +00:00
Ruslan Ermilov 5515a74e34 MFC: Prepare for mdoc(7)NG. 2000-12-29 10:18:09 +00:00
Ben Smithurst 0cf9048716 MFC: fix typos. 2000-12-29 02:00:41 +00:00
Bruce A. Mah fbf8ea30df MFC: an(4) WEP, rm -v output change, lpr(1)/lpq(1)/lpd(8) enhancements,
libdisk install-time configuration of boot0 on i386.
2000-12-28 22:12:30 +00:00
Paul Saab 4151f14722 Revert last commit. It was not an MFC and I missed the fact that
it was reverted in -current in rev 1.14 by rnordier.
2000-12-28 21:52:32 +00:00
Jason Evans 86760a56ba Fix pthread cancellation point propagation. 2000-12-28 19:01:00 +00:00
David E. O'Brien b04cf371cf Fix typo. 2000-12-28 18:22:16 +00:00
David E. O'Brien d9ce88cacb * MFC: protection for multiple inclusions
* Move VCS ids to a conistent location.
2000-12-28 18:20:29 +00:00
Tim Vanderhoek b2f3605633 MFC: grammar gnit 2000-12-28 17:17:56 +00:00
Tim Vanderhoek 23232f4eda MFC: typo 2000-12-28 16:45:04 +00:00
Ruslan Ermilov 2ab9693ae6 MFC: mdoc(7)ify. 2000-12-28 16:24:22 +00:00
Jeroen Ruigrok van der Werven 5b25e6d2a6 Fix MFC of accept_filter_arg structure. Someone was using spaces instead
of the tabs which are used in CURRENT.
This would cause potential MFC's to have more diffing lines in them.
2000-12-28 15:10:47 +00:00
Paul Saab beac615b55 MFC: Allow pre-existing compile-time knobs to be tweakable via make
variables.
2000-12-28 13:15:11 +00:00
Paul Saab e1364618da MFC: Cleanup warnings. 2000-12-28 13:12:51 +00:00
Paul Saab 62a8c4f09d MFC: [rev 1.32] Fix several BDECFLAGS warnings. Also, actually
use the 'verbose' parameter for lsdev when printing out slice
information.
2000-12-28 13:10:47 +00:00
Paul Saab 17deb27429 MFC: [rev 1.8] Use the real user ID so non-root users can kill
setuid processes they started.  This make killall behave as the
old perl version did.
2000-12-28 12:14:41 +00:00
Paul Saab 7991ec8de9 MFC: Add new compile-time tweak BOOT_BTX_NOHANG which reboots after
a fault instead of hanging forever.
2000-12-28 12:08:22 +00:00
Paul Saab 80657d34b6 MFC: Add the -mpreferred-stack-boundary=2 option to reduce code bloat. 2000-12-28 12:04:04 +00:00
Paul Saab 01e20a674c MFC: Prevent runaway of kernel soft updates memory.
Approved by:	mckusick
2000-12-28 11:01:46 +00:00
Peter Wemm 54cdac2e3e MFC: rev 1.97; fix logic error in the large sigset_t conversion. This
allowed signals from traps to be delivered if they were masked by the
program.

PR: 23457
2000-12-28 07:29:23 +00:00
Ruslan Ermilov 295652bfd3 MFC: Prepare for mdoc(7)NG. 2000-12-27 17:01:50 +00:00
Dag-Erling Smørgrav 77f06ddeb1 MFC: try to guess scheme; be more careful if server doesn't report size. 2000-12-27 16:42:09 +00:00
Dag-Erling Smørgrav 0d8db7eaa5 MFC: avoid segfault. 2000-12-27 16:40:47 +00:00
Dag-Erling Smørgrav 71049a55f1 MFC: FTP_LOGIN. 2000-12-27 16:40:21 +00:00
Ruslan Ermilov 8d1d6dfb1a MFC: Prepare for mdoc(7)NG. 2000-12-27 16:39:21 +00:00
Ruslan Ermilov c578233045 MFC: Prepare for mdoc(7)NG. 2000-12-27 16:23:33 +00:00
Ruslan Ermilov 538dfad8fd MFC: Prepare for mdoc(7)NG. 2000-12-27 14:52:55 +00:00
Ruslan Ermilov 14682ffa5f MFC: Prepare for mdoc(7)NG. 2000-12-27 14:23:20 +00:00
Ruslan Ermilov 06af79bf40 MFC: Prepare for mdoc(7)NG. 2000-12-27 14:16:28 +00:00
Ruslan Ermilov 0670988385 MFC: Prepare for mdoc(7)NG. 2000-12-27 14:02:16 +00:00
Ruslan Ermilov 66a6dbf0cb Apply the recent mdoc(7) fixes to RELENG_4-only pages. 2000-12-27 13:50:37 +00:00
Garance A Drosehn 978d03123b (MFC) 'lpc' assumed that getgroups() always returns NGROUPS groups, which
is not true.  Get the return value from getgroups() and loop that
      many times.         (1.15, from August)

Noticed by: David A. Holland <[email protected]>
2000-12-26 22:31:45 +00:00
Garance A Drosehn e28bff89ec (MFC) Fix cosmetic error in rmjob message. (1.13)
PR:		21006
2000-12-26 22:22:36 +00:00
Garance A Drosehn 931cd15f13 (MFC) Eliminate two compile-time warnings. (1.17) 2000-12-26 22:01:41 +00:00
Garance A Drosehn b30a105a75 (MFC) Fix the '-d' option (turns on socket-debugging).
Improve some lpd-startup msgs.        (1.16)

PR:		17178
Submitted by:	Richard <[email protected]>
2000-12-26 21:57:41 +00:00
Garance A Drosehn 4c7bba74a1 (MFC) Set SO_REUSEADDR so that lpd can restart while old lpd connections
are still winding down (or timing out).  Also, be slightly more
      informative in mcleanup() about why lpd is exiting.
      Patch (in current since Sep 27th) done by GWollman.   (1.13)

PR:		21595
2000-12-26 21:54:40 +00:00
Garance A Drosehn 05c9e11bf9 (MFC) Make sure a few string-values will have ending null characters.
(most of PR 16186 had already been fixed, except for these two)

PR:		16186
Submitted by:	Przemyslaw Frasunek <[email protected]>
2000-12-26 21:34:03 +00:00
Garance A Drosehn f48886a718 (MFC) Reset the seteuid in a few obscure error situations. (1.17) 2000-12-26 21:24:50 +00:00
Garance A Drosehn b01275ddbc (MFC) Some style-related improvements to previous updates. (1.16) 2000-12-26 21:22:57 +00:00
Garance A Drosehn f184baa092 (MFC) really minor style improvements. (1.18) 2000-12-26 21:19:57 +00:00
Garance A Drosehn 020bc4b0e5 (MFC) minor style fixes. (1.33) 2000-12-26 21:17:37 +00:00
Garance A Drosehn 90e7f20ae2 (MFC) Change variable 'count' to be 'jobcount', and improve comments. (1.32) 2000-12-26 21:15:00 +00:00
Garance A Drosehn 991b3c8945 (MFC) Replace call to mktemp() with mkstemp(). Also fixes logfile
processing for remote (rm=) queues which specified some input
      filter (if=).  Before filter-errors were tossed away, now they
      will get copied to the queue's logfile (lf=).  (v1.29-1.30)
2000-12-26 20:03:37 +00:00
Garance A Drosehn 280fa7e456 (MFC) Change 'printit()' to ignore some control-file lines that it does not
recognize (most likely coming from lprNG hosts), and print a more
      helpful error msg for others.
2000-12-26 19:53:15 +00:00
Garance A Drosehn f95f441a2e (MFC) Change a structure name to something "less generic".
'struct queue { q_time, q_name }'             becomes
      'struct jobqueue { job_time, job_cfname }'    (so to speak)
2000-12-26 18:58:41 +00:00
Garance A Drosehn 46cc02b890 (MFC) Get rid of a minor compile-time warning. (1.16) 2000-12-26 18:42:08 +00:00
Garance A Drosehn 2c6ee033e2 (MFC) Cosmetic improvements to some error msgs. (1.17) 2000-12-26 18:39:46 +00:00
Garance A Drosehn 096e110130 (MFC) Fix a format-code in a call to syslog. (1.26) 2000-12-26 18:37:26 +00:00
Garance A Drosehn 1df6043c94 (MFC) Fix potential problem processing jobs from hosts with >32
character hostnames.  (1.25)
2000-12-26 18:33:33 +00:00
Garance A Drosehn 64a64414fe (MFC) Fix 'lprm' processing to work with longer (>32) hostnames. (1.14)
PR:		14978
Submitted by:	Tatsuya Kudoh <[email protected]>
2000-12-26 18:28:31 +00:00
Garance A Drosehn 6530c537f7 (MFC) improve error-msg processing when receiving jobs.
PR:		21007
2000-12-26 18:22:25 +00:00
Garance A Drosehn 781fb3112a (MFC) Implement new printcap options of sr= and sr= in lpd,
aka stat.recv and stat.send.
2000-12-26 18:17:28 +00:00
Garance A Drosehn f40ec50af9 (MFC) Add MAINTAINER= lines. (1.6+1.7) 2000-12-26 17:50:37 +00:00
Seigo Tanimura 53001faa69 MFC: add OZO8008. 2000-12-26 06:55:10 +00:00
Peter Wemm 3f0bedf7af When activating the slip interface for the first time, merge the
net and tty interrupt masks.  This is because the tty side of the
slip driver accesses data that is also used by the net side and vice versa.
This means that spltty() must block everything that can trigger network
activity (and therefore call into the slip driver on the network side),
and splimp() must block tty activity so that it doesn't call into the
slip driver on the tty side and access 'net' domain data structures.
We used to have code for this in isa.c, but this is better as it delays
the merge until the slip interface is first (if ever) used.
2000-12-26 02:22:57 +00:00
Ruslan Ermilov 96d58df237 MFC: mdoc(7) formatting fixes. 2000-12-25 09:09:47 +00:00
David E. O'Brien bbdd3453c7 MFC: don't abuse SCCS markers. 2000-12-25 02:18:41 +00:00
Dmitry Sivachenko 8206bc97de MFC: Fix typo (rev. 1.34-->1.35 delta).
PR:		23591
Submitted by:	[email protected]
2000-12-24 21:11:31 +00:00
David Malone 9f4a0dc2ee MFC: Don't page off the end of the help text in userconfig.
PR:		17539
2000-12-24 16:25:26 +00:00
Toshihiko ARAI ba89965eee MFC: Fix output of -v option. 2000-12-24 15:32:29 +00:00
David E. O'Brien 91f0f6dfe7 MFC
* -j new bzip2 option
* -I alias for -T
* -U short option for --unlink
* TAR_OPTIONS env var
2000-12-24 10:54:59 +00:00
cvs2svn 9fdc206060 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-12-24 10:52:24 +00:00
David E. O'Brien 4163761e8d MFC: add `gcov' to the mix 2000-12-23 19:50:57 +00:00
cvs2svn 08f22b4dfb This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-12-23 19:49:29 +00:00
Josef Karthauser f45ad94c45 MFC: Remove a few extra things from the build directory that should be
cleaned.
2000-12-23 19:35:47 +00:00
Josef Karthauser 3a01daa2a9 MFC: Use the 'realclean' target in the crunch.mk file, and determine the
names of the PicoBSD releases automatically.
2000-12-23 17:57:23 +00:00
Ian Dowse 73eff6cd29 MFC: 1.15
Don't crash with a SIGBUS when short packets are received, include
source IP in log messages for bad packets.

Requested by: kris
2000-12-23 15:32:16 +00:00
MIHIRA Sanpei Yoshiro 958d3ebfb7 MFC:
add new PC-Card
		- BUFFALO LPC2-T/LPC3-TX/LPC3-CLX
		- Linksys EtherFast 10/100 PC Card (PCMPC100,V2,V3)
	        - Xircom 10/100 Network PC Card adapter
2000-12-23 15:05:07 +00:00
MIHIRA Sanpei Yoshiro d6435da199 MFC:
add new card config
		- Xircom 10/100 Network PC Card (1.149)
		- BUFFALO LPC3-CLX              (1.151)
		- Melco WLI-PCM                 (1.156)
		- SII MC-P200                   (1.158)
		- ZoomAir 4000                  (1.161)

	use ``config auto''
		- COREGA Ether PCC-T            (1.152)
		- DHU Mobile Media CD-ROM       (1.154)
		- Melco Airconnect(WLI-PCM-L11) (1.160)
		- Farallon SkyLINE Wireless     (1.161)
		- ICom SL-200                   (1.161)

	remove Nokia Card Phone 2.0 (gsm900/dcs1800 HSCSD terminal)
		- this PC-Card has function ID as modem,
		  pccard.conf entry is not needed.      (1.155)

	update MELCO LPC3-TX entry              (1.151)

	Join tree entries for Linksys PCMPC100 series   (1.164)
2000-12-23 14:38:37 +00:00
MIHIRA Sanpei Yoshiro f872b6e5f0 [MFC]: add PNPID for PnP PCMCIA, SCM SwapBox Classic X2P. 2000-12-23 14:09:25 +00:00
Garance A Drosehn 2ddb4d1a5e MFC: Have 'lpr' include -Class info even for jobs or queues which will not
print a header page.  (rev. 1.34)

PR:		"Steve O'Hara-Smith" <[email protected]>
2000-12-23 05:28:19 +00:00
Garance A Drosehn 240e6306cb MFC: Change so 'lpr -r' ("remove file after copying to print queue") will try
to 'mv' the file instead 'cp+rm'-ing it.  This can save time & disk space
     when it is doable and safe to do (a big win for, eg, samba).  (rev 1.35)

PR:		16124
2000-12-23 04:59:10 +00:00
Garance A Drosehn 1800789927 MFC: make 'lpq' output more informative when listing jobs with long 'Name'
fields.  Try to print some useful substring of the field.   (rev 1.17)
2000-12-23 04:49:20 +00:00
Garance A Drosehn 8fe347e97b MFC: fix 'lpq' so it correctly displays jobs from lprNG hosts. 2000-12-23 04:43:16 +00:00
Yoshihiro Takahashi 14566c51b1 Merged from sys/boot/i386/loader/Makefile revision 1.41.2.6. 2000-12-23 03:45:09 +00:00
Luigi Rizzo d8343f9978 inetd is not always present, check before invoking it. 2000-12-23 01:08:32 +00:00
Luigi Rizzo f240b9d07a update list of programs and associated sizes.
Mention that inetd is only required with telnet and friends.
2000-12-23 01:05:57 +00:00
Luigi Rizzo 958c893b2d Add "options MD_ROOT_SIZE" (necessary now without the loader),
add comments about the size of various options, cleanup
and rearrange the configuration.
2000-12-23 01:01:12 +00:00
Mike Smith e19f488054 MFC: signature check for older i960-based adapters. 2000-12-22 22:24:32 +00:00
Wilko Bulte b4656e7ec9 Note that the root filesystem better be on the first partition for it
to be bootable

Triggered by: questions on -alpha
2000-12-22 20:59:48 +00:00
Josef Karthauser b9af77c75b Specify the KERNEL name just in case it's been overriden in /etc/make.conf. 2000-12-22 19:29:03 +00:00
David E. O'Brien 683d89c18a MFC: update date of last change. 2000-12-22 18:57:15 +00:00
Matthew Dillon 07a766574c MFC ufs_readwrite.c 1.72, ext2_readwrite.c 1.20. Fix a data-consistency
race between write() and mmap().  I know this will slow write-appends
down a bit and I am researching a better solution, but the race needs to
be fixed now.
2000-12-22 18:44:34 +00:00
Josef Karthauser 5ceaa84581 MFC: Support the -p flag to crunchgen to get the objects built in the
right object directory.
2000-12-22 18:27:47 +00:00
David E. O'Brien 37199fe7cf MFC: add the -bzip and -I flags as aliases for -y 2000-12-22 11:26:00 +00:00
Alfred Perlstein ebc2742491 MFC: unbreak kernel without option INET by making acceptfilter support optional 2000-12-22 10:25:21 +00:00
Paul Saab 1e99db6459 MFC: Add support for probing the keyboard from pxeboot. 2000-12-22 06:59:23 +00:00
Daniel Eischen 06e43a9387 MFC: When retrieving time of day, store it in the global time of day.
PR:		23679
2000-12-22 04:24:03 +00:00
Daniel Eischen dd3157d312 MFC: Enable check for pending signals after calling a signal handler.
PR:		23647
2000-12-22 04:22:20 +00:00
Luigi Rizzo 7cb79abd4d Several cleanups of this script, including, in order of importance:
+ support for different floppy sizes (1480, 1720, 2880)
+ remove the loader, revert back to the use of preloaded fs images.
  Space is too tight to waste 60-70KB on /boot/loader.
+ Remove some useless awk stuff to write magic numbers in the boot sector.
+ Try to trap ^C and cleanup the vn device.

Hopefully the removal of the loader will make room for some more
useful stuff on the disk.
2000-12-22 02:17:06 +00:00
Luigi Rizzo 555ba6575e Add support for different floppy sizes (1480, 1720, 2880).
The "1720" format will not boot most likely.

The "1480" format (really 1476KB, 18 sectors x 82 tracks) does
boot fine on the systems i have tried.
2000-12-22 02:11:13 +00:00
David E. O'Brien 60cc735d0f MFC: NOLIBC_R. 2000-12-21 22:13:31 +00:00
Ruslan Ermilov f19dc790e1 MFC: simplify mdoc(7) construct. 2000-12-21 15:32:52 +00:00
Josef Karthauser 65a99c3372 MFC: Revisions 1.18-1.22
o Better support for building objects in a shadow obj directory
  using MAKEOBJDIRPREFIX and the -o and -p flags.

o Use the TMPDIR env variable or _PATH_TMP for determining which
  temporary directory to use.

Security fixes:
o check strdup() return values.
o strcpy() -> strlcpy()
o sprintf() -> snprintf()
o mktemp() -> mkstemp()
o use err() instead of errx() in out_of_memory() function since
  errno will probably be set.
2000-12-21 12:50:49 +00:00
Archie Cobbs c209677627 MFC: synchronize with -current. 2000-12-20 21:25:53 +00:00
Noriaki Mitsunaga 20cbddb998 Remove conflicts between unsinged char *s and int s.
It was possible cause of kernel panic.

Pointed Out by: [email protected]
2000-12-20 13:58:36 +00:00
Ruslan Ermilov 2dafcf464a MFC: Prepare for mdoc(7)NG. 2000-12-20 13:31:19 +00:00
Noriaki Mitsunaga 3b01b36a40 [MFC]
- Change manufacture ID for REX-5535AC, REX-5535X, REX-9835X, and REX-9835Z
  from "PCMCIA SCSI MBH1040" to "PCMCIA SCSI MBH10401" "01". They are
  based on the spc driver.
  This will fix the conflicts of entry with REX-5536AM, REX-9836A,
  and ICM PSC-2401 ("MBH10404" ones) which are based on stg driver.
  The problem was pointed out in bsd-nomads several times since PAO2 days.

- Comment out the entry for "MBH10401" ones. The spc driver is
  not supported yet.

- Add more comment about cards which has broken CIS
  (some cards which has tuple of "PCMCIA SCSI MBH10404" "01").

Reported by:	[email protected], [email protected],
		[email protected]

Obtained from:	discussion in bsd-nomads mailing list
2000-12-20 12:51:29 +00:00
David E. O'Brien 4ef7f26f36 MFC: display pathnames of item being rm'ed. 2000-12-20 08:32:12 +00:00
Nicolas Souchu c63db9e51d MFC.
PR:	i386/22568
2000-12-19 21:30:47 +00:00
Wilko Bulte d676420046 Document IDE on NoName a bit better.
Suggested by: the Dutch FreeBSD Users Group (NLFUG)
2000-12-19 20:13:10 +00:00
Ruslan Ermilov e5e23f00c5 MFC: Prepare for mdoc(7)NG. 2000-12-19 16:22:38 +00:00
Ruslan Ermilov 8dae396302 MFC: Prepare for mdoc(7)NG. 2000-12-19 15:49:16 +00:00
Ruslan Ermilov b3581be895 MFC: Prepare for mdoc(7)NG. 2000-12-19 15:42:46 +00:00
Ruslan Ermilov 1b8a087a5d MFC: Prepare for mdoc(7)NG. 2000-12-19 15:32:08 +00:00
Robert Nordier 1f95cf1dde MFC: Strip .comment and .note sections when stripping. 2000-12-19 01:18:34 +00:00
Robert Nordier e1237d85c1 MFC: Sync from -current: new packet option default. 2000-12-19 00:40:01 +00:00
Robert Nordier 449916ef52 MFC: Sync with -current code. (Configure for LBA at install-time
rather than run-time.)
2000-12-19 00:32:19 +00:00
Robert Nordier 34d0916356 MFC: Install-time configuration of i386 boot0. 2000-12-18 23:56:21 +00:00
Bruce A. Mah dc231a7d09 MFC: sysinstall has better defaults, Kerberos IV fixes, telnet environment
fixes, procfs(4) security patches.
2000-12-18 23:16:26 +00:00
Bruce A. Mah 4424052d73 MFC: Add a line to release notes specifying architecture. 2000-12-18 22:56:00 +00:00
Ruslan Ermilov 7da5373664 MFC: prepare for mdoc(7)NG. 2000-12-18 15:38:36 +00:00
Ruslan Ermilov 9d52a92d8d MFC: Prepare for mdoc(7)NG. 2000-12-18 14:52:17 +00:00
Brian Somers 8de3cbbb6b MFC: Fix a tyo 2000-12-18 01:58:42 +00:00
Brian Somers 3fd3c4f98b MFC: Add more examples and generally improve existing stuff. 2000-12-18 01:56:36 +00:00
Brian Somers 8f1d8c2939 MFC: disable & deny mppe 2000-12-18 01:55:32 +00:00
Brian Somers 7c2fd48afe MFC: Add MPPE, MSChapv2 and tcpmssfixup
Add ``set log all''
     Display the mtu with ``show iface''
     Support RADIUS accounting
     Use the correct negotiated CCP options
     Document how to tunnel using PPP/UDP and MPPE
     Fix examples of using ``add''
     Fix another comment parsing bug
     Make pppoe netgraph messages consistent with -current
     Fix some lines >80 characters
     Mention what mbuf type can't be allocated
     Increase M_MAXLEN so that it's consistent with HDLCSIZE
     Retry sending data when we get ENOBUFS
     Don't assuming UDP sockets to be unconnected in -direct mode
     Bump to version 2.3
2000-12-18 01:46:45 +00:00
Jordan K. Hubbard 5831c12405 MFC: remove non-functioning SNAPDATE 2000-12-17 20:36:04 +00:00
Jordan K. Hubbard 58eb9f81b5 MFC: use better dialog type for UTC question 2000-12-17 20:35:38 +00:00
Wolfram Schneider 26d8e30ae0 merge up to rev 1.37 2000-12-17 18:46:58 +00:00
Robert Watson 4c1dd5d16f o MFC of procfs_ctl.c 1.22, tighten restrictions on the use of
/proc/pid/ctl.  This is a backport of the -CURRENT patch to use
  the procfs CHECKIO() interface rather than the p_can interface
  available in -CURRENT.  sef reviewed the patch for -CURRENT, and
  had proposed a less fascist version of the patch for -STABLE.

Reviewed by:	security-officer, alfred
2000-12-17 03:13:05 +00:00
Alfred Perlstein 2d3148a68a MFC: phys_pager fix for multiple segments 2000-12-17 02:05:41 +00:00
Jordan K. Hubbard 731e3981d3 MFC; fix text, boolean request check 2000-12-16 12:07:01 +00:00
Doug Barton c10c5e98fa MFC 1.11
PR:		conf/23105
Submitted by:	Matthew West <[email protected]>
2000-12-16 07:03:35 +00:00
Doug Barton f45d8856e5 * MFC 1.240
* Tiny ws change, reduces diff to -current

PR:		misc/21904
Submitted by:	Anton Voronin <[email protected]>
2000-12-16 06:55:45 +00:00
Yoshihiro Takahashi 97fbae383e MFC: Added 'MACHINE=pc98' for modules building. 2000-12-16 03:53:08 +00:00
Yoshihiro Takahashi 457e4fd8ec MFC: Moved the snc driver position before the sn driver. 2000-12-16 03:49:18 +00:00
Yoshihiro Takahashi 5ce4b53ad5 MFC: Fixed to support 3Com 3C569B for PC-98. 2000-12-16 03:47:57 +00:00
Archie Cobbs de8d60e380 MFC: fix bug in parse type for struct ng_one2many_config. 2000-12-15 17:56:03 +00:00
Ruslan Ermilov 805536f798 MFC: Prepare for mdoc(7)NG. 2000-12-15 17:47:25 +00:00
Ruslan Ermilov a40433b4d2 MFC: Fixed the ``no space after a .Fl'' problem. 2000-12-15 14:59:56 +00:00
Jordan K. Hubbard 0fa43642bb MFC: use No/Yes dialogs where more appropriate. 2000-12-15 05:56:22 +00:00
Jordan K. Hubbard 7485b83af8 MFC: dialog_noyes() and various stylistic fixes. 2000-12-15 05:54:37 +00:00
Alexey Zelkin 480c97d887 MFC: rev. 1.11, typos 2000-12-14 16:29:23 +00:00
Alexey Zelkin 5388e007d6 MFC: missing comma 2000-12-14 16:29:01 +00:00
Ruslan Ermilov 9013753990 MFC: added missing .Os call. 2000-12-14 14:10:40 +00:00
Ruslan Ermilov 9bc89157ba MFC: removed duplicate .Os call. 2000-12-14 12:49:24 +00:00
Ruslan Ermilov e23171456a MFC: removed duplicate .Os calls. 2000-12-14 12:43:55 +00:00
Ruslan Ermilov 43451d0bdd MFC: removed history info from the .Os FreeBSD call. 2000-12-14 12:18:13 +00:00
Ruslan Ermilov 4ac8abf328 MFC: mdoc(7)ify. 2000-12-14 08:03:23 +00:00
Ruslan Ermilov ddf3f1eed5 MFC: (rev 1.7) mdoc(7) fixes. 2000-12-14 07:54:12 +00:00
Wilko Bulte 50632e1642 For PC164: document "ERROR: ISA table corrupt!" and workaround
Thanks to: [email protected]
2000-12-13 19:57:08 +00:00
Wilko Bulte f573a9c33f Add a workaround in the EXAMPLE section for booting diskless SPARC/SunOS
Xkernel machines. Might save people some hair pulling..

Submitted by:	[email protected]
2000-12-13 19:49:46 +00:00
Ruslan Ermilov 4d8c7c91db MFC: (rev 1.5) report correct grep version. 2000-12-13 15:57:13 +00:00
Assar Westerlund 57d84f66fb MFC 1.11: document TUNSIFINFO, TUNGIFINFO, TUNSIFPID, TUNSIFHEAD, TUNGIFHEAD 2000-12-13 13:42:37 +00:00
David E. O'Brien d770ff369f MFC: rev 1.8 make the comment fully a comment 2000-12-13 10:02:22 +00:00
Wilko Bulte 2cbe9d361e Document fix that makes AS1000[A] to work that were not
EV4 AS1000 and EV5 AS1000A.

Related commit:
1.8       +11 -3     src/sys/alpha/alpha/dec_1000a.c
2000-12-12 23:51:05 +00:00
Archie Cobbs 2aaa6fe5b9 MFC: fix promiscuous mode reset on last hook disconnect bug. 2000-12-12 23:15:23 +00:00
Daniel Harris 73d6873c70 MFC: 1.3: configration -> configuration. 2000-12-12 22:48:18 +00:00
Bill Paul 222017c906 Add code to cancel autoneg timeouts when a PHY driver is detached,
otherwise a timeout might fire after a driver has been shut down (i.e.
when a pccard/cardbus device is unplugged before autoneg completes).

Submitted by: Ian Dowse, with one small tweak by me
2000-12-12 19:29:15 +00:00
Archie Cobbs 6bd1adf9cd MFC: document /usr/include/isc. 2000-12-12 16:08:11 +00:00
Ruslan Ermilov 813a92be09 MFC: synch with -current (cosmetics). 2000-12-12 15:42:08 +00:00
Ruslan Ermilov c6904839fa MFC: .Os CMU -> .Os, split author names. 2000-12-12 15:34:19 +00:00
Ruslan Ermilov 45cf142002 MFC: Remove hard-sentence breaks, canonify .Dd (no leading zero). 2000-12-12 14:52:49 +00:00
Alexey Zelkin 0cc627388d MFC: back to home born mdoc manpages updated to current (3.33) version
of file(1)
2000-12-12 11:50:36 +00:00
Ruslan Ermilov 7879c1ca05 MFC: (rev 1.8) eliminate .Os warning. 2000-12-12 10:19:08 +00:00
Ruslan Ermilov 9ffac5dcb6 MFC: (rev 1.5) eliminate .Os warning. 2000-12-12 10:16:33 +00:00
Ruslan Ermilov 58295df7dd MFC: use canonical form of .Dd macro. 2000-12-12 10:14:52 +00:00
Ruslan Ermilov e1928dc27e MFC: (fix part of rev 1.22) Eliminate the .Fx warning. 2000-12-12 10:13:45 +00:00
Ruslan Ermilov d9891373ec MFC: use canonical form of .Dd macro. 2000-12-12 10:02:35 +00:00
Assar Westerlund 0bc4e5b228 MFC: 1.27->1.28
(scrub_env): change to only accept a listed set of variables,
including only non-filename contents for TERMCAP
2000-12-12 03:10:49 +00:00
Assar Westerlund 441c482dec MFC: 1.9->1.10
(scrub_env): change to only accept a listed set of variables,
including only non-filename contents for TERMCAP
2000-12-12 03:09:35 +00:00
Assar Westerlund a6c745009c MFC: (tf_create): remove the overwriting of the old ticket file 2000-12-12 03:07:56 +00:00
Assar Westerlund 08cda62313 MFC: (kdc_reply_cipher): fix buffer over-run 2000-12-12 03:07:17 +00:00
Assar Westerlund be2397a3a8 RFC: remove (obsolete) support for environment variables. 2000-12-12 03:06:34 +00:00
Matt Jacob a8fbfaae01 Update (oops) Qlogic option stuff and mention f/w module. 2000-12-11 23:31:24 +00:00
Matthew Dillon 6e3dbd9d29 MFC 1.165 2000-12-11 20:31:22 +00:00
Hajimu UMEMOTO 237444823c MFC 1.109->1.110: Wait DAD complete after ifconfig up. 2000-12-11 18:51:31 +00:00
Hajimu UMEMOTO 2aa7c31cc9 MFC 1.7->1.8: test strdup() failures.
from: Chris Faulhaber <[email protected]>
2000-12-11 18:47:39 +00:00
Ruslan Ermilov 2a534711d3 MFC: Document /usr/include/netnatm and /usr/share/sendmail. 2000-12-11 13:43:51 +00:00
Ben Smithurst 61b94f78c6 MFC: .Nm Config -> .Nm 2000-12-11 10:23:46 +00:00
Matthew Dillon fcc9cff4e1 MFC 1.71 - deal with excessive dirty buffers when msync() syncs
huge numbers of non-contiguous dirty pages.
2000-12-11 07:33:22 +00:00
Matthew Dillon 72e10fe2b6 MFC 1.67, 1.68 kern/sys_generic.c. Add appropriate bwillwrite()
calls, limit calls to file vnodes only.
2000-12-11 07:23:54 +00:00
Bruce A. Mah 8864303dc6 MFC: twe(4) updates, groff->1.16.1, new formatting options for indent(1),
fix a typo for Accton "Cheetah".
2000-12-11 05:01:46 +00:00
David E. O'Brien 6034d13a9e MFC: add /dev/zero and use PATH_* where possible. 2000-12-11 01:03:42 +00:00
Assar Westerlund b67b2ea4ce revert accidental previous commit 2000-12-10 20:27:54 +00:00
John Polstra 46640579fe MFC 1.12 -> 1.14: Bug fixes connected with recording the original
arguments.
2000-12-10 20:27:08 +00:00
Assar Westerlund 828b7b63b6 (scrub_env): change to only accept a listed set of variables,
including only non-filename contents for TERMCAP
2000-12-10 20:26:11 +00:00
Dag-Erling Smørgrav 93754284c0 MFC: synch with -CURRENT (cleanup, passive mode detection) 2000-12-10 13:29:04 +00:00
Yoshihiro Takahashi 18b48dc122 Merged from sys/boot/i386/libi386/biosdisk.c revision 1.26.2.5. 2000-12-10 10:04:08 +00:00
David E. O'Brien 7c69be07d1 MFC: add history 2000-12-10 01:11:18 +00:00
David E. O'Brien f58565acfb MFC.
* -[n]fcb (formatting of block comments)
* attempt to implement no-space=after-sizeof and no-space-after 'struct foo *'
* add or fix FreeBSD IDs
2000-12-09 19:05:05 +00:00
Yoshihiro Takahashi d83c43eaa1 The olpt driver uses isa compatible mode.
Submitted by:	Rikito INAKAZU <[email protected]>
2000-12-09 04:37:23 +00:00
Yoshihiro Takahashi 8d2a670b25 Use polling mode for pcic device.
Submitted by:	Nobuyuki Koganemaru <[email protected]>
2000-12-09 04:26:42 +00:00
Paul Saab 6ea392f47d MFC: [rev 1.56] Make issetugid return correctly. It was returning
-1 with errno == 1 if it was set?id!
2000-12-09 02:44:47 +00:00
Archie Cobbs ef422cd143 MFC: fix typo. 2000-12-08 21:02:41 +00:00
Ruslan Ermilov 0c2f6ccbdf MFC: recent mdoc(7) fixes. 2000-12-08 15:29:09 +00:00
Ruslan Ermilov 5f668f21b4 MFC: recent mdoc(7) fixes. 2000-12-08 15:14:24 +00:00
Ruslan Ermilov 9730d1dcf9 MFC: recent mdoc(7) fixes. 2000-12-08 15:03:36 +00:00
Ruslan Ermilov 2600a60b00 MFC: recent mdoc(7) fixes. 2000-12-08 14:04:21 +00:00
Ruslan Ermilov 20456d91bc MFC: recent mdoc(7) fixes. 2000-12-08 13:53:03 +00:00
Ruslan Ermilov d166f30f86 MFC: recent mdoc(7) fixes. 2000-12-08 13:40:55 +00:00
Brian Somers 6bf0a0d7f0 MFC: Die gracefully rather than dropping a core if malloc() fails 2000-12-08 11:42:53 +00:00
David E. O'Brien 5ad3ba8c4a MFC: run weekly later as daily runs later now 2000-12-08 10:56:07 +00:00
Peter Wemm 4cf6de4769 MFC: rev 1.131; workaround for broken MP tables like on the Compaq DL360. 2000-12-08 08:27:48 +00:00
Wilko Bulte 6c52dbd633 Document 'untested' status of ExtIO module on AS2100. Even when we
don't know these things were ever produced.
2000-12-07 21:36:32 +00:00
Ben Smithurst 8cd5744c49 MFC: document that securelevel > 0 forbids module (un)loading. 2000-12-07 21:10:44 +00:00
Jordan K. Hubbard 954cd83c84 MFC: fix minimal distribution flag 2000-12-07 20:05:07 +00:00
David E. O'Brien dee69b3b88 MFC. 2000-12-07 16:33:39 +00:00
Ruslan Ermilov 5d85ffc2b7 MFC: (rev 1.6) use stock (SENDMAIL) version of this file. 2000-12-07 16:05:31 +00:00
Ruslan Ermilov b112b34834 MFC: convert to mdoc(7) format. 2000-12-07 15:38:46 +00:00
Ruslan Ermilov 1104b854ee MFC: (rev 1.72)
IPFW does not discard *any* IP fragments with OFF=1, only TCP ones.
2000-12-07 15:24:26 +00:00
Ruslan Ermilov e24a6c4403 MFC: (rev 1.232) Turn the verbose mode on for dumpon(8). 2000-12-07 15:19:17 +00:00
Ruslan Ermilov 94b9b14c3f MFC (rev 1.8): Removed broken PAM support from rshd(8) and rlogind(8). 2000-12-07 15:16:12 +00:00
Ruslan Ermilov 5dd880790a The previous MFC of 1.16 was not actually an MFC, fixed this. 2000-12-07 15:12:53 +00:00
Ruslan Ermilov 2292955056 Sync with -current (whitespace only). 2000-12-07 15:02:31 +00:00
Dag-Erling Smørgrav 5b2e8642fc MFC: bogus bogomips 2000-12-07 13:17:55 +00:00
Thomas Gellekum a38944c477 MFC: Install missing manpages, add missing functions to MLINKS. 2000-12-07 12:23:57 +00:00
Ruslan Ermilov 8dd8a3f4f9 MFC: Upgrade to Groff 1.16.1. 2000-12-07 10:01:34 +00:00
Ruslan Ermilov 95344d130f MFC: Upgrade to Groff 1.16.1. 2000-12-07 09:48:59 +00:00
Paul Saab 572d7a90a2 MFC:
- add support for crashdumps
 - standardise error reporting for commands
 - simplify the driver-to-controller bio transfer
 - add bio in/out accounting
 - correctly preserve the command ID in twe_ioctl (thanks to joel@3ware)
2000-12-07 08:08:45 +00:00
Warner Losh ef08021f77 Merge awi driver from -current version of the driver, less the changes
that are not relevant (and break!) -stable.  This driver is for PRISM I
based wireless pccards written by Atushi Onoe-san on NetBSD.
2000-12-07 04:09:39 +00:00
Luigi Rizzo 9a3c332c7b No need to do X11 forwarding with picobsd... 2000-12-07 03:20:57 +00:00
cvs2svn f475c00af9 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-12-07 03:16:22 +00:00
Luigi Rizzo c640a7a287 Misc. cleanup:
* deal with new location of kernel and objects;
* take mfs files from mfs_tree;
* build a small version of the loader without FORTH
2000-12-06 20:38:18 +00:00
Luigi Rizzo d4635c6253 Mve build directory to /usr/obj-pico just to be sure
that everything works with objects outside the standard place.
2000-12-06 20:36:39 +00:00
Luigi Rizzo 500b6bd129 Put back kernel in $(SRC)/sys/compile/$(TYPE), the previous
place would require a full make world to be done in advance
(i think!)
2000-12-06 20:34:29 +00:00
Luigi Rizzo 989143bd3f Keep going even if crunchgen gives some warnings, they might be
non fatal.
Also, now that crunchgen can deal with obj directories different
from /usr/obj we do not need the perl magic.
2000-12-06 20:32:41 +00:00
Luigi Rizzo 7e6f5c1017 MFC: remove and undefined reference when no VLAN support is compiled in,
do not compile in VLAN support when RELEASE_CRUNCH is defined
2000-12-06 20:03:02 +00:00
David E. O'Brien 10417fef06 MFC: rev 1.242 (show start and stop times together) 2000-12-06 06:00:43 +00:00
Matt Jacob 1dfddb8ed9 MFC: Merge in OpenBSD support and add some LOCKing macros, also for ease
of support.
2000-12-06 00:54:33 +00:00
Alfred Perlstein d6a28664c9 MFC: 1.4 (handle non PAGE_SIZE requests properly) 2000-12-05 22:23:10 +00:00
John Baldwin 840f81f0d1 MFC: Trim trailing whitespace. 2000-12-05 20:41:56 +00:00
John Baldwin 45b7846793 MFC: Put ipfw(4) xref in right place. 2000-12-05 20:33:06 +00:00
Wilko Bulte 7e5a3380fc Note that Symbios is the new owner of the NCR SCSI chip designs. And
that the document references to Symbios are ment to include NCR-stamped
chips as well.

Suggested by: obrien
2000-12-05 20:21:18 +00:00
Maxim Sobolev c83a2e22b5 MFC:
Alphabetically reorder options in `.Op Fl' macro to be consistent with the
rest of the code.
2000-12-05 16:41:26 +00:00
Maxim Sobolev f028858bdf MFC:
- Add missed `-s' option into usage printout;
- sort options alphabetically.
2000-12-05 11:03:20 +00:00
Alfred Perlstein 58d42e5745 MFC: remove struct mount from userland (except fstat) to prevent namespace
pollution.
2000-12-05 09:43:12 +00:00
Ruslan Ermilov 24453cd95c MFC: Fixed manpage building. 2000-12-05 08:11:12 +00:00
Matt Jacob 6acc24f1fc MFC: Remove more printfs and use either isp_prt or device_printf. Remember
to set ISP_LOGINFO if bootverbose is set.  Remove unneeded <machine/clock.h>,
Replace splbio/splx with ISP_LOCK/ISP_UNLOCK macros.
2000-12-05 07:53:38 +00:00
Matt Jacob 7359cea40c MFC: Add interrupt instrumentation. Change ISP_CFG_NPORT config option to
a set of options that allows specific loop, loop-only, nport, nport-only
topology settings. Define a required macro for all platforms (USEC_SLEEEP).
2000-12-05 07:52:09 +00:00
Matt Jacob 151bdb3526 MFC: Only call ISP_UNLOCK/ISP_LOCK if isp->isp_osinfo.intsok in USEC_SLEEP.
Add a test against isp->isp_osinfo.islocked prior to trying to see
whether --isp->isp_osinfo.islocked is zero to cause us to unlock
(non-SMPLOCK case). Add USEC_SLEEP macro support. Change the location at
which we define ISP_LOCK/ISP_UNLOCK macros.  Roll minor revision again.
2000-12-05 07:51:35 +00:00
Matt Jacob 428117b36b MFC: Replace some more printfs with isp_prt's. Use isp_prt/ISP_LOGDEBUG0
for rate setting/getting printouts. Remove "SERVICING_INTERRUPT" nonsense
2000-12-05 07:49:16 +00:00
Matt Jacob 6a0a67fff6 MFC: Make the Not RESPONSE in RESPONSE QUEUE message have a bit more info
(specifically, how many entries we've looked at so far). Maintain
interrupt instrumentation. Use USEC_SLEEP instead of USEC_DELAY in
a number of places (this allows us to drop locks and sleep instead
of spin). Track changes to configuration options for topology preference.
Fix botched order of printout for Channel, Target, Lun.
2000-12-05 07:48:01 +00:00
Julian Elischer 3938679372 MFC: 1.26
protect reference counts during queue operations with spl...
2000-12-04 22:08:50 +00:00
Brian Somers ef35f98bac MFC: Check the return from tcsetattr().
Requested by: Andre Albsmeier <[email protected]>
2000-12-04 21:35:23 +00:00
Hajimu UMEMOTO 71a67fd25c MFC 1.7->1.8
- do not check/advertise cloned routes, nor dynamic routes
  - cast size_t on printing (be friendly with alpha)
2000-12-04 14:07:04 +00:00
Hajimu UMEMOTO dce7f82c9b MFC 1.55->1.56: Add missing initialization for IPv6 address lifetime. 2000-12-04 14:04:24 +00:00
Alexander Langer 515a448ecf MFC: Fix the -d (delay) option. 2000-12-04 10:36:17 +00:00
Tatsumi Hosokawa 4e6ac1b598 (MFC: 1.581) make sure vn.ko is loaded. 2000-12-04 06:37:42 +00:00
Wilko Bulte 88d7f6bf61 Update SCSI info for PC164
Obtained from:  discussions on netbsd-alpha
2000-12-03 11:04:47 +00:00
MIHIRA Sanpei Yoshiro 4f05eec7bc [MFC] Add PC-Card melody beep(PC Card bus, kludge version)
Original idea from:	PAO3
2000-12-02 12:49:56 +00:00
Bosko Milekic 74118a30e3 MFC: Fix sf_buf leak in mbuf exhaustion case. 2000-12-02 00:47:50 +00:00
Jordan K. Hubbard d004daeccc MFC: also list kernel target 2000-12-01 22:01:19 +00:00
Jordan K. Hubbard d06c891d7d MFC: "kernel" target 2000-12-01 21:58:09 +00:00
Ruslan Ermilov 70283043bb MFC: Bind the <End> key to the `$' command. 2000-12-01 15:45:34 +00:00
Jonathan Lemon 090de4fe03 MFC: r1.17, bugfix for DEC version of chip. 2000-12-01 15:30:35 +00:00
Ruslan Ermilov 0d26b77894 MFC: add missing USE_TBL=yes. 2000-12-01 13:52:21 +00:00
Ruslan Ermilov 1ba7f18dbb MFC: Eliminate groff(1) warnings. 2000-12-01 11:34:38 +00:00
Dag-Erling Smørgrav 20a2f25b54 MFC: various bug and style fixes (synch with -CURRENT) 2000-12-01 11:09:19 +00:00
Dag-Erling Smørgrav a8d732a66e MFC: fix support for historical proxy syntax. 2000-12-01 10:47:57 +00:00
David E. O'Brien 4ebc2be5db MFC: comment an endif 2000-12-01 10:21:34 +00:00
Ruslan Ermilov 374c920bd2 MFC: mdoc(7) fixes from revision 1.22. 2000-12-01 08:20:20 +00:00
Bill Paul fb86c1f25c MFC: add support for the Accton 2242 MiniPCI adapter to the dc driver.
This just involves adding a new PCI ID.
2000-12-01 05:43:24 +00:00
Brian Somers dc5f218114 MFC: Bring these examples up to date. 2000-11-30 23:12:22 +00:00
Luigi Rizzo 2cb5093b87 Add code to automatically map MAC address to IP (asking the user if
the mapping is unknown, and storing it to /etc/hosts).
Remove files which belong to mfs_tree
2000-11-30 22:59:17 +00:00
Luigi Rizzo a4150d7f9a Move here the files which only belong to the mfs tree 2000-11-30 22:55:08 +00:00
Luigi Rizzo 355ca4d307 MFC: fix documentation, change some sprintf ->snprintf, and support
better handling of obj directory
2000-11-30 22:49:53 +00:00
Luigi Rizzo 5fb770b3c9 Fix a pathname and remove tcpdump to make the image fit the floppy. 2000-11-30 22:25:35 +00:00
Luigi Rizzo f0a6d4d37d Floppy and MFS options are now in this file. 2000-11-30 22:22:46 +00:00
Ruslan Ermilov 70f998ba67 MFC: Eliminate groff(1) warnings. 2000-11-30 18:41:04 +00:00
Ruslan Ermilov ef91f5d868 MFC: Eliminate groff(1) warnings. 2000-11-30 17:13:59 +00:00
Ruslan Ermilov 53c0db8e83 MFC: Eliminate groff(1) warnings. 2000-11-30 13:10:34 +00:00
Peter Wemm 606a62ab3d Put on my asbestos suit and do an immediate MFC for NKPT (the initial
number of page table pages to create for bootstrap) since it prevents
installation on 4G ram machines.

There is no risk of this causing problems on other machines.
2000-11-30 01:54:42 +00:00
Daniel Harris c211cd4a96 MFC: 1.35: layout fix. 2000-11-29 21:48:32 +00:00
David E. O'Brien 6075f1db27 MFC: switch over to using the Christos Zoulas maintained version in contrib/ 2000-11-29 19:33:09 +00:00
Ruslan Ermilov 2683d3f16c MFC: Eliminate groff(1) warnings. 2000-11-29 10:59:28 +00:00
Ruslan Ermilov 5470fb6824 MFC: Eliminate groff(1) warnings caused by vgrind(1). 2000-11-29 10:33:55 +00:00
Bruce A. Mah 2fd3859d45 MFC: Binutils-2.10.1, OpenSSL-0.9.6, file(1) contribify-ed. 2000-11-29 07:05:49 +00:00
Sheldon Hearn 19693b4e25 MFC rev 1.14: fix a typo and a punctuation mistake 2000-11-29 06:56:19 +00:00
Mike Smith 2e40b16b7d Add the 'amr' control device. 2000-11-28 21:53:42 +00:00
Mike Smith 992b499f52 MFC: remove excessive debugging code. 2000-11-28 20:52:30 +00:00
Ben Smithurst f04cd5aa4b MFC: fix typos and layout problem. 2000-11-28 20:39:42 +00:00
Ruslan Ermilov 3cbad5bd26 MFC: Eliminate groff(1) warnings. 2000-11-28 19:28:09 +00:00
Mike Smith e106def10f Fix amr_map_command so that 40LD-specific commands get the scatter-gather
list count in the right place.  I don't understand why AMI did it like
 this, but now the AMI MegaManager can talk to the newer (1600 and later)
 controllers.

 Remove an unused variable.

 Include <machine/clock.h> when necessary.

 Tweak some debugging levels to make things more intelligible.
2000-11-28 19:25:28 +00:00
Ruslan Ermilov 8147a409c9 MFC: Eliminate groff(1) and tbl(1) warnings. 2000-11-28 17:06:48 +00:00
Ben Smithurst 361d571f0f MFC: minor typo and punctuation fixes. 2000-11-28 11:36:36 +00:00
Ruslan Ermilov 5404347489 MFC: Eliminate groff(1) warnings, unbind from tbl(1). 2000-11-28 11:35:48 +00:00
Ruslan Ermilov 284e1c5aaa MFC: ${GRIND} implies -f. 2000-11-28 11:18:48 +00:00
Bosko Milekic a7ef8411af MFC: Get rid of a panic that occurs in ether_demux() by dereferncing
a NULL mbuf pointer, when bridging and bridge_ipfw are enabled, and
when bdg_forward() happens to free the packet and make our pointer NULL.

PR: kern/19551 (partly)
2000-11-28 00:27:30 +00:00
Ruslan Ermilov a6a9a58fe1 MFC: Eliminate groff(1) warnings. 2000-11-27 18:18:15 +00:00
Ruslan Ermilov c570a4dda2 MFC: Eliminate groff(1) warnings. 2000-11-27 18:02:02 +00:00
cvs2svn 366ed45a22 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-11-27 18:00:52 +00:00
Dag-Erling Smørgrav 3a0d7af3d4 MFC: multiline response fix. 2000-11-27 10:15:09 +00:00
Ruslan Ermilov b0a1e74251 MFC: Use groff(1) versions of these documents. 2000-11-27 09:25:03 +00:00
Ruslan Ermilov a1811542b4 MFC: Eliminate groff(1) warnings. 2000-11-27 08:51:33 +00:00
Ruslan Ermilov d4a9b10c7a MFC: Eliminate groff(1) warnings: unbreak refer(1)ences. 2000-11-27 07:57:48 +00:00
Ruslan Ermilov 4533fa3fea MFC: Eliminate groff(1) warnings. 2000-11-27 07:20:08 +00:00
David E. O'Brien 2c53875b3b MFC: "build" the 4.0-RELEASE `cdboot' binary until the source is fixed. 2000-11-27 02:16:39 +00:00
cvs2svn 43e4651486 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-11-27 02:15:14 +00:00
David E. O'Brien 7ca9e9d15c MFC: protect "ASM_OUTPUT_IDENT" 2000-11-27 00:55:37 +00:00
David E. O'Brien ffe053d756 Grab the latest FSF bug fixes to the anonvcs GCC 'gcc-2_95-branch' branch.
This covers the bug fixes from May 26th - November 26, 2000.
This isn't being brought in on the vendor branch as that has moved passed
the GCC 2.95 branch since the import of a 2.96 snapshot.  Otherwise this
would have had a vendor import tag of "gcc_2_95_cvs_20001126".
2000-11-27 00:38:14 +00:00
Daniel Harris 5d58d6b8ac MFC: 1.20: forgot -> forget. 2000-11-26 23:31:33 +00:00
David E. O'Brien 3344bce1b5 MFC: Christos Zoulas's FILE 3.33 2000-11-26 21:37:25 +00:00
cvs2svn 44c7d134de This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-11-26 21:29:26 +00:00
Bosko Milekic d8b2c2a14b MFC: bridging + ipfw + dummynet fixup...
(don't treat pseudo-mbuf 'pkt' as an mbuf, etc...)

PR: kern/19551 ; misc/21534 ; kern/23010
2000-11-26 20:24:18 +00:00
Bosko Milekic 78c3fdc139 MFC: bridging + ipfw + dummynet fixup...
(don't treat pseudo-mbuf 'pkt' as an mbuf, etc...)

PR: kern/19551 ; misc/21534 ; kern/23010
2000-11-26 20:17:53 +00:00
Kris Kennaway 90de4ab78c MFC: OpenSSL 0.9.6 2000-11-26 11:38:51 +00:00
Kris Kennaway 30f57c4bdf MFC: Really use secure tempfiles 2000-11-26 06:06:18 +00:00
Matthew Dillon aa4936c646 MFC /usr/src/sys/compat/svr4/svr4_stream.c 1.16, another forgotten
getsock()->holdsock()
2000-11-26 04:42:27 +00:00
Matthew Dillon 39ae3c6aa2 MFC 1.27, fix forgotten getsock()->holdsock() conversion. 2000-11-26 04:32:41 +00:00
Matthew Dillon 7acf687f84 MFC disklabel/virgin-label feature. Adds a DIOCVIRGIN ioctl to obtain a
virgin disklabel.  disklabel now uses the new ioctl, allowing it to create
virgin disklabels on slices.
2000-11-26 03:08:50 +00:00
Matthew Dillon 587800ec62 MFC the major low memory deadlock solution. This patch removes most of
the preexisting low-memory-handling hacks and replaces it with a relatively
simple concept:  The entire I/O path (except networking) is allowed to dig
into the system memory reserve but will effectively free resources rather
then leave them wired/cached if the system is found to be in a low-memory
situation, thus allowing I/O to continue to operate.

This patch also fixes a  VXLOCK self-deadlock and generates a message
if it detects what used to be the deadlock.  (this also MFCd)

Finally, this patch removes code related to the case where the original
page could not be found during bogus page recovery and replaces it with a
panic.  The original page had better still exist since we have an extra
reference on it and on the VM object during the I/O.  (this also MFCd)
2000-11-26 02:55:14 +00:00
Matthew Dillon c6ba6cac0a MFC from current the major file descriptor race fixing patchset.
This fix file descriptor races in open(), close(), fcntl(),
    read(), write(), and most other system calls that take file descriptors
    as arguments.  The races being fixed are mainly due to the file
    descriptor table sharing that rfork()/threading allows.
2000-11-26 02:30:09 +00:00
David E. O'Brien 642e7a3ced MFC: Upgrade to Binutils 2.10.1. 2000-11-26 01:26:00 +00:00
David E. O'Brien d2065e16b9 MFC: stringify.sed' has been replaced by astring.sed' [on ANSI-C systems].
Also fix the erronious stringify.sed dependancies.
2000-11-25 23:16:08 +00:00
David E. O'Brien 11df64f27f MFC: remove binutils 2.9.1 files that are not part of 2.10.x. 2000-11-25 23:05:08 +00:00
David E. O'Brien 17ff58e16c MFC: remove binutils 2.9.1 files that are not part of 2.10.x. 2000-11-25 22:57:27 +00:00
David E. O'Brien 350ec84a16 MFC: remove binutils 2.9.1 files that are not part of 2.10.x. 2000-11-25 22:29:11 +00:00
Jordan K. Hubbard c72d5ef3aa Fix the snapshot READMEs.
Pointed out by:	Kenneth W Cochran <[email protected]>
2000-11-25 18:32:56 +00:00
David E. O'Brien 1e80bef373 MFC: remove binutils 2.9.1 files that are not part of 2.10.x. 2000-11-25 13:12:22 +00:00
David E. O'Brien 67ca9b4b78 Upgrade to Binutils 2.10.1. 2000-11-25 10:38:21 +00:00
Brian Feldman 51ddab6862 MFC: squash evil security-type bugs 2000-11-25 04:14:14 +00:00
Ruslan Ermilov 81eda66760 MFC: Eliminate groff(1) warnings. 2000-11-24 16:59:16 +00:00
Ruslan Ermilov ebee816273 MFC: make this paper buildable in nroff (-Tascii) mode. 2000-11-24 14:14:38 +00:00
Ruslan Ermilov 653d125005 MFC: s/PRINTER/PRINTERDEVICE/ in a comment. 2000-11-24 14:09:33 +00:00
Ben Smithurst 2718007ae7 MFC: fix layout problem. 2000-11-24 11:19:33 +00:00
Sheldon Hearn 342f252812 MFC rev 1.178: add chmod to the list of tools installed into
${INSTALLTMP}
2000-11-24 11:16:02 +00:00
Jeroen Ruigrok van der Werven 1b87d78813 MFC: - mdoc fixes. 2000-11-24 10:48:52 +00:00
Ruslan Ermilov 28e0b88963 MFC: Reimplement the groff(1) warnings elimination fixes. 2000-11-24 10:08:45 +00:00
cvs2svn 242b892baf This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-11-24 10:05:31 +00:00
Ruslan Ermilov ec88611d8d MFC: Eliminate groff(1) warnings. 2000-11-24 09:36:30 +00:00
cvs2svn a137e96f3d This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-11-24 09:33:38 +00:00
Jun Kuriyama 26de33ea3e MFC: Remove extra ")". 2000-11-24 07:53:20 +00:00
Jun Kuriyama c7d629ed65 MFC: Reflect reality about number of developers. 2000-11-24 07:23:06 +00:00
Ruslan Ermilov d4918a37d8 MFC: Eliminate groff(1) warnings. 2000-11-23 15:26:32 +00:00
cvs2svn e2b9a4cb9f This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-11-23 15:21:31 +00:00
Ben Smithurst 594ec42c0d MFC: first appeared in FreeBSD 4.1.1, not 5.0. 2000-11-23 11:23:22 +00:00
Ben Smithurst 1c28bc82cd MFC: allow .Fx 4.1.1 2000-11-23 11:19:42 +00:00
Ruslan Ermilov 32ce04b00b MFC: Eliminate groff(1) warnings. 2000-11-23 11:11:56 +00:00
Ruslan Ermilov 7487a3d173 MFC: groff(1) fixes. 2000-11-23 10:18:38 +00:00
Ruslan Ermilov f4c7b40906 MFC: Repair the index building. 2000-11-23 08:53:48 +00:00
Yoshihiro Takahashi dd11f4f7cd MFC: Switched from i386/isa/scsi_dvcfg.h to cam/scsi/scsi_dvcfg.h. 2000-11-23 07:06:02 +00:00
Greg Lehey f8a7e5b638 Correct the pathname of the history file.
Reported by:	Crist J . Clark <[email protected]>
2000-11-23 01:35:08 +00:00
Bruce A. Mah 226bcebcf5 MFC: Write combining for crashdumps, write combining in newfs(1),
fix buffer overflows in config(8).
2000-11-23 01:24:00 +00:00
Bruce A. Mah 723f7177ac Trim release notes to track only post-4.2-RELEASE changes. 2000-11-23 00:25:28 +00:00
Jordan K. Hubbard 882a4223d3 MFC: conditionalize the PC98 stuff on proper compile-time define 2000-11-22 22:30:07 +00:00
Paul Saab 4436a12e09 MFC: Stop printing out the Nfoo options and remove the documentation
on them since they nolonger exsist.
2000-11-22 19:42:17 +00:00
Archie Cobbs 1f391af6a0 MFC: add one2many subdirectory. 2000-11-22 19:06:12 +00:00
Andrew Gallatin 6f548d743d MFC: fix a reversed comment 2000-11-22 16:22:44 +00:00
Andrew Gallatin 564ce047f9 MFC: enable linux ipc syscalls on alpha 2000-11-22 16:20:13 +00:00
Andrew Gallatin a8d0ad6bd3 MFC: use the auto-generated linux_proto.h 2000-11-22 15:50:58 +00:00
Andrew Gallatin 768a2aa2c2 MFC: use linux_connect() on alpha 2000-11-22 15:39:02 +00:00
Andrew Gallatin 42c58545a4 MFC: correct fcntl() flags 2000-11-22 15:22:43 +00:00
Andrew Gallatin bee270beac MFC: implement linux_clone on the alpha 2000-11-22 15:21:39 +00:00
Andrew Gallatin f3158b51ff MFC: Simplify and correct osf/1 signal handling. This is required for
the linux abi on alpha
2000-11-22 15:19:35 +00:00
Ben Smithurst cfb32314b8 (null commit)
The previous commit log was incorrect.  The commit was accidentally included
with a manual page fix, and there was in fact no change to this file.

Pointy hat to: ben
2000-11-22 13:36:00 +00:00
Ben Smithurst 0962dc78b2 MFC: use .Lb libcompat in favour of text saying "this is available
from libcompat", and various other cleanups.
2000-11-22 13:32:19 +00:00
Ben Smithurst 665cefb661 MFC: document .Lb libcompat. 2000-11-22 13:28:01 +00:00
Ben Smithurst 6a33c1c195 MFC: add an entry for libcompat for the .Lb macro. 2000-11-22 13:25:11 +00:00
Ben Smithurst da27905a3d MFC: typo fixes, remove periods from SEE ALSO. 2000-11-22 12:58:54 +00:00
Murray Stokely f412cc8773 MFC: Fix ambiguous handling of empty strings, clarify manpage. 2000-11-22 03:49:49 +00:00
Alfred Perlstein caa64ad548 MFC: DELAY(9) 2000-11-22 03:45:44 +00:00
cvs2svn 7ae4ee4909 This commit was manufactured by cvs2svn to create branch 'RELENG_4'. 2000-11-22 03:38:33 +00:00
Julian Elischer 928d064829 MFC: Update Copyrights to the correct version 2000-11-21 20:19:38 +00:00
Warner Losh b091536db7 MFC: Many long filename buffer overflows 2000-11-21 20:03:38 +00:00
Jeroen Ruigrok van der Werven 1d812f14e2 MFC: - document ENOENT failure
- kevent()'s timeout parameter is a struct timespec if not NULL
2000-11-21 15:52:50 +00:00
Paul Saab 7f03fc52b2 MFC: Honor the ip address given in the root-path dhcp option.
PR:		21743
2000-11-21 12:04:47 +00:00
Mike Smith 982f39967a MFC: Don't test the result of the command, just pass it back. 2000-11-21 06:58:58 +00:00
Doug Barton 44e099678a MFC spelling fixes from 1.133 and reduce some other gratuitous diffs
to HEAD while I'm here.
2000-11-21 05:16:23 +00:00
Doug Barton 4697719d1d MFC 1.23, more generally accepted time to run the periodic/daily job. 2000-11-21 04:35:29 +00:00
Brian Somers 32c8dfad30 MFC: Add -n (netgraph debugging), load modules as required, "%s" paranoia. 2000-11-21 03:07:28 +00:00
Daniel Eischen 3e324a3d66 MFC: Correct pthread_mutex_lock() for recursive lock attempts.
When executing a signal handler, ensure a threads signal mask
     is OR'd with the signal being handled and the mask from the
     signal action.
2000-11-21 00:40:18 +00:00
David E. O'Brien dd676bf268 MFC: change "NO_PROFILE_DATA" to "NO_PROFILE_COUNTERS" to match FSF/GCC src 2000-11-21 00:31:21 +00:00
Paul Saab a530878dca MFC: Implement write combining for crashdumps. 2000-11-21 00:09:15 +00:00
Paul Saab 6986a33d67 MFC: [revs 1.30-1.32] Implement simple write combining for newfs. 2000-11-20 23:53:23 +00:00
Bruce A. Mah dce8c3b1f5 We're -STABLE again.
Submitted by:	Craig Hawco <[email protected]>
2000-11-20 23:30:26 +00:00
Bruce A. Mah 9aa9628506 MFC: CD-ROMs are ordered from "BSDi / Walnut Creek CDROM". Note that
BSDi is in the USA.  Make phone number format consistent.

While I'm here, note that RELENG_4 is now 4.2-STABLE, not 4.2-BETA.
2000-11-20 23:27:52 +00:00
Tor Egge 3ad4406123 MFC: Reduce kernel stack usage by not having large packets on the stack.
Supply correct size parameter to dhcpd.
     Replace some magic numbers with macro names.
     Handle more than one interface.
2000-11-20 21:49:25 +00:00
Tor Egge b3777986be MFC: Eliminate some bitrot (nonexisting member variable names).
Don't use curproc when a proc pointer is available.
2000-11-20 21:33:57 +00:00
Tor Egge 8ade5aaad9 MFC: Style fixes. 2000-11-20 21:17:58 +00:00
Tor Egge 6275de7cd7 MFC: Make RPC timeout messages more readable. Supply proc pointer to sosend. 2000-11-20 21:17:14 +00:00
Tor Egge d41b1a480e MFC: Clear the MAP_ENTRY_USER_WIRED flag from cloned vm_map entries.
PR:		2840
2000-11-20 21:15:48 +00:00
Tor Egge 77aa6d3de1 MFC: Clear the VFREE flag when the vnode is removed from the free list
in getnewvnode().
2000-11-20 21:14:46 +00:00
6097 changed files with 465995 additions and 171622 deletions

No files matched your search

+8 -4
View File
@@ -9,6 +9,8 @@
# world - buildworld + installworld.
# buildkernel - Rebuild the kernel and the kernel-modules.
# installkernel - Install the kernel and the kernel-modules.
# reinstallkernel - Reinstall the kernel and the kernel-modules.
# kernel - buildkernel + installkernel.
# update - Convenient way to update your source tree (cvs).
# upgrade - Upgrade a.out (2.2.x/3.0) system to the new ELF way
# most - Build user commands, no libraries or include files.
@@ -84,8 +86,9 @@
#
TGTS= afterdistribute all buildkernel buildworld checkdpadd clean \
cleandepend cleandir depend distribute everything hierarchy includes \
install installkernel installmost installworld libraries lint \
maninstall mk most obj objlink regress rerelease tags update
install installkernel installmost installworld kernel libraries lint \
maninstall mk most obj objlink regress reinstallkernel rerelease \
tags update
PATH= /sbin:/bin:/usr/sbin:/usr/bin
MAKE= PATH=${PATH} make -m ${.CURDIR}/share/mk -f Makefile.inc1
@@ -100,6 +103,7 @@ ${TGTS}: upgrade_checks
# Set a reasonable default
.MAIN: all
STARTTIME!= LC_ALL=C date
#
# world
#
@@ -108,7 +112,7 @@ ${TGTS}: upgrade_checks
#
world: upgrade_checks
@echo "--------------------------------------------------------------"
@echo ">>> ${OBJFORMAT} make world started on `LC_TIME=C date`"
@echo ">>> ${OBJFORMAT} make world started on ${STARTTIME}"
@echo "--------------------------------------------------------------"
.if target(pre-world)
@echo
@@ -128,7 +132,7 @@ world: upgrade_checks
.endif
@echo
@echo "--------------------------------------------------------------"
@echo ">>> ${OBJFORMAT} make world completed on `LC_TIME=C date`"
@printf ">>> ${OBJFORMAT} make world completed on `LC_ALL=C date`\n (started ${STARTTIME})\n"
@echo "--------------------------------------------------------------"
#
+68 -23
View File
@@ -15,10 +15,12 @@
# -DNOLIBC_R do not build libc_r.
# -DNO_FORTRAN do not build g77 and related libraries.
# -DNO_KERNELCONFIG do not run config in ${MAKE} buildkernel
# -DNO_KERNELCLEAN do not run ${MAKE} clean in ${MAKE} buildkernel
# -DNO_KERNELDEPEND do not run ${MAKE} depend in ${MAKE} buildkernel
# -DNO_PORTSUPDATE do not update ports in ${MAKE} update
# -DNO_DOCUPDATE do not update doc in ${MAKE} update
# LOCAL_DIRS="list of dirs" to add additional dirs to the SUBDIR list
# MACHINE_ARCH="machine arch" to crossbuild world to a different arch
#
# The intended user-driven targets are:
@@ -129,6 +131,7 @@ WORLDTMP= ${OBJTREE}${.CURDIR}/${BUILD_ARCH}
# /usr/games added for fortune which depend on strfile
STRICTTMPPATH= ${WORLDTMP}/usr/sbin:${WORLDTMP}/usr/bin:${WORLDTMP}/usr/games
TMPPATH= ${STRICTTMPPATH}:${PATH}
OBJFORMAT_PATH?= /usr/libexec
TMPDIR?= /tmp
TMPPID!= echo $$$$
@@ -172,7 +175,8 @@ CROSSENV= MAKEOBJDIRPREFIX=${OBJTREE} \
# bootstrap-tool stage
BMAKEENV= ${BOOTSTRAPENV}
BMAKE= ${BMAKEENV} ${MAKE} -f Makefile.inc1 -DNOMAN -DNOINFO -DNOHTML
BMAKE= ${BMAKEENV} ${MAKE} -f Makefile.inc1 -DNOHTML -DNOINFO \
-DNOMAN -DNOPIC -DNOPROFILE -DNOSHARED
# build-tool stage
TMAKEENV= MAKEOBJDIRPREFIX=${OBJTREE} \
@@ -183,8 +187,9 @@ TMAKE= ${TMAKEENV} ${MAKE} -f Makefile.inc1
# cross-tool stage
XMAKEENV= ${BOOTSTRAPENV} \
TARGET_ARCH=${MACHINE_ARCH}
XMAKE= ${XMAKEENV} ${MAKE} -f Makefile.inc1 -DNOMAN -DNOINFO -DNOHTML \
-DNO_FORTRAN -DNO_GDB
XMAKE= ${XMAKEENV} ${MAKE} -f Makefile.inc1 -DNO_FORTRAN -DNO_GDB \
-DNOHTML -DNOINFO -DNOMAN -DNOPIC -DNOPROFILE \
-DNOSHARED
# world stage
WMAKEENV= ${CROSSENV} \
@@ -198,6 +203,10 @@ IMAKEENV= ${CROSSENV} \
PATH=${STRICTTMPPATH}:${INSTALLTMP}
IMAKE= ${IMAKEENV} ${MAKE} -f Makefile.inc1
# kernel stage
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
@@ -298,7 +307,7 @@ everything:
#
installworld:
mkdir -p ${INSTALLTMP}
for prog in [ awk cat chflags chown date echo egrep find grep \
for prog in [ awk cat chflags chmod chown date echo egrep find grep \
install ln make makewhatis mtree mv perl rm sed sh sysctl \
test true uname wc zic; do \
cp `which $$prog` ${INSTALLTMP}; \
@@ -331,11 +340,20 @@ reinstall:
cd ${.CURDIR}/share/man; ${MAKE} makedb
.endif
#
# distribworld
#
# Front-end to distribute to make sure the search path contains
# the object directory. Needed for miniperl.
#
distribworld:
cd ${.CURDIR}; PATH=${TMPPATH} ${MAKE} -f Makefile.inc1 distribute
#
# buildkernel and installkernel
#
# Which kernels to build and/or install is specified by setting
# KERNEL. If not defined a GENERIC kernel is built/installed.
# KERNCONF. If not defined a GENERIC kernel is built/installed.
# Only the existing (depending MACHINE) config files are used
# for building kernels and only the first of these is designated
# as the one being installed.
@@ -345,7 +363,13 @@ reinstall:
# be set to cross-build, we have to make sure MACHINE is set
# properly.
KERNEL?= GENERIC
.if !defined(KERNCONF) && defined(KERNEL)
KERNCONF= ${KERNEL}
KERNWARN= yes
.else
KERNCONF?= GENERIC
.endif
INSTKERNNAME?= kernel
# The only exotic MACHINE_ARCH/MACHINE combination valid at this
# time is i386/pc98. In all other cases set MACHINE equal to
@@ -358,13 +382,9 @@ KRNLSRCDIR= ${.CURDIR}/sys
KRNLCONFDIR= ${KRNLSRCDIR}/${MACHINE}/conf
KRNLOBJDIR= ${OBJTREE}${KRNLSRCDIR}
.if !defined(NOCLEAN)
CONFIGARGS+= -r
.endif
BUILDKERNELS=
INSTALLKERNEL=
.for _kernel in ${KERNEL}
.for _kernel in ${KERNCONF}
.if exists(${KRNLCONFDIR}/${_kernel})
BUILDKERNELS+= ${_kernel}
.if empty(INSTALLKERNEL)
@@ -379,27 +399,44 @@ INSTALLKERNEL= ${_kernel}
# Builds all kernels defined by BUILDKERNELS.
#
buildkernel:
.if empty(BUILDKERNELS)
@echo ">>> ERROR: Missing kernel configuration file(s) (${KERNCONF})."
@false
.endif
.if defined(KERNWARN)
@echo "--------------------------------------------------------------"
@echo ">>> WARNING: KERNEL= setting should be changed to KERNCONF="
@echo "--------------------------------------------------------------"
@sleep 3
.endif
@echo
@echo "--------------------------------------------------------------"
@echo ">>> Rebuilding kernel(s)"
@echo "--------------------------------------------------------------"
.for _kernel in ${BUILDKERNELS}
@echo "--------------------------------------------------------------"
@echo ">>> Kernel build for ${_kernel} started on `LC_ALL=C date`"
@echo "--------------------------------------------------------------"
@echo "===> ${_kernel}"
mkdir -p ${KRNLOBJDIR}
.if !defined(NO_KERNELCONFIG)
cd ${KRNLCONFDIR}; \
PATH=${TMPPATH} \
config ${CONFIGARGS} -d ${KRNLOBJDIR}/${_kernel} ${_kernel}
.endif
.if !defined(NOCLEAN) && !defined(NO_KERNELCLEAN)
cd ${KRNLOBJDIR}/${_kernel}; \
${KMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} clean
.endif
cd ${KRNLOBJDIR}/${_kernel}; \
MAKESRCPATH=${KRNLSRCDIR}/dev/aic7xxx/aicasm \
${MAKE} -f ${KRNLSRCDIR}/dev/aic7xxx/aicasm/Makefile
.if !defined(NO_KERNELDEPEND)
cd ${KRNLOBJDIR}/${_kernel}; \
${WMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=kernel depend
${KMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} depend
.endif
cd ${KRNLOBJDIR}/${_kernel}; \
${WMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=kernel all
${KMAKEENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} all
@echo "--------------------------------------------------------------"
@echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`"
@echo "--------------------------------------------------------------"
.endfor
#
@@ -409,7 +446,17 @@ buildkernel:
#
installkernel:
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
${CROSSENV} MACHINE=${MACHINE} ${MAKE} KERNEL=kernel install
${CROSSENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} install
reinstallkernel:
cd ${KRNLOBJDIR}/${INSTALLKERNEL}; \
${CROSSENV} MACHINE=${MACHINE} ${MAKE} KERNEL=${INSTKERNNAME} reinstall
#
# kernel
#
# Short hand for `make buildkernel installkernel'
#
kernel: buildkernel installkernel
#
# update
@@ -442,7 +489,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_3 -P -d
.endif
#
@@ -532,8 +579,7 @@ _libroken4= kerberosIV/lib/libroken
.if exists(${.CURDIR}/kerberos5) && exists(${.CURDIR}/crypto) && \
!defined(NOCRYPT) && defined(MAKE_KERBEROS5)
_libkrb5= kerberos5/lib/libroken kerberos5/lib/libasn1 kerberos5/lib/libhdb \
kerberos5/lib/libsl
_libkrb5= kerberos5/lib/libasn1 kerberos5/lib/libhdb kerberos5/lib/libsl
.endif
.if !defined(NOPERL)
@@ -541,7 +587,7 @@ _perl= gnu/usr.bin/perl
.endif
build-tools:
.for _tool in bin/sh ${_games} gnu/usr.bin/cc/cc_tools ${_fortran} \
.for _tool in bin/csh bin/sh ${_games} gnu/usr.bin/cc/cc_tools ${_fortran} \
${_libroken4} ${_libkrb5} lib/libncurses ${_share} ${_perl}
cd ${.CURDIR}/${_tool}; ${MAKE} build-tools
.endfor
@@ -739,8 +785,7 @@ libraries:
${_secure_lib} ${_kerberosIV_lib} \
${_kerberos5_lib} lib/libcom_err ${_libm} lib/libncurses \
lib/libopie lib/libradius lib/libskey lib/libtacplus lib/libutil \
lib/libz lib gnu/lib \
${_libperl} usr.bin/lex/lib ${_libkeycap}
lib/libz lib gnu/lib ${_libperl} usr.bin/lex/lib ${_libkeycap}
.if exists(${.CURDIR}/${_lib})
cd ${.CURDIR}/${_lib}; \
${MAKE} depend; \
+187 -7
View File
@@ -6,6 +6,186 @@ 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 is for the 4.3 release branch. All entries since 4.3 are an
itemized list of commits to this branch, numbered from the beginning.
By this count, we're at 4.3.0p28.
The security advisories related to various patches contain information
on how to build/install a minimal set of binaries and start/stop a
minimal number of processes, if possible, for that patch. For those
updates that don't have an advisory, or to be safe, you can do a full
build and install as described in the COMMON ITEMS section.
20031003: p42 FreeBSD-SA-03:17.procfs
Correct integer underflows/overflows in procfs(5) and linprocfs(5).
20031002: p41 FreeBSD-SA-03:16.filedesc
Correct a reference counting bug in readv(2).
20030924: p40 FreeBSD-SA-03:14.arp
Updated fix for arplookup bug.
20030923: p39 FreeBSD-SA-03:14.arp
Fix a bug in arplookup(), whereby a hostile party on a locally
attached network could exhaust kernel memory, and cause a system
panic, by sending a flood of spoofed ARP requests.
20030917: p38 FreeBSD-SA-03:13.sendmail
Fix another address parsing buffer overflow.
20030916: p37 FreeBSD-SA-03:12.openssh
Follow-up fixes for OpenSSH oversized packet buffer handling.
20030916: p36 FreeBSD-SA-03:12.openssh
OpenSSH oversized packet buffer handling corrected.
20030810: p35 FreeBSD-SA-03:10.iBCS2
iBCS2 system call translator for statfs leaked information.
20030810: p34 FreeBSD-SA-03:09.signal
Repair range-checking errors in signal handling.
20030804: p33 FreeBSD-SA-03:08.realpath
Correct a single byte buffer overflow in realpath(3).
20030329: p32 FreeBSD-SA-03:07.sendmail
sendmail address parsing buffer overflow.
20030303: p31 FreeBSD-SA-03:04.sendmail
sendmail header parsing buffer overflow, ident parsing bug.
20021026: p30
smrsh bypass bug.
20020710: p29 FreeBSD-SA-02:28.resolv
resolver buffer overflow.
20020307: p28 FreeBSD-SA-02:13.openssh
OpenSSH off-by-one error.
20020223: p27 FreeBSD-SA-02:18.zlib
zlib inflate error handling.
20020127: p26
sdiff temp file handling.
20020127: p25
gzip tempfile handling.
20020123: p24 FreeBSD-SA-02:08.exec.asc
There's a small window in exec where one could debug a setuid
program and obtain elevated priviledges. This was corrected.
20020123: p23 FreeBSD-SA-02:07.k5su
k5su fixes.
20011221: p22 FreeBSD-SA-02:02:pw
A bug was fixed wherein the pw(8) command created a short-lived
but world-readable copy of /etc/master.passwd.
20011202: p21 FreeBSD-SA-01:63:openssh
A security hole in OpenSSH involving `UseLogin yes' has been
patched.
20010920: p20
Plug login.conf hole.
20010911: p19
semop fixes to prevent overflows.
20010910: p18 FreeBSD-SA-01:62.uucp
UUCP fixes.
20010904: p17 FreeBSD-SA-01:59.rmuser
Minor fix to p16.
20010904: p16 FreeBSD-SA-01:59.rmuser
Close race condition when updating /etc/master.passwd in rmuser.
20010830: p15 FreeBSD-SA-01:58.lpd
Fix lpd remote root exploitable buffer overflow.
20010822: p14 FreeBSD-SA-01:57.sendmail
Fix command line argument overflow problem in sendmail.
20010821: p13
Close the "IRC DCC" security problem.
20010813: p12 FreeBSD-SA-01:55.procfs
procfs permission tightening.
20010810: p11
Check filehandle size when mounting nfs filesystems.
20010805: p10 FreeBSD-SA-01:52.fragment
Prevent DoS attack from bogus fragmented packets.
20010723: p9 FreeBSD-SA-01:49.telnetd (part 2)
Fix a different overflow with output_data and netflush in
telnetd. Make sure that you have both this update and the
previous one.
20010721: p8 FreeBSD-SA-01:49.telnetd (part 1)
Fix buffer overflow in telnetd.
20010719: p7 FreeBSD-SA-01:51.openssl
Add PRNG security patch from openssl to prevent guessing of
internal state.
20010717: p6 FreeBSD-SA-01:53.ipfw
Fix ipfw "me" definition.
20010710: p5 FreeBSD-SA-01:42.signal
Don't share signal handlers from rfork after exec.
20010708: p4 FreeBSD-SA-01:48.tcpdump
Fix possible tcpdump buffer overflow.
20010704: p3 FreeBSD-SA-01:56.tcp_wrappers
Unbreak paranoid host checking in tcp_wrappers.
20010601: p2 FreeBSD-SA-01:40.fts (part 2)
Fix a second instance of chdir with fts_safe_changedir().
20010530: p1 FreeBSD-SA-01:40.fts (part 1)
Fix to stat after chdir .. in fts to make sure we wind up where
we think we should.
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
20010421:
FreeBSD 4.3 RELEASE
20010202:
The KERNEL variable for buildkernel and installkernel has been
deprecated in favor of KERNCONF. make kernel now combines these
two steps.
20010117:
Linksys Fast Ethernet PCCARD cards supported by the ed driver
now require the addition of flag 0x80000 to their config line
in pccard.conf(5). This flag is not optional. These Linksys
cards will not be recognized without it.
20010112:
Important new FreeBSD-version stuff: PAM support has been worked
in, partially from the "Unix" OpenSSH version. This requires
adding the following in pam.conf:
sshd auth sufficient pam_skey.so
sshd auth required pam_unix.so try_first_pass
sshd session required pam_permit.so
20010109:
ipfw interface changed. Make sure that the userland and kernel match
or you won't have the firewall rules you think you do.
20001120:
FreeBSD 4.2 RELEASE.
@@ -93,7 +273,7 @@ prior to 4.0 Release.
20000707:
We started building modules here. IF you don't wish to
follow the documented proceedure for building kernels, then
follow the documented procedure for building kernels, then
you'll have to install new mk files from src/share/mk, or
define NO_MODULES.
@@ -130,8 +310,8 @@ COMMON ITEMS:
# If you have not already done so, please buildworld here
# You will also need to update your config file to 4.x. Usually
# people tend to start with GENERIC from 4.x and hack from there.
make buildkernel KERNEL=<YOUR_KERNEL_HERE>
make installkernel KERNEL=<YOUR_KERNEL_HERE>
make buildkernel KERNCONF=<YOUR_KERNEL_HERE>
make installkernel KERNCONF=<YOUR_KERNEL_HERE>
# Verify that the new kernel works, it will be installed as
# /kernel
@@ -165,7 +345,7 @@ COMMON ITEMS:
<see notes below> [3]
cd /usr/src
<see notes below> [2]
make buildworld
make buildworld -DNOPERL
<follow directions to build/install a kernel>
cd /usr/src/sbin/mknod
make install
@@ -177,7 +357,7 @@ COMMON ITEMS:
make install
cd ../../../..
ldconfig -R /usr/obj/usr/src/lib/libc
make installworld [5]
make installworld -DNOPERL [5]
mergemaster [4]
reboot
<multi-user>
@@ -203,8 +383,8 @@ COMMON ITEMS:
4.x-STABLE
----------
make buildworld
make buildkernel KERNEL=YOUR_KERNEL_HERE
make installkernel KERNEL=YOUR_KERNEL_HERE
make buildkernel KERNCONF=YOUR_KERNEL_HERE
make installkernel KERNCONF=YOUR_KERNEL_HERE
reboot (in single user) [1]
make installworld
mergemaster
+2 -2
View File
@@ -42,7 +42,7 @@
.Nm cat
.Nd concatenate and print files
.Sh SYNOPSIS
.Nm cat
.Nm
.Op Fl benstuv
.Op Ar
.Sh DESCRIPTION
@@ -90,7 +90,7 @@ Control characters print as
.Ql ^X
for control-X; the delete
character (octal 0177) prints as
.Ql ^?
.Ql ^? .
.Pf Non- Tn ASCII
characters (with the high bit set) are printed as
.Ql M-
+9 -9
View File
@@ -45,10 +45,7 @@
.Op Fl <flags>
.Ar arg1
.Ar arg2
.Oo
.Ar arg3 Oo ...
.Oc
.Oc
.Op Ar arg3 Op ...
.Sh DESCRIPTION
.Nm
is used to control the operation of medium changers, such as those found
@@ -279,16 +276,19 @@ default changer device
.El
.Sh SEE ALSO
.Xr mt 1 ,
.Xr mount 8 .
.Xr mount 8
.Sh AUTHORS
.An -nosplit
The
.Nm
program and SCSI changer driver were written by
.An Jason R. Thorpe Aq [email protected]
for And Communications, http://www.and.com/.
.br
for And Communications,
.Pa http://www.and.com/ .
.Pp
Additional work by
.An Hans Huebner
.Aq [email protected]
and Steve Gunn
.Aq [email protected]
and
.An Steve Gunn
.Aq [email protected] .
+8 -9
View File
@@ -42,7 +42,7 @@
.Nm chmod
.Nd change file modes
.Sh SYNOPSIS
.Nm chmod
.Nm
.Oo
.Fl f
.Fl R
@@ -50,7 +50,7 @@
.Fl v
.Oc
.Ar mode
.Ar file ...
.Ar
.Sh DESCRIPTION
The
.Nm
@@ -138,9 +138,11 @@ will run with effective gid set to the gid of the file owner.
(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
the permissions on the directory. Under FreeBSD, the sticky bit is
the permissions on the directory. Under
.Fx ,
the sticky bit is
ignored for executable files and may only be set for directories (see
.Xr sticky 8 ).
.Xr sticky 8 ) .
.It Li 0400
Allow read by owner.
.It Li 0200
@@ -187,7 +189,6 @@ The
.Ar who
symbol ``a'' is equivalent to ``ugo''.
.Pp
.ne 1i
The
.Ar perm
symbols represent the portions of the mode bits as follows:
@@ -335,11 +336,9 @@ utility is expected to be
.St -p1003.2
compatible with the exception of the
.Ar perm
symbols
symbol
.Dq t
and
.Dq X
which are not included in that standard.
which is not included in that standard.
.Sh HISTORY
A
.Nm
+12 -2
View File
@@ -42,7 +42,7 @@
.Nm cp
.Nd copy files
.Sh SYNOPSIS
.Nm cp
.Nm
.Oo
.Fl R
.Op Fl H | Fl L | Fl P
@@ -50,7 +50,7 @@
.Op Fl f | i
.Op Fl pv
.Ar source_file target_file
.Nm cp
.Nm
.Oo
.Fl R
.Op Fl H | Fl L | Fl P
@@ -102,6 +102,16 @@ indirected through, and for
to create special files rather than copying them as normal files.
Created directories have the same mode as the corresponding source
directory, unmodified by the process' umask.
.Pp
Note that
.Nm
copies hard linked files as separate files.
If you need to preserve hard links, consider using
.Xr tar 1 ,
.Xr cpio 1 ,
or
.Xr pax 1
instead.
.It Fl f
For each existing destination pathname, remove it and
create a new file, without prompting for confirmation
+18 -8
View File
@@ -11,12 +11,12 @@ TCSHDIR= ${.CURDIR}/../../contrib/tcsh
PROG= csh
SUBDIR= nls
DFLAGS= -D_PATH_TCSHELL='"${DESTDIR}/bin/${PROG}"'
CFLAGS+= -I${TCSHDIR} -I${.CURDIR} -I. ${DFLAGS}
DFLAGS= -D_PATH_TCSHELL='"/bin/${PROG}"'
CFLAGS+= -I. -I${.CURDIR} -I${TCSHDIR} ${DFLAGS}
SRCS= sh.c sh.dir.c sh.dol.c sh.err.c sh.exec.c sh.char.c \
sh.exp.c sh.file.c sh.func.c sh.glob.c sh.hist.c sh.init.c \
sh.lex.c sh.misc.c sh.parse.c sh.print.c sh.proc.c sh.sem.c \
sh.set.c sh.time.c sh.h sh.char.h sh.dir.h sh.proc.h
sh.set.c sh.time.c sh.char.h sh.dir.h sh.proc.h sh.h
SRCS+= sh.decls.h glob.c glob.h mi.termios.c mi.wait.h mi.varargs.h
SRCS+= tw.decls.h tw.h tw.help.c tw.init.c tw.parse.c tw.spell.c \
tw.comp.c tw.color.c
@@ -26,8 +26,7 @@ SRCS+= tc.alloc.c tc.bind.c tc.const.c tc.decls.h tc.disc.c \
tc.func.c tc.os.c tc.os.h tc.printf.c tc.prompt.c \
tc.sched.c tc.sig.c tc.sig.h tc.str.c sh.types.h tc.vers.c tc.wait.h \
tc.who.c tc.h
SRCS+= tc.defs.c
GENHDRS= ed.defns.h sh.err.h tc.const.h
GENHDRS= ed.defns.h sh.err.h tc.const.h tc.defs.c
SRCS+= ${GENHDRS}
MAN1= csh.1
@@ -41,11 +40,22 @@ LDADD= -ltermcap -lcrypt
LINKS= ${BINDIR}/csh ${BINDIR}/tcsh
CLEANFILES= ${GENHDRS} csh.1
CLEANFILES= ${GENHDRS} gethost csh.1
csh.1: tcsh.man
ln -sf ${.ALLSRC} ${.TARGET}
build-tools: gethost
gethost: gethost.c sh.err.h tc.const.h sh.h
@rm -f ${.TARGET}
${CC} -o gethost ${LDFLAGS} ${CFLAGS} ${TCSHDIR}/gethost.c
tc.defs.c: gethost ${.CURDIR}/host.defs
@rm -f ${.TARGET}
@echo "/* Do not edit this file, make creates it */" > ${.TARGET}
./gethost ${.CURDIR}/host.defs >> ${.TARGET}
ed.defns.h: ed.defns.c
@rm -f ${.TARGET}
@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
@@ -59,7 +69,7 @@ sh.err.h: sh.err.c
@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
@echo '#ifndef _h_sh_err' >> ${.TARGET}
@echo '#define _h_sh_err' >> ${.TARGET}
egrep 'ERR_' ${.ALLSRC} | egrep '^#define' >> ${.TARGET}
grep 'ERR_' ${.ALLSRC} | grep '^#define' >> ${.TARGET}
@echo '#endif /* _h_sh_err */' >> ${.TARGET}
tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
@@ -67,7 +77,7 @@ tc.const.h: tc.const.c sh.char.h config.h config_f.h sh.types.h sh.err.h
@echo '/* Do not edit this file, make creates it. */' > ${.TARGET}
@echo '#ifndef _h_tc_const' >> ${.TARGET}
@echo '#define _h_tc_const' >> ${.TARGET}
${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | egrep 'Char STR' | \
${CC} -E ${CFLAGS} ${.ALLSRC} -D_h_tc_const | grep 'Char STR' | \
sed -e 's/Char \([a-zA-Z0-9_]*\)\(.*\)/extern Char \1[];/' | \
sort >> ${.TARGET}
@echo '#endif /* _h_tc_const */' >> ${.TARGET}
+1 -1
View File
@@ -57,7 +57,7 @@ Syntactic metacharacters
Filename metacharacters
.DS
/ 1.6 separates components of a file's pathname
\. 1.6 separates root parts of a file name from extensions
\&. 1.6 separates root parts of a file name from extensions
? 1.6 expansion character matching any single character
* 1.6 expansion character matching any sequence of characters
[ ] 1.6 expansion sequence matching any single character from a set
+1 -1
View File
@@ -135,7 +135,7 @@
/*
* _PATH_TCSHELL if you've change the installation location (vix)
*/
# ifdef _BSDI_VERSION >= 199701
# if _BSDI_VERSION >= 199701
# define _PATH_TCSHELL "/bin/tcsh"
/* # undef SYSMALLOC */
# define SYSMALLOC
+1136
View File
File diff suppressed because it is too large. Load diff
+1 -4
View File
@@ -1,8 +1,5 @@
# $FreeBSD$
SUBDIR= finnish french ja german italian spanish
# We are not ready for greek yet
#SUBDIR+= greek
SUBDIR= finnish french german greek italian ja spanish ukrainian
.include <bsd.subdir.mk>
+16
View File
@@ -0,0 +1,16 @@
# $FreeBSD$
NL= ukrainian
DL= uk_UA.KOI8-U
.PATH: ${BASESRC}/${NL}
tcsh.msg: set[0-9]*
cat ${BASESRC}/${NL}/set[0-9] \
${BASESRC}/${NL}/set[0-9][0-9] > ${.TARGET}
install:
${INSTALL} ${COPY} -o ${BINOWN} -g ${BINGRP} -m ${NOBINMODE} \
tcsh.cat ${DESTDIR}${NLSDIR}/${DL}/tcsh.cat
.include <bsd.prog.mk>
-2709
View File
File diff suppressed because it is too large. Load diff
+37 -19
View File
@@ -42,22 +42,32 @@
.Nm date
.Nd display or set date and time
.Sh SYNOPSIS
.Nm date
.Nm
.Op Fl jnu
.Op Fl d Ar dst
.Op Fl r Ar seconds
.Op Fl t Ar minutes_west
.Oo
.Fl v
.Op +|- Ns
.No val Ns Op ymwdHMS
.Oc Ns ...
.Oo Fl f No " "
.Ar fmt date No |
.Oo Oo Oo Oo Oo "\&cc" Ns
.Oc "\&yy" Oc "\&mm" Oc "\&dd" Oc "\&HH" Ns
.Sm off
.Op Cm + | - Xo
.Ar val Op Ar ymwdHMS
.Xc
.Sm on
.Oc
.No "\&MM" Ns Op "\&.ss"
.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
.Ar MM Op Ar .ss
.Sm on
.Oc
.Op Cm + Ns Ar format
.Sh DESCRIPTION
@@ -68,7 +78,11 @@ Otherwise, depending on the options specified,
.Nm
will set the date and time or print it in a user-defined way.
.Pp
Only the superuser may set the date.
Only the superuser may set the date,
and if the system securelevel (see
.Xr securelevel 8 )
is greater than 1,
the time may not be changed by more than 1 second.
.Pp
The options are as follows:
.Bl -tag -width Ds
@@ -84,14 +98,18 @@ will return a non-zero for
.It Fl f
Use
.Ar fmt
as the format string to parse the date provided rather than using
the default
.\" .Ar [[[[[cc]yy]mm]dd]HH]MM[.ss]
.Xo
.Oo Oo Oo Oo Oo "\&cc" Ns
.Oc "\&yy" Oc "\&mm" Oc "\&dd" Oc "\&HH" Ns
.Oc
.No "\&MM" Ns Op "\&.ss" Xc
as the format string to parse the
.Ar date
provided rather than using the default
.Sm off
.Oo Oo Oo Oo Oo
.Ar cc Oc
.Ar yy Oc
.Ar mm Oc
.Ar dd Oc
.Ar HH
.Oc Ar MM Op Ar .ss
.Sm on
format.
Parsing is done using
.Xr strptime 3 .
@@ -315,7 +333,7 @@ sets the time to
without modifying the date.
.Sh ENVIRONMENT
The following environment variables affect the execution of
.Nm Ns :
.Nm :
.Bl -tag -width Ds
.It Ev TZ
The timezone to use when displaying dates.
+3 -1
View File
@@ -29,6 +29,7 @@ static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <err.h>
#include <time.h>
#include <string.h>
#include <stdlib.h>
@@ -93,7 +94,8 @@ vary_append(struct vary *v, char *arg)
} else
nextp = &result;
*nextp = (struct vary *)malloc(sizeof(struct vary));
if ((*nextp = (struct vary *)malloc(sizeof(struct vary))) == NULL)
err(1, "malloc");
(*nextp)->arg = arg;
(*nextp)->next = NULL;
return result;
+2 -2
View File
@@ -428,7 +428,7 @@ get_offset(val)
quad_t num;
num = get_num(val);
if (num > QUAD_MAX || num < 0) /* XXX quad_t != off_t */
errx(1, "%s: illegal offset", oper); /* Too big/negative. */
if (num > QUAD_MAX) /* XXX can't happen && quad_t != off_t */
errx(1, "%s: illegal offset", oper); /* Too big. */
return ((off_t)num);
}
+2 -2
View File
@@ -42,7 +42,7 @@
.Nm dd
.Nd convert and copy a file
.Sh SYNOPSIS
.Nm dd
.Nm
.Op operands ...
.Sh DESCRIPTION
The
@@ -251,7 +251,7 @@ will be positioned past the block in which the error occurred using
Do not truncate the output file.
This will preserve any blocks in the output file not explicitly written
by
.Nm Ns .
.Nm .
The
.Cm notrunc
value is not supported for tapes.
+1
View File
@@ -54,6 +54,7 @@ static const char rcsid[] =
#include <sys/conf.h>
#include <sys/disklabel.h>
#include <sys/filio.h>
#include <sys/time.h>
#include <ctype.h>
#include <err.h>
+8
View File
@@ -76,6 +76,10 @@ pos_in()
return;
}
/* Don't try to read a really weird amount (like negative). */
if (in.offset < 0)
errx(1, "%s: illegal offset", "iseek/skip");
/*
* Read the data. If a pipe, read until satisfy the number of bytes
* being skipped. No differentiation for reading complete and partial
@@ -138,6 +142,10 @@ pos_out()
return;
}
/* Don't try to read a really weird amount (like negative). */
if (out.offset < 0)
errx(1, "%s: illegal offset", "oseek/seek");
/* If no read access, try using mtio. */
if (out.flags & NOREAD) {
t_op.mt_op = MTFSR;
+2 -2
View File
@@ -39,14 +39,14 @@
.Nm df
.Nd display free disk space
.Sh SYNOPSIS
.Nm df
.Nm
.Oo
.Fl b | h | H | k |
.Fl m | P
.Oc
.Op Fl ain
.Op Fl t Ar type
.Op Ar file | Ar filesystem ...
.Op Ar file | filesystem ...
.Sh DESCRIPTION
.Nm Df
displays statistics about the amount of free disk space on the specified
+3 -3
View File
@@ -34,12 +34,12 @@
.\"
.Dd September 18, 1994
.Dt DOMAINNAME 1
.Os FreeBSD 2.0
.Os FreeBSD
.Sh NAME
.Nm domainname
.Nd set or print name of current YP/NIS domain
.Sh SYNOPSIS
.Nm domainname
.Nm
.Op Ar ypdomain
.Sh DESCRIPTION
.Nm Domainname
@@ -60,6 +60,6 @@ convenience.
The
.Nm
command appeared in
.Tn FreeBSD
.Fx
1.1, based on a similar command in
.Tn SunOS .
+10 -5
View File
@@ -42,21 +42,26 @@
.Nm echo
.Nd write arguments to the standard output
.Sh SYNOPSIS
.Nm echo
.Nm
.Op Fl n
.Op "string ..."
.Op Ar string ...
.Sh DESCRIPTION
The
.Nm
utility writes any specified operands, separated by single blank (`` '')
characters and followed by a newline (``\en'') character, to the standard
utility writes any specified operands, separated by single blank
.Pq Ql "\ "
characters and followed by a newline
.Pq Ql \en
character, to the standard
output.
.Pp
The following option is available:
.Bl -tag -width flag
.It Fl n
Do not print the trailing newline character. This may also be
achieved by appending `\ec' to the end of the string, as is done
achieved by appending
.Ql \ec
to the end of the string, as is done
by iBCS2 compatible systems.
.El
.Pp
+32 -30
View File
@@ -8,7 +8,7 @@
.Nm red
.Nd text editor
.Sh SYNOPSIS
.Nm ed
.Nm
.Op Fl
.Op Fl sx
.Op Fl p Ar string
@@ -25,7 +25,7 @@ files.
.\" .BR ed :
.\" it can only edit files in the current
.\" directory and cannot execute shell commands.
.Pp
If invoked with a
.Ar file
argument, then a copy of
@@ -35,11 +35,11 @@ Changes are made to this copy and not directly to
.Ar file
itself.
Upon quitting
.Nm Ns ,
.Nm ,
any changes not explicitly saved with a
.Em w
command are lost.
.Pp
Editing is done in two distinct modes:
.Em command
and
@@ -81,7 +81,7 @@ including a
character.
Input mode is terminated by
entering a single period
.Pf ( Em . Ns )
.Pq Em .\&
on a line.
.Pp
All
@@ -104,8 +104,9 @@ character command and possibly additional parameters; i.e.,
commands have the structure:
.Pp
.Sm off
.Xo Op "address\ " Op ,address
.No command Op parameters
.Xo
.Op Ar address Op , Ar address
.Ar command Op Ar parameters
.Xc
.Sm on
.Pp
@@ -185,7 +186,7 @@ of addresses is given where
.Em "n\ >\ 2" ,
then the corresponding range is determined by the last two addresses in
the
.Em n Ns -tuple.
.Em n Ns -tuple .
If only one address is expected, then the last address is used.
.Pp
Each address in a comma-delimited range is interpreted relative to the
@@ -310,11 +311,11 @@ The following literal expressions can also be used in
.Em char-class
to specify sets of characters:
.Pp
\ \ [:alnum:]\ \ [:cntrl:]\ \ [:lower:]\ \ [:space:]
.PD 0
\ \ [:alpha:]\ \ [:digit:]\ \ [:print:]\ \ [:upper:]
.PD 0
\ \ [:blank:]\ \ [:graph:]\ \ [:punct:]\ \ [:xdigit:]
.Bl -column "[:alnum:]" "[:cntrl:]" "[:lower:]" "[:xdigit:]" -compact
.It [:alnum:] Ta [:cntrl:] Ta [:lower:] Ta [:space:]
.It [:alpha:] Ta [:digit:] Ta [:print:] Ta [:upper:]
.It [:blank:] Ta [:graph:] Ta [:punct:] Ta [:xdigit:]
.El
.Pp
If `-' appears as the first or last
character of
@@ -328,12 +329,16 @@ Patterns in
.Em char-class
of the form:
.Pp
\ \ [.\fIcol-elm\fR.] or,
.PD 0
\ \ [=\fIcol-elm\fR=]
.Bl -item -compact -offset 2n
.It
.Op \&. Ns Ar col-elm Ns .\&
or,
.It
.Op = Ns Ar col-elm Ns =
.El
.Pp
where
.Em col-elm
.Ar col-elm
is a
.Em collating element
are interpreted according to
@@ -373,7 +378,7 @@ Define a subexpression
.Em re .
Subexpressions may be nested.
A subsequent backreference of the form
.Em Pf \e n ,
.Pf \e Em n ,
where
.Em n
is a number in the range [1,9], expands to the text matched by the
@@ -423,7 +428,7 @@ commands are single characters, though some require additional parameters.
If a command's parameters extend over several lines, then
each line except for the last
must be terminated with a backslash (\\).
.Pp
In general, at most one command is allowed per line.
However, most commands accept a print suffix, which is any of
.Em p
@@ -434,10 +439,10 @@ or
.Em n
(enumerate),
to print the last line affected by the command.
.Pp
An interrupt (typically ^C) has the effect of aborting the current command
and returning the editor to command mode.
.Pp
.Nm Ed
recognizes the following commands. The commands are shown together with
the default address or address range supplied if none is
@@ -601,7 +606,7 @@ Unless a prompt was specified by with command-line option
the command prompt is by default turned off.
.It q
Quit
.Nm Ns .
.Nm .
.It Q
Quit
.Nm
@@ -831,9 +836,8 @@ attempts to write the buffer if the terminal hangs up
.Xr sh 1 ,
.Xr vi 1 ,
.Xr regex 3
.Pp
USD:12-13
.Rs
.%A B. W. Kernighan
.%A P. J. Plauger
@@ -841,7 +845,6 @@ USD:12-13
.%O Addison-Wesley
.%D 1981
.Re
.Sh LIMITATIONS
.Nm Ed
processes
@@ -849,16 +852,15 @@ processes
arguments for backslash escapes, i.e., in a filename,
any characters preceded by a backslash (\\) are
interpreted literally.
.Pp
If a text (non-binary) file is not terminated by a newline character,
then
.Nm
appends one on reading/writing it. In the case of a binary file,
.Nm
does not append a newline on reading/writing.
.Pp
per line overhead: 4 ints
.Sh DIAGNOSTICS
When an error occurs,
.Nm
@@ -868,7 +870,7 @@ An explanation of the last error can be
printed with the
.Em h
(help) command.
.Pp
Since the
.Em g
(global) command masks any errors from failed searches and substitutions,
@@ -890,7 +892,7 @@ If the
.Em u
(undo) command occurs in a global command list, then
the command list is executed only once.
.Pp
If diagnostics are not disabled, attempting to quit
.Nm
or edit another file before writing a modified buffer
+2
View File
@@ -35,6 +35,8 @@ static char * const rcsid =
#endif
#endif /* not lint */
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
+3 -1
View File
@@ -57,6 +57,8 @@ static char * const rcsid =
*
*/
#include <sys/types.h>
#include <sys/ioctl.h>
#include <sys/wait.h>
#include <ctype.h>
@@ -101,7 +103,7 @@ int lineno; /* script line number */
char *prompt; /* command-line prompt */
char *dps = "*"; /* default command-line prompt */
char *usage = "usage: %s [-] [-sx] [-p string] [name]\n";
const char usage[] = "usage: %s [-] [-sx] [-p string] [name]\n";
/* ed: line editor */
int
+2 -2
View File
@@ -37,7 +37,7 @@
.Nm expr
.Nd evaluate expression
.Sh SYNOPSIS
.Nm expr
.Nm
.Ar expression
.Sh DESCRIPTION
The
@@ -77,7 +77,7 @@ Return the results of addition or subtraction of integer-valued arguments.
Return the results of multiplication, integer division, or remainder of integer-valued arguments.
.It Ar expr1 Li : Ar expr2
The
.Dq \:
.Dq \&:
operator matches
.Ar expr1
against
+1 -1
View File
@@ -39,7 +39,7 @@
.Nm hostname
.Nd set or print name of current host system
.Sh SYNOPSIS
.Nm hostname
.Nm
.Op Fl s
.Op Ar name-of-host
.Sh DESCRIPTION
+4 -4
View File
@@ -42,18 +42,18 @@
.Nm kill
.Nd terminate or signal a process
.Sh SYNOPSIS
.Nm kill
.Nm
.Op Fl s Ar signal_name
.Ar pid
\&...
.Nm kill
.Nm
.Fl l
.Op Ar exit_status
.Nm kill
.Nm
.Fl signal_name
.Ar pid
\&...
.Nm kill
.Nm
.Fl signal_number
.Ar pid
\&...
+2 -2
View File
@@ -43,11 +43,11 @@
.Nm link
.Nd make links
.Sh SYNOPSIS
.Nm ln
.Nm
.Op Fl fisv
.Ar source_file
.Op target_file
.Nm ln
.Nm
.Op Fl fisv
.Ar source_file ...
.Op target_dir
+8 -3
View File
@@ -80,7 +80,7 @@ exceeded.)
.Pp
There are three separate areas that need to be discussed.
They are as follows:
.sp
.Pp
.Bl -enum -compact -offset indent
.It
Symbolic links used as file name arguments for system calls.
@@ -102,17 +102,18 @@ For example, if there were a symbolic link
which pointed to a file named
.Dq Li afile ,
the system call
.Dq Li open("slink" ...)
.Dq Li open("slink" ...\&)
would return a file descriptor to the file
.Dq afile .
.Pp
There are five system calls that do not follow links, and which operate
There are six system calls that do not follow links, and which operate
on the symbolic link itself.
They are:
.Xr lchown 2 ,
.Xr lstat 2 ,
.Xr readlink 2 ,
.Xr rename 2 ,
.Xr rmdir 2 ,
and
.Xr unlink 2 .
Because
@@ -120,6 +121,10 @@ Because
is an alias for
.Xr unlink 2 ,
it also does not follow symbolic links.
When
.Xr rmdir 2
is applied to a symbolic link, it fails with the error
.Er ENOTDIR .
.Pp
The owner and group of an existing symbolic link can be changed by
means of the
+8 -8
View File
@@ -42,9 +42,9 @@
.Nm ls
.Nd list directory contents
.Sh SYNOPSIS
.Nm ls
.Nm
.Op Fl ABCFGHLPRTWabcdfgiklnoqrstu1
.Op Ar file ...
.Op Ar
.Sh DESCRIPTION
For each operand that names a
.Ar file
@@ -72,9 +72,9 @@ The following options are available:
.Bl -tag -width indent
.It Fl A
List all entries except for
.Ql \&.
.Ql .\&
and
.Ql \&.. .
.Ql .. .
Always set for the super-user.
.It Fl B
Force printing of non-graphic characters in file names as \\xxx,
@@ -217,7 +217,7 @@ options all override each other; the last one specified determines
the format used for non-printable characters.
.Pp
The
.Fl H,
.Fl H ,
.Fl L
and
.Fl P
@@ -364,7 +364,7 @@ The
utility exits 0 on success, and >0 if an error occurs.
.Sh ENVIRONMENT
The following environment variables affect the execution of
.Nm Ns :
.Nm :
.Bl -tag -width BLOCKSIZE
.It Ev BLOCKSIZE
If the environment variable
@@ -431,7 +431,7 @@ for more information.
.It Ev LSCOLORS
The value of this variable describes what color to use for which
attribute when colors are enabled with
.Ev CLICOLOR.
.Ev CLICOLOR .
This string is a concatenation of pairs of the format
.Sy fb ,
where
@@ -542,4 +542,4 @@ function is expected to be a superset of the
specification.
.Sh BUGS
To maintain backward compatibility, the relationships between the many
options is quite complex.
options are quite complex.
+1 -1
View File
@@ -42,7 +42,7 @@
.Nm mkdir
.Nd make directories
.Sh SYNOPSIS
.Nm mkdir
.Nm
.Op Fl pv
.Op Fl m Ar mode
.Ar directory_name ...
+5 -1
View File
@@ -50,6 +50,7 @@ static const char rcsid[] =
#include <err.h>
#include <errno.h>
#include <libgen.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
@@ -108,7 +109,10 @@ main(argc, argv)
if (build(*argv, omode))
success = 0;
} else if (mkdir(*argv, omode) < 0) {
warn("%s", *argv);
if (errno == ENOTDIR || errno == ENOENT)
warn("%s", dirname(*argv));
else
warn("%s", *argv);
success = 0;
} else if (vflag)
(void)printf("%s\n", *argv);
+2 -2
View File
@@ -42,11 +42,11 @@
.Nm mv
.Nd move files
.Sh SYNOPSIS
.Nm mv
.Nm
.Op Fl f | Fl i
.Op Fl v
.Ar source target
.Nm mv
.Nm
.Op Fl f | Fl i
.Op Fl v
.Ar source ... directory
-1
View File
@@ -223,7 +223,6 @@ extern int pids;
extern int exit_val;
extern int docrc;
extern char *dirptr;
extern char *ltmfrmt;
extern char *argv0;
int main __P((int, char **));
void sig_cleanup __P((int));
+11 -21
View File
@@ -106,17 +106,13 @@ ls_list(arcn, now)
sbp = &(arcn->sb);
strmode(sbp->st_mode, f_mode);
if (ltmfrmt == NULL) {
/*
* no locale specified format. time format based on age
* compared to the time pax was started.
*/
if ((sbp->st_mtime + SIXMONTHS) <= now)
timefrmt = OLDFRMT;
else
timefrmt = CURFRMT;
} else
timefrmt = ltmfrmt;
/*
* time format based on age compared to the time pax was started.
*/
if ((sbp->st_mtime + SIXMONTHS) <= now)
timefrmt = OLDFRMT;
else
timefrmt = CURFRMT;
/*
* print file mode, link count, uid, gid and time
@@ -178,16 +174,10 @@ ls_tty(arcn)
char f_mode[MODELEN];
char *timefrmt;
if (ltmfrmt == NULL) {
/*
* no locale specified format
*/
if ((arcn->sb.st_mtime + SIXMONTHS) <= time((time_t *)NULL))
timefrmt = OLDFRMT;
else
timefrmt = CURFRMT;
} else
timefrmt = ltmfrmt;
if ((arcn->sb.st_mtime + SIXMONTHS) <= time((time_t *)NULL))
timefrmt = OLDFRMT;
else
timefrmt = CURFRMT;
/*
* convert time to string, and print
+1 -1
View File
@@ -970,7 +970,7 @@ opt_add(str)
* 4) A positive decimal number followed by a m (mult by 512).
* 5) A positive decimal number followed by a w (mult by sizeof int)
* 6) Two or more positive decimal numbers (with/without k,b or w).
* seperated by x (also * for backwards compatibility), specifying
* separated by x (also * for backwards compatibility), specifying
* the product of the indicated values.
* Return:
* 0 for an error, a positive value o.w.
+34 -34
View File
@@ -43,22 +43,22 @@
.Nm pax
.Nd read and write file archives and copy directory hierarchies
.Sh SYNOPSIS
.Nm pax
.Nm
.Op Fl cdnv
.Bk -words
.Op Fl f Ar archive
.Ek
.Bk -words
.Op Fl s Ar replstr
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl U Ar user
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl G Ar group
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Oo
@@ -66,10 +66,10 @@
.Op Ar from_date
.Op Ar ,to_date
.Oc
.Ar ...
.Ar ...\&
.Ek
.Op Ar pattern ...
.Nm pax
.Op Ar pattern ...\&
.Nm
.Fl r
.Op Fl cdiknuvDYZ
.Bk -words
@@ -77,24 +77,24 @@
.Ek
.Bk -words
.Op Fl o Ar options
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl p Ar string
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl s Ar replstr
.Ar ...
.Ar ...\&
.Ek
.Op Fl E Ar limit
.Bk -words
.Op Fl U Ar user
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl G Ar group
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Oo
@@ -102,10 +102,10 @@
.Op Ar from_date
.Op Ar ,to_date
.Oc
.Ar ...
.Ar ...\&
.Ek
.Op Ar pattern ...
.Nm pax
.Op Ar pattern ...\&
.Nm
.Fl w
.Op Fl dituvHLPX
.Bk -words
@@ -120,19 +120,19 @@
.Ek
.Bk -words
.Op Fl s Ar replstr
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl o Ar options
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl U Ar user
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl G Ar group
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl B Ar bytes
@@ -144,28 +144,28 @@
.Op Ar ,to_date
.Op Ar /[c][m]
.Oc
.Ar ...
.Ar ...\&
.Ek
.Op Ar file ...
.Nm pax
.Op Ar
.Nm
.Fl r
.Fl w
.Op Fl diklntuvDHLPXYZ
.Bk -words
.Op Fl p Ar string
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl s Ar replstr
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl U Ar user
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Op Fl G Ar group
.Ar ...
.Ar ...\&
.Ek
.Bk -words
.Oo
@@ -174,9 +174,9 @@
.Op Ar ,to_date
.Op Ar /[c][m]
.Oc
.Ar ...
.Ar ...\&
.Ek
.Op Ar file ...
.Op Ar
.Ar directory
.Sh DESCRIPTION
.Nm Pax
@@ -198,7 +198,7 @@ options specifies which of the following functional modes
will operate under:
.Em list , read , write ,
and
.Em copy.
.Em copy .
.Bl -tag -width 6n
.It <none>
.Em List .
@@ -208,7 +208,7 @@ will write to
a table of contents of the members of the archive file read from
.Dv standard input ,
whose pathnames match the specified
.Ar patterns.
.Ar patterns .
The table of contents contains one filename per line
and is written using single line buffering.
.It Fl r
@@ -217,7 +217,7 @@ and is written using single line buffering.
extracts the members of the archive file read from the
.Dv standard input ,
with pathnames matching the specified
.Ar patterns.
.Ar patterns .
The archive format and blocking is automatically determined on input.
When an extracted file is a directory, the entire file hierarchy
rooted at that directory is extracted.
@@ -640,7 +640,7 @@ are not selected and will be skipped.
Reset the access times of any file or directory read or accessed by
.Nm
to be the same as they were before being read or accessed by
.Nm Ns .
.Nm .
.It Fl u
Ignore files that are older (having a less recent file modification time)
than a pre-existing file or archive member with the same name.
@@ -811,7 +811,7 @@ The default
.Ar limit
is a small positive number of retries.
.Pp
.Em Warning:
.Em Warning :
Using this option with
.Li NONE
should be used with extreme caution as
@@ -1045,7 +1045,7 @@ option, a file is not considered selected unless it is newer
than the file to which it is compared.
.Sh EXAMPLES
The command:
.Dl pax -w -f /dev/rst0 .\
.Dl "pax -w -f /dev/rst0 ."
copies the contents of the current directory to the device
.Pa /dev/rst0 .
.Pp
-8
View File
@@ -95,7 +95,6 @@ int pids; /* preserve file uid/gid */
int exit_val; /* exit value */
int docrc; /* check/create file crc */
char *dirptr; /* destination dir in a copy */
char *ltmfrmt; /* -v locale time format (if any) */
char *argv0; /* root of argv[0] */
sigset_t s_mask; /* signal mask for cleanup critical sect */
@@ -349,13 +348,6 @@ gen_init()
(void)setrlimit(RLIMIT_RSS , &reslimit);
}
/*
* Handle posix locale
*
* set user defines time printing format for -v option
*/
ltmfrmt = getenv("LC_TIME");
/*
* signal handling to reset stored directory times and modes. Since
* we deal with broken pipes via failed writes we ignore it. We also
+1 -1
View File
@@ -227,7 +227,7 @@ parsefmt(p)
while ((cp = strsep(&p, FMTSEP)) != NULL && *cp == '\0')
/* void */;
if (!(v = findvar(cp)))
if (cp == NULL || !(v = findvar(cp)))
continue;
if ((vent = malloc(sizeof(struct varent))) == NULL)
err(1, NULL);
+6
View File
@@ -31,6 +31,12 @@
* SUCH DAMAGE.
*/
#ifndef lint
static char sccsid[] = "@(#)nlist.c 8.4 (Berkeley) 4/2/94";
static const char rcsid[] =
"$FreeBSD$";
#endif /* not lint */
#include <sys/types.h>
#include <sys/sysctl.h>
+3 -3
View File
@@ -39,7 +39,7 @@
.Nm ps
.Nd process status
.Sh SYNOPSIS
.Nm ps
.Nm
.Op Fl aCcefhjlmrSTuvwx
.Op Fl M Ar core
.Op Fl N Ar system
@@ -49,7 +49,7 @@
.Op Fl t Ar tty
.Op Fl U Ar username
.Op Fl W Ar swap
.Nm ps
.Nm
.Op Fl L
.Sh DESCRIPTION
.Nm Ps
@@ -145,7 +145,7 @@ Display information about processes attached to the specified terminal
device.
.It Fl U
Display the processes belonging to the specified
.Tn username .
.Ar username .
.It Fl u
Display information associated with the following keywords:
user, pid, %cpu, %mem, vsz, rss, tt, state, start, time and command.
+69 -13
View File
@@ -67,9 +67,12 @@ static const char rcsid[] =
#include <unistd.h>
#include <locale.h>
#include <pwd.h>
#include <utmp.h>
#include "ps.h"
#define SEP ", \t" /* username separators */
KINFO *kinfo;
struct varent *vhead, *vtail;
@@ -98,6 +101,7 @@ static void scanvars __P((void));
static void dynsizevars __P((KINFO *));
static void sizevars __P((void));
static void usage __P((void));
static uid_t *getuids(const char *, int *);
char dfmt[] = "pid tt state time command";
char jfmt[] = "user pid ppid pgid sess jobc state tt time command";
@@ -117,12 +121,11 @@ main(argc, argv)
struct kinfo_proc *kp;
struct varent *vent;
struct winsize ws;
struct passwd *pwd;
dev_t ttydev;
pid_t pid;
uid_t uid;
uid_t *uids;
int all, ch, flag, i, fmt, lineno, nentries, dropgid;
int prtheader, wflag, what, xflg;
int prtheader, wflag, what, xflg, uid, nuids;
char *nlistf, *memf, *swapf, errbuf[_POSIX2_LINE_MAX];
(void) setlocale(LC_ALL, "");
@@ -140,7 +143,8 @@ main(argc, argv)
all = fmt = prtheader = wflag = xflg = 0;
pid = -1;
uid = (uid_t) -1;
nuids = 0;
uids = NULL;
ttydev = NODEV;
dropgid = 0;
memf = nlistf = swapf = _PATH_DEVNULL;
@@ -242,11 +246,7 @@ main(argc, argv)
break;
}
case 'U':
pwd = getpwnam(optarg);
if (pwd == NULL)
errx(1, "%s: no such user", optarg);
uid = pwd->pw_uid;
endpwent();
uids = getuids(optarg, &nuids);
xflg++; /* XXX: intuitive? */
break;
case 'u':
@@ -310,8 +310,12 @@ main(argc, argv)
parsefmt(dfmt);
/* XXX - should be cleaner */
if (!all && ttydev == NODEV && pid == -1 && uid == (uid_t)-1)
uid = getuid();
if (!all && ttydev == NODEV && pid == -1 && !nuids) {
if ((uids = malloc(sizeof (*uids))) == NULL)
errx(1, "malloc: %s", strerror(errno));
nuids = 1;
*uids = getuid();
}
/*
* scan requested variables, noting what structures are needed,
@@ -321,9 +325,9 @@ main(argc, argv)
/*
* get proc list
*/
if (uid != (uid_t) -1) {
if (nuids == 1) {
what = KERN_PROC_UID;
flag = uid;
flag = *uids;
} else if (ttydev != NODEV) {
what = KERN_PROC_TTY;
flag = ttydev;
@@ -367,6 +371,14 @@ main(argc, argv)
if (xflg == 0 && (KI_EPROC(&kinfo[i])->e_tdev == NODEV ||
(KI_PROC(&kinfo[i])->p_flag & P_CONTROLT ) == 0))
continue;
if (nuids > 1) {
for (uid = 0; uid < nuids; uid++)
if (KI_EPROC(&kinfo[i])->e_ucred.cr_uid ==
uids[uid])
break;
if (uid == nuids)
continue;
}
for (vent = vhead; vent; vent = vent->next) {
(vent->var->oproc)(&kinfo[i], vent);
if (vent->next != NULL)
@@ -379,9 +391,53 @@ main(argc, argv)
lineno = 0;
}
}
free(uids);
exit(eval);
}
uid_t *
getuids(const char *arg, int *nuids)
{
char name[UT_NAMESIZE + 1];
struct passwd *pwd;
uid_t *uids, *moreuids;
int l, alloc;
alloc = 0;
*nuids = 0;
uids = NULL;
for (; (l = strcspn(arg, SEP)) > 0; arg += l + strspn(arg + l, SEP)) {
if (l >= sizeof name) {
warnx("%.*s: name too long", l, arg);
continue;
}
strncpy(name, arg, l);
name[l] = '\0';
if ((pwd = getpwnam(name)) == NULL) {
warnx("%s: no such user", name);
continue;
}
if (*nuids >= alloc) {
alloc = (alloc + 1) << 1;
moreuids = realloc(uids, alloc * sizeof (*uids));
if (moreuids == NULL) {
free(uids);
errx(1, "realloc: %s", strerror(errno));
}
uids = moreuids;
}
uids[(*nuids)++] = pwd->pw_uid;
}
endpwent();
if (!*nuids)
errx(1, "No users specified");
return uids;
}
static void
scanvars()
{
+2
View File
@@ -2,5 +2,7 @@
# $FreeBSD$
PROG= pwd
LINKS= ${BINDIR}/pwd ${BINDIR}/realpath
MAN1= pwd.1 realpath.1
.include <bsd.prog.mk>
+4 -1
View File
@@ -42,7 +42,7 @@
.Nm pwd
.Nd return working directory name
.Sh SYNOPSIS
.Nm pwd
.Nm
.Sh DESCRIPTION
.Nm Pwd
writes the absolute pathname of the current working directory to
@@ -64,6 +64,9 @@ The
utility is expected to be
.St -p1003.2
compatible.
The
.Fl L
flag is not supported.
.Sh SEE ALSO
.Xr builtin 1 ,
.Xr cd 1 ,
+15 -6
View File
@@ -49,6 +49,7 @@ static const char rcsid[] =
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/param.h>
void usage __P((void));
@@ -59,13 +60,13 @@ main(argc, argv)
{
int ch;
char *p;
char buf[MAXPATHLEN];
/*
* Flags for pwd are a bit strange. The POSIX 1003.2B/D9 document
* has an optional -P flag for physical, which is what this program
* will produce by default. The logical flag, -L, should fail, as
* there's no way to display a logical path after forking. We don't
* document either flag, only adding -P for future portability.
* there's no way to display a logical path after forking.
*/
while ((ch = getopt(argc, argv, "P")) != -1)
switch (ch) {
@@ -78,12 +79,20 @@ main(argc, argv)
argc -= optind;
argv += optind;
if (argc != 0)
if (argc == 1) {
p = realpath(argv[0], buf);
if (p == NULL)
err(1, "%s", argv[0]);
(void)printf("%s\n", p);
} else if (argc == 0) {
p = getcwd(NULL, 0);
if (p == NULL)
err(1, ".");
(void)printf("%s\n", p);
} else {
usage();
}
if ((p = getcwd(NULL, 0)) == NULL)
err(1, ".");
(void)printf("%s\n", p);
exit(0);
}
+31 -47
View File
@@ -1,9 +1,9 @@
.\" Copyright (c) 1996
.\" Mike Pritchard <[email protected]>. All rights reserved.
.\"
.\" Copyright (c) 1991, 1993
.\" Copyright (c) 1990, 1993
.\" The Regents of the University of California. All rights reserved.
.\"
.\" This code is derived from software contributed to Berkeley by
.\" the Institute of Electrical and Electronics Engineers, Inc.
.\"
.\" Redistribution and use in source and binary forms, with or without
.\" modification, are permitted provided that the following conditions
.\" are met:
@@ -32,55 +32,39 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE.
.\"
.\" @(#)pwd.1 8.2 (Berkeley) 4/28/95
.\" From: src/bin/pwd/pwd.1,v 1.11 2000/11/20 11:39:39 ru Exp
.\" $FreeBSD$
.\"
.Dd February 11, 1996
.Dt UPDATE 4
.Dd November 24, 2000
.Dt REALPATH 1
.Os FreeBSD
.Sh NAME
.Nm update
.Nd flush internal filesystem caches to disk periodically
.Nm realpath
.Nd return resolved physical path
.Sh SYNOPSIS
.Nm update
.Nm
.Ar path
.Sh DESCRIPTION
.Nm
uses the
.Xr realpath 3
function to resolve all symbolic links, extra
.Ql /
characters and references to
.Pa /./
and
.Pa /../
in
.Ar path .
.Sh DIAGNOSTICS
The
.Nm update
kernel process helps protect the integrity of disk volumes
by flushing
volatile cached filesystem data
to disk. This is done at thirty second intervals by default.
The time period may be changed by using
.Xr sysctl 8
to modify the
.Va kern.update
variable.
The
.Nm update
process does the equivalent of the
.Xr sync 2
function call to do the task.
.Nm
utility exits 0 on success, and >0 if an error occurs.
.Sh SEE ALSO
.Xr sync 2 ,
.Xr fsck 8 ,
.Xr init 8 ,
.Xr rc 8 ,
.Xr sync 8 ,
.Xr sysctl 8
.Sh BUGS
It is possible on some systems that a
.Xr sync 2
occurring simultaneously with a crash may cause
file system damage. See
.Xr fsck 8 .
.Xr realpath 3
.Sh HISTORY
An
.Nm update
command appeared in
.At v6 ,
and was usually started by
.Pa /etc/rc
when the system went multi-user.
A kernel initiated
.Nm update
process first appeared in
.Fx 2.0 .
The
.Nm
utility first appeared in
.Fx 4.3 .
+6 -6
View File
@@ -39,14 +39,14 @@
.Nm rcp
.Nd remote file copy
.Sh SYNOPSIS
.Nm rcp
.Nm
.Op Fl Kpx
.Op Fl k Ar realm
.Ar file1 file2
.Nm rcp
.Nm
.Op Fl Kprx
.Op Fl k Ar realm
.Ar file ...
.Ar
.Ar directory
.Sh DESCRIPTION
.Nm Rcp
@@ -93,7 +93,7 @@ the destination must be a directory.
Turn on
.Tn DES
encryption for all data passed by
.Nm Ns .
.Nm .
This may impact response time and
.Tn CPU
utilization, but provides
@@ -133,7 +133,7 @@ configure authentication services
.Xr rlogin 1 ,
.Xr rsh 1 ,
.Xr auth.conf 5 ,
.Xr hosts.equiv 5 .
.Xr hosts.equiv 5
.Sh HISTORY
The
.Nm
@@ -160,4 +160,4 @@ The destination user and hostname may have to be specified as
when the destination machine is running the
.Bx 4.2
version of
.Nm Ns .
.Nm .
+4 -4
View File
@@ -43,9 +43,9 @@
.Nm unlink
.Nd remove directory entries
.Sh SYNOPSIS
.Nm rm
.Nm
.Op Fl dfiPRrvW
.Ar file ...
.Ar
.Nm unlink
.Ar file
.Sh DESCRIPTION
@@ -115,7 +115,7 @@ The
utility removes symbolic links, not the files referenced by the links.
.Pp
It is an error to attempt to remove the files
.Dq \&.
.Dq .\&
or
.Dq .. .
.Pp
@@ -195,7 +195,7 @@ command is almost
compatible, except that
.Tn POSIX
requires
.Nm rm
.Nm
to act like
.Xr rmdir 1
when the
+3 -3
View File
@@ -253,7 +253,7 @@ rm_tree(argv)
if (rval == 0 || (fflag && errno == ENOENT)) {
if (rval == 0 && vflag)
(void)printf("%s\n",
p->fts_accpath);
p->fts_path);
continue;
}
break;
@@ -263,7 +263,7 @@ rm_tree(argv)
if (rval == 0 && (fflag && errno == ENOENT)) {
if (vflag)
(void)printf("%s\n",
p->fts_accpath);
p->fts_path);
continue;
}
break;
@@ -275,7 +275,7 @@ rm_tree(argv)
if (rval == 0 || (fflag && errno == ENOENT)) {
if (rval == 0 && vflag)
(void)printf("%s\n",
p->fts_accpath);
p->fts_path);
continue;
}
}
+1 -1
View File
@@ -42,7 +42,7 @@
.Nm rmdir
.Nd remove directories
.Sh SYNOPSIS
.Nm rmdir
.Nm
.Op Fl p
.Ar directory ...
.Sh DESCRIPTION
+1
View File
@@ -442,6 +442,7 @@ expredir(n)
switch (redir->type) {
case NFROM:
case NTO:
case NFROMTO:
case NAPPEND:
expandarg(redir->nfile.fname, &fn, EXP_TILDE | EXP_REDIR);
redir->nfile.expfname = fn.list->text;
+11 -7
View File
@@ -52,6 +52,7 @@ static const char rcsid[] =
#include <sys/wait.h>
#include <sys/time.h>
#include <sys/resource.h>
#include <paths.h>
#endif
#include <sys/ioctl.h>
@@ -635,9 +636,9 @@ forkshell(jp, n, mode)
if ((jp == NULL || jp->nprocs == 0) &&
! fd0_redirected_p ()) {
close(0);
if (open("/dev/null", O_RDONLY) != 0)
error("Can't open /dev/null: %s",
strerror(errno));
if (open(_PATH_DEVNULL, O_RDONLY) != 0)
error("Can't open %s: %s",
_PATH_DEVNULL, strerror(errno));
}
}
#else
@@ -647,9 +648,9 @@ forkshell(jp, n, mode)
if ((jp == NULL || jp->nprocs == 0) &&
! fd0_redirected_p ()) {
close(0);
if (open("/dev/null", O_RDONLY) != 0)
error("Can't open /dev/null: %s",
strerror(errno));
if (open(_PATH_DEVNULL, O_RDONLY) != 0)
error("Can't open %s: %s",
_PATH_DEVNULL, strerror(errno));
}
}
#endif
@@ -782,7 +783,8 @@ dowait(block, job)
do {
pid = waitproc(block, &status);
TRACE(("wait returns %d, status=%d\n", pid, status));
} while (pid == -1 && errno == EINTR && breakwaitcmd == 0);
} while ((pid == -1 && errno == EINTR && breakwaitcmd == 0) ||
(WIFSTOPPED(status) && !iflag));
in_dowait--;
if (breakwaitcmd != 0) {
breakwaitcmd = 0;
@@ -1085,6 +1087,8 @@ until:
p = ">&"; i = 1; goto redir;
case NFROM:
p = "<"; i = 0; goto redir;
case NFROMTO:
p = "<>"; i = 0; goto redir;
case NFROMFD:
p = "<&"; i = 0; goto redir;
redir:
+1 -1
View File
@@ -37,7 +37,7 @@
# @(#)mkbuiltins 8.2 (Berkeley) 5/4/95
# $FreeBSD$
temp=/tmp/ka$$
temp=`/usr/bin/mktemp -t ka`
havejobs=0
if grep '^#define JOBS[ ]*1' shell.h > /dev/null
then havejobs=1
+8 -7
View File
@@ -41,7 +41,8 @@
# token marks the end of a list. The third column is the name to print in
# error messages.
cat > /tmp/ka$$ <<\!
temp=`/usr/bin/mktemp -t ka`
cat > $temp <<\!
TEOF 1 end of file
TNL 0 newline
TSEMI 0 ";"
@@ -71,25 +72,25 @@ TCASE 0 "case"
TESAC 1 "esac"
TNOT 0 "!"
!
nl=`wc -l /tmp/ka$$`
nl=`wc -l $temp`
exec > token.h
awk '{print "#define " $1 " " NR-1}' /tmp/ka$$
awk '{print "#define " $1 " " NR-1}' $temp
echo '
/* Array indicating which tokens mark the end of a list */
const char tokendlist[] = {'
awk '{print "\t" $2 ","}' /tmp/ka$$
awk '{print "\t" $2 ","}' $temp
echo '};
char *const tokname[] = {'
sed -e 's/"/\\"/g' \
-e 's/[^ ]*[ ][ ]*[^ ]*[ ][ ]*\(.*\)/ "\1",/' \
/tmp/ka$$
$temp
echo '};
'
sed 's/"//g' /tmp/ka$$ | awk '
sed 's/"//g' $temp | awk '
/TIF/{print "#define KWDOFFSET " NR-1; print ""; print "char *const parsekwd[] = {"}
/TIF/,/neverfound/{print " \"" $3 "\","}'
echo ' 0
};'
rm /tmp/ka$$
rm $temp
+1
View File
@@ -118,6 +118,7 @@ NARG narg # represents a word
NTO nfile # fd> fname
NFROM nfile # fd< fname
NFROMTO nfile # fd<> fname
NAPPEND nfile # fd>> fname
type int
next nodeptr # next redirection in list
+2
View File
@@ -1138,6 +1138,8 @@ parseredir: {
}
} else if (c == '&')
np->type = NFROMFD;
else if (c == '>')
np->type = NFROMTO;
else {
np->type = NFROM;
pungetc();
+21
View File
@@ -190,6 +190,27 @@ movefd:
close(f);
}
break;
case NFROMTO:
fname = redir->nfile.expfname;
#ifdef O_CREAT
if ((f = open(fname, O_RDWR|O_CREAT, 0666)) < 0)
error("cannot create %s: %s", fname, errmsg(errno, E_CREAT));
#else
if ((f = open(fname, O_RDWR, 0666)) < 0) {
if (errno != ENOENT)
error("cannot create %s: %s", fname, errmsg(errno, E_CREAT));
else if ((f = creat(fname, 0666)) < 0)
error("cannot create %s: %s", fname, errmsg(errno, E_CREAT));
else {
close(f);
if ((f = open(fname, O_RDWR)) < 0) {
error("cannot create %s: %s", fname, errmsg(errno, E_CREAT));
remove(fname);
}
}
}
#endif
goto movefd;
case NTO:
fname = redir->nfile.expfname;
#ifdef O_CREAT
+29 -23
View File
@@ -46,7 +46,7 @@
.Op Fl /+abCEefIimnpsTuVvx
.Op Fl /+o Ar longname
.Op Fl c Ar string
.Op Ar arg ...
.Op Ar arg ...\&
.Sh DESCRIPTION
The
.Nm
@@ -331,13 +331,14 @@ The following is a list of valid operators:
.Xc Xc Xc Xc
.El
.It Redirection operators:
.Bl -column "XXX" "XXX" "XXX" "XXX" -offset center -compact
.Bl -column "XXX" "XXX" "XXX" "XXX" "XXX" -offset center -compact
.It Xo
.Li < Ta Xo
.Li > Ta Xo
.Li << Ta Xo
.Li >>
.Xc Xc Xc Xc
.Li >> Ta Xo
.Li <>
.Xc Xc Xc Xc Xc
.It Xo
.Li <& Ta Xo
.Li >& Ta Xo
@@ -389,7 +390,7 @@ shell and are recognized at the beginning of a line and
after a control operator. The following are reserved words:
.Bl -column "doneXX" "elifXX" "elseXX" "untilXX" "whileX" -offset center
.It Xo
.Li ! Ta Xo
.Li \&! Ta Xo
.Li { Ta Xo
.Li } Ta Xo
.Ic case Ta Xo
@@ -497,6 +498,8 @@ option
append stdout (or file descriptor n) to file
.It Li [n]< file
redirect stdin (or file descriptor n) from file
.It Li [n]<> file
redirect stdin (or file descriptor n) to and from file
.It Li [n1]<&n2
duplicate stdin (or file descriptor n1) from file descriptor n2
.It Li [n]<&-
@@ -564,7 +567,7 @@ whose
representation is
.Qq #! ,
resulting in an
.Dv ENOEXEC
.Er ENOEXEC
return value from
.Xr execve 2 )
the shell will interpret the program in a subshell.
@@ -671,7 +674,7 @@ to the standard input of
.Ql command2 .
.Pp
A
.Dq Li \;
.Dq Li \&;
or newline terminator causes the preceding
AND-OR-list
(described below in the section called
@@ -857,7 +860,7 @@ This should appear as the first statement of a function,
and the syntax is:
.Bd -ragged -offset indent
.Ic local
.Op Ar variable ...
.Op Ar variable ...\&
.Op Ar -
.Ed
.Pp
@@ -967,7 +970,7 @@ the two arguments:
.Ed
.It Li #
Expands to the number of positional parameters.
.It Li ?
.It Li \&?
Expands to the exit status of the most recent pipeline.
.It Li -
(hyphen) Expands to the current option flags (the single-letter
@@ -977,7 +980,7 @@ by the shell.
.It Li $
Expands to the process ID of the invoked shell. A subshell
retains the same value of $ as its parent.
.It Li !
.It Li \&!
Expands to the process ID of the most recent background
command executed from the current shell. For a
pipeline, the process ID is that of the last command in the
@@ -1221,9 +1224,9 @@ command.
A pattern consists of normal characters, which match themselves,
and meta-characters.
The meta-characters are
.Dq Li ! ,
.Dq Li \&! ,
.Dq Li * ,
.Dq Li ? ,
.Dq Li \&? ,
and
.Dq Li [ .
These characters lose their special meanings if they are quoted.
@@ -1236,7 +1239,7 @@ An asterisk
.Pq Li *
matches any string of characters.
A question mark
.Pq Li ?
.Pq Li \&?
matches any single character.
A left bracket
.Pq Li [
@@ -1253,14 +1256,14 @@ rather than introducing a character class.
A character class matches any of the characters between the square brackets.
A range of characters may be specified using a minus sign.
The character class may be complemented by making an exclamation point
.Pq Li !
.Pq Li !\&
the first character of the character class.
.Pp
To include a
.Dq Li \]
.Dq Li \&]
in a character class, make it the first character listed
(after the
.Dq Li ! ,
.Dq Li \&! ,
if any).
To include a
.Dq Li - ,
@@ -1273,9 +1276,9 @@ these, a builtin version of the
.Xr printf 1
command is provided for efficiency.
.Bl -tag -width Ds
.It Ic :
.It Ic \&:
A null command that returns a 0 (true) exit value.
.It Ic . Ar file
.It Ic \&. Ar file
The commands in the specified file are read and executed by the shell.
If
.Ar file
@@ -1287,9 +1290,11 @@ for the file. If it is not found in the
.Ev PATH ,
it is sought in the current working directory.
.It Ic alias Op Ar name ...
.It Ic alias Op Ar name=string ...
.It Ic alias Xo
.Op Ar name Ns = Ns Ar string ...
.Xc
If
.Ar name=string
.Ar name Ns = Ns Ar string
is specified, the shell defines the alias
.Ar name
with value
@@ -1512,7 +1517,8 @@ Re-execute the command without invoking an editor.
Select the commands to list or edit.
The number of previous commands that can be accessed
are determined by the value of the
.Ev HISTSIZE variable.
.Ev HISTSIZE
variable.
The value of
.Ar first
or
@@ -1573,7 +1579,7 @@ If an option takes an argument, it is placed into the shell variable
If an invalid option is encountered,
.Ev var
is set to
.Dq Li ? .
.Dq Li \&? .
It returns a false value (1) when it encounters the end of the options.
.It Xo
.Ic hash
@@ -1806,7 +1812,7 @@ the complete pathname of the command is printed.
.Op Ar limit
.Xc
Set or display resource limits (see
.Xr getrlimit 2 ).
.Xr getrlimit 2 ) .
If
.Ar limit
is specified, the named resource will be set;
+1
View File
@@ -157,6 +157,7 @@ shcmd(cmd, fp)
case NAPPEND: s = ">>"; dftfd = 1; break;
case NTOFD: s = ">&"; dftfd = 1; break;
case NFROM: s = "<"; dftfd = 0; break;
case NFROMTO: s = "<>"; dftfd = 0; break;
case NFROMFD: s = "<&"; dftfd = 0; break;
default: s = "*error*"; dftfd = 0; break;
}
+1 -1
View File
@@ -64,7 +64,7 @@ The
command will accept and honor a non-integer number of specified seconds
.Po
with a
.Ql \&.
.Ql .\&
character as a decimal point
.Pc .
.Bf Sy
+1
View File
@@ -64,6 +64,7 @@ struct cchar cchars1[] = {
{ "eol", VEOL, CEOL },
{ "eol2", VEOL2, CEOL },
{ "erase", VERASE, CERASE },
{ "erase2", VERASE2, CERASE2 },
{ "intr", VINTR, CINTR },
{ "kill", VKILL, CKILL },
{ "lnext", VLNEXT, CLNEXT },
+6
View File
@@ -191,10 +191,16 @@ struct modes omodes[] = {
{ "-litout", OPOST, 0 },
{ "onlcr", ONLCR, 0 },
{ "-onlcr", 0, ONLCR },
{ "ocrnl", OCRNL, 0 },
{ "-ocrnl", 0, OCRNL },
{ "tabs", 0, OXTABS }, /* "preserve" tabs */
{ "-tabs", OXTABS, 0 },
{ "oxtabs", OXTABS, 0 },
{ "-oxtabs", 0, OXTABS },
{ "onocr", ONOCR, 0 },
{ "-onocr", 0, ONOCR },
{ "onlret", ONLRET, 0 },
{ "-onlret", 0, ONLRET },
{ NULL },
};
+3
View File
@@ -148,7 +148,10 @@ print(tp, wp, ldisc, fmt)
binit("oflags");
put("-opost", OPOST, 1);
put("-onlcr", ONLCR, 1);
put("-ocrnl", OCRNL, 0);
put("-oxtabs", OXTABS, 1);
put("-onocr", OXTABS, 0);
put("-onlret", OXTABS, 0);
/* control flags (hardware state) */
tmp = tp->c_cflag;
+35 -25
View File
@@ -42,7 +42,7 @@
.Nm stty
.Nd set the options for a terminal device interface
.Sh SYNOPSIS
.Nm stty
.Nm
.Op Fl a | Fl e | Fl g
.Op Fl f Ar file
.Op operands
@@ -237,8 +237,18 @@ Map (do not map)
to
.Dv CR-NL
on output.
.It Cm ocrnl Pq Fl ocrnl
Map (do not map)
.Dv CR
to
.Dv NL
on output.
.It Cm oxtabs Pq Fl oxtabs
Expand (do not expand) tabs to spaces on output.
.It Cm onocr Pq Fl onocr
Do not (do) output CRs at column zero.
.It Cm onlret Pq Fl onlret
On the terminal NL performs (does not perform) the CR function.
.El
.Ss Local Modes:
.Pp
@@ -368,23 +378,24 @@ Recognized control-characters:
.Bd -ragged -offset indent
.Bl -column character Subscript
.It control-
.It character Subscript Description
.It _________ _________ _______________
.It eof Ta Tn VEOF EOF No character
.It eol Ta Tn VEOL EOL No character
.It eol2 Ta Tn VEOL2 EOL2 No character
.It erase Ta Tn VERASE ERASE No character
.It werase Ta Tn VWERASE WERASE No character
.It intr Ta Tn VINTR INTR No character
.It kill Ta Tn VKILL KILL No character
.It quit Ta Tn VQUIT QUIT No character
.It susp Ta Tn VSUSP SUSP No character
.It start Ta Tn VSTART START No character
.It stop Ta Tn VSTOP STOP No character
.It dsusp Ta Tn VDSUSP DSUSP No character
.It lnext Ta Tn VLNEXT LNEXT No character
.It reprint Ta Tn VREPRINT REPRINT No character
.It status Ta Tn VSTATUS STATUS No character
.It character Ta Subscript Ta Description
.It _________ Ta _________ Ta _______________
.It eof Ta Tn VEOF Ta EOF No character
.It eol Ta Tn VEOL Ta EOL No character
.It eol2 Ta Tn VEOL2 Ta EOL2 No character
.It erase Ta Tn VERASE Ta ERASE No character
.It erase2 Ta Tn VERASE2 Ta ERASE2 No character
.It werase Ta Tn VWERASE Ta WERASE No character
.It intr Ta Tn VINTR Ta INTR No character
.It kill Ta Tn VKILL Ta KILL No character
.It quit Ta Tn VQUIT Ta QUIT No character
.It susp Ta Tn VSUSP Ta SUSP No character
.It start Ta Tn VSTART Ta START No character
.It stop Ta Tn VSTOP Ta STOP No character
.It dsusp Ta Tn VDSUSP Ta DSUSP No character
.It lnext Ta Tn VLNEXT Ta LNEXT No character
.It reprint Ta Tn VREPRINT Ta REPRINT No character
.It status Ta Tn VSTATUS Ta STATUS No character
.El
.Ed
.It Cm min Ar number
@@ -420,7 +431,8 @@ In addition
-nl unsets inlcr and igncr.
.It Cm ek
Reset
.Dv ERASE
.Dv ERASE ,
.Dv ERASE2 ,
and
.Dv KILL
characters
@@ -446,7 +458,7 @@ The terminal size is recorded as having
columns.
.It Cm cols Ar number
is an alias for
.Cm columns.
.Cm columns .
.It Cm rows Ar number
The terminal size is recorded as having
.Ar number
@@ -480,14 +492,12 @@ This means that unsetting
may not put back all the setting that were previously in effect.
To set the terminal into a raw state and then accurately restore it, the following
shell code is recommended:
.nf
.Bd -literal
save_state=$(stty -g)
stty raw
\&...
stty "$save_state"
.fi
.Ed
.It Cm size
The size of the terminal is printed as two numbers on a single line,
first rows, then columns.
@@ -514,7 +524,7 @@ If set, enables
.Cm brkint , ixon , imaxbel , opost ,
.Cm isig , iexten ,
and
.Cm Fl icanon .
.Fl icanon .
If unset, same as
.Cm sane .
.It Cm new
+2 -2
View File
@@ -39,7 +39,7 @@
.Nm sync
.Nd force completion of pending disk writes (flush cache)
.Sh SYNOPSIS
.Nm sync
.Nm
.Sh DESCRIPTION
.Nm Sync
can be called to insure that all disk writes have been completed before the
@@ -55,7 +55,7 @@ to shut down the system,
as they may perform additional actions
such as resynchronizing the hardware clock
and flushing internal caches before performing a final
.Nm Ns .
.Nm .
.Pp
.Nm Sync
utilizes the
+7 -7
View File
@@ -43,13 +43,13 @@
.Nm \&[
.Nd condition evaluation utility
.Sh SYNOPSIS
.Nm test
.Nm
.Ar expression
.Nm [
.Nm \&[
.Ar expression Cm ]
.Sh DESCRIPTION
The
.Nm test
.Nm
utility evaluates the expression and, if it evaluates
to true, returns a zero (true) exit status; otherwise
it returns 1 (false).
@@ -57,7 +57,7 @@ If there is no expression, test also
returns 1 (false).
.Pp
All operators and flags are separate arguments to the
.Nm test
.Nm
utility.
.Pp
The following primaries are used to construct expression:
@@ -288,7 +288,7 @@ operator has higher precedence than the
operator.
.Sh GRAMMAR AMBIGUITY
The
.Nm test
.Nm
grammar is inherently ambiguous. In order to assure a degree of consistency,
the cases described in the
.St -p1003.2 ,
@@ -298,7 +298,7 @@ standards document. All other cases are subject to the ambiguity in the
command semantics.
.Sh RETURN VALUES
The
.Nm test
.Nm
utility exits with one of the following values:
.Bl -tag -width Ds
.It 0
@@ -314,7 +314,7 @@ An error occurred.
.Xr sh 1
.Sh STANDARDS
The
.Nm test
.Nm
utility implements a superset of the
.St -p1003.2
specification.
+2 -1
View File
@@ -142,7 +142,7 @@ delimited by a single colon.
For example, if
.Ar logfile
is the string
.Nm syslog:local7
.Dq Li syslog:local7
then
.Nm amd
will log messages via
@@ -282,6 +282,7 @@ Map entries that are not tagged are always processed.
Map entries that are tagged with a tag other than
.Ar tag
will not be processed.
.El
.Sh FILES
.Bl -tag -width /axx
.It Pa /.amd_mnt
+1 -3
View File
@@ -179,8 +179,7 @@ Normally
will try TCP, and if that fails, will try UDP.
.El
.Sh FILES
.Bl -tag -width amq.xxxxx -compact
.Bl -tag -width Ds
.Bl -tag -width amq.x -compact
.It Pa amq.x
.Tn RPC
protocol description.
@@ -212,4 +211,3 @@ file distributed with
.Sh HISTORY
.Nm Amq
first appeared in 4.4BSD.
.At
+3 -2
View File
@@ -103,6 +103,7 @@ only.
.Pp
This option also saves time as comparisons of remotely recorded and local
hostnames by address are avoided.
.El
.Sh FILES
.Bl -tag -width /axx
.It Pa /etc/mtab
@@ -116,7 +117,7 @@ server.
.Xr mtab 5 ,
.Xr rmtab 5 ,
.Xr mountd 8 ,
.Xr showmount 8 .
.Xr showmount 8
.Sh BUGS
No attempt is made to verify the information in
.Pa /etc/mtab
@@ -138,7 +139,7 @@ To catch those cases, a filesystem is also deemed mounted if its
.Em local
mount point is identical to the remote entry.
I.e., on a SunOS diskless client,
.Ic server:/export/share/sunos.4.1.1
.Pa server:/export/share/sunos.4.1.1
is actually
.Pa /usr/share .
Since the local mount point is
+8 -2
View File
@@ -53,7 +53,10 @@
.Op Fl h Ar hostname
.Op Fl m Ar automounts_prefix
.Op Fl I Ar dir
.Op Fl D Ar name[=string]]
.Oo
.Fl D
.Ar name Ns Op = Ns Ar string
.Oc
.Op Fl U Ar name
.Ar config ...
.Sh DESCRIPTION
@@ -143,7 +146,9 @@ will be displayed, and all information discovered when performing the semantic
analysis phase will be displayed. Each verbose message
is output to the standard output on a line starting with a `#'
character.
.It Fl D Ar name[=string]
.It Fl D Xo
.Ar name Ns Op = Ns Ar string
.Xc
Defines a symbol
.Ar name
for the preprocessor when reading the configuration files.
@@ -162,6 +167,7 @@ option.
.It Ar config
One or more configuration files to be passed as input to
.Nm fsinfo .
.El
.Pp
The
.Nm
+5 -3
View File
@@ -147,7 +147,7 @@ to
Programs such as
.Ic comsat ,
.Pq which access the mailboxes of other users
must be setgid
must be setgid
.Va HLFS_GID
to work properly. The default group is
.Dq hlfs .
@@ -262,11 +262,12 @@ directory other than their home directory. Only the username, uid, and
home-directory fields of the file
.Ar password-file
are read and checked. All other fields are ignored. The file
.I password-file
.Ar password-file
must be compliant with
.Ux
System 7 colon-delimited format
.Xr passwd 5 .
.El
.Sh FILES
.Bl -tag -width /axx
.It Pa /hlfs
@@ -280,13 +281,14 @@ default sub-directory in the user's home directory, to which the
symbolic link returned by
.Nm
points.
.It /var/hlfs
.It Pa /var/hlfs
directory to which
.Pa home
symbolic link returned by
.Nm
points if it is unable to verify the that
user's home directory is accessible.
.El
.Sh SEE ALSO
.Xr mail 1 ,
.Xr getgrent 3 ,
+171 -103
View File
@@ -48,7 +48,7 @@
.Nm amd.conf
.Nd amd configuration file
.Sh SYNOPSIS
.Nm amd.conf
.Nm
.Sh DESCRIPTION
The
.Nm
@@ -56,7 +56,7 @@ file is the configuration file for amd, as part of the am-utils suite.
.Pp
.Nm
contains runtime configuration information for the
.Nm amd
.Xr amd 8
automounter program.
.Sh FILE FORMAT
The file consists of sections and parameters. A section begins with the
@@ -77,9 +77,7 @@ internal whitespace in section and parameter names is irrelevant. Leading
and trailing whitespace in a parameter value is discarded. Internal
whitespace within a parameter value is not allowed, unless the whole
parameter value is quoted with double quotes as in
.So name =
.Qq some value
.Sc .
.Sq name = Qq some\ value .
.Pp
Any line beginning with a pound sign (#) is ignored, as are lines containing
only whitespace.
@@ -89,34 +87,33 @@ The values following the equals sign in parameters are all either a string
be given as yes/no. Case is significant in all values. Some items such as
cache timeouts are numeric.
.Sh SECTIONS
.Bl -tag -width 4n
.It Nm The [global] section
.Ss "The [global] section"
Parameters in this section either apply to
.Nm amd
.Nm amd
as a whole, or to all other regular map sections which follow. There
should be only one global section defined in one configuration file.
.Pp
It is highly recommended that this section be specified first in the
configuration file. If it is not, then regular map sections which precede
it will not use global values defined later.
.It Nm Regular [/map] sections
.Ss "Regular [/map] sections"
Parameters in regular (non-global) sections apply to a single map entry.
For example, if the map section
.Bq Pa /homes
is defined, then all parameters following it will be applied to the
.Pa /homes
amd-managed mount point.
.El
.Sh PARAMETERS
.Bl -tag -width F1
.It Sy Parameters common to all sections
.Ss "Parameters common to all sections"
These parameters can be specified either in the global or a map specific
section. Entries specified in a map-specific section override the default
value or one defined in the global section. If such a common parameter is
specified only in the global section, it is applicable to all regular map
sections that follow.
.Bl -tag -width F1
.It Nm browsable_dirs (string, default=no)
.Bl -tag -width 4n
.It Ic browsable_dirs Xo
.Pq "string, default=no"
.Xc
If
.Qq yes ,
then amd's top-level mount points will be browsable to
@@ -140,41 +137,47 @@ the entries, such as often done by
.Qq ls -l
or
.Qq ls -F ,
.Nm amd
.Nm amd
will attempt to mount
.Em every
entry in that map. This is often called a
.Em mount storm .
.It Nm map_options (string, default no options)
.It Ic map_options Xo
.Pq "string, default no options"
.Xc
This option is the same as specifying map options on the command line to
.Nm amd ,
such as
.Ql cache\&:\&=all .
.It Nm map_type (string, default search all map types)
.It Ic map_type Xo
.Pq "string, default search all map types"
.Xc
If specified, amd will initialize the map only for the type given.
This is useful to avoid the default map search type used by amd which
takes longer and can have undesired side-effects such as initializing
NIS even if not used. Possible values are:
.Pp
.Bl -tag -width 10n -compact
.It Nm file
.Bl -tag -width "nisplus" -compact
.It Ic file
plain files
.It Nm hesiod
.It Ic hesiod
Hesiod name service from MIT
.It Nm ldap
.It Ic ldap
Lightweight Directory Access Protocol
.It Nm ndbm
.It Ic ndbm
(New) dbm style hash files
.It Nm nis
.It Ic nis
Network Information Services (version 2)
.It Nm nisplus
.It Ic nisplus
Network Information Services Plus (version 3)
.It Nm passwd
.It Ic passwd
local password files
.It Nm union
.It Ic union
union maps
.El
.It Nm mount_type (string, default=nfs)
.It Ic mount_type Xo
.Pq "string, default=nfs"
.Xc
All amd mount types default to
.Tn NFS .
That is,
@@ -184,42 +187,54 @@ is an
server on the map mount points, for the local host it is running on. If
.Qq autofs
is specified, amd will be an autofs server for those mount points.
.It Nm search_path (string, default no search path)
.It Ic search_path Xo
.Pq "string, default no search path"
.Xc
This provides a
.Pq colon-delimited
search path for file maps. Using a search path, sites can allow for
local map customizations and overrides, and can distributed maps in
several locations as needed.
.El
.It Nm Parameters applicable to the global section only
.Bl -tag -width F1
.It Nm arch (string, default to compiled in value)
.Ss "Parameters applicable to the global section only"
.Bl -tag -width 4n
.It Ic arch Xo
.Pq "string, default to compiled in value"
.Xc
Allows you to override the value of the
.Va arch
.Nm amd
variable.
.It Nm auto_dir (string, default=/a)
.It Ic auto_dir Xo
.Pq "string, default=/a"
.Xc
Same as the
.Fl a
option to
.Nm amd .
This sets the private directory where amd will create sub-directories for its
real mount points.
.It Nm cache_duration (numeric, default=300)
.It Ic cache_duration Xo
.Pq "numeric, default=300"
.Xc
Same as the
.Fl c
option to
.Nm amd .
Sets the duration in seconds that looked up map entries remain in the cache.
.It Nm cluster (string, default no cluster)
.It Ic cluster Xo
.Pq "string, default no cluster"
.Xc
Same as the
.Fl C
option to
.Nm amd .
Specifies the alternate
.Tm HP-UX
.Tn HP-UX
cluster to use.
.It Nm debug_options (string, default no debug options)
.It Ic debug_options Xo
.Pq "string, default no debug options"
.Xc
Same as the
.Fl D
option to
@@ -227,11 +242,12 @@ option to
Specify any debugging options for
.Nm amd .
Works only if am-utils was configured for debugging using the
.Ic --enable-debug option .
.Fl -enable-debug
option.
The
.Qq mem
option alone can be turned on via
.Ic --enable-debug=mem .
.Fl -enable-debug Ns = Ns Ic mem .
Otherwise debugging options are ignored. Options are comma delimited, and can
be preceded by the string
.Qq no
@@ -240,42 +256,46 @@ by running
.Nm amd Fl v .
Possible values are:
.Pp
.Bl -tag -width 10n -compact
.It Nm all
.Bl -tag -width "daemon" -compact
.It Ic all
all options
.It Nm amq
.It Ic amq
register for
.Nm amq
.It Nm daemon
.Xr amq 8
.It Ic daemon
enter daemon mode
.It Nm fork
.It Ic fork
fork server
.It Nm full
.It Ic full
program trace
.It Nm info
.It Ic info
info service specific debugging
.Pq hesiod, nis, etc.
.It mem
trace memory allocations
.It Nm mtab
.It Ic mtab
use local
.Pa ./mtab
file
.It Nm str
.It Ic str
debug string munging
.It Nm test
.It Ic test
full debug but no daemon
.It Nm trace
.It Ic trace
protocol trace
.El
.It Nm dismount_interval (numeric, default=120)
.It Ic dismount_interval Xo
.Pq "numeric, default=120"
.Xc
Same as the
.Fl w
option to
.Nm amd .
Specify, in seconds, the time between attempts to dismount file systems that
have exceeded their cached times.
.It Nm fully_qualified_hosts (string, default=no)
.It Ic fully_qualified_hosts Xo
.Pq "string, default=no"
.Xc
If
.Qq yes ,
.Nm Amd
@@ -288,9 +308,13 @@ variable
is used, requiring that
.Va ${domain}
not be null.
.It Nm hesiod_base (string, default=automount)
.It Ic hesiod_base Xo
.Pq "string, default=automount"
.Xc
Specify the base name for hesiod maps.
.It Nm karch (string, default to karch of the system)
.It Ic karch Xo
.Pq "string, default to karch of the system"
.Xc
Same as the
.Fl k
option to
@@ -311,15 +335,25 @@ specified,
will use
.Xr uname 3
to figure out the kernel architecture of the machine.
.It Nm ldap_base (string, default not set)
.It Ic ldap_base Xo
.Pq "string, default not set"
.Xc
Specify the base name for LDAP.
.It Nm ldap_cache_maxmem (numeric, default=131072)
.It Ic ldap_cache_maxmem Xo
.Pq "numeric, default=131072"
.Xc
Specify the maximum memory amd should use to cache LDAP entries.
.It Nm ldap_cache_seconds (numeric, default=0)
.It Ic ldap_cache_seconds Xo
.Pq "numeric, default=0"
.Xc
Specify the number of seconds to keep entries in the cache.
.It Nm ldap_hostports (string, default not set)
.It Ic ldap_hostports Xo
.Pq "string, default not set"
.Xc
Specify LDAP-specific values such as country and organization.
.It Nm local_domain (string, default no sub-domain)
.It Ic local_domain Xo
.Pq "string, default no sub-domain"
.Xc
Same as the
.Fl d
option to
@@ -327,7 +361,9 @@ option to
Specify the local domain name. If this option is not given the domain name is
determined from the hostname by removing the first component of the
fully-qualified host name.
.It Nm log_file (string, default=/dev/stderr)
.It Ic log_file Xo
.Pq "string, default=/dev/stderr"
.Xc
Same as the
.Fl l
option to
@@ -359,7 +395,9 @@ using the
.Ev LOG_LOCAL7
facility
.Pq if it exists on the system .
.It Nm log_options (string, default no logging options)
.It Ic log_options Xo
.Pq "string, default no logging options"
.Xc
Same as the
.Fl x
option to
@@ -370,37 +408,37 @@ Options are comma delimited, and can be preceded by the string
.Dq no
to negate their meaning. The
.Dq debug
logging option is only available if
.Nm am-utils
was configured with
logging option is only available if am-utils was configured with
.Fl -enable-debug .
You can get the list of supported debugging options by running
.Nm amd Fl v .
Possible values are:
.Pp
.Bl -tag -width 10n -compact
.It Nm all
.Bl -tag -width "warning" -compact
.It Ic all
all messages
.It Nm debug
.It Ic debug
debug messages
.It Nm error
.It Ic error
non-fatal system errors
.It Nm fatal
.It Ic fatal
fatal errors
.It Nm info
.It Ic info
information
.It Nm map
.It Ic map
map errors
.It Nm stats
.It Ic stats
additional statistical information
.It Nm user
.It Ic user
non-fatal user errors
.It Nm warn
.It Ic warn
warnings
.It Nm warning
.It Ic warning
warnings
.El
.It Nm nfs_retransmit_counter (numeric, default=110)
.It Ic nfs_retransmit_counter Xo
.Pq "numeric, default=110"
.Xc
Same as the
.Ic counter
part of the
@@ -408,7 +446,9 @@ part of the
option to
.Nm amd .
Specifies the retransmit counter's value in tenths of seconds.
.It Nm nfs_retry_interval (numeric, default=8)
.It Ic nfs_retry_interval Xo
.Pq "numeric, default=8"
.Xc
Same as the
.Ic interval
part of the
@@ -416,10 +456,9 @@ part of the
option to
.Nm amd .
Specifies the interval in tenths of seconds, between NFS/RPC/UDP retries.
.It Nm nis_domain
.Po string, default to local
.Tn NIS
.Pc domain name
.It Ic nis_domain Xo
.Pq "string, default to local NIS domain name"
.Xc
Same as the
.Fl y
option to
@@ -431,7 +470,9 @@ domain from which to fetch the
maps. The default is the system domain name. This option is ignored if
.Tn NIS
support is not available.
.It Nm normalize_hostnames (boolean, default=no)
.It Ic normalize_hostnames Xo
.Pq "boolean, default=no"
.Xc
Same as the
.Fl n
option to
@@ -444,7 +485,9 @@ is normalized relative to the host database before being used. The effect is
to translate aliases into
.Qq official
names.
.It Nm os (string, default to compiled in value)
.It Ic os Xo
.Pq "string, default to compiled in value"
.Xc
Same as the
.Fl O
option to
@@ -456,7 +499,9 @@ compatibility reasons. For example, if the build in name is
you can override it to
.Dq sos5 ,
and use older maps which were written with the latter in mind.
.It Nm osver (string, default to compiled in value)
.It Ic osver Xo
.Pq "string, default to compiled in value"
.Xc
Same as the
.Fl o
option to
@@ -468,7 +513,9 @@ compatibility reasons. For example, if the build in version is
you can override it to
.Dq 5.5.1 ,
and use older maps that were written with the latter in mind.
.It Nm pid_file (string, default=/dev/stdout)
.It Ic pid_file Xo
.Pq "string, default=/dev/stdout"
.Xc
Specify a file to store the process ID of the running daemon into. If not
specified,
.Nm amd
@@ -481,7 +528,9 @@ can also be retrieved via
This file is used only if the
.Ar print_pid
option is on.
.It Nm plock (boolean, default=yes)
.It Ic plock Xo
.Pq "boolean, default=yes"
.Xc
Same as the
.Fl S
option to
@@ -491,7 +540,7 @@ If
lock the running executable pages of
.Nm amd
into memory. To improve
.Nm amd's
.Nm amd Ns 's
performance, systems that support the
.Xr plock 3
call can lock the
@@ -500,12 +549,14 @@ process into memory. This way there is less chance it that the operating
system will schedule, page out, and swap the
.Nm amd
process as needed. This improves
.Nm amd's
.Nm amd Ns 's
performance, at the cost of reserving the memory used by the
.Nm amd
process
.Pq making it unavailable for other processes .
.It Nm portmap_program (numeric, default=300019)
.It Ic portmap_program Xo
.Pq "numeric, default=300019"
.Xc
Specify an alternate Port-mapper RPC program number, other than the official
number. This is useful when running multiple
.Nm amd
@@ -527,7 +578,9 @@ to contact. In this way,
can fully control any number of
.Nm amd
processes running on the same host.
.It Nm print_pid (boolean, default=no)
.It Ic print_pid Xo
.Pq "boolean, default=no"
.Xc
Same as the
.Fl p
option to
@@ -536,7 +589,9 @@ If
.Dq yes ,
.Nm amd
will print its process ID upon starting.
.It Nm print_version (boolean, default=no)
.It Ic print_version Xo
.Pq "boolean, default=no"
.Xc
Same as the
.Fl v
option to
@@ -548,7 +603,9 @@ continues to run. If
.Nm amd
will print its version information string, which includes some configuration
and compilation values.
.It Nm restart_mounts (boolean, default=no)
.It Ic restart_mounts Xo
.Pq "boolean, default=no"
.Xc
Same as the
.Fl r
option to
@@ -560,7 +617,9 @@ will scan the mount table to determine which file systems are currently
mounted. Whenever one of these would have been auto-mounted,
.Nm amd
inherits it.
.It Nm selectors_on_default (boolean, default=no)
.It Ic selectors_on_default Xo
.Pq "boolean, default=no"
.Xc
If
.Dq yes ,
then the
@@ -578,7 +637,9 @@ follows:
wire==slip-net;opts:=intr,rsize=1024,wsize=1024 \\
wire!=slip-net;opts:=intr,rsize=8192,wsize=8192
.Ed
.It Nm show_statfs_entries (boolean, default=no)
.It Ic show_statfs_entries Xo
.Pq "boolean, default=no"
.Xc
If
.Dq yes ,
then all maps which are browsable will also show the number of entries
@@ -586,10 +647,12 @@ then all maps which are browsable will also show the number of entries
they have when
.Qq df
runs.
.Po This is accomplished by returning non-zero values to the
(This is accomplished by returning non-zero values to the
.Xr statfs 2
.Pc system call .
.It Nm unmount_on_exit (boolean, default=no)
system call.)
.It Ic unmount_on_exit Xo
.Pq "boolean, default=no"
.Xc
If
.Dq yes ,
then
@@ -597,7 +660,7 @@ then
will attempt to unmount all file systems which it knows about. Normally
.Nm amd
leaves all
.Pq esp.
.Pq esp.\&
.Tn NFS
mounted filesystems intact. Note that
.Nm amd
@@ -607,11 +670,15 @@ option or
.Fl r
flag are used.
.El
.It Sy Parameters applicable to regular map sections
.Bl -tag -width F1
.It Nm map_name (string, must be specified)
.Ss "Parameters applicable to regular map sections"
.Bl -tag -width 4n
.It Ic map_name Xo
.Pq "string, must be specified"
.Xc
Name of the map where the keys are located.
.It Nm tag (string, default no tag)
.It Ic tag Xo
.Pq "string, default no tag"
.Xc
Each map entry in the configuration file can be tagged. If no tag is
specified, that map section will always be processed by
.Nm amd .
@@ -684,4 +751,5 @@ file distributed with am-utils.
.Sh HISTORY
The
.Nm amd
utility first appeared in 4.4BSD.
utility first appeared in
.Bx 4.4 .
+303 -9
View File
@@ -1,3 +1,297 @@
Mon Aug 7 15:23:00 2000 Arnold D. Robbins <[email protected]>
* Release 3.0.6: Release tar file made.
Thu Aug 3 17:47:53 2000 Greg McGary <[email protected]>
* regex.c: patches for gcc bounded pointer handling.
Thu Aug 3 13:09:09 2000 Arnold D. Robbins <[email protected]>
* array.c (in_array, do_delete): fix tests for index equality
when searching through the array to work correctly when
index is "".
Fri Jul 14 21:40:17 2000 Pat Rankin <[email protected]>
* builtin.c (format_tree): Workaround a DEC C V5.7 bug by
splitting `strcpy() + 3' into two expressions (the builtin
inline strcpy evidently has erroneous return type of void *
instead of char *; reputedly fixed in V6.1).
* eval.c (C): New macro.
[casetable]: Use it to add explicit casts for the character
values outside the range of 0 to 127.
* missing/strncasecmp.c [C, charmap]: Likewise.
* io.c (redirect): Add EIO check on failed open for VMS.
Fri Jul 14 11:57:23 2000 Arnold D. Robbins <[email protected]>
Efficiency hack: turn `for (iggy in foo) delete foo[iggy]'
into moral equivalent of `delete foo'.
* array.c (do_delete_loop): new routine.
* awk.h [NODETYPE]: new Node_K_delete_loop value.
Add declaration of do_delete_loop.
* awk.y [LEX_FOR]: Fix code to recognize special case.
* eval.c (nodetypes): new entry for Node_K_delete_loop.
(interpret): add case for Node_K_delete_loop, add more
diagnostic info in default (cant_happen) case.
Tue Jul 11 22:15:10 2000 Pat Rankin <[email protected]>
* awk.y (nextc): Recast unsigned char values back to int to
prevent VAX C from truncating EOF to 255.
Tue Jul 11 14:08:23 2000 Arnold D. Robbins <[email protected]>
* array.c (do_delete): switch to string comparison, not
cmp_nodes.
(assoc_find): add call to force_string on subscript.
* eval.c (interpret): Case Node_K_arrayfor: check for
Node_array_ref and fetch original_array. Yowser.
Fri Jun 30 21:57:00 2000 Arnold D. Robbins <[email protected]>
* array.c (assoc_lookup): Don't force the subscript
to be a string. Not a good idea after the change
to using dupnode.
Sun Jun 25 15:08:19 2000 Arnold D. Robbins <[email protected]>
* Release 3.0.5: Release tar file made.
Wed Jun 14 13:03:45 2000 Arnold D. Robbins <[email protected]>
* field.c (set_record): manage a private buffer for $0.
Keeps things safe in case `getline var' rearranges the
IOBUF's contents that $0 is still pointing into.
Tue Jun 13 16:27:55 2000 Paul Eggert <[email protected]>
Upgrade to latest and greatest version of largefile code.
* configure.in (AC_CANONICAL_HOST): Remove.
(GAWK_AC_SYS_LARGEFILE): Defer until after AC_MINIX,
to avoid autoconf warnings.
Rewrite largefile configuration so that we don't need to run
getconf and don't need AC_CANONICAL_HOST.
* config.guess, config.sub: Remove these files.
* Makefile.in (MISC): Remove config.guess, config.sub.
* m4/largefile.m4 (GAWK_AC_SYS_LARGEFILE_FLAGS,
GAWK_AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
(GAWK_AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
(GAWK_AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
All uses changed.
Instead of inspecting the output of getconf, try to compile the
test program without and with the macro definition.
(GAWK_AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
for getconf. Instead, check for the needed flags by compiling
test programs.
(GAWK_AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to be 500 to
work around glibc 2.1.3 bug.
(GAWK_AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on IRIX if the
installer said otherwise.
(GAWK_AC_SYS_LARGEFILE_FLAGS): Work around a bug in the QNX shell,
which doesn't propagate exit status of failed commands inside
shell assignments.
Wed Jun 7 13:23:09 2000 Arnold D. Robbins <[email protected]>
* Updated copyright dates in appropriate files.
Mon May 22 17:29:43 2000 Arnold D. Robbins <[email protected]>
* Makefile.in (clean): get `*/core' too.
Sun May 7 16:33:05 2000 Arnold D. Robbins <[email protected]>
* array.c (concat_exp): Change ref to `lnode->stlen' and
`lnode->stptr' for SUBSEP to use `var_value->...'.
Tue May 2 09:54:29 2000 Arnold D. Robbins <[email protected]>
Fix referencing freed memory as shown by test/arynocls.* tests.
* awk.h [Node_array_ref]: new node type.
[orig_array]: new macro element in NODE structure.
* field.c (do_split): handle case for Node_array_ref, fetch
the original array.
* array.c (in_array, do_delete): ditto.
* eval.c (nodetypes[]): add Node_array_ref string.
(r_tree_eval): handle case for Node_array_ref.
(push_args): push arrays as Node_array_ref, and pass them on.
(pop_fcall): don't unref lnode if it's an array when releasing
local arguments. Check for both Node_array and Node_array_ref.
(r_get_lhs): choke on Node_array_ref as for Node_array.
For Node_subscript, handle Node_array_ref.
Tue May 2 09:52:12 2000 Bruno Haible <[email protected]>
* io.c (redirect): After reopening a `struct redirect', move it to
the head of the list.
Sun Apr 2 17:51:40 2000 Arnold D. Robbins <[email protected]>
* re.c (re_update): Check if IGNORECASE has changed, and
if so recompute the re. See test/igncdym.awk.
Mon Mar 20 16:18:34 2000 Arnold D. Robbins <[email protected]>
* io.c (set_RS): Added a lint warning about multicharacter RS,
per suggestion from Akim DeMaille ([email protected]).
Sun Feb 13 14:40:32 2000 Arnold D. Robbins <[email protected]>
* eval.c (push_args): Fix from Nide Naoyuki <[email protected]>,
re-assign `f' in case tree_eval moved fcall_list around.
Sun Feb 6 11:39:33 2000 Arnold D. Robbins <[email protected]>
* eval.c (op_assign): Fix it right. For ++ and --, get the lhs
in the operations, do the op, and then return. For += etc,
get the rhs FIRST, since the lhs can move around as a result,
*then* get the lhs and do the operation. See test/opasnidx.awk.
Tue Feb 1 18:41:40 2000 Arnold D. Robbins <[email protected]>
* eval.c (op_assign): reget the rval after regetting
the left hand side. See test/opasnslf.awk for why.
Thu Jan 27 18:06:31 2000 Arnold D. Robbins <[email protected]>
* awk.y (yylex): Made ']' not one of the characters
that sets `want_assign' to false. `a[i] /= 2' was
broken. Per bug report from Kristofer T. Karas
<[email protected]>.
Wed Dec 22 15:06:37 1999 Arnold D. Robbins <[email protected]>
* awk.y: Removed declarations of functions before
definition of `tokentab[]'. They're redundant with
what's in awk.h.
Thu Dec 9 17:01:07 1999 Arnold D. Robbins <[email protected]>
* node.c (parse_escape): Add lint warning for unrecognized
escape sequences.
Mon Dec 6 15:17:34 1999 Arnold D. Robbins <[email protected]>
* main.c (usage): Changed bug reporting email addresses to
be a reference to `Bugs' node in the online and printed
doc, instead.
Thu Dec 2 13:08:18 1999 Arnold D. Robbins <[email protected]>
* builtin.c (do_compl): test `d' for negative inside the do_lint
test, not uval. Ooops.
Fri Nov 26 10:58:36 1999 Arnold D. Robbins <[email protected]>
* array.c (assoc_find): ALWAYS compare indexes as strings,
don't use cmp_nodes in case they are numeric. Oh my.
Talk about a Day 1 bug!
Tue Nov 23 11:58:53 1999 Arnold D. Robbins <[email protected]>
* regex.c (SYNTAX): cast argument to `unsigned char' instead of
&-ing with 0xFF. Hopefully somewhat more portable, ala 21 Nov 99
changes to awk.y.
Sun Nov 21 22:25:27 1999 Paul Eggert <[email protected]>
* aclocal.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
problem with the QNX 4.25 shell, which doesn't propagate exit
status of failed commands inside shell assignments.
Sun Nov 21 20:33:35 1999 Arnold D. Robbins <[email protected]>
* awk.h (nextc): remove declaration, don't need it here.
awk.y (nextc): Cast values to unsigned char so that latin-1
characters in strings don't turn themselves into EOF.
Most notably y-umlaut, which is decimal 255.
Mon Nov 1 20:00:25 1999 Arnold D. Robbins <[email protected]>
* regex.c (init_syntax_once): move below definition of
ISALNUM etc., then use ISALNUM to init the table, so that
the word ops will work if i18n'ed.
(SYNTAX): And subscript with 0xFF for Latin-1 characters.
Mon Oct 25 18:37:13 1999 Arnold D. Robbins <[email protected]>
* awk.h, main.c, io.c: undo previous changes (22 Oct 1999).
* main.c (main): move call to `init_fields()' to before
arg parsing. This allows `-v NF=blah' to work ok.
Fri Oct 22 17:43:40 1999 Arnold D. Robbins <[email protected]>
* main.c (arg_assign): Add new arg, `initing' for icky special
casing of -v of special variables. Use it to check for NF.
May need to add other cases later.
(pre_assign): change call arg_assign, passing initing=TRUE;
io.c (nextfile): change call arg_assign, passing initing=FALSE;
awk.h: Change prototype for arg_assign.
Tue Oct 19 16:06:48 1999 Paul Eggert <[email protected]>
* io.c (close_redir): Don't munge errno between setting it and
using it.
Wed Oct 6 17:47:47 1999 Arnold D. Robbins <[email protected]>
* main.c (arg_assign): return NULL on bad variable. Allows
things like `./3x=stuff' to work as a filename.
Thu Sep 23 21:35:46 1999 Paul Eggert <[email protected]>
* aclocal.m4 (GAWK_AC_SYS_LARGEFILE_FLAGS): Work around GCC
2.95.1 bug in HP-UX 10.20 or later. (Had to fix the fix. ADR. :-)
Tue Sep 21 13:31:36 1999 Arnold D. Robbins <[email protected]>
* builtin.c (format_tree): For '0', only set zero_flag if we
haven't seen the field width or precision yet.
Mon Aug 9 13:06:01 1999 Arnold D. Robbins <[email protected]>
* array.c (assoc_lookup): Removed code that gave each array
a private copy of each index. Balloons memory usage for
no good reason that I can see. Just use dupnode in all
cases.
* configure.in: check for $srcdir/.developing adds extra
defines for my testing/debugging use. Yes, hack alert.
Sun Aug 1 11:02:02 1999 Arnold D. Robbins <[email protected]>
* node.c (dupnode): turn off FIELD when copying nodes.
* array.c (do_adump, assoc_dump): new functions for array debugging.
* awk.y (tokentab): conditionally add "adump" function for debugging.
* awk.h: delcare new functions.
Thu Jul 29 23:26:40 1999 Arnold D. Robbins <[email protected]>
From [email protected]:
* Makefile.in (install-strip): new target, coding stds. compatibility.
* config.guess, config.sub: Add MacOS X recognition.
Thu Jul 29 19:09:19 1999 Arnold D. Robbins <[email protected]>
* awk.y (func_install): make `function foo(foo)' a fatal error.
eval.c (r_tree_eval): diagnose use of a function name as a
variable inside the function.
Sun Jul 4 16:53:14 1999 Arnold D. Robbins <[email protected]>
* eval.c (eval_condition): add extra braces to avoid
gcc warning. I'm not going to bother for the library
code like dfa and regex.
Wed Jun 30 16:14:36 1999 Arnold D. Robbins <[email protected]>
* Release 3.0.4: Release tar file made. This time for sure.
@@ -103,7 +397,7 @@ Wed Apr 28 12:27:49 1999 Arnold D. Robbins <[email protected]>
Sun Apr 25 13:39:16 1999 Arnold D. Robbins <[email protected]>
* Makefile.in (gawk): add $(CFLAGS) to linking step.
* configure.in: correctly do AC_FUNC_GETPRGP on HP systems too.
* configure.in: correctly do AC_FUNC_GETPGRP on HP systems too.
Tue Apr 13 20:21:00 1999 Arnold D. Robbins <[email protected]>
@@ -149,7 +443,7 @@ Sun Nov 1 15:24:52 1998 Arnold D. Robbins <[email protected]>
Wed Oct 28 20:40:17 1998 Arnold D. Robbins <[email protected]>
* eval.c (r_tree_eval): Case for Node_concat. Get lengthes
* eval.c (r_tree_eval): Case for Node_concat. Get lengths
separately, in case one expression has a side effect that
that changes another. Ugly, but it keeps gawk from core
dumping. See test/nasty.awk.
@@ -418,7 +712,7 @@ Mon Apr 7 18:22:37 1997 Arnold D. Robbins <[email protected]>
* awk.h: Add decls of new routines do_compl() and set_loc().
* awk.y (tokentab): add entry for "compl" function.
* builtin.c (do_compl): new functionto do ones complement.
* builtin.c (do_compl): new function to do ones complement.
(do_substr): rationalized yet again, now notices negative start
and length parameters.
* eval.c (push_args): fix if call_list gets realloc'ed in the
@@ -517,7 +811,7 @@ Wed Feb 19 23:29:02 1997 Arnold D. Robbins <[email protected]>
Fri Feb 14 09:47:31 1997 Arnold D. Robbins <[email protected]>
* io.c [#include "awk.h"]: undef HAVE_MMAP to just use thoe old code.
* io.c [#include "awk.h"]: undef HAVE_MMAP to just use the old code.
Something is causing a file descriptor leak, and this is getting to
be just too much hair. I reserve the right to rip out the mmap
code entirely at a future date.
@@ -616,7 +910,7 @@ Wed Dec 18 10:09:44 1996 Arnold D. Robbins <[email protected]>
* configure.in [AC_PREREQ]: Update to 2.12 in order to switch to
autoconf 2.12. Lots of other files will be rebuilt automatically.
[AM_SANITY_CHECK_CC]: Removed, autoconf does it now.
* alocal.m4 [AM_SANITY_CHECK_CC]: Removed, autoconf does it now.
* aclocal.m4 [AM_SANITY_CHECK_CC]: Removed, autoconf does it now.
Tue Dec 17 22:23:16 1996 Arnold D. Robbins <[email protected]>
@@ -808,7 +1102,7 @@ Fri Sep 20 17:35:54 1996 Pat Rankin <[email protected]>
Fri Sep 20 11:54:31 1996 Arnold D. Robbins <[email protected]>
* builtin.c (do_print): evaluate all the expressions first and
then print them. Avoids suprising behavior. See test/prtoeval.awk
then print them. Avoids surprising behavior. See test/prtoeval.awk
for an example.
Tue Sep 10 06:21:40 1996 Arnold D. Robbins <[email protected]>
@@ -976,7 +1270,7 @@ Fri May 17 08:46:07 1996 Arnold D. Robbins <[email protected]>
Wed May 15 02:34:55 1996 Arnold D. Robbins <[email protected]>
* Makefile.in (awklib/all): now depends on gawk, fixes problem
with parrallel make.
with parallel make.
Tue May 14 15:02:52 1996 Arnold D. Robbins <[email protected]>
@@ -1027,7 +1321,7 @@ Thu Mar 7 08:08:51 1996 Arnold D. Robbins <[email protected]>
* field.c (set_NF): If NF is decremented, clear fields between
NF and parse_high_water, otherwise if NF incremented, clear
fields between parse_high_water and NF.
* eval.c (nodetype2str): new function, used for diganostics.
* eval.c (nodetype2str): new function, used for diagnostics.
eval.c (interpret): use nodetype2str when finding invalid node.
Mon Mar 4 09:02:28 1996 Arnold D. Robbins <[email protected]>
@@ -1066,7 +1360,7 @@ Thu Feb 1 08:56:46 1996 Arnold D. Robbins <[email protected]>
Sun Jan 28 07:00:56 1996 Arnold D. Robbins <[email protected]>
* builtin.c (do_substr): rationalized handling of missing length
argument, as well as various accompagnying lint warnings. Previous
argument, as well as various accompanying lint warnings. Previous
code was slightly bogus. Talk about your Day 1 bugs.
Thu Jan 25 14:09:11 1996 Arnold D. Robbins <[email protected]>
+3 -40
View File
@@ -1,15 +1,14 @@
$FreeBSD$
Import of GNU awk 3.0.4
Import of GNU awk 3.0.6
Original source available as ftp://prep.ai.mit.edu/pub/gnu/gawk-3.0.4.tar.gz
Obtained from: ftp://prep.ai.mit.edu/pub/gnu/gawk/gawk-3.0.6.tar.gz
The following files and directories were removed for this import:
Makefile.in
README_d/README.VMS
README_d/README.atari
README_d/README.irix
README_d/README.beos
README_d/README.linux
README_d/README.pc
README_d/README.sco
@@ -19,43 +18,7 @@ README_d/README.sony
README_d/README.sunos4
README_d/README.ultrix
README_d/README.yacc
aclocal.m4
alloca.c
atari/
awklib/
awktab.c
config.guess
config.sub
configh.in
configure
configure.in
doc/Makefile.in
doc/README.card
doc/ad.block
doc/awkcard.in
doc/awkforai.txt
doc/cardfonts
doc/colors
doc/igawk.1
doc/gawk.info
doc/macros
doc/no.colors
doc/setter.outline
doc/texinfo.tex
install-sh
missing/
missing.c
mkinstalldirs
pc/
protos.h
random.c
random.h
regex.c
regex.h
stamp-h.in
test/
vms/
In addition, doc/gawk.1 was renamed to awk.1.
[email protected]
+286
View File
@@ -0,0 +1,286 @@
# Makefile for GNU Awk.
#
# Copyright (C) 1986, 1988-2000 the Free Software Foundation, Inc.
#
# This file is part of GAWK, the GNU implementation of the
# AWK Programming Language.
#
# GAWK is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# GAWK is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
@SET_MAKE@
MAKEINFO = makeinfo --no-split
srcdir = @srcdir@
VPATH = @srcdir@
CC = @CC@
YACC = @YACC@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
ALLOCA = @ALLOCA@
LN = ln
LN_S = @LN_S@
exec_prefix = @exec_prefix@
prefix = @prefix@
binprefix =
manprefix =
bindir = @bindir@
libdir = @libdir@
manexta = 1
mandir = @mandir@/man$(manexta)
manext = .$(manexta)
infodir = @infodir@
datadir = @datadir@/awk
libexecdir = @libexecdir@/awk
DEFPATH = ".:$(datadir)"
SHELL = /bin/sh
CPPFLAGS = @CPPFLAGS@
CFLAGS = @CFLAGS@
COMPFLAGS = -DGAWK -I. -I$(srcdir) $(CPPFLAGS) @DEFS@ $(CFLAGS)
# object files
AWKOBJS = array.o builtin.o eval.o field.o gawkmisc.o io.o main.o \
missing.o msg.o node.o re.o version.o
ALLOBJS = $(AWKOBJS) awktab.o
# LIBOBJS
# GNU and other stuff that gawk uses as library routines.
LIBOBJS= getopt.o getopt1.o regex.o dfa.o random.o $(ALLOCA)
# source and documentation files
SRC = array.c builtin.c eval.c field.c gawkmisc.c io.c main.c \
missing.c msg.c node.c re.c version.c
ALLSRC= $(SRC) awktab.c
AWKSRC= awk.h awk.y custom.h $(ALLSRC) patchlevel.h protos.h random.h
LIBSRC = alloca.c dfa.c dfa.h regex.c regex.h getopt.h getopt.c getopt1.c random.c
COPIES = missing/system.c missing/tzset.c \
missing/memcmp.c missing/memcpy.c missing/memset.c \
missing/strncasecmp.c missing/strchr.c \
missing/strerror.c missing/strtod.c \
missing/strftime.c missing/strftime.3
DOCS= doc/gawk.1 doc/gawk.texi doc/texinfo.tex
TEXFILES= doc/gawk.aux doc/gawk.cp doc/gawk.cps doc/gawk.fn doc/gawk.fns \
doc/gawk.ky doc/gawk.kys doc/gawk.pg doc/gawk.pgs doc/gawk.toc \
doc/gawk.tp doc/gawk.tps doc/gawk.vr doc/gawk.vrs
MISC = NEWS COPYING FUTURES Makefile.in PROBLEMS README PORTS POSIX.STD \
configure configure.in acconfig.h configh.in ACKNOWLEDGMENT \
ChangeLog INSTALL LIMITATIONS install-sh mkinstalldirs aclocal.m4 \
stamp-h.in
OTHERS= doc pc atari vms README_d posix awklib
ALLDOC= doc/gawk.dvi $(TEXFILES) doc/gawk.info*
MAKEFILEIN = Makefile.in awklib/Makefile.in doc/Makefile.in test/Makefile.in
# Release of gawk. There can be no leading or trailing white space here!
REL=3.0
# clear out suffixes list
.SUFFIXES:
.SUFFIXES: .c .o
.c.o:
$(CC) -c $(COMPFLAGS) $<
# rules to build gawk
all: gawk awklib/all doc/all
# stuff to make sure that configure has been run.
$(srcdir)/configure: configure.in aclocal.m4
cd $(srcdir) && autoconf
# autoheader might not change confh.in, so touch a stamp file
$(srcdir)/configh.in: stamp-h.in
$(srcdir)/stamp-h.in: configure.in aclocal.m4 acconfig.h
cd $(srcdir) && autoheader
date > $(srcdir)/stamp-h.in
config.h: stamp-h
stamp-h: configh.in config.status
$(SHELL) ./config.status
Makefile: $(MAKEFILEIN) config.status
$(SHELL) ./config.status
config.status: configure
$(SHELL) ./config.status --recheck
# Note: if you need something at both compile time and link time, like -pg,
# you will have to edit the Makefile manually to set LDFLAGS.
gawk: $(ALLOBJS) $(LIBOBJS) $(REOBJS)
$(CC) -o gawk $(CFLAGS) $(LDFLAGS) $(ALLOBJS) $(LIBOBJS) $(REOBJS) $(LIBS)
$(ALLOBJS): awk.h dfa.h regex.h config.h custom.h
$(LIBOBJS): config.h custom.h
# SunOS make's (at least) VPATH doesn't do subdirectories...
# Solaris make doesn't allow $< in the actual rule
gawkmisc.o: $(srcdir)/atari/gawkmisc.atr \
$(srcdir)/pc/gawkmisc.pc $(srcdir)/posix/gawkmisc.c \
$(srcdir)/vms/gawkmisc.vms
$(CC) -c $(COMPFLAGS) -DDEFPATH='$(DEFPATH)' $(srcdir)/gawkmisc.c
getopt.o: getopt.h
getopt1.o: getopt.h
builtin.o: random.h
main.o: patchlevel.h
awktab.c: awk.y
$(YACC) -v $(srcdir)/awk.y && \
if test -f y.tab.c ; then mv y.tab.c ytab.c ; else true ; fi && \
sed '/^extern char .malloc(), .realloc();$$/d' ytab.c >awktab.c && \
rm ytab.c
# VMS POSIX make won't apply the default .c.o rule to awktab.o for some reason
awktab.o: awktab.c awk.h
$(CC) -c $(COMPFLAGS) $(srcdir)/awktab.c
alloca.o: alloca.c
install: gawk info installdirs
-rm -f $(bindir)/gawk
fullname=gawk-$(REL).`./gawk '{print $$3}' $(srcdir)/patchlevel.h` ; \
$(INSTALL_PROGRAM) gawk $(bindir)/$$fullname ; \
(cd $(bindir); $(LN) $$fullname gawk)
(cd $(bindir); \
if [ ! -f awk ]; \
then $(LN_S) gawk awk; \
fi; exit 0)
cd doc && $(MAKE) install
cd awklib && $(MAKE) install
installdirs: mkinstalldirs
$(srcdir)/mkinstalldirs $(bindir) $(datadir) \
$(libdir) $(infodir) $(mandir) $(libexecdir)
install-strip:
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
uninstall:
(cd $(bindir); \
if [ -f awk ] && cmp awk gawk > /dev/null; then rm -f awk; fi)
(fullname=gawk-$(REL).`gawk '{print $$3}' $(srcdir)/patchlevel.h` ; \
cd $(bindir); \
if cmp gawk $$fullname; then rm -f gawk; fi ; \
rm -f $(bindir)/$$fullname)
cd doc && $(MAKE) uninstall
cd awklib && $(MAKE) uninstall
-rmdir $(datadir) $(libexecdir)
# auxiliary rules for release maintenance
lint: $(ALLSRC)
lint -hcbax $(COMPFLAGS) $(ALLSRC)
xref:
cxref -c $(COMPFLAGS) $(ALLSRC) | grep -v ' /' >xref
mostlyclean:
: mostly clean does nothing for gawk
: use "make clean" to really clean things out
clean:
rm -rf gawk *.o core */core y.output
cd doc && $(MAKE) clean
cd test && $(MAKE) clean
cd awklib && $(MAKE) clean
local-distclean:
rm -f Makefile *.orig *.rej */*.orig */*.rej awk.output \
gmon.out make.out config.h config.status config.cache \
config.log stamp-h tags TAGS *~
distclean: clean local-distclean
cd doc && $(MAKE) distclean
cd awklib && $(MAKE) distclean
cd test && $(MAKE) distclean
maintainer-clean: clean local-distclean
@echo "This command is intended for maintainers to use; it"
@echo "deletes files that may require special tools to rebuild."
rm -f awktab.c
cd doc && $(MAKE) maintainer-clean
cd test && $(MAKE) maintainer-clean
cd awklib && $(MAKE) maintainer-clean
clobber: maintainer-clean
TAGS:
etags $(AWKSRC)
tags:
ctags $(AWKSRC)
dvi: $(srcdir)/doc/gawk.texi
cd doc && $(MAKE) dvi
info: $(srcdir)/doc/gawk.texi
cd doc && $(MAKE) info
doc/all:
cd doc && $(MAKE) all
awklib/all: gawk
cd awklib && $(MAKE) CFLAGS="$(CFLAGS)" all
dist: $(AWKSRC) $(LIBSRC) $(DOCS) $(MISC) $(COPIES) awklib/stamp-eg info distclean
-rm -rf gawk-$(REL)*
dir=gawk-$(REL).`gawk '{print $$3}' patchlevel.h` && \
mkdir $$dir && \
cp -pr $(AWKSRC) $(LIBSRC) $(MISC) $$dir && \
mkdir $$dir/missing && \
cp -p $(COPIES) $$dir/missing && \
for i in $(OTHERS); \
do \
cp -pr $$i $$dir ; \
done && \
cp -pr test $$dir && \
find $$dir -type d -exec chmod 777 {} ';' && \
find $$dir -print | doschk && \
tar -cf - $$dir | gzip > $$dir.tar.gz && \
rm -fr $$dir
awklib/stamp-eg:
cd awklib ; $(MAKE) stamp-eg
check: gawk
cd test; $(MAKE) -k
test: check
+71
View File
@@ -1,3 +1,74 @@
Changes from 3.0.5 to 3.0.6
---------------------------
This is a bug fix release only, pending further development on 3.1.0.
Bugs fixed and changes made:
1. Subscripting an array with a variable that is just a number no
longer magically converts the variable into a string.
2. Similarly, running a `for (iggy in foo)' loop where `foo' is a
function parameter now works correctly.
3. Similarly, `i = ""; v[i] = a; if (v in a) ...' now works again.
4. Gawk now special cases `for (iggy in foo) delete foo[iggy]' and
treats it as the moral equivalent of `delete foo'. This should be
a major efficiency win when portably deleting large arrays.
5. VMS port brought up to date.
Changes from 3.0.4 to 3.0.5
---------------------------
This is a bug fix release only, pending further development on 3.1.0.
Bugs Fixed:
1. `function foo(foo)' is now a fatal error.
2. Array indexing is now much more efficient: where possible, only one
copy of an index string is kept, even if used in multiple arrays.
3. Support was added for MacOS X and an `install-strip' target.
4. [s]printf formatting for `0' flag and floating point formats now
works correctly.
5. HP-UX large file support with GCC 2.95.1 now works.
6. Arguments that contain `=' but that aren't syntactically valid are
now treated as filenames, instead of as fatal errors.
7. `-v NF=foo' now works.
8. Non-ascii alphanumeric characters are now treated as such in the
right locales by regex.c. Similarly, a Latin-1 y-umlaut (decimal
value 255) in the program text no longer acts like EOF.
9. Array indexes are always compared as strings; fixes an obscure bug
when user input gets used for the `x in array' test.
10. The usage message now points users to the documentation for how
to report bugs.
11. `/=' now works after an array.
12. `b += b += 1' now works correctly.
13. IGNORECASE changing with calls match() now works better. (Fix for
semi-obscure bug.)
14. Multicharacter values for RS now generate a lint warning.
15. The gawk open file caching is now much more efficient.
16. Global arrays passed to functions are now managed better. In particular,
test/arynocls.awk won't crash referencing freed memory.
17. In obscure cases, `getline var' can no longer clobber $0.
Changes from 3.0.3 to 3.0.4
---------------------------
+21 -19
View File
@@ -1,27 +1,29 @@
Gawk 3.0.4 has been successfully compiled and run "make test"
Gawk 3.0.5 has been successfully compiled and run "make test"
on the following:
Linux 2.2.5 gcc 2.7.2.3
Linux 2.0.33 gcc 2.7.2.1
IRIX64 6.4 gcc 2.8.1
IRIX 5.3 gcc 2.7.2.2
UNIX_SV maxion OS 4.2MP gcc 2.7.2
IRIX 6.2 gcc 2.7.2.2
CYGWIN_95-4.0 20.1 (0.3/1/1) egcs-2.91.66 (has minor problems due to env.)
Linux 2.2.14 gcc 2.95.2
Linux 2.2.13-SMP egcs-2.91.66 make test -j5
IRIX64 6.5 gcc 2.8.1
IRIX 5.3 gcc 2.7.2.2
SunOS 5.3 gcc 2.5.8
Linux 2.0.33 gcc 2.7.2.1
IRIX64 6.5 gcc 2.95.1
The builds of gawk-3.0.45, and validation and installation, were
successful on these systems:
DEC Alpha OSF/1 3.2
Apple Macintosh PPC G3 Rhapsody 5.5
DEC Alpha OSF/1 4.0F
DEC Alpha Linux
HP 9000/735 HP-UX 10.01
HP PA 1.1 HP-UX 11.00
IBM PowerPC AIX 4.2
Intel Pentium II MMX GNU/Linux 2.0.35
Intel Pentium III GNU/Linux 2.2.12-20smp (Redhat 6.1)
NeXT Turbostation Mach 3.3
SGI Indigo/2 IRIX 5.3
SGI O2 R10000-SC IRIX 6.3
SGI MIPS IRIX 6.3
SGI Origin 200 IRIX 6.5
Sun SPARC GNU/Linux 2.2.12-42smp (Redhat 6.1)
Sun SPARC Solaris 2.6
Sun SPARC Solaris 2.7
On
SGI Origin 200 IRIX 6.4
a build with gcc-2.8.1 succeeded, but several tests failed; a rebuild
with c89 fixed the problem.
DEC Alpha OpenVMS
DEC Vax VMS DEC C
OS/2 EMX GCC
+2 -2
View File
@@ -1,10 +1,10 @@
README:
This is GNU Awk 3.0.4. It should be upwardly compatible with the Bell
This is GNU Awk 3.0.6. It should be upwardly compatible with the Bell
Labs research version of awk. It is almost completely compliant with
the 1993 POSIX 1003.2 standard for awk. (See the note below about POSIX.)
Patches 1 through 4 just fix bugs -- see NEWS and ChangeLog for details.
Patches 1 through 5 just fix bugs -- see NEWS and ChangeLog for details.
See the file INSTALL for installation instructions.
+46
View File
@@ -0,0 +1,46 @@
Date: Sat, 22 Apr 2000 06:07:06 -0600 (MDT)
From: "Nelson H. F. Beebe" <[email protected]>
To: [email protected]
Cc: [email protected], [email protected], [email protected]
Subject: gawk-3.0.4 and a GNU/Linux gotcha
Yesterday, I was assisting a colleague install some software on his
GNU/Linux machine for which uname -r reports 2.2.14.
A (mis)feature of this system, which I've never encountered before,
broke the build of one of my programs, and also of gawk-3.0.4.
Namely, the kernel will not execute anything that resides in /tmp,
though it will if the same script is in /usr/tmp!
% cat /tmp/foo.sh
#! /bin/sh
echo hello
ls -l /tmp/foo.sh
-rwxr-xr-x 1 othmer math 22 Apr 21 10:34 /tmp/foo.sh*
% /tmp/foo.sh
bash: /tmp/foo.sh: Permission denied
% cp /tmp/foo.sh /usr/tmp
% /usr/tmp/foo.sh
hello
Thus, programs that do a temporary install in /tmp, as some of mine do
in order to run the validation suite, will fail.
gawk-3.0.4, and likely other gawk versions, hits this problem too. It
fails because test/poundbang starts with
#! /tmp/gawk -f
I tracked down where it comes from:
% grep /tmp /etc/fstab
/dev/hda3 /tmp ext2 rw,nosuid,noexec,nouser,auto,async,nodev 1 1
!!!!!!
Since this is done via a mount command, potentially ANY directory tree
could be mounted with noexec.
+1 -1
View File
@@ -3,7 +3,7 @@
*/
/*
* Copyright (C) 1995-1999 the Free Software Foundation, Inc.
* Copyright (C) 1995-2000 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
+129
View File
@@ -0,0 +1,129 @@
dnl
dnl aclocal.m4 --- autoconf input file for gawk
dnl
dnl Copyright (C) 1995, 1996, 1998, 1999, 2000 the Free Software Foundation, Inc.
dnl
dnl This file is part of GAWK, the GNU implementation of the
dnl AWK Progamming Language.
dnl
dnl GAWK is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl GAWK is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
dnl
dnl gawk-specific macros for autoconf. one day hopefully part of autoconf
AC_DEFUN(GAWK_AC_C_STRINGIZE, [
AC_REQUIRE([AC_PROG_CPP])
AC_MSG_CHECKING([for ANSI stringizing capability])
AC_CACHE_VAL(gawk_cv_c_stringize,
AC_EGREP_CPP([#teststring],[
#define x(y) #y
char *s = x(teststring);
], gawk_cv_c_stringize=no, gawk_cv_c_stringize=yes))
if test "${gawk_cv_c_stringize}" = yes
then
AC_DEFINE(HAVE_STRINGIZE)
fi
AC_MSG_RESULT([${gawk_cv_c_stringize}])
])dnl
dnl By default, many hosts won't let programs access large files;
dnl one must use special compiler options to get large-file access to work.
dnl For more details about this brain damage please see:
dnl http://www.sas.com/standards/large.file/x_open.20Mar96.html
dnl Written by Paul Eggert <[email protected]>.
dnl Internal subroutine of GAWK_AC_SYS_LARGEFILE.
dnl GAWK_AC_SYS_LARGEFILE_TEST_INCLUDES
AC_DEFUN(GAWK_AC_SYS_LARGEFILE_TEST_INCLUDES,
[[#include <sys/types.h>
int a[(off_t) 9223372036854775807 == 9223372036854775807 ? 1 : -1];
]])
dnl Internal subroutine of GAWK_AC_SYS_LARGEFILE.
dnl GAWK_AC_SYS_LARGEFILE_MACRO_VALUE(C-MACRO, VALUE, CACHE-VAR, COMMENT, INCLUDES, FUNCTION-BODY)
AC_DEFUN(GAWK_AC_SYS_LARGEFILE_MACRO_VALUE,
[AC_CACHE_CHECK([for $1 value needed for large files], $3,
[$3=no
AC_TRY_COMPILE(GAWK_AC_SYS_LARGEFILE_TEST_INCLUDES
$5
,
[$6],
,
[AC_TRY_COMPILE([#define $1 $2]
GAWK_AC_SYS_LARGEFILE_TEST_INCLUDES
$5
,
[$6],
[$3=$2])])])
if test "[$]$3" != no; then
AC_DEFINE_UNQUOTED([$1], [$]$3, [$4])
fi])
AC_DEFUN(GAWK_AC_SYS_LARGEFILE,
[AC_ARG_ENABLE(largefile,
[ --disable-largefile omit support for large files])
if test "$enable_largefile" != no; then
AC_CACHE_CHECK([for special C compiler options needed for large files],
gawk_cv_sys_largefile_CC,
[gawk_cv_sys_largefile_CC=no
if test "$GCC" != yes; then
# IRIX 6.2 and later do not support large files by default,
# so use the C compiler's -n32 option if that helps.
AC_TRY_COMPILE(GAWK_AC_SYS_LARGEFILE_TEST_INCLUDES, , ,
[ac_save_CC="$CC"
CC="$CC -n32"
AC_TRY_COMPILE(GAWK_AC_SYS_LARGEFILE_TEST_INCLUDES, ,
gawk_cv_sys_largefile_CC=' -n32')
CC="$ac_save_CC"])
fi])
if test "$gawk_cv_sys_largefile_CC" != no; then
CC="$CC$gawk_cv_sys_largefile_CC"
fi
GAWK_AC_SYS_LARGEFILE_MACRO_VALUE(_FILE_OFFSET_BITS, 64,
gawk_cv_sys_file_offset_bits,
[Number of bits in a file offset, on hosts where this is settable.])
GAWK_AC_SYS_LARGEFILE_MACRO_VALUE(_LARGEFILE_SOURCE, 1,
gawk_cv_sys_largefile_source,
[Define to make ftello visible on some hosts (e.g. HP-UX 10.20).],
[#include <stdio.h>], [return !ftello;])
GAWK_AC_SYS_LARGEFILE_MACRO_VALUE(_LARGE_FILES, 1,
gawk_cv_sys_large_files,
[Define for large files, on AIX-style hosts.])
GAWK_AC_SYS_LARGEFILE_MACRO_VALUE(_XOPEN_SOURCE, 500,
gawk_cv_sys_xopen_source,
[Define to make ftello visible on some hosts (e.g. glibc 2.1.3).],
[#include <stdio.h>], [return !ftello;])
fi
])
dnl Check for AIX and add _XOPEN_SOURCE_EXTENDED
AC_DEFUN(GAWK_AC_AIX_TWEAK, [
AC_MSG_CHECKING([for AIX compilation hacks])
AC_CACHE_VAL(gawk_cv_aix_hack, [
if test -d /lpp/bos
then
CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED=1"
gawk_cv_aix_hack=yes
else
gawk_cv_aix_hack=no
fi
])dnl
AC_MSG_RESULT([${gawk_cv_aix_hack}])
])dnl
+496
View File
@@ -0,0 +1,496 @@
/* alloca.c -- allocate automatically reclaimed memory
(Mostly) portable public-domain implementation -- D A Gwyn
This implementation of the PWB library alloca function,
which is used to allocate space off the run-time stack so
that it is automatically reclaimed upon procedure exit,
was inspired by discussions with J. Q. Johnson of Cornell.
J.Otto Tennant <jot@cray.com> contributed the Cray support.
There are some preprocessor constants that can
be defined when compiling for your specific system, for
improved efficiency; however, the defaults should be okay.
The general concept of this implementation is to keep
track of all alloca-allocated blocks, and reclaim any
that are found to be deeper in the stack than the current
invocation. This heuristic does not reclaim storage as
soon as it becomes invalid, but it will do so eventually.
As a special case, alloca(0) reclaims storage without
allocating any. It is a good idea to use alloca(0) in
your main control loop, etc. to force garbage collection. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#ifdef emacs
#include "blockinput.h"
#endif
/* If compiling with GCC 2, this file's not needed. */
#if !defined (__GNUC__) || __GNUC__ < 2
/* If someone has defined alloca as a macro,
there must be some other way alloca is supposed to work. */
#ifndef alloca
#ifdef emacs
#ifdef static
/* actually, only want this if static is defined as ""
-- this is for usg, in which emacs must undefine static
in order to make unexec workable
*/
#ifndef STACK_DIRECTION
you
lose
-- must know STACK_DIRECTION at compile-time
#endif /* STACK_DIRECTION undefined */
#endif /* static */
#endif /* emacs */
/* If your stack is a linked list of frames, you have to
provide an "address metric" ADDRESS_FUNCTION macro. */
#if defined (CRAY) && defined (CRAY_STACKSEG_END)
long i00afunc ();
#define ADDRESS_FUNCTION(arg) (char *) i00afunc (&(arg))
#else
#define ADDRESS_FUNCTION(arg) &(arg)
#endif
#if __STDC__
typedef void *pointer;
#else
typedef char *pointer;
#endif
#ifndef NULL
#define NULL 0
#endif
#ifndef malloc
/* Different portions of Emacs need to call different versions of
malloc. The Emacs executable needs alloca to call xmalloc, because
ordinary malloc isn't protected from input signals. On the other
hand, the utilities in lib-src need alloca to call malloc; some of
them are very simple, and don't have an xmalloc routine.
Non-Emacs programs expect this to call xmalloc.
Callers below should use malloc. */
#ifndef emacs
#define malloc xmalloc
#endif
extern pointer malloc ();
#endif /* malloc */
/* Define STACK_DIRECTION if you know the direction of stack
growth for your system; otherwise it will be automatically
deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown */
#ifndef STACK_DIRECTION
#define STACK_DIRECTION 0 /* Direction unknown. */
#endif
#if STACK_DIRECTION != 0
#define STACK_DIR STACK_DIRECTION /* Known at compile-time. */
#else /* STACK_DIRECTION == 0; need run-time code. */
static int stack_dir; /* 1 or -1 once known. */
#define STACK_DIR stack_dir
static void
find_stack_direction ()
{
static char *addr = NULL; /* Address of first `dummy', once known. */
auto char dummy; /* To get stack address. */
if (addr == NULL)
{ /* Initial entry. */
addr = ADDRESS_FUNCTION (dummy);
find_stack_direction (); /* Recurse once. */
}
else
{
/* Second entry. */
if (ADDRESS_FUNCTION (dummy) > addr)
stack_dir = 1; /* Stack grew upward. */
else
stack_dir = -1; /* Stack grew downward. */
}
}
#endif /* STACK_DIRECTION == 0 */
/* An "alloca header" is used to:
(a) chain together all alloca'ed blocks;
(b) keep track of stack depth.
It is very important that sizeof(header) agree with malloc
alignment chunk size. The following default should work okay. */
#ifndef ALIGN_SIZE
#define ALIGN_SIZE sizeof(double)
#endif
typedef union hdr
{
char align[ALIGN_SIZE]; /* To force sizeof(header). */
struct
{
union hdr *next; /* For chaining headers. */
char *deep; /* For stack depth measure. */
} h;
} header;
static header *last_alloca_header = NULL; /* -> last alloca header. */
/* Return a pointer to at least SIZE bytes of storage,
which will be automatically reclaimed upon exit from
the procedure that called alloca. Originally, this space
was supposed to be taken from the current stack frame of the
caller, but that method cannot be made to work for some
implementations of C, for example under Gould's UTX/32. */
pointer
alloca (size)
unsigned size;
{
auto char probe; /* Probes stack depth: */
register char *depth = ADDRESS_FUNCTION (probe);
#if STACK_DIRECTION == 0
if (STACK_DIR == 0) /* Unknown growth direction. */
find_stack_direction ();
#endif
/* Reclaim garbage, defined as all alloca'd storage that
was allocated from deeper in the stack than currently. */
{
register header *hp; /* Traverses linked list. */
#ifdef emacs
BLOCK_INPUT;
#endif
for (hp = last_alloca_header; hp != NULL;)
if ((STACK_DIR > 0 && hp->h.deep > depth)
|| (STACK_DIR < 0 && hp->h.deep < depth))
{
register header *np = hp->h.next;
free ((pointer) hp); /* Collect garbage. */
hp = np; /* -> next header. */
}
else
break; /* Rest are not deeper. */
last_alloca_header = hp; /* -> last valid storage. */
#ifdef emacs
UNBLOCK_INPUT;
#endif
}
if (size == 0)
return NULL; /* No allocation required. */
/* Allocate combined header + user data storage. */
{
register pointer new = malloc (sizeof (header) + size);
/* Address of header. */
((header *) new)->h.next = last_alloca_header;
((header *) new)->h.deep = depth;
last_alloca_header = (header *) new;
/* User storage begins just after header. */
return (pointer) ((char *) new + sizeof (header));
}
}
#if defined (CRAY) && defined (CRAY_STACKSEG_END)
#ifdef DEBUG_I00AFUNC
#include <stdio.h>
#endif
#ifndef CRAY_STACK
#define CRAY_STACK
#ifndef CRAY2
/* Stack structures for CRAY-1, CRAY X-MP, and CRAY Y-MP */
struct stack_control_header
{
long shgrow:32; /* Number of times stack has grown. */
long shaseg:32; /* Size of increments to stack. */
long shhwm:32; /* High water mark of stack. */
long shsize:32; /* Current size of stack (all segments). */
};
/* The stack segment linkage control information occurs at
the high-address end of a stack segment. (The stack
grows from low addresses to high addresses.) The initial
part of the stack segment linkage control information is
0200 (octal) words. This provides for register storage
for the routine which overflows the stack. */
struct stack_segment_linkage
{
long ss[0200]; /* 0200 overflow words. */
long sssize:32; /* Number of words in this segment. */
long ssbase:32; /* Offset to stack base. */
long:32;
long sspseg:32; /* Offset to linkage control of previous
segment of stack. */
long:32;
long sstcpt:32; /* Pointer to task common address block. */
long sscsnm; /* Private control structure number for
microtasking. */
long ssusr1; /* Reserved for user. */
long ssusr2; /* Reserved for user. */
long sstpid; /* Process ID for pid based multi-tasking. */
long ssgvup; /* Pointer to multitasking thread giveup. */
long sscray[7]; /* Reserved for Cray Research. */
long ssa0;
long ssa1;
long ssa2;
long ssa3;
long ssa4;
long ssa5;
long ssa6;
long ssa7;
long sss0;
long sss1;
long sss2;
long sss3;
long sss4;
long sss5;
long sss6;
long sss7;
};
#else /* CRAY2 */
/* The following structure defines the vector of words
returned by the STKSTAT library routine. */
struct stk_stat
{
long now; /* Current total stack size. */
long maxc; /* Amount of contiguous space which would
be required to satisfy the maximum
stack demand to date. */
long high_water; /* Stack high-water mark. */
long overflows; /* Number of stack overflow ($STKOFEN) calls. */
long hits; /* Number of internal buffer hits. */
long extends; /* Number of block extensions. */
long stko_mallocs; /* Block allocations by $STKOFEN. */
long underflows; /* Number of stack underflow calls ($STKRETN). */
long stko_free; /* Number of deallocations by $STKRETN. */
long stkm_free; /* Number of deallocations by $STKMRET. */
long segments; /* Current number of stack segments. */
long maxs; /* Maximum number of stack segments so far. */
long pad_size; /* Stack pad size. */
long current_address; /* Current stack segment address. */
long current_size; /* Current stack segment size. This
number is actually corrupted by STKSTAT to
include the fifteen word trailer area. */
long initial_address; /* Address of initial segment. */
long initial_size; /* Size of initial segment. */
};
/* The following structure describes the data structure which trails
any stack segment. I think that the description in 'asdef' is
out of date. I only describe the parts that I am sure about. */
struct stk_trailer
{
long this_address; /* Address of this block. */
long this_size; /* Size of this block (does not include
this trailer). */
long unknown2;
long unknown3;
long link; /* Address of trailer block of previous
segment. */
long unknown5;
long unknown6;
long unknown7;
long unknown8;
long unknown9;
long unknown10;
long unknown11;
long unknown12;
long unknown13;
long unknown14;
};
#endif /* CRAY2 */
#endif /* not CRAY_STACK */
#ifdef CRAY2
/* Determine a "stack measure" for an arbitrary ADDRESS.
I doubt that "lint" will like this much. */
static long
i00afunc (long *address)
{
struct stk_stat status;
struct stk_trailer *trailer;
long *block, size;
long result = 0;
/* We want to iterate through all of the segments. The first
step is to get the stack status structure. We could do this
more quickly and more directly, perhaps, by referencing the
$LM00 common block, but I know that this works. */
STKSTAT (&status);
/* Set up the iteration. */
trailer = (struct stk_trailer *) (status.current_address
+ status.current_size
- 15);
/* There must be at least one stack segment. Therefore it is
a fatal error if "trailer" is null. */
if (trailer == 0)
abort ();
/* Discard segments that do not contain our argument address. */
while (trailer != 0)
{
block = (long *) trailer->this_address;
size = trailer->this_size;
if (block == 0 || size == 0)
abort ();
trailer = (struct stk_trailer *) trailer->link;
if ((block <= address) && (address < (block + size)))
break;
}
/* Set the result to the offset in this segment and add the sizes
of all predecessor segments. */
result = address - block;
if (trailer == 0)
{
return result;
}
do
{
if (trailer->this_size <= 0)
abort ();
result += trailer->this_size;
trailer = (struct stk_trailer *) trailer->link;
}
while (trailer != 0);
/* We are done. Note that if you present a bogus address (one
not in any segment), you will get a different number back, formed
from subtracting the address of the first block. This is probably
not what you want. */
return (result);
}
#else /* not CRAY2 */
/* Stack address function for a CRAY-1, CRAY X-MP, or CRAY Y-MP.
Determine the number of the cell within the stack,
given the address of the cell. The purpose of this
routine is to linearize, in some sense, stack addresses
for alloca. */
static long
i00afunc (long address)
{
long stkl = 0;
long size, pseg, this_segment, stack;
long result = 0;
struct stack_segment_linkage *ssptr;
/* Register B67 contains the address of the end of the
current stack segment. If you (as a subprogram) store
your registers on the stack and find that you are past
the contents of B67, you have overflowed the segment.
B67 also points to the stack segment linkage control
area, which is what we are really interested in. */
stkl = CRAY_STACKSEG_END ();
ssptr = (struct stack_segment_linkage *) stkl;
/* If one subtracts 'size' from the end of the segment,
one has the address of the first word of the segment.
If this is not the first segment, 'pseg' will be
nonzero. */
pseg = ssptr->sspseg;
size = ssptr->sssize;
this_segment = stkl - size;
/* It is possible that calling this routine itself caused
a stack overflow. Discard stack segments which do not
contain the target address. */
while (!(this_segment <= address && address <= stkl))
{
#ifdef DEBUG_I00AFUNC
fprintf (stderr, "%011o %011o %011o\n", this_segment, address, stkl);
#endif
if (pseg == 0)
break;
stkl = stkl - pseg;
ssptr = (struct stack_segment_linkage *) stkl;
size = ssptr->sssize;
pseg = ssptr->sspseg;
this_segment = stkl - size;
}
result = address - this_segment;
/* If you subtract pseg from the current end of the stack,
you get the address of the previous stack segment's end.
This seems a little convoluted to me, but I'll bet you save
a cycle somewhere. */
while (pseg != 0)
{
#ifdef DEBUG_I00AFUNC
fprintf (stderr, "%011o %011o\n", pseg, size);
#endif
stkl = stkl - pseg;
ssptr = (struct stack_segment_linkage *) stkl;
size = ssptr->sssize;
pseg = ssptr->sspseg;
result += size;
}
return (result);
}
#endif /* not CRAY2 */
#endif /* CRAY */
#endif /* no alloca */
#endif /* not GCC version 2 */
+165 -20
View File
@@ -3,7 +3,7 @@
*/
/*
* Copyright (C) 1986, 1988, 1989, 1991-1999 the Free Software Foundation, Inc.
* Copyright (C) 1986, 1988, 1989, 1991-2000 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -61,8 +61,8 @@ register NODE *tree;
r = force_string(tree_eval(tree->lnode));
if (tree->rnode == NULL)
return r;
subseplen = SUBSEP_node->lnode->stlen;
subsep = SUBSEP_node->lnode->stptr;
subseplen = SUBSEP_node->var_value->stlen;
subsep = SUBSEP_node->var_value->stptr;
len = r->stlen + subseplen + 2;
emalloc(str, char *, len, "concat_exp");
memcpy(str, r->stptr, r->stlen+1);
@@ -214,11 +214,23 @@ register NODE *subs;
int hash1;
{
register NODE *bucket;
NODE *s1, *s2;
for (bucket = symbol->var_array[hash1]; bucket != NULL;
bucket = bucket->ahnext) {
if (cmp_nodes(bucket->ahname, subs) == 0)
return bucket;
/*
* This used to use cmp_nodes() here. That's wrong.
* Array indexes are strings; compare as such, always!
*/
s1 = bucket->ahname;
s1 = force_string(s1);
s2 = subs;
if (s1->stlen == s2->stlen) {
if (s1->stlen == 0 /* "" is a valid index */
|| STREQN(s1->stptr, s2->stptr, s1->stlen))
return bucket;
}
}
return NULL;
}
@@ -234,6 +246,8 @@ NODE *symbol, *subs;
if (symbol->type == Node_param_list)
symbol = stack_ptr[symbol->param_cnt];
if (symbol->type == Node_array_ref)
symbol = symbol->orig_array;
if ((symbol->flags & SCALAR) != 0)
fatal("attempt to use scalar as array");
/*
@@ -266,6 +280,8 @@ NODE *symbol, *subs;
register int hash1;
register NODE *bucket;
assert(symbol->type == Node_var_array || symbol->type == Node_var);
(void) force_string(subs);
if ((symbol->flags & SCALAR) != 0)
@@ -308,20 +324,9 @@ NODE *symbol, *subs;
getnode(bucket);
bucket->type = Node_ahash;
if (subs->flags & TEMP)
bucket->ahname = dupnode(subs);
else {
unsigned int saveflags = subs->flags;
subs->flags &= ~MALLOC;
bucket->ahname = dupnode(subs);
subs->flags = saveflags;
}
bucket->ahname = dupnode(subs);
free_temp(subs);
/* array subscripts are strings */
bucket->ahname->flags &= ~NUMBER;
bucket->ahname->flags |= STRING;
bucket->ahvalue = Nnull_string;
bucket->ahnext = symbol->var_array[hash1];
symbol->var_array[hash1] = bucket;
@@ -343,6 +348,8 @@ NODE *symbol, *tree;
if (symbol->type == Node_var)
return;
}
if (symbol->type == Node_array_ref)
symbol = symbol->orig_array;
if (symbol->type == Node_var_array) {
if (symbol->var_array == NULL)
return;
@@ -360,9 +367,24 @@ NODE *symbol, *tree;
last = NULL;
for (bucket = symbol->var_array[hash1]; bucket != NULL;
last = bucket, bucket = bucket->ahnext)
if (cmp_nodes(bucket->ahname, subs) == 0)
break;
last = bucket, bucket = bucket->ahnext) {
/*
* This used to use cmp_nodes() here. That's wrong.
* Array indexes are strings; compare as such, always!
*/
NODE *s1, *s2;
s1 = bucket->ahname;
s1 = force_string(s1);
s2 = subs;
if (s1->stlen == s2->stlen) {
if (s1->stlen == 0 /* "" is a valid index */
|| STREQN(s1->stptr, s2->stptr, s1->stlen))
break;
}
}
if (bucket == NULL) {
if (do_lint)
warning("delete: index `%s' not in array `%s'",
@@ -389,6 +411,50 @@ NODE *symbol, *tree;
}
}
/* do_delete_loop --- simulate ``for (iggy in foo) delete foo[iggy]'' */
/*
* The primary hassle here is that `iggy' needs to have some arbitrary
* array index put in it before we can clear the array, we can't
* just replace the loop with `delete foo'.
*/
void
do_delete_loop(symbol, tree)
NODE *symbol, *tree;
{
size_t i;
NODE *n, **lhs;
Func_ptr after_assign = NULL;
if (symbol->type == Node_param_list) {
symbol = stack_ptr[symbol->param_cnt];
if (symbol->type == Node_var)
return;
}
if (symbol->type == Node_array_ref)
symbol = symbol->orig_array;
if (symbol->type == Node_var_array) {
if (symbol->var_array == NULL)
return;
} else
fatal("delete: illegal use of variable `%s' as array",
symbol->vname);
/* get first index value */
for (i = 0; i < symbol->array_size; i++) {
if (symbol->var_array[i] != NULL) {
lhs = get_lhs(tree->lnode, & after_assign);
unref(*lhs);
*lhs = dupnode(symbol->var_array[i]->ahname);
break;
}
}
/* blast the array in one shot */
assoc_clear(symbol);
}
/* assoc_scan --- start a ``for (iggy in foo)'' loop */
void
@@ -528,3 +594,82 @@ done:
symbol->var_array = new;
symbol->array_size = newsize;
}
/* pr_node --- print simple node info */
static void
pr_node(n)
NODE *n;
{
if ((n->flags & (NUM|NUMBER)) != 0)
printf("%g", n->numbr);
else
printf("%.*s", (int) n->stlen, n->stptr);
}
/* assoc_dump --- dump the contents of an array */
NODE *
assoc_dump(symbol)
NODE *symbol;
{
int i;
NODE *bucket;
if (symbol->var_array == NULL) {
printf("%s: empty (null)\n", symbol->vname);
return tmp_number((AWKNUM) 0);
}
if (symbol->table_size == 0) {
printf("%s: empty (zero)\n", symbol->vname);
return tmp_number((AWKNUM) 0);
}
printf("%s: table_size = %d, array_size = %d\n", symbol->vname,
symbol->table_size, symbol->array_size);
for (i = 0; i < symbol->array_size; i++) {
for (bucket = symbol->var_array[i]; bucket != NULL;
bucket = bucket->ahnext) {
printf("%s: I: [(%p, %ld, %s) len %d <%.*s>] V: [",
symbol->vname,
bucket->ahname,
bucket->ahname->stref,
flags2str(bucket->ahname->flags),
(int) bucket->ahname->stlen,
(int) bucket->ahname->stlen,
bucket->ahname->stptr);
pr_node(bucket->ahvalue);
printf("]\n");
}
}
return tmp_number((AWKNUM) 0);
}
/* do_adump --- dump an array: interface to assoc_dump */
NODE *
do_adump(tree)
NODE *tree;
{
NODE *r, *a;
a = tree->lnode;
if (a->type == Node_param_list) {
printf("%s: is paramater\n", a->vname);
a = stack_ptr[a->param_cnt];
}
if (a->type == Node_array_ref) {
printf("%s: array_ref to %s\n", a->vname,
a->orig_array->vname);
a = a->orig_array;
}
r = assoc_dump(a);
return r;
}
+10 -2
View File
@@ -3,7 +3,7 @@
*/
/*
* Copyright (C) 1986, 1988, 1989, 1991-1999 the Free Software Foundation, Inc.
* Copyright (C) 1986, 1988, 1989, 1991-2000 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -299,6 +299,7 @@ typedef enum nodevals {
Node_K_do, /* lnode is conditional, rnode stuff to run */
Node_K_return, /* lnode is return value */
Node_K_delete, /* lnode is array, rnode is subscript */
Node_K_delete_loop, /* lnode is array, rnode is subscript */
Node_K_getline, /* lnode is opt var, rnode is redirection */
Node_K_function, /* lnode is statement list, rnode is params */
Node_K_nextfile, /* no subs */
@@ -338,6 +339,7 @@ typedef enum nodevals {
Node_regex, /* a regexp, text, compiled, flags, etc */
Node_hashnode, /* an identifier in the symbol table */
Node_ahash, /* an array element */
Node_array_ref, /* array passed by ref as parameter */
Node_NF, /* variables recognized in the grammar */
Node_NR,
Node_FNR,
@@ -463,6 +465,8 @@ typedef struct exp_node {
#define array_size sub.nodep.l.ll
#define table_size sub.nodep.x.xl
#define orig_array sub.nodep.x.extra
#define condpair lnode
#define triggered sub.nodep.r.r_ent
@@ -721,16 +725,19 @@ extern unsigned int hash P((const char *s, size_t len, unsigned long hsize));
extern int in_array P((NODE *symbol, NODE *subs));
extern NODE **assoc_lookup P((NODE *symbol, NODE *subs));
extern void do_delete P((NODE *symbol, NODE *tree));
extern void do_delete_loop P((NODE *symbol, NODE *tree));
extern void assoc_scan P((NODE *symbol, struct search *lookat));
extern void assoc_next P((struct search *lookat));
extern NODE *assoc_dump P((NODE *symbol));
extern NODE *do_adump P((NODE *tree));
/* awktab.c */
extern char *tokexpand P((void));
extern char nextc P((void));
extern NODE *node P((NODE *left, NODETYPE op, NODE *right));
extern NODE *install P((char *name, NODE *value));
extern NODE *lookup P((const char *name));
extern NODE *variable P((char *name, int can_free, NODETYPE type));
extern int yyparse P((void));
extern NODE *stopme P((NODE *tree));
/* builtin.c */
extern double double_to_int P((double d));
extern NODE *do_exp P((NODE *tree));
@@ -781,6 +788,7 @@ void set_OFS P((void));
void set_ORS P((void));
void set_OFMT P((void));
void set_CONVFMT P((void));
extern char *flags2str P((int));
/* field.c */
extern void init_fields P((void));
extern void set_record P((char *buf, int cnt, int freeold));
+53 -17
View File
@@ -3,7 +3,7 @@
*/
/*
* Copyright (C) 1986, 1988, 1989, 1991-1999 the Free Software Foundation, Inc.
* Copyright (C) 1986, 1988, 1989, 1991-2000 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -385,9 +385,30 @@ statement
{ $$ = node($6, Node_K_do, $3); }
| LEX_FOR '(' NAME LEX_IN NAME r_paren opt_nls statement
{
$$ = node($8, Node_K_arrayfor,
make_for_loop(variable($3, CAN_FREE, Node_var),
(NODE *) NULL, variable($5, CAN_FREE, Node_var_array)));
/*
* Efficiency hack. Recognize the special case of
*
* for (iggy in foo)
* delete foo[iggy]
*
* and treat it as if it were
*
* delete foo
*
* Check that the body is a `delete a[i]' statement,
* and that both the loop var and array names match.
*/
if ($8->type == Node_K_delete
&& $8->rnode != NULL
&& strcmp($3, $8->rnode->var_value->vname) == 0
&& strcmp($5, $8->lnode->vname) == 0) {
$8->type = Node_K_delete_loop;
$$ = $8;
} else {
$$ = node($8, Node_K_arrayfor,
make_for_loop(variable($3, CAN_FREE, Node_var),
(NODE *) NULL, variable($5, CAN_FREE, Node_var_array)));
}
}
| LEX_FOR '(' opt_exp semi exp semi opt_exp r_paren opt_nls statement
{
@@ -883,20 +904,16 @@ struct token {
NODE *(*ptr)(); /* function that implements this keyword */
};
extern NODE
*do_exp(), *do_getline(), *do_index(), *do_length(),
*do_sqrt(), *do_log(), *do_sprintf(), *do_substr(),
*do_split(), *do_system(), *do_int(), *do_close(),
*do_atan2(), *do_sin(), *do_cos(), *do_rand(),
*do_srand(), *do_match(), *do_tolower(), *do_toupper(),
*do_sub(), *do_gsub(), *do_strftime(), *do_systime(),
*do_fflush();
/* Tokentab is sorted ascii ascending order, so it can be binary searched. */
/* Function pointers come from declarations in awk.h. */
static struct token tokentab[] = {
{"BEGIN", Node_illegal, LEX_BEGIN, 0, 0},
{"END", Node_illegal, LEX_END, 0, 0},
#ifdef ARRAYDEBUG
{"adump", Node_builtin, LEX_BUILTIN, GAWKX|A(1), do_adump},
#endif
#ifdef BITOPS
{"and", Node_builtin, LEX_BUILTIN, GAWKX|A(2), do_and},
#endif /* BITOPS */
@@ -947,6 +964,9 @@ static struct token tokentab[] = {
{"sprintf", Node_builtin, LEX_BUILTIN, 0, do_sprintf},
{"sqrt", Node_builtin, LEX_BUILTIN, A(1), do_sqrt},
{"srand", Node_builtin, LEX_BUILTIN, NOT_OLD|A(0)|A(1), do_srand},
#ifdef ARRAYDEBUG
{"stopme", Node_builtin, LEX_BUILTIN, GAWKX|A(0), stopme},
#endif
{"strftime", Node_builtin, LEX_BUILTIN, GAWKX|A(0)|A(1)|A(2), do_strftime},
#ifdef BITOPS
{"strtonum", Node_builtin, LEX_BUILTIN, GAWKX|A(1), do_strtonum},
@@ -1217,9 +1237,9 @@ nextc()
int c;
if (lexptr && lexptr < lexend)
c = *lexptr++;
c = (int) (unsigned char) *lexptr++;
else if (get_src_buf())
c = *lexptr++;
c = (int) (unsigned char) *lexptr++;
else
c = EOF;
@@ -1227,8 +1247,8 @@ nextc()
}
#else
#define nextc() ((lexptr && lexptr < lexend) ? \
*lexptr++ : \
(get_src_buf() ? *lexptr++ : EOF) \
((int) (unsigned char) *lexptr++) : \
(get_src_buf() ? ((int) (unsigned char) *lexptr++) : EOF) \
)
#endif
@@ -1457,7 +1477,6 @@ retry:
return lasttok = c;
case ')':
case ']':
case '(':
case ';':
case '{':
@@ -1465,6 +1484,7 @@ retry:
want_assign = FALSE;
/* fall through */
case '[':
case ']':
return lasttok = c;
case '*':
@@ -2143,6 +2163,14 @@ NODE *params;
NODE *def;
{
NODE *r;
NODE *n;
/* check for function foo(foo) { ... }. bleh. */
for (n = params->rnode; n != NULL; n = n->rnode) {
if (strcmp(n->param, params->param) == 0)
fatal("function `%s': can't use function name as parameter name",
params->param);
}
pop_params(params->rnode);
pop_var(params, FALSE);
@@ -2441,3 +2469,11 @@ register NODE *n;
}
return FALSE;
}
/* for debugging */
NODE *
stopme(tree)
NODE *tree;
{
return tmp_number((AWKNUM) 0.0);
}
+3983
View File
File diff suppressed because it is too large. Load diff
+7 -4
View File
@@ -3,7 +3,7 @@
*/
/*
* Copyright (C) 1986, 1988, 1989, 1991-1999 the Free Software Foundation, Inc.
* Copyright (C) 1986, 1988, 1989, 1991-2000 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
@@ -815,7 +815,8 @@ check_pos:
*cp++ = '#';
if (zero_flag)
*cp++ = '0';
cp = strcpy(cp, "*.*") + 3;
strcpy(cp, "*.*");
cp += 3;
*cp++ = cs1;
*cp = '\0';
#ifndef GFMT_WORKAROUND
@@ -2103,9 +2104,11 @@ size_t len;
retval = (retval * 16) + val;
}
} else if (*str == '0') {
if (strchr(str, '8') != NULL || strchr(str, '9') != NULL)
goto decimal;
for (; len > 0; len--) {
if (! isdigit(*str) || *str == '8' || *str == '9')
goto decimal;
if (! isdigit(*str))
goto done;
retval = (retval * 8) + (*str - '0');
str++;
}
+225
View File
@@ -0,0 +1,225 @@
/* configh.in. Generated automatically from configure.in by autoheader. */
/*
* acconfig.h -- configuration definitions for gawk.
*/
/*
* Copyright (C) 1995-2000 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
*
* GAWK is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GAWK is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
*/
/* Define if on AIX 3.
System headers sometimes define this.
We just want to avoid a redefinition error message. */
#ifndef _ALL_SOURCE
#undef _ALL_SOURCE
#endif
/* Define if using alloca.c. */
#undef C_ALLOCA
/* Define if type char is unsigned and you are not using gcc. */
#ifndef __CHAR_UNSIGNED__
#undef __CHAR_UNSIGNED__
#endif
/* Define to empty if the keyword does not work. */
#undef const
/* Define to one of _getb67, GETB67, getb67 for Cray-2 and Cray-YMP systems.
This function is required for alloca.c support on those systems. */
#undef CRAY_STACKSEG_END
/* Define to the type of elements in the array set by `getgroups'.
Usually this is either `int' or `gid_t'. */
#undef GETGROUPS_T
/* Define if the `getpgrp' function takes no argument. */
#undef GETPGRP_VOID
/* Define to `int' if <sys/types.h> doesn't define. */
#undef gid_t
/* Define if you have alloca, as a function or macro. */
#undef HAVE_ALLOCA
/* Define if you have <alloca.h> and it should be used (not on Ultrix). */
#undef HAVE_ALLOCA_H
/* Define if you don't have vprintf but do have _doprnt. */
#undef HAVE_DOPRNT
/* Define if you have a working `mmap' system call. */
#undef HAVE_MMAP
/* Define if your struct stat has st_blksize. */
#undef HAVE_ST_BLKSIZE
/* Define if you have the ANSI # stringizing operator in cpp. */
#undef HAVE_STRINGIZE
/* Define if you have <sys/wait.h> that is POSIX.1 compatible. */
#undef HAVE_SYS_WAIT_H
/* Define if your struct tm has tm_zone. */
#undef HAVE_TM_ZONE
/* Define if you don't have tm_zone but do have the external array
tzname. */
#undef HAVE_TZNAME
/* Define if you have the vprintf function. */
#undef HAVE_VPRINTF
/* Define if on MINIX. */
#undef _MINIX
/* Define to `int' if <sys/types.h> doesn't define. */
#undef pid_t
/* Define if the system does not provide POSIX.1 features except
with this defined. */
#undef _POSIX_1_SOURCE
/* Define if you need to in order for stat and other things to work. */
#undef _POSIX_SOURCE
/* Define as the return type of signal handlers (int or void). */
#undef RETSIGTYPE
/* Define to `unsigned' if <sys/types.h> doesn't define. */
#undef size_t
/* If using the C implementation of alloca, define if you know the
direction of stack growth for your system; otherwise it will be
automatically deduced at run-time.
STACK_DIRECTION > 0 => grows toward higher addresses
STACK_DIRECTION < 0 => grows toward lower addresses
STACK_DIRECTION = 0 => direction of growth unknown
*/
#undef STACK_DIRECTION
/* Define if you have the ANSI C header files. */
#undef STDC_HEADERS
/* Define if you can safely include both <sys/time.h> and <time.h>. */
#undef TIME_WITH_SYS_TIME
/* Define if your <sys/time.h> declares struct tm. */
#undef TM_IN_SYS_TIME
/* Define to `int' if <sys/types.h> doesn't define. */
#undef uid_t
#undef HAVE_STRINGIZE /* can use ANSI # operator in cpp */
#undef REGEX_MALLOC /* use malloc instead of alloca in regex.c */
#undef SPRINTF_RET /* return type of sprintf */
#undef BITOPS /* bitwise ops (undocumented feature) */
#undef NONDECDATA /* non-decimal input data (undocumented feature) */
#undef _FILE_OFFSET_BITS /* bits in a file offset, where this matters */
#undef _LARGEFILE_SOURCE /* makes fseeko etc. visible on some hosts */
#undef _LARGE_FILES /* emables large files on AIX-style hosts */
/* Define if you have the fmod function. */
#undef HAVE_FMOD
/* Define if you have the getpagesize function. */
#undef HAVE_GETPAGESIZE
/* Define if you have the madvise function. */
#undef HAVE_MADVISE
/* Define if you have the memcmp function. */
#undef HAVE_MEMCMP
/* Define if you have the memcpy function. */
#undef HAVE_MEMCPY
/* Define if you have the memset function. */
#undef HAVE_MEMSET
/* Define if you have the setlocale function. */
#undef HAVE_SETLOCALE
/* Define if you have the strchr function. */
#undef HAVE_STRCHR
/* Define if you have the strerror function. */
#undef HAVE_STRERROR
/* Define if you have the strftime function. */
#undef HAVE_STRFTIME
/* Define if you have the strncasecmp function. */
#undef HAVE_STRNCASECMP
/* Define if you have the strtod function. */
#undef HAVE_STRTOD
/* Define if you have the system function. */
#undef HAVE_SYSTEM
/* Define if you have the tzset function. */
#undef HAVE_TZSET
/* Define if you have the <limits.h> header file. */
#undef HAVE_LIMITS_H
/* Define if you have the <locale.h> header file. */
#undef HAVE_LOCALE_H
/* Define if you have the <memory.h> header file. */
#undef HAVE_MEMORY_H
/* Define if you have the <signum.h> header file. */
#undef HAVE_SIGNUM_H
/* Define if you have the <stdarg.h> header file. */
#undef HAVE_STDARG_H
/* Define if you have the <string.h> header file. */
#undef HAVE_STRING_H
/* Define if you have the <strings.h> header file. */
#undef HAVE_STRINGS_H
/* Define if you have the <sys/param.h> header file. */
#undef HAVE_SYS_PARAM_H
/* Define if you have the <unistd.h> header file. */
#undef HAVE_UNISTD_H
/* Define if you have the m library (-lm). */
#undef HAVE_LIBM
/* Number of bits in a file offset, on hosts where this is settable. */
#undef _FILE_OFFSET_BITS
/* Define to make ftello visible on some hosts (e.g. HP-UX 10.20). */
#undef _LARGEFILE_SOURCE
/* Define for large files, on AIX-style hosts. */
#undef _LARGE_FILES
/* Define to make ftello visible on some hosts (e.g. glibc 2.1.3). */
#undef _XOPEN_SOURCE
#include <custom.h> /* overrides for stuff autoconf can't deal with */
Vendored Executable
+3685
View File
File diff suppressed because it is too large. Load diff
+165
View File
@@ -0,0 +1,165 @@
dnl
dnl configure.in --- autoconf input file for gawk
dnl
dnl Copyright (C) 1995-2000 the Free Software Foundation, Inc.
dnl
dnl This file is part of GAWK, the GNU implementation of the
dnl AWK Programming Language.
dnl
dnl GAWK is free software; you can redistribute it and/or modify
dnl it under the terms of the GNU General Public License as published by
dnl the Free Software Foundation; either version 2 of the License, or
dnl (at your option) any later version.
dnl
dnl GAWK is distributed in the hope that it will be useful,
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
dnl GNU General Public License for more details.
dnl
dnl You should have received a copy of the GNU General Public License
dnl along with this program; if not, write to the Free Software
dnl Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
dnl
dnl Process this file with autoconf to produce a configure script.
dnl this makes sure that the local install-sh gets found
dnl define(AC_CONFIG_AUX_DIR,)
dnl This is the configure.in script proper
AC_INIT(awk.h)
AC_PREREQ(2.12)
AC_CONFIG_HEADER(config.h:configh.in)
dnl Additional argument stuff
AC_ARG_ENABLE(bitops, [ --enable-bitops Enable Octal and Hex constants and bit functions], AC_DEFINE(BITOPS))
AC_ARG_ENABLE(non-decimal-data, [ --enable-non-decimal-data Enable Octal and Hex constants as valid input data], AC_DEFINE(NONDECDATA))
dnl checks for programs
AC_PROG_YACC
AC_PROG_LN_S
AC_PROG_CC
AC_PROG_CPP
# This is a hack. Different versions of install on different systems
# are just too different. Chuck it and use install-sh.
INSTALL="$srcdir/install-sh -c"; export INSTALL
AC_PROG_INSTALL
AC_PROG_MAKE_SET
if test "$CFLAGS" = ""
then
dnl no user provided CFLAGS, feel free to do this our way
if test "$GCC" = yes
then
CFLAGS="-g -O"
else
dnl go for speed, not debugging. :-)
CFLAGS="-O"
fi
fi
# This is mainly for my use during testing and development.
# Yes, it's a bit of a hack.
if test -f $srcdir/.developing
then
AC_DEFINE(BITOPS)
AC_DEFINE(NONDECDATA)
CFLAGS="$CFLAGS -DARRAYDEBUG"
fi
AC_SUBST(CFLAGS)
dnl checks for systems
AC_AIX
AC_ISC_POSIX
AC_MINIX
GAWK_AC_SYS_LARGEFILE
GAWK_AC_AIX_TWEAK
if test "$ISC" = 1 # will be set by test for ISC
then
dnl need -D_SYSV3 for ISC
CFLAGS="$CFLAGS -D_SYSV3"
fi
dnl checks for header files
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h locale.h stdarg.h unistd.h signum.h sys/param.h string.h)
if test "$ac_cv_header_string_h" = yes
then
AC_CHECK_HEADERS(memory.h)
else
AC_CHECK_HEADERS(strings.h)
fi
dnl checks for typedefs
AC_TYPE_PID_T
AC_TYPE_SIGNAL
AC_SIZE_T
AC_TYPE_GETGROUPS
AC_EGREP_HEADER([int.*sprintf], stdio.h,
AC_DEFINE(SPRINTF_RET, int),
AC_DEFINE(SPRINTF_RET, char *))
dnl checks for functions
if test "$YACC" = "bison -y" ||
{ test -f $srcdir/awktab.c && grep 'alloca *(' $srcdir/awktab.c > /dev/null; }
then
AC_FUNC_ALLOCA
fi
AC_DEFINE(REGEX_MALLOC)
AC_FUNC_VPRINTF
AC_CHECK_LIB(m, fmod)
AC_CHECK_FUNCS(madvise memset memcpy memcmp fmod setlocale strchr strerror \
strftime strncasecmp strtod system tzset)
dnl see if we have mmap
AC_FUNC_MMAP
dnl check for how to use getpgrp
dnl have to hardwire it for VMS POSIX. Sigh.
if (uname) > /dev/null 2>&1
then
case `uname` in
*VMS*|*BeOS*)
AC_DEFINE(GETPGRP_VOID)
;;
*HP-UX*) # not getpgrp related
if test "$GCC" = yes
then
:
else
# stupid HP linker leaves the output file
# around even when a link fails. This confuses
# the alloca tests, so we have to do this
# manually. Sucks big time.
LIBS="$LIBS -lPW"
fi
# have to do the getpgrp test since won't
# fall into the default
AC_FUNC_GETPGRP
;;
*) AC_FUNC_GETPGRP
;;
esac
else
AC_FUNC_GETPGRP
fi
dnl checks for structure members
AC_STRUCT_ST_BLKSIZE
AC_HEADER_TIME
AC_STRUCT_TM
AC_STRUCT_TIMEZONE
dnl checks for compiler characteristics
AC_C_CHAR_UNSIGNED
AC_C_CONST
GAWK_AC_C_STRINGIZE
AC_OUTPUT(Makefile doc/Makefile test/Makefile awklib/Makefile, [date > stamp-h])
+1 -1
View File
@@ -11,7 +11,7 @@
*/
/*
* Copyright (C) 1995-1999 the Free Software Foundation, Inc.
* Copyright (C) 1995-2000 the Free Software Foundation, Inc.
*
* This file is part of GAWK, the GNU implementation of the
* AWK Programming Language.
+53
View File
@@ -1,3 +1,56 @@
Mon Aug 7 15:23:00 2000 Arnold D. Robbins <[email protected]>
* Release 3.0.6: Release tar file made.
Sun Jun 25 15:08:19 2000 Arnold D. Robbins <[email protected]>
* Release 3.0.5: Release tar file made.
Wed May 17 19:04:54 2000 Arnold D. Robbins <[email protected]>
* gawk.texi, gawk.1, awkcard.in: Documented %u. Ooops.
Tue May 2 11:44:13 2000 Arnold D. Robbins <[email protected]>
* texinfo.tex: Updated to version 1999-10-01.07.
* gawk.texi: Redid page breaking for new texinfo.tex.
Thu Apr 6 12:32:49 2000 Arnold D. Robbins <[email protected]>
* gawk.texi: Change info dir file entry to `(gawk)' from
`(gawk.info)'.
* Makefile.in [$(infodir)/gawk.info]: Fix grep test is
accordance with above.
Sun Feb 13 15:36:32 2000 Paul Eggert <[email protected]>
* gawk.texi: Mention that arithmetic is done in double
precision floating point, and point to Goldberg's paper for
people who want to know more. Fix some other minor floating
point discussion issues.
Wed Nov 3 17:04:35 1999 Arnold D. Robbins <[email protected]>
* gawk.1: Lots of troff ``lint'' from Paul Eggert. Not all
of his changes, just the ones I thought worth doing.
Mon Oct 11 16:53:54 1999 Arnold D. Robbins <[email protected]>
* Makefile.in (gawk.dvi): Put $(srcdir) first in TEXINPUTS,
and also just use texi2dvi, don't run texindex and tex
manually. Doing so is no longer necessary.
Mon Aug 9 13:06:01 1999 Arnold D. Robbins <[email protected]>
* gawk.texi: New node `Array Efficiency' on the best use
of subscripting to avoid memory bloat.
Thu Jul 29 23:15:34 1999 Arnold D. Robbins <[email protected]>
* Makefile.in ($(infodir)/gawk.info): Removed loop around
$(INSTALL_DATA), since there's only one Info file to install,
install it directly.
Wed Jun 30 16:14:36 1999 Arnold D. Robbins <[email protected]>
* Release 3.0.4: Release tar file made. This time for sure.
+129
View File
@@ -0,0 +1,129 @@
# Makefile for GNU Awk documentation.
#
# Copyright (C) 1993-2000 the Free Software Foundation, Inc.
#
# This file is part of GAWK, the GNU implementation of the
# AWK Programming Language.
#
# GAWK is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# GAWK is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
SHELL = /bin/sh
srcdir = @srcdir@
VPATH = @srcdir@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
prefix = @prefix@
exec_prefix = @exec_prefix@
binprefix =
manprefix =
bindir = @bindir@
libdir = @libdir@
mandir = @mandir@/man1
manext = .1
infodir = @infodir@
datadir = @datadir@/awk
TEXI2DVI = texi2dvi
TEX = tex
MAKEINFO = makeinfo --no-split
TROFF = groff -t -Tps
SEDME = sed -e "s/^level0 restore/level0 restore flashme 100 72 moveto (Copyright `date '+%m-%d-%y %T'`, FSF, Inc. (all)) show/" \
-e "s/^\/level0 save def/\/level0 save def 30 -48 translate/"
DOCS= gawk.1 igawk.1 gawk.texi
TEXFILES= gawk.aux gawk.cp gawk.cps gawk.fn gawk.fns gawk.ky gawk.kys \
gawk.pg gawk.pgs gawk.toc gawk.tp gawk.tps gawk.vr gawk.vrs
ALLDOC= gawk.dvi $(TEXFILES) gawk.log awkcard.tr
CARDSRC = $(srcdir)/macros $(srcdir)/cardfonts $(srcdir)/colors awkcard.tr
CARDSRC_N = $(srcdir)/macros $(srcdir)/cardfonts $(srcdir)/no.colors awkcard.tr
CARDFILES= $(CARDSRC) ad.block awkcard.in setter.outline
# Use this if your troff can correctly handle macros from 'colors' file
AWKCARD = awkcard.ps
# Uncomment the following definition of AWKCARD if your troff can produce
# Postscript but still has troubles with macros from 'colors'. As this
# is not groff you will have to change TROFF macro as well. Do not forget
# to ensure that awkcard.tr is processed by tbl.
#AWKCARD = awkcard.nc
all: $(DOCS) info
install: $(mandir)/gawk$(manext) $(mandir)/igawk$(manext) $(infodir)/gawk.info
$(infodir)/gawk.info::
-if test -f gawk.info; then d=.; \
else d=$(srcdir); fi; \
if [ -f $(infodir)/dir -a -f $(infodir)/gawk.info ] \
&& cmp $$d/gawk.info $(infodir)/gawk.info > /dev/null \
&& grep '(gawk)' $(infodir)/dir > /dev/null; then \
exit 0; \
fi; \
$(INSTALL_DATA) $$d/gawk.info $(infodir)/gawk.info ; \
if $(SHELL) -c 'install-info --version' > /dev/null 2>&1 ; \
then install-info --info-dir=$(infodir) gawk.info ; \
else true ; fi; exit 0
$(mandir)/gawk$(manext):: gawk.1
$(INSTALL_DATA) $(srcdir)/gawk.1 $(mandir)/gawk$(manext)
$(mandir)/igawk$(manext):: igawk.1
$(INSTALL_DATA) $(srcdir)/igawk.1 $(mandir)/igawk$(manext)
uninstall:
rm -f $(mandir)/gawk$(manext) $(mandir)/igawk$(manext) $(infodir)/gawk.info*
dvi: gawk.dvi
gawk.dvi: gawk.texi
-TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/gawk.texi
info: gawk.info
gawk.info: gawk.texi
$(MAKEINFO) $(srcdir)/gawk.texi
postscript: dvi gawk.1 igawk.1 $(AWKCARD)
-groff -man $(srcdir)/gawk.1 > gawk.1.ps
-groff -man $(srcdir)/igawk.1 > igawk.1.ps
dvips -o gawk.ps gawk.dvi
awkcard.tr: awkcard.in
sed 's:SRCDIR:$(srcdir):' < $(srcdir)/awkcard.in > awkcard.tr
awkcard.ps: $(CARDFILES)
$(TROFF) $(CARDSRC) | $(SEDME) | cat $(srcdir)/setter.outline - > awkcard.ps
awkcard.nc: $(CARDFILES)
$(TROFF) $(CARDSRC_N) | $(SEDME) | cat $(srcdir)/setter.outline - > awkcard.ps && touch awkcard.nc
clean:
rm -f *.ps $(ALLDOC) *~ awkcard.nc
distclean: clean
rm -f Makefile
maintainer-clean: distclean
@echo "This command is intended for maintainers to use; it"
@echo "deletes files that may require special tools to rebuild."
rm -f gawk.info
+19
View File
@@ -0,0 +1,19 @@
Mon Dec 9 12:45:48 EST 1996
The AWK reference card included here requires a modern version of troff
(ditroff). GNU Troff (groff) is known to work.
If your troff is able to produce Postscript but does not know how to
properly use the macros from `colors' file then try to uncomment in
Makefile the defintion which sets AWKCARD to awkcard.nc (no colors).
This will definitely require changes to the TROFF macro and you have to
ensure that the tbl preprocessor is called. For example, the following
modifications on NeXT:
TROFF = tbl
SEDME = ptroff -t | sed -e \
"s/^level0 restore/level0 restore flashme 100 72 moveto\
(Copyright `date`, FSF, Inc. (all)) show/" \
-e "s/^\/level0 save def/\/level0 save def 30 -48 translate/"
will produce a correctly formatted, albeit monochromatic, reference card.
+49
View File
@@ -0,0 +1,49 @@
.\" AWK Reference Card --- Arnold Robbins, [email protected]
.\" This file is the Ad block (included in cover)
.\"
.\" Copyright (C) 1996, 98 Free Software Foundation, Inc.
.\"
.\" Permission is granted to make and distribute verbatim copies of
.\" this reference card provided the copyright notice and this permission
.\" notice are preserved on all copies.
.\"
.\" Permission is granted to process this file through troff and print the
.\" results, provided the printed document carries copying permission
.\" notice identical to this one except for the removal of this paragraph
.\" (this paragraph not being relevant to the printed reference card).
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" reference card under the conditions for verbatim copying, provided that
.\" the entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Permission is granted to copy and distribute translations of this
.\" reference card into another language, under the above conditions for
.\" modified versions, except that this permission notice may be stated in
.\" a translation approved by the Foundation.
.\"
.ft HB
.ps 10
.vs 12
.ES
.nf
.ce 7
\*(CBFree Software Foundation, Inc.
.ft H
59 Temple Place \(em Suite 330
Boston, MA 02111-1307 USA
Phone: +1-617-542-5942
Fax (including Japan): +1-617-542-2652
E-mail: [email protected]
URL: http://www.gnu.org
.ce 7
.ft HB
\*(CGFree Software
Source Distributions on CD-ROM
Deluxe Distributions
Emacs, Gawk, Make and GDB Manuals
Emacs and GDB References\*(CX
.EB "\f(HBOTHER FSF PRODUCTS:\*(FR"
.ps
.vs
File diff suppressed because it is too large. Load diff
+150
View File
@@ -0,0 +1,150 @@
Draft for ACM SIGPLAN Patterns (Language Trends)
1996
Why GAWK for AI?
Ronald P. Loui
Most people are surprised when I tell them what language we use in our
undergraduate AI programming class. That's understandable. We use
GAWK. GAWK, Gnu's version of Aho, Weinberger, and Kernighan's old
pattern scanning language isn't even viewed as a programming language by
most people. Like PERL and TCL, most prefer to view it as a "scripting
language." It has no objects; it is not functional; it does no built-in
logic programming. Their surprise turns to puzzlement when I confide
that (a) while the students are allowed to use any language they want;
(b) with a single exception, the best work consistently results from
those working in GAWK. (footnote: The exception was a PASCAL
programmer who is now an NSF graduate fellow getting a Ph.D. in
mathematics at Harvard.) Programmers in C, C++, and LISP haven't even
been close (we have not seen work in PROLOG or JAVA).
Why GAWK?
There are some quick answers that have to do with the pragmatics of
undergraduate programming. Then there are more instructive answers that
might be valuable to those who debate programming paradigms or to those
who study the history of AI languages. And there are some deep
philosophical answers that expose the nature of reasoning and symbolic
AI. I think the answers, especially the last ones, can be even more
surprising than the observed effectiveness of GAWK for AI.
First it must be confessed that PERL programmers can cobble together AI
projects well, too. Most of GAWK's attractiveness is reproduced in
PERL, and the success of PERL forebodes some of the success of GAWK.
Both are powerful string-processing languages that allow the programmer
to exploit many of the features of a UNIX environment. Both provide
powerful constructions for manipulating a wide variety of data in
reasonably efficient ways. Both are interpreted, which can reduce
development time. Both have short learning curves. The GAWK manual can
be consumed in a single lab session and the language can be mastered by
the next morning by the average student. GAWK's automatic
initialization, implicit coercion, I/O support and lack of pointers
forgive many of the mistakes that young programmers are likely to make.
Those who have seen C but not mastered it are happy to see that GAWK
retains some of the same sensibilities while adding what must be
regarded as spoonsful of syntactic sugar. Some will argue that
PERL has superior functionality, but for quick AI applications, the
additional functionality is rarely missed. In fact, PERL's terse syntax
is not friendly when regular expressions begin to proliferate and
strings contain fragments of HTML, WWW addresses, or shell commands.
PERL provides new ways of doing things, but not necessarily ways of
doing new things.
In the end, despite minor difference, both PERL and GAWK minimize
programmer time. Neither really provides the programmer the setting in
which to worry about minimizing run-time.
There are further simple answers. Probably the best is the fact that
increasingly, undergraduate AI programming is involving the Web. Oren
Etzioni (University of Washington, Seattle) has for a while been arguing
that the "softbot" is replacing the mechanical engineers' robot as the
most glamorous AI testbed. If the artifact whose behavior needs to be
controlled in an intelligent way is the software agent, then a language
that is well-suited to controlling the software environment is the
appropriate language. That would imply a scripting language. If the
robot is KAREL, then the right language is "turn left; turn right." If
the robot is Netscape, then the right language is something that can
generate "netscape -remote 'openURL(http://cs.wustl.edu/~loui)'" with
elan.
Of course, there are deeper answers. Jon Bentley found two pearls in
GAWK: its regular expressions and its associative arrays. GAWK asks
the programmer to use the file system for data organization and the
operating system for debugging tools and subroutine libraries. There is
no issue of user-interface. This forces the programmer to return to the
question of what the program does, not how it looks. There is no time
spent programming a binsort when the data can be shipped to /bin/sort
in no time. (footnote: I am reminded of my IBM colleague Ben Grosof's
advice for Palo Alto: Don't worry about whether it's highway 101 or 280.
Don't worry if you have to head south for an entrance to go north. Just
get on the highway as quickly as possible.)
There are some similarities between GAWK and LISP that are illuminating.
Both provided a powerful uniform data structure (the associative array
implemented as a hash table for GAWK and the S-expression, or list of
lists, for LISP). Both were well-supported in their environments (GAWK
being a child of UNIX, and LISP being the heart of lisp machines). Both
have trivial syntax and find their power in the programmer's willingness
to use the simple blocks to build a complex approach.
Deeper still, is the nature of AI programming. AI is about
functionality and exploratory programming. It is about bottom-up design
and the building of ambitions as greater behaviors can be demonstrated.
Woe be to the top-down AI programmer who finds that the bottom-level
refinements, "this subroutine parses the sentence," cannot actually be
implemented. Woe be to the programmer who perfects the data structures
for that heapsort when the whole approach to the high-level problem
needs to be rethought, and the code is sent to the junkheap the next day.
AI programming requires high-level thinking. There have always been a few
gifted programmers who can write high-level programs in assembly language.
Most however need the ambient abstraction to have a higher floor.
Now for the surprising philosophical answers. First, AI has discovered
that brute-force combinatorics, as an approach to generating intelligent
behavior, does not often provide the solution. Chess, neural nets, and
genetic programming show the limits of brute computation. The
alternative is clever program organization. (footnote: One might add
that the former are the AI approaches that work, but that is easily
dismissed: those are the AI approaches that work in general, precisely
because cleverness is problem-specific.) So AI programmers always want
to maximize the content of their program, not optimize the efficiency
of an approach. They want minds, not insects. Instead of enumerating
large search spaces, they define ways of reducing search, ways of
bringing different knowledge to the task. A language that maximizes
what the programmer can attempt rather than one that provides tremendous
control over how to attempt it, will be the AI choice in the end.
Second, inference is merely the expansion of notation. No matter whether
the logic that underlies an AI program is fuzzy, probabilistic, deontic,
defeasible, or deductive, the logic merely defines how strings can be
transformed into other strings. A language that provides the best
support for string processing in the end provides the best support for
logic, for the exploration of various logics, and for most forms of
symbolic processing that AI might choose to call "reasoning" instead of
"logic." The implication is that PROLOG, which saves the AI programmer
from having to write a unifier, saves perhaps two dozen lines of GAWK
code at the expense of strongly biasing the logic and representational
expressiveness of any approach.
I view these last two points as news not only to the programming language
community, but also to much of the AI community that has not reflected on
the past decade's lessons.
In the puny language, GAWK, which Aho, Weinberger, and Kernighan thought
not much more important than grep or sed, I find lessons in AI's trends,
AI's history, and the foundations of AI. What I have found not only
surprising but also hopeful, is that when I have approached the AI
people who still enjoy programming, some of them are not the least bit
surprised.
R. Loui ([email protected]) is Associate Professor of Computer Science,
at Washington University in St. Louis. He has published in AI Journal,
Computational Intelligence, ACM SIGART, AI Magazine, AI and Law, the ACM
Computing Surveys Symposium on AI, Cognitive Science, Minds and
Machines, Journal of Philosophy, and is on this year's program
committees for AAAI (National AI conference) and KR (Knowledge
Representation and Reasoning).
+37
View File
@@ -0,0 +1,37 @@
.\" AWK Reference Card --- Arnold Robbins, [email protected]
.\" cardfonts --- this file sets the fonts to use for the reference card
.\"
.\" Copyright (C) 1996 Free Software Foundation, Inc.
.\"
.\" Permission is granted to make and distribute verbatim copies of
.\" this reference card provided the copyright notice and this permission
.\" notice are preserved on all copies.
.\"
.\" Permission is granted to process this file through troff and print the
.\" results, provided the printed document carries copying permission
.\" notice identical to this one except for the removal of this paragraph
.\" (this paragraph not being relevant to the printed reference card).
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" reference card under the conditions for verbatim copying, provided that
.\" the entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Permission is granted to copy and distribute translations of this
.\" reference card into another language, under the above conditions for
.\" modified versions, except that this permission notice may be stated in
.\" a translation approved by the Foundation.
.\"
.ig
Strings for inline font change.
FR - font roman
FI - font italic
FC - font courier
..
.ds FR \fR
.ds FI \fI
.ds FC \f(CB
.ds RN Times Roman
.ds IN Times Italic
.ds CN Courier Bold
.ds AM \fIThe GNU Awk User's Guide\fP
Loaded 100 of 6097 files, more files were not shown because too many files have changed in this diff. Show more