Commit graph

104217 commits

Author SHA1 Message Date
Ruslan Ermilov 839693c44f Deal with unsafe tab characters. 2004-07-02 19:55:26 +00:00
Ruslan Ermilov 149e2d2348 Fixed comments. 2004-07-02 19:54:39 +00:00
Brooks Davis f93dfa28b1 Don't announce the ethernet address when it's 00:00:00:00:00:00. It's
not of any interest.  This primairly happens when vlan(4) interfaces are
created.
2004-07-02 19:44:59 +00:00
Pawel Jakub Dawidek e1237b285b Introduce GEOM_LABEL class.
This class is used for detecting volume labels on file systems:
UFS, MSDOSFS (FAT12, FAT16, FAT32) and ISO9660.
It also provide native labelization (there is no need for file system).

g_label_ufs.c is based on geom_vol_ffs from Gordon Tetlow.
g_label_msdos.c and g_label_iso9660.c are probably hacks, I just found
where volume labels are stored and I use those offsets here,
but with this class it should be easy to do it as it should be done by
someone who know how.
Implementing volume labels detection for other file systems also should
be trivial.

New providers are created in those directories:
/dev/ufs/ (UFS1, UFS2)
/dev/msdosfs/ (FAT12, FAT16, FAT32)
/dev/iso9660/ (ISO9660)
/dev/label/ (native labels, configured with glabel(8))

Manual page cleanups and some comments inside were submitted by
Simon L. Nielsen, who was, as always, very helpful. Thanks!
2004-07-02 19:40:36 +00:00
Ruslan Ermilov 11c798a4de mdoc(7): Fixed list types. 2004-07-02 19:37:24 +00:00
Nate Lawson 99eb9c8b3b Get rid of the strict aliasing error by retrieving the ECDT via a table
header pointer and then casting it to the ecdt pointer.  This fixes the
-O2 build.  I'm unsure what changed recently to reveal this error since
this code has been unchanged for months.
2004-07-02 19:17:27 +00:00
John Baldwin bf0acc273a - Change mi_switch() and sched_switch() to accept an optional thread to
switch to.  If a non-NULL thread pointer is passed in, then the CPU will
  switch to that thread directly rather than calling choosethread() to pick
  a thread to choose to.
- Make sched_switch() aware of idle threads and know to do
  TD_SET_CAN_RUN() instead of sticking them on the run queue rather than
  requiring all callers of mi_switch() to know to do this if they can be
  called from an idlethread.
- Move constants for arguments to mi_switch() and thread_single() out of
  the middle of the function prototypes and up above into their own
  section.
2004-07-02 19:09:50 +00:00
Ruslan Ermilov d37ea99837 Removed trailing whitespace. 2004-07-02 19:07:33 +00:00
Arun Sharma 8c21c19305 Bump up the date and add spaces around commas. Thanks to ru@ for noticing. 2004-07-02 18:39:15 +00:00
Ruslan Ermilov f0ccc7f972 Deal with harmful leading whitespace. 2004-07-02 18:37:52 +00:00
Philip Paeps bab58ce907 Fix the '\' next to lshift for users of Belgian keyboards.
Submitted by:	Glenn Matthys <glenn@opengate.be>
Approved by:	njl
2004-07-02 18:19:01 +00:00
Ruslan Ermilov 4b6c8c6498 Fixed spelling of the document date. 2004-07-02 18:00:03 +00:00
Dag-Erling Smørgrav 6063af3d9e Explain that -O2 is supported, but known to expose bugs in ppp(8). 2004-07-02 17:08:39 +00:00
Dag-Erling Smørgrav dca80b3c07 We support -O2 now. 2004-07-02 17:06:19 +00:00
Ruslan Ermilov 26b6c45a92 Markup tidying. 2004-07-02 16:45:56 +00:00
Ruslan Ermilov 0fe4fb09bc Bump document date on behalf of the previous change. 2004-07-02 16:19:28 +00:00
Scott Long 2da554d8f2 Small grammar fix. 2004-07-02 15:52:44 +00:00
Maxim Konovalov a65cfc98ff Document net.inet.ip.process_options sysctl.
Improved by:	ru
Reviewed by:	andre
2004-07-02 15:47:47 +00:00
Alexander Leidinger a92c890fd1 Implement SNDCTL_DSP_SETDUPLEX. This may fix sound apps which want to
use full duplex mode.

Approved by:	matk
2004-07-02 15:31:44 +00:00
David Xu a5a5d84784 Use %esi to store next ucp pointer. Mark end of stack by
setting %ebp to zero, this avoids new gdb to dump a weird
backtrace.
2004-07-02 14:19:44 +00:00
Warner Losh 828a0b7110 Disable native ata support for now, too much breaks 2004-07-02 13:42:36 +00:00
Denis Peplin fddfe13d94 Fix <small> tags 2004-07-02 13:13:20 +00:00
Oliver Eikemeier 406e58e038 manlint
Obtained from:	ru
2004-07-02 12:34:13 +00:00
Oliver Eikemeier f695b5ceca New variable `.MAKEFILE_LIST', useful for tracing, debugging and dependency tracking.
Use
  make -V .MAKEFILE_LIST | tr \  \\n | awk '$0==".." {l--; next} {l++; printf "%*s%s\n", l, " ", $0}'
to print a tree of all included makefiles.

Approved by:	joerg
MFC after:	1 week
2004-07-02 12:30:28 +00:00
Max Laier 7929aa036c Bring in the first chunk of altq driver modifications. This covers the
following drivers: bfe(4), em(4), fxp(4), lnc(4), tun(4), de(4) rl(4),
sis(4) and xl(4)

More patches are pending on: http://peoples.freebsd.org/~mlaier/ Please take
a look and tell me if "your" driver is missing, so I can fix this.

Tested-by:	many
No-objection:	-current, -net
2004-07-02 12:16:02 +00:00
Tim J. Robbins 5a3af8fce5 Hook strnlen.c up to the build - the i18n patch uses it. 2004-07-02 11:09:55 +00:00
Tim J. Robbins f4b1cb3447 Add support for multi-byte character sets.
Obtained from:	Mitsuru Chinen (IBM) via The Fedora Project
2004-07-02 11:07:42 +00:00
Tim J. Robbins a1c82d5daf Update build infrastructure for sort from GNU coreutils 5.2.1. 2004-07-02 09:34:37 +00:00
Tim J. Robbins b2f0b413cb Resolve conflicts. 2004-07-02 09:27:09 +00:00
David Xu f3b929bf42 Allow ptrace to deal with lwpid.
Reviewed by: marcel
2004-07-02 09:19:22 +00:00
Tim J. Robbins 0f69c78ac2 This commit was generated by cvs2svn to compensate for changes in r131447,
which included commits to RCS files with non-trunk default branches.
2004-07-02 09:18:31 +00:00
Tim J. Robbins 38f6f12285 Import of GNU sort from coreutils 5.2.1 (trimmed) 2004-07-02 09:18:31 +00:00
Ruslan Ermilov 6e341a6d9c Markup overhaul and minor word smithing. 2004-07-02 08:52:09 +00:00
Mark Santcroos bde5ba82c2 Local change: Allow access to the field if it is within the region
size rounded up to a multiple of the access byte width.  This overcomes
"off-by-one" programming errors in the AML often found in Toshiba
laptops.
2004-07-02 08:38:55 +00:00
Mark Santcroos 2e8f631a0d Local diff: allow use of the disassembler. 2004-07-02 08:37:56 +00:00
Mark Santcroos 727fde6f33 Unchanged files that are off the vendor branch. 2004-07-02 08:34:19 +00:00
Mark Santcroos 648474d5f4 This commit was generated by cvs2svn to compensate for changes in r131440,
which included commits to RCS files with non-trunk default branches.
2004-07-02 08:14:36 +00:00
Mark Santcroos 671d52d8aa Vendor import of Intel ACPI-CA 20040527 2004-07-02 08:14:36 +00:00
Alfred Perlstein 95f004dccd We allocate an array of pointers to the global file table while
not holding the filelist_lock.  This means the filelist can change
size while allocating.  Detect this race and retry the allocation.
2004-07-02 07:40:10 +00:00
Ruslan Ermilov 87757985aa Bring this manpage more up-to-date with the current code.
Submitted by:	Gleb Smirnoff
Reviewed by:	julian, ru
2004-07-02 06:05:04 +00:00
John Baldwin a3a7017895 Tidy up uprof locking. Mostly the fields are protected by both the proc
lock and sched_lock so they can be read with either lock held.  Document
the locking as well.  The one remaining bogosity is that pr_addr and
pr_ticks should be per-thread but profiling of multithreaded apps is
currently undefined.
2004-07-02 03:50:48 +00:00
John Baldwin 16f9f20579 - Assert that any process that has statclock called on it has both a
stats structure and a vmspace as this should always be true rather
  than checking the always true condition in an if statement.
- Remove never-false check: if ((ru = &pstats->p_ru) != NULL)
- Remove pstats variable that is only used once and inline its one use
  instead.
2004-07-02 03:48:09 +00:00
Scott Long 3320b0b2e5 Allocate s/g segments in the tag rather than on the stack. 2004-07-02 03:47:28 +00:00
John Baldwin d202e0cccc - Don't use a variable to point to the user area that we only use once.
Just use p2->p_uarea directly instead.
- Remove an old and mostly bogus assertion regarding p2->p_sigacts.
- Use RANGEOF macro ala fork1() to clean up bzero/bcopy of p_stats.
2004-07-02 03:45:07 +00:00
John Baldwin b68c582ef8 Add support for the VIA Apollo KT400/400A/600 AGP host bridges which use
the VIA v3 register offsets.

PR:		68545
Submitted by:	Ariff Abdullah <skywizard@mybsd.org.my>
2004-07-02 03:39:33 +00:00
Marcel Moolenaar cd28f17da2 Change the thread ID (thr_id_t) used for 1:1 threading from being a
pointer to the corresponding struct thread to the thread ID (lwpid_t)
assigned to that thread. The primary reason for this change is that
libthr now internally uses the same ID as the debugger and the kernel
when referencing to a kernel thread. This allows us to implement the
support for debugging without additional translations and/or mappings.

To preserve the ABI, the 1:1 threading syscalls, including the umtx
locking API have not been changed to work on a lwpid_t. Instead the
1:1 threading syscalls operate on long and the umtx locking API has
not been changed except for the contested bit. Previously this was
the least significant bit. Now it's the most significant bit. Since
the contested bit should not be tested by userland, this change is
not expected to be visible. Just to be sure, UMTX_CONTESTED has been
removed from <sys/umtx.h>.

Reviewed by: mtm@
ABI preservation tested on: i386, ia64
2004-07-02 00:40:07 +00:00
Marcel Moolenaar c2589102b0 Regen. 2004-07-02 00:38:56 +00:00
Oliver Eikemeier 51a153627b Bump __FreeBSD_version for package tools revision 20040629 2004-07-02 00:01:34 +00:00
Don Lewis e06500dde5 When shutting down the syncer kernel thread, first tell it to run
faster and iterate to over its work list a few times in an attempt
to empty the work list before the syncer terminates.  This leaves
fewer dirty blocks to be written at the "syncing disks" stage and
keeps the the "giving up on N buffers" problem from being triggered
by the presence of a large soft updates work list at system shutdown
time.  The downside is that the syncer takes noticeably longer to
terminate.

Tested by:	"Arjan van Leeuwen" <avleeuwen AT piwebs DOT com>
Approved by:	mckusick
2004-07-01 23:59:19 +00:00
Jayanth Vijayaraghavan a0445c2e2c On receiving 3 duplicate acknowledgements, SACK recovery was not being entered correctly.
Fix this problem by separating out the SACK and the newreno cases. Also, check
if we are in FASTRECOVERY for the sack case and if so, turn off dupacks.

Fix an issue where the congestion window was not being incremented by ssthresh.

Thanks to Mohan Srinivasan for finding this problem.
2004-07-01 23:34:06 +00:00