]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
22 years agoThis commit was generated by cvs2svn to compensate for changes in r87866,
sheldonh [Fri, 14 Dec 2001 11:06:03 +0000 (11:06 +0000)]
This commit was generated by cvs2svn to compensate for changes in r87866,
which included commits to RCS files with non-trunk default branches.

22 years agoImport smbfs-1.4.1.
sheldonh [Fri, 14 Dec 2001 11:06:03 +0000 (11:06 +0000)]
Import smbfs-1.4.1.

This is Boris Popov's SMB/CIFS file system implementation for FreeBSD.

Obtained from: Boris Popov via ftp://ftp.butya.kz/pub/smbfs/

22 years agoAdd disk I/O scheduling for positively niced processes.
mckusick [Fri, 14 Dec 2001 10:49:15 +0000 (10:49 +0000)]
Add disk I/O scheduling for positively niced processes.
When a positively niced process requests a disk I/O, make
it wait for its nice value of ticks before scheduling its
I/O request if there are any other processes with I/O
requests in the disk queue. For all the gory details, see
the ``Running fsck in the Background'' paper in the Usenix
BSDCon 2002 Conference Proceedings, pages 55-64.

22 years agomdoc(7) police overhaul.
ru [Fri, 14 Dec 2001 10:18:15 +0000 (10:18 +0000)]
mdoc(7) police overhaul.

22 years agomdoc(7) police overhaul.
ru [Fri, 14 Dec 2001 09:48:03 +0000 (09:48 +0000)]
mdoc(7) police overhaul.

22 years agoBump configvers for different handling of maxusers.
peter [Fri, 14 Dec 2001 09:40:01 +0000 (09:40 +0000)]
Bump configvers for different handling of maxusers.

22 years agoProper fix for old config setting maxusers to 8.
peter [Fri, 14 Dec 2001 09:39:29 +0000 (09:39 +0000)]
Proper fix for old config setting maxusers to 8.

22 years agoFixed prototype.
ru [Fri, 14 Dec 2001 09:25:11 +0000 (09:25 +0000)]
Fixed prototype.

Reviewed by: davidc

22 years agomdoc(7) police: don't xref to itself.
ru [Fri, 14 Dec 2001 09:22:34 +0000 (09:22 +0000)]
mdoc(7) police: don't xref to itself.

22 years agomdoc(7) police: markup, grammar and spelling nits.
ru [Fri, 14 Dec 2001 09:11:13 +0000 (09:11 +0000)]
mdoc(7) police: markup, grammar and spelling nits.

Reviewed by: davidc

22 years agomdoc(7) police: kill the undead whitespace at EOL.
ru [Fri, 14 Dec 2001 09:09:21 +0000 (09:09 +0000)]
mdoc(7) police: kill the undead whitespace at EOL.

22 years agomdoc(7) police: remove hard sentence break which I didn't
ru [Fri, 14 Dec 2001 09:06:11 +0000 (09:06 +0000)]
mdoc(7) police: remove hard sentence break which I didn't
submit to Jonathan Mini.

22 years agoWork around the bugfeature of test(1).
ru [Fri, 14 Dec 2001 08:58:21 +0000 (08:58 +0000)]
Work around the bugfeature of test(1).

PR: bin/32822

22 years agoA slightly different version of the vlrureclaim fix.
dillon [Fri, 14 Dec 2001 07:18:31 +0000 (07:18 +0000)]
A slightly different version of the vlrureclaim fix.

Reported by: peter, ps

22 years agoRemove printf's on mbuf/cluster allocation failures. There are now
luigi [Fri, 14 Dec 2001 05:56:35 +0000 (05:56 +0000)]
Remove printf's on mbuf/cluster allocation failures. There are now
equivalent and less dangerous (rate limited) messages in
the mbuf allocation code.

MFC after: 3 days

22 years agoAdd disk I/O scheduling for positively niced processes.
mckusick [Fri, 14 Dec 2001 05:50:44 +0000 (05:50 +0000)]
Add disk I/O scheduling for positively niced processes.
When a positively niced process requests a disk I/O, make
it wait for its nice value of ticks before scheduling its
I/O request if there are any other processes with I/O
requests in the disk queue. For all the gory details, see
the ``Running fsck in the Background'' paper in the Usenix
BSDCon 2002 Conference Proceedings, pages 55-64.

22 years agoMoved the updating of if_ibytes from ether_demux() to ether_input() to fix
dg [Fri, 14 Dec 2001 04:41:07 +0000 (04:41 +0000)]
Moved the updating of if_ibytes from ether_demux() to ether_input() to fix
a bug where the interface input bytes count wasn't updated when bridging
is enabled.

MFC after: 3 days

22 years agoWhitespace and capitalization fixes to sync with RELENG_4.
bmah [Fri, 14 Dec 2001 04:29:57 +0000 (04:29 +0000)]
Whitespace and capitalization fixes to sync with RELENG_4.

22 years agoToo many people are compiling kernels with maxusers set to 0 without the new
dillon [Fri, 14 Dec 2001 04:01:08 +0000 (04:01 +0000)]
Too many people are compiling kernels with maxusers set to 0 without the new
config.  Hack the kernel to force auto-sizing if the old config is used.

22 years agoftp(1) uses passive mode by default now, therefore remove
mikeh [Fri, 14 Dec 2001 02:08:23 +0000 (02:08 +0000)]
ftp(1) uses passive mode by default now, therefore remove
FTP_PASSIVE_MODE=YES.

Pointed out by: billf

22 years agoThis fixes a large number of bugs in our NFS client side code. A recent
dillon [Fri, 14 Dec 2001 01:16:57 +0000 (01:16 +0000)]
This fixes a large number of bugs in our NFS client side code.  A recent
commit by Kirk also fixed a softupdates bug that could easily be triggered
by server side NFS.

* An edge case with shared R+W mmap()'s and truncate whereby
  the system would inappropriately clear the dirty bits on
  still-dirty data.  (applicable to all filesystems)

  THIS FIX TEMPORARILY DISABLED PENDING FURTHER TESTING.
  see vm/vm_page.c line 1641

* The straddle case for VM pages and buffer cache buffers when
  truncating.  (applicable to NFS client side)

* Possible SMP database corruption due to vm_pager_unmap_page()
  not clearing the TLB for the other cpu's.  (applicable to NFS
  client side but could effect all filesystems).  Note: not
  considered serious since the corruption occurs beyond the file
  EOF.

* When flusing a dirty buffer due to B_CACHE getting cleared,
  we were accidently setting B_CACHE again (that is, bwrite() sets
  B_CACHE), when we really want it to stay clear after the write
  is complete.  This resulted in a corrupt buffer.  (applicable
  to all filesystems but probably only triggered by NFS)

* We have to call vtruncbuf() when ftruncate()ing to remove
  any buffer cache buffers.  This is still tentitive, I may
  be able to remove it due to the second bug fix.  (applicable
  to NFS client side)

* vnode_pager_setsize() race against nfs_vinvalbuf()... we have
  to set n_size before calling nfs_vinvalbuf or the NFS code
  may recursively vnode_pager_setsize() to the original value
  before the truncate.  This is what was causing the user mmap
  bus faults in the nfs tester program.  (applicable to NFS
  client side)

* Fix to softupdates (see ufs/ffs/ffs_inode.c 1.73, commit made
  by Kirk).

Testing program written by: Avadis Tevanian, Jr.
Testing program supplied by: jkh / Apple (see Dec2001 posting to freebsd-hackers with Subject 'NFS: How to make FreeBS fall on its face in one easy step')
MFC after: 1 week

22 years agoNew release note: lukemftp.
bmah [Fri, 14 Dec 2001 01:14:41 +0000 (01:14 +0000)]
New release note:  lukemftp.

22 years agoAdd a '-l' flag to show CPU load for the various states, similar to what
luigi [Fri, 14 Dec 2001 01:10:50 +0000 (01:10 +0000)]
Add a '-l' flag to show CPU load for the various states, similar to what
"top" does (thinking of it, i could have as well used the same format line!)

This only makes sense when "-w" option is also specified, because the
load is computed as the difference between subsequent samples.

I think this (and the "-d" feature which shows differences in the
network statistics counts) would also make sense in the standard
vmstat and netstat.

22 years agoAdd maxusers auto-sizing description to NOTES file for -current
dillon [Fri, 14 Dec 2001 01:01:20 +0000 (01:01 +0000)]
Add maxusers auto-sizing description to NOTES file for -current

22 years agoo Wording fix in comment.
rwatson [Fri, 14 Dec 2001 00:38:01 +0000 (00:38 +0000)]
o Wording fix in comment.

Submitted by: tanimura via p4

22 years agoMinimize the time necessary to suspend operations on a filesystem
mckusick [Fri, 14 Dec 2001 00:15:06 +0000 (00:15 +0000)]
Minimize the time necessary to suspend operations on a filesystem
when taking a snapshot. The two time consuming operations are
scanning all the filesystem bitmaps to determine which blocks
are in use and scanning all the other snapshots so as to be able
to expunge their blocks from the view of the current snapshot.
The bitmap scanning is broken into two passes. Before suspending
the filesystem all bitmaps are scanned. After the suspension,
those bitmaps that changed after being scanned the first time
are rescanned. Typically there are few bitmaps that need to be
rescanned. The expunging of other snapshots is now done after
the suspension is released by observing that we can easily
identify any blocks that were allocated to them after the
suspension (they will be maked as `not needing to be copied'
in the just created snapshot). For all the gory details, see
the ``Running fsck in the Background'' paper in the Usenix
BSDCon 2002 Conference Proceedings, pages 55-64.

22 years agoConvert C++ style comments to proper C ones.
obrien [Thu, 13 Dec 2001 23:48:34 +0000 (23:48 +0000)]
Convert C++ style comments to proper C ones.
Clean up C comments just a tad.
Fix ID's.

22 years agoConnect lukemftp to the build as the default ftp client. Lukemftp
mikeh [Thu, 13 Dec 2001 23:46:44 +0000 (23:46 +0000)]
Connect lukemftp to the build as the default ftp client. Lukemftp
supports most of the previous features of FreeBSD ftp, but has been
better maintained and includes new features.

22 years agoIf we were called to allocate a vnode that is not associated with a
peter [Thu, 13 Dec 2001 23:46:01 +0000 (23:46 +0000)]
If we were called to allocate a vnode that is not associated with a
mount point, do not dereference the NULL mp argument.

22 years agoRemove stale prototype for sonewconn3().
green [Thu, 13 Dec 2001 22:16:54 +0000 (22:16 +0000)]
Remove stale prototype for sonewconn3().

22 years agoo Back out portions of 1.50 and 1.47, eliminating sonewconn3() and
rwatson [Thu, 13 Dec 2001 22:09:37 +0000 (22:09 +0000)]
o Back out portions of 1.50 and 1.47, eliminating sonewconn3() and
  always deriving the credential for a newly accepted connection from
  the listen socket.  Previously, the selection of the credential
  depended on the protocol: UNIX domain sockets would use the
  connecting process's credential, and protocols supporting a creation
  of the socket before the receiving end called accept() would use
  the listening socket.  After this change, it is always the listening
  credential.

Reviewed by: green

22 years agoNew release notes: boot loader -p for i386, maxusers autosizing,
bmah [Thu, 13 Dec 2001 21:18:56 +0000 (21:18 +0000)]
New release notes:  boot loader -p for i386, maxusers autosizing,
burncd(8) for VCDs/SVCDs, newfs(8) new 16K/2K block/frag defaults,
watch(8) -f.

Updated release note: sis(4) VAN and note its MFC done a long time
ago.

22 years agoAlso fix cases when thousands separator should be put before number. For
phantom [Thu, 13 Dec 2001 21:05:27 +0000 (21:05 +0000)]
Also fix cases when thousands separator should be put before number. For
example before for grouping sequence "\003\003" number 123456 was formated
as ",123,456", now "123,456".

22 years agoLimit maxprocperuid to 9/10 maxproc, and limit maxfilesperproc to 9/10
silby [Thu, 13 Dec 2001 20:00:45 +0000 (20:00 +0000)]
Limit maxprocperuid to 9/10 maxproc, and limit maxfilesperproc to 9/10
maxfiles.  This should make local resource exhaustion attacks easier
to handle with a non-tweaked setup.

MFC after: 3 days

22 years agoUse C comments instead of C++ comments.
jhb [Thu, 13 Dec 2001 19:54:12 +0000 (19:54 +0000)]
Use C comments instead of C++ comments.

Reported by: gcc30

22 years agoRespect locale while handling of \' flag.
phantom [Thu, 13 Dec 2001 19:45:41 +0000 (19:45 +0000)]
Respect locale while handling of \' flag.

In original version grouping was hardcoded. It assumed that thousands
separator should be inserted to separate each 3 numbers. I.e. grouping
string "\003" was assumed for all cases. In correct case (per POSIX)
vfprintf should respect locale defined non-monetary (LC_NUMERIC
category) grouping sequence.

Also simplify thousands_sep handling.

22 years agoUUCP is gone from base.
markm [Thu, 13 Dec 2001 18:27:08 +0000 (18:27 +0000)]
UUCP is gone from base.

22 years agoFix missing semi-colons on some entity references.
bmah [Thu, 13 Dec 2001 18:12:12 +0000 (18:12 +0000)]
Fix missing semi-colons on some entity references.

22 years agoFix style bugs (mostly remove 'extern' from function prototypes)
phantom [Thu, 13 Dec 2001 17:22:17 +0000 (17:22 +0000)]
Fix style bugs (mostly remove 'extern' from function prototypes)

Inspired by: conversation with bde

22 years ago* remove reference to m68k-dependent sources
phantom [Thu, 13 Dec 2001 17:18:26 +0000 (17:18 +0000)]
* remove reference to m68k-dependent sources
* fix comment

22 years agoMove NO_WERROR from CROSSENV to BMAKE. In CROSSENV it disables it for
imp [Thu, 13 Dec 2001 17:00:59 +0000 (17:00 +0000)]
Move NO_WERROR from CROSSENV to BMAKE.  In CROSSENV it disables it for
the entire build.  We only want it for the bootstrap process.

Submitted by: ru

22 years agoTone down and remove some obnoxious warnings that are slightly overkill.
jlemon [Thu, 13 Dec 2001 16:13:31 +0000 (16:13 +0000)]
Tone down and remove some obnoxious warnings that are slightly overkill.

22 years agoAdd module dependency on libmchain.
sheldonh [Thu, 13 Dec 2001 13:08:34 +0000 (13:08 +0000)]
Add module dependency on libmchain.

With this change, mounting an smb share (using mount_smb, which is not
yet included in the tree) without any of smbfs, libiconv or libmchain
compiled into the kernel or loaded works.

22 years agoUse ANSI C string contatenation instead of a multi-line string literal.
jhb [Thu, 13 Dec 2001 11:14:28 +0000 (11:14 +0000)]
Use ANSI C string contatenation instead of a multi-line string literal.

Reported by: gcc30

22 years agoComment tokens after #undef <macroname> and #endif.
jhb [Thu, 13 Dec 2001 11:12:30 +0000 (11:12 +0000)]
Comment tokens after #undef <macroname> and #endif.

Reported by: gcc30

22 years agoIf the OID is missing, sysctl(3) returns ENOENT, not EOPNOTSUPP.
ru [Thu, 13 Dec 2001 10:59:00 +0000 (10:59 +0000)]
If the OID is missing, sysctl(3) returns ENOENT, not EOPNOTSUPP.

PR: docs/32793
Submitted by: Hartmut Brandt <brandt@fokus.gmd.de>

22 years agoUse a per-thread variable for keeping state when a thread is processing
jhb [Thu, 13 Dec 2001 10:33:20 +0000 (10:33 +0000)]
Use a per-thread variable for keeping state when a thread is processing
a KTR log entry.  Any KTR requests made while working on an entry are
ignored/discarded to prevent recursion.  This is a better fix for the
hack to futz with the CPU mask and call getnanotime() if KTR_LOCK or
KTR_WITNESS was on.  It also covers the actual formatting of the log entry
including dumping it to the display which the earlier hacks did not.

22 years agoFold example text into 80 column width display.
ru [Thu, 13 Dec 2001 09:13:01 +0000 (09:13 +0000)]
Fold example text into 80 column width display.

PR: docs/32676
Submitted by: Rich Morin <rdm@cfcl.com>

22 years agos/crypt_format/crypt_default/ to match reality.
ru [Thu, 13 Dec 2001 08:05:32 +0000 (08:05 +0000)]
s/crypt_format/crypt_default/ to match reality.

PR: docs/32787
Spotted by: Pete Carah <pete@altadena.net>

22 years agoMFCs noted: isic(4) support for Compaq Microcom 610 ISDN,
bmah [Thu, 13 Dec 2001 06:39:04 +0000 (06:39 +0000)]
MFCs noted:  isic(4) support for Compaq Microcom 610 ISDN,
isdnphone(8) -k.

22 years agoGrrr...TCP bugfixes don't belong in the filesystems section. Toss
bmah [Thu, 13 Dec 2001 06:03:08 +0000 (06:03 +0000)]
Grrr...TCP bugfixes don't belong in the filesystems section.  Toss
another pointy hat into my pile in the corner.

22 years agoMFCs noted: vlan(4) devices now (un)loadable and clonable, ciss
bmah [Thu, 13 Dec 2001 06:01:01 +0000 (06:01 +0000)]
MFCs noted:  vlan(4) devices now (un)loadable and clonable, ciss
driver.

22 years agoWhen a file is partially truncated, we first check to see if the
mckusick [Thu, 13 Dec 2001 05:07:48 +0000 (05:07 +0000)]
When a file is partially truncated, we first check to see if the
new file end will land in the middle of a file hole. Since the last
block of a file must always be allocated, the hole is filled by
allocating a block at that location. If the hole being filled is
a direct block, then the truncation may eventually reduce the
full sized block down to a fragment. When running with soft
updates, it is necessary to FSYNC the file after allocating the
block and before creating the fragment to avoid triggering a
soft updates inconsistency when the block unexpectedly shrinks.

Found by: Matthew Dillon <dillon@apollo.backplane.com>
MFC after: 1 week

22 years agorpc.lockd needs rpc.statd to be running for it to start up properly.
alfred [Thu, 13 Dec 2001 04:21:18 +0000 (04:21 +0000)]
rpc.lockd needs rpc.statd to be running for it to start up properly.
so swap the order.

Also allow rpc.lockd and rpc.statd to be turned on if nfsclient is
enabled.  They are needed to provide client side locking support.

PR: conf/27811

22 years agoUndo one of my last minute changes; move sc_iss up earlier so it
jlemon [Thu, 13 Dec 2001 04:05:26 +0000 (04:05 +0000)]
Undo one of my last minute changes; move sc_iss up earlier so it
is initialized in case we take the T/TCP path.

22 years agoFix up tabs from cut&n&paste.
jlemon [Thu, 13 Dec 2001 04:02:31 +0000 (04:02 +0000)]
Fix up tabs from cut&n&paste.

22 years agoFix up tabs in comments.
jlemon [Thu, 13 Dec 2001 04:02:09 +0000 (04:02 +0000)]
Fix up tabs in comments.

22 years agoMinor style fixes.
jlemon [Thu, 13 Dec 2001 04:01:23 +0000 (04:01 +0000)]
Minor style fixes.

22 years agoMinor style fix.
jlemon [Thu, 13 Dec 2001 04:01:01 +0000 (04:01 +0000)]
Minor style fix.

22 years agoAdd NO_WERROR to the cross building environment so that we do not bail on
imp [Thu, 13 Dec 2001 01:37:45 +0000 (01:37 +0000)]
Add NO_WERROR to the cross building environment so that we do not bail on
warnings generated by earlier versions of the compilers when bootstrapping.

Also a minor formatting nit in the tools list.

Reviewed by: markm

22 years agoAdd missing "the".
imp [Thu, 13 Dec 2001 01:31:41 +0000 (01:31 +0000)]
Add missing "the".

22 years agoAdd two clarifying commnets:
imp [Thu, 13 Dec 2001 01:29:34 +0000 (01:29 +0000)]
Add two clarifying commnets:
1) Note that this file is also by example.
2) Note that you should not use files from /usr/include in
   kernel files.

22 years agoRoll firmware to latest offerings... Fixes a number of f/w related
mjacob [Thu, 13 Dec 2001 00:09:06 +0000 (00:09 +0000)]
Roll firmware to latest offerings... Fixes a number of f/w related
bugs.

MFC after: 1 week

22 years agoRemove to-be-default WARNS?=2
markm [Wed, 12 Dec 2001 23:29:13 +0000 (23:29 +0000)]
Remove to-be-default WARNS?=2

22 years agoMinor style stuff, use __FBSDID(), remove to-be-default WARNS=2.
markm [Wed, 12 Dec 2001 23:23:52 +0000 (23:23 +0000)]
Minor style stuff, use __FBSDID(), remove to-be-default WARNS=2.

22 years agoMove some notes inside the paragraphs for the hardware they describe.
bmah [Wed, 12 Dec 2001 23:22:34 +0000 (23:22 +0000)]
Move some notes inside the paragraphs for the hardware they describe.

22 years agoWARNS=2 partial fix; use NO_WERROR to protect against some hard-to-fix warnings.
markm [Wed, 12 Dec 2001 23:20:16 +0000 (23:20 +0000)]
WARNS=2 partial fix; use NO_WERROR to protect against some hard-to-fix warnings.

Use __FBSDID(), kill register keyword.

22 years agoWARNS=2 fixes, use __FBSDID, remove GCC-specific flags.
markm [Wed, 12 Dec 2001 23:09:07 +0000 (23:09 +0000)]
WARNS=2 fixes, use __FBSDID, remove GCC-specific flags.

22 years agoWARNS=2 fixes, Use __FBSDID(), kill register keyword.
markm [Wed, 12 Dec 2001 23:02:30 +0000 (23:02 +0000)]
WARNS=2 fixes, Use __FBSDID(), kill register keyword.

22 years agoFix the time of an intmax_t calculation; it is unsigned. Also print
markm [Wed, 12 Dec 2001 22:46:56 +0000 (22:46 +0000)]
Fix the time of an intmax_t calculation; it is unsigned. Also print
it with the correct formatting (%ju, not %lld). GCC's -Wformat does
not understand this, so turn on NO_WERROR.

22 years agoCatch up to the globaldata -> pcpu changes.
jhb [Wed, 12 Dec 2001 21:15:30 +0000 (21:15 +0000)]
Catch up to the globaldata -> pcpu changes.

22 years agoPrint the path with the shortest absolute length, rather than
mikeh [Wed, 12 Dec 2001 20:38:07 +0000 (20:38 +0000)]
Print the path with the shortest absolute length, rather than
arbitrarily selecting one.

PR: bin/14361
Approved by: wosch
MFC after: 1 week

22 years agoSync to pccarddevs 1.25
imp [Wed, 12 Dec 2001 20:06:29 +0000 (20:06 +0000)]
Sync to pccarddevs 1.25

22 years agoMove LINKSYS2 to its correct numerical location.
imp [Wed, 12 Dec 2001 20:05:48 +0000 (20:05 +0000)]
Move LINKSYS2 to its correct numerical location.
Add BONDWELL B236 Game Card Joystick.  A PC Card joystick card.

22 years agoMake clear that -w gets an argument. Add __FBSDID and remove unused
charnier [Wed, 12 Dec 2001 18:25:53 +0000 (18:25 +0000)]
Make clear that -w gets an argument. Add __FBSDID and remove unused
#include

22 years agoRemove unused #includes. lex -> Lex, yacc -> Yacc, ... Some .Nm to .Em
charnier [Wed, 12 Dec 2001 18:24:42 +0000 (18:24 +0000)]
Remove unused #includes. lex -> Lex, yacc -> Yacc, ... Some .Nm to .Em
conversions. Sort #includes. Spelling. use errx() instead of err() when
explicit message is given.

22 years agoStart option definition with: ``The following options are available''
charnier [Wed, 12 Dec 2001 18:22:09 +0000 (18:22 +0000)]
Start option definition with: ``The following options are available''
Use .Ev for env variables.
Remove unused #includes, and sort others.

22 years agoAdd DIVA USB mp3 player.
sobomax [Wed, 12 Dec 2001 15:58:23 +0000 (15:58 +0000)]
Add DIVA USB mp3 player.

Submitted by: Olexander Kunytsa <kunia@x-telecom.net>
MFC after: 3 days

22 years agoo Various language and style tweaks.
rwatson [Wed, 12 Dec 2001 15:58:04 +0000 (15:58 +0000)]
o Various language and style tweaks.

Submitted by: ru

22 years agoI'm working on cleaning this up, however it probably won't be done for
mikeh [Wed, 12 Dec 2001 15:42:19 +0000 (15:42 +0000)]
I'm working on cleaning this up, however it probably won't be done for
awhile. Turn off WARNS so that this doesn't break the build when WARNS
is turned on higher up. Also add $FreeBSD$.

22 years ago* style(9)'ify
phantom [Wed, 12 Dec 2001 15:41:08 +0000 (15:41 +0000)]
* style(9)'ify
* add K&R support to langinfo.h

Requested by: bde (2)

22 years agoNew release note: jail sysctl variables moved.
bmah [Wed, 12 Dec 2001 15:31:19 +0000 (15:31 +0000)]
New release note:  jail sysctl variables moved.

Submitted by: arr

22 years agomdoc(7) police: remove the debugging stuff I use to prevent
ru [Wed, 12 Dec 2001 15:15:46 +0000 (15:15 +0000)]
mdoc(7) police: remove the debugging stuff I use to prevent
hyphenation (so that the output could be spell-checked).

22 years agomdoc(7) police: minor markup nits.
ru [Wed, 12 Dec 2001 15:02:32 +0000 (15:02 +0000)]
mdoc(7) police: minor markup nits.

22 years agomdoc(7) police: fix markup, bump document date.
ru [Wed, 12 Dec 2001 14:53:51 +0000 (14:53 +0000)]
mdoc(7) police: fix markup, bump document date.

22 years agomdoc(7) police: kill HSBs, add missing comma.
ru [Wed, 12 Dec 2001 14:41:53 +0000 (14:41 +0000)]
mdoc(7) police: kill HSBs, add missing comma.

22 years agomdoc(7) police: fix markup.
ru [Wed, 12 Dec 2001 14:40:09 +0000 (14:40 +0000)]
mdoc(7) police: fix markup.

22 years agomdoc(7) police: Minor formatting nits and optimizations to rev. 1.34.
ru [Wed, 12 Dec 2001 14:36:28 +0000 (14:36 +0000)]
mdoc(7) police: Minor formatting nits and optimizations to rev. 1.34.

22 years agoMFi386: revision 1.35 (Add support for writing to BIOS disks)
nyan [Wed, 12 Dec 2001 13:47:04 +0000 (13:47 +0000)]
MFi386: revision 1.35 (Add support for writing to BIOS disks)

22 years agomdoc(7) police: use no-break space.
ru [Wed, 12 Dec 2001 13:46:15 +0000 (13:46 +0000)]
mdoc(7) police: use no-break space.

22 years agomdoc(7) police: use no-break space, fix markup.
ru [Wed, 12 Dec 2001 13:45:35 +0000 (13:45 +0000)]
mdoc(7) police: use no-break space, fix markup.

22 years agomdoc(7) police: use non-break space, remove whitespace at EOL, fix markup.
ru [Wed, 12 Dec 2001 13:42:25 +0000 (13:42 +0000)]
mdoc(7) police: use non-break space, remove whitespace at EOL, fix markup.

22 years agoMFi386: revision 1.485 (the previous commit is not completely)
nyan [Wed, 12 Dec 2001 12:27:59 +0000 (12:27 +0000)]
MFi386: revision 1.485 (the previous commit is not completely)

22 years agoSet the script_name_sep variable to a safe value if it is not
roam [Wed, 12 Dec 2001 10:12:20 +0000 (10:12 +0000)]
Set the script_name_sep variable to a safe value if it is not
already set (e.g. a failed/skipped mergemaster run during an upgrade).
Without this, if script_name_sep was not set in the rc.conf files,
local scripts will not be executed on startup or shutdown.

PR: misc/32687
Submitted by: Nicholas Paufler <echofox@discordia.ca> (the problem)
Sheldon Hearn (the idea behind the fix)
Reviewed by: sheldonh
MFC after: 1 week

22 years agoConnect libiconv to the build.
sheldonh [Wed, 12 Dec 2001 10:11:16 +0000 (10:11 +0000)]
Connect libiconv to the build.

Recent work by fjoe and bp has fixed smbfs.  The smbfs module
can now be loaded once libiconv and libmchain have been loaded,
and works!

22 years agoUnix: Just Say No..
wilko [Wed, 12 Dec 2001 09:49:02 +0000 (09:49 +0000)]
Unix: Just Say No..

Obtained from: Jan.Hendriks@Compaq.com
MFC after: 3 days

22 years agoFix select on named pipes without a reader.
alfred [Wed, 12 Dec 2001 09:35:33 +0000 (09:35 +0000)]
Fix select on named pipes without a reader.

PR: kern/19871
MFC after: 1 month

22 years agoMore "const" poisoning, and only use NO_WERROR if we're bootstrapping.
ru [Wed, 12 Dec 2001 08:49:51 +0000 (08:49 +0000)]
More "const" poisoning, and only use NO_WERROR if we're bootstrapping.

22 years agoAxe an unneeded PCPU_SET(spinlocks, NULL) that I missed earlier.
jhb [Wed, 12 Dec 2001 08:07:41 +0000 (08:07 +0000)]
Axe an unneeded PCPU_SET(spinlocks, NULL) that I missed earlier.

22 years agoFix a number of subtle and evil bugs in the libc_r wrapping of sendfile(2).
alfred [Wed, 12 Dec 2001 08:02:24 +0000 (08:02 +0000)]
Fix a number of subtle and evil bugs in the libc_r wrapping of sendfile(2).

o) Since we unwrap the sendfile syscall, check the return value of
   writev(2) to see if it didn't complete all the data.
   Previously if only a partial writev() succeeded, it would proceed
   to sendfile(2) even though the headers weren't completely sent.

o) Properly adjust the "bytes to send" to take into account sendfile(2)'s
   behaviour of counting the headers against the bytes to be transfered
   from the file.

o) Correct the problem where EAGAIN was being returned from _sys_sendfile(2)
   however the wrapper didn't update the 'sent bytes' parameter to take into
   account for it.  This is because sendfile can return EAGAIN even though
   it has actually transfered data.

Special thanks to Justin Erenkrantz <jerenkrantz@apache.org> for bringing
this to my attention and giving an excellent way to reproduce the problem.

PR: kern/32684
MFC After: 1 week