]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
16 years ago- Fix compile if WPI_DEBUG is not defined
Andrew Thompson [Mon, 23 Jun 2008 15:40:56 +0000 (15:40 +0000)]
- Fix compile if WPI_DEBUG is not defined
- Allow debug.wpi to be set from a tunable
- Put ring reset messages back under debug
- Add more debug output around channel init

16 years agoEnsure that KERNBASE is no less than the virtual address -2GB.
Alan Cox [Mon, 23 Jun 2008 15:22:53 +0000 (15:22 +0000)]
Ensure that KERNBASE is no less than the virtual address -2GB.

16 years agoSet the sysctl(8) value in the same shell, not a subshell. This was
Mike Makonnen [Mon, 23 Jun 2008 12:06:35 +0000 (12:06 +0000)]
Set the sysctl(8) value in the same shell, not a subshell. This was
causing calls to netoptions_init() to not properly set a global variable,
which ended up being in the parent shell.

16 years agoTurn execvpe() into an internal libc routine.
Ed Schouten [Mon, 23 Jun 2008 05:22:06 +0000 (05:22 +0000)]
Turn execvpe() into an internal libc routine.

Adding exevpe() has caused some ports to break. Even though execvpe() is
a useful routine, it does not conform to any standards.

This patch is a little bit different from the patch sent to the mailing
list. I forgot to remove execvpe from the Symbol.map (which does not
seem to miscompile libc, though).

Reviewed by: davidxu
Approved by: philip

16 years agoMove the diagnostic output when the rc.subr(8) glue automatically starts a
Mike Makonnen [Mon, 23 Jun 2008 05:09:09 +0000 (05:09 +0000)]
Move the diagnostic output when the rc.subr(8) glue automatically starts a
service behind $rc_quiet. Instead, output a warning if the pre-command
routine or the command itself failed. Arguably, it's more useful to know when
a command failed to start than it is to have an endless list of
"Starting ...." lines[1].

[1] - This change actually helped me to discover a bug in rc.d/{lockd,statd}
      (fixed in r179941) that used to fail silently before.

16 years agoMove a lot of diagnostic output behind $rc_quiet in scripts that
Mike Makonnen [Mon, 23 Jun 2008 04:46:54 +0000 (04:46 +0000)]
Move a lot of diagnostic output behind $rc_quiet in scripts that
implement their own start command.

16 years agoAlign the script more with rc.d/cleanvar (which doesn't output any
Mike Makonnen [Mon, 23 Jun 2008 04:42:58 +0000 (04:42 +0000)]
Align the script more with rc.d/cleanvar (which doesn't output any
diagnostics). Instead, move output behind $rc_quiet.

16 years agoRemove the -v flag from the command line to dumpon(8), and instead print
Mike Makonnen [Mon, 23 Jun 2008 04:39:36 +0000 (04:39 +0000)]
Remove the -v flag from the command line to dumpon(8), and instead print
diagnostic ouput only if the command fails.

16 years agoRemove pointless informational message.
Mike Makonnen [Mon, 23 Jun 2008 04:18:22 +0000 (04:18 +0000)]
Remove pointless informational message.

16 years agoArgh! s/nfs_client_enable/nfsclient_enable/g
Mike Makonnen [Mon, 23 Jun 2008 04:05:39 +0000 (04:05 +0000)]
Argh! s/nfs_client_enable/nfsclient_enable/g

16 years agoDo not print anything unless one of the net/routing options is set.
Mike Makonnen [Mon, 23 Jun 2008 04:00:45 +0000 (04:00 +0000)]
Do not print anything unless one of the net/routing options is set.

16 years agos/daemon processes/local packages/ for consisitency.
Mike Makonnen [Mon, 23 Jun 2008 03:49:30 +0000 (03:49 +0000)]
s/daemon processes/local packages/ for consisitency.

16 years agoAlways create opt_ah.h regardless of KERNBUILDDIR.
Andrew Thompson [Mon, 23 Jun 2008 00:51:34 +0000 (00:51 +0000)]
Always create opt_ah.h regardless of KERNBUILDDIR.

16 years agoAdd exit_delay parameter to control daemon exit delay after signal.
Alexander Motin [Sun, 22 Jun 2008 22:14:02 +0000 (22:14 +0000)]
Add exit_delay parameter to control daemon exit delay after signal.

PR: bin/58696
Submitted by: sp@alkor.ru

16 years agoIf S_IFIFO is passed to mknod(2), invoke kern_mkfifoat(9) to create a
Robert Watson [Sun, 22 Jun 2008 21:51:32 +0000 (21:51 +0000)]
If S_IFIFO is passed to mknod(2), invoke kern_mkfifoat(9) to create a
FIFO, as required by SUSv3.  No specific privilege check is performed
in this case, as FIFOs may be created by unprivileged processes
(subject to the normal file system name space restrictions that may be
in place).

Unlike the Apple implementation, we reject requests to create a FIFO
using mknod(2) if there is a non-zero dev argument to the system call,
which is permitted by the Open Group specification ("... undefined
...").  We might want to revise this if we find it causes
compatibility problems for applications in practice.

PR: kern/74242, kern/68459
Obtained from: Apple, Inc.
MFC after: 3 weeks

16 years agoUse strdup() instead of static buffer allocation to avoid 128 bytes limit
Alexander Motin [Sun, 22 Jun 2008 21:22:25 +0000 (21:22 +0000)]
Use strdup() instead of static buffer allocation to avoid 128 bytes limit
on -redirect_XXX arguments length.

PR: bin/86647
Submitted by: Stephen Hurd <shurd@sasktel.net>

16 years agoTeach fifo_create regression test to also try to use mknod(2) to create
Robert Watson [Sun, 22 Jun 2008 21:03:26 +0000 (21:03 +0000)]
Teach fifo_create regression test to also try to use mknod(2) to create
fifos, as this is required by the Single UNIX Specification, although
not currently implemented on FreeBSD.

While here, fix a bug in the directory timestamp checking test by
sleeping after querying the starting timestamp, rather than before.

16 years agoAdd support for VT8237 ISA bridge.
Oleksandr Tymoshenko [Sun, 22 Jun 2008 20:53:29 +0000 (20:53 +0000)]
Add support for VT8237 ISA bridge.

PR:     kern/120714
Event:  Bugathon#5

16 years agoAdd an abbreviation for adaptive mode, and document all the abreviations.
David E. O'Brien [Sun, 22 Jun 2008 17:52:57 +0000 (17:52 +0000)]
Add an abbreviation for adaptive mode, and document all the abreviations.

16 years agoOutput information only if /etc/rc.local exists.
Mike Makonnen [Sun, 22 Jun 2008 16:23:39 +0000 (16:23 +0000)]
Output information only if /etc/rc.local exists.

16 years agoDo not print anything unless at least one of the abi emulators is
Mike Makonnen [Sun, 22 Jun 2008 16:19:50 +0000 (16:19 +0000)]
Do not print anything unless at least one of the abi emulators is
enabled.

16 years agoSimplify this script with the added bonus that the bit about i386
Mike Makonnen [Sun, 22 Jun 2008 15:57:50 +0000 (15:57 +0000)]
Simplify this script with the added bonus that the bit about i386
initialization doesn't get printed unless ibcs2_enable is set.

16 years agoDon't say we're going to mount filesystems of a certain type unless
Mike Makonnen [Sun, 22 Jun 2008 15:40:19 +0000 (15:40 +0000)]
Don't say we're going to mount filesystems of a certain type unless
there actually are filesystems of that type to mount.

16 years agoDon't say we're going to [start|stop] local packages unless there actually
Mike Makonnen [Sun, 22 Jun 2008 15:34:40 +0000 (15:34 +0000)]
Don't say we're going to [start|stop] local packages unless there actually
are local (pre rc.d) scripts to run.

16 years agoGet pointer to devfs_ruleset struct after garbage collection has been
Oleksandr Tymoshenko [Sun, 22 Jun 2008 14:34:38 +0000 (14:34 +0000)]
Get pointer to devfs_ruleset struct after garbage collection has been
performed. Otherwise if ruleset is used by given mountpoint and is empty
it's freed by devfs_ruleset_reap and pointer becomes bogus.

Submitted by:   Mateusz Guzik <mjguzik@gmail.com>
PR:             kern/124853

16 years agoo The FreeBSD bus_dmamap_sync(9) supports ored together flags for quite
Marius Strobl [Sun, 22 Jun 2008 13:54:51 +0000 (13:54 +0000)]
o The FreeBSD bus_dmamap_sync(9) supports ored together flags for quite
  some time now so collapse calls accordingly.
o Given that gem_load_txmbuf() is allowed to fail resulting in a packet
  drop also for quite some time now implement the functionality of
  gem_txcksum() by means of m_pullup(9), which de-obfuscates the code
  and allows to always retrieve the correct length of the IP header.
o Add missing BUS_DMASYNC_PREREAD when syncing the control DMA maps in
  gem_rint() and gem_start_locked().
o Correct some bus_barrier(9) calls to do a read/write barrier as we
  do a read after a write. Add some missing ones in gem_mii_readreg()
  and gem_mii_writereg().
o According to the Apple GMAC driver, the GEM ASIC specification and
  the OpenSolaris eri(7D) the TX FIFO threshold has to be set to 0x4ff
  for the Gigabit variants and 0x100 for the ERI in order do avoid TX
  underruns.
o In gem_init_locked():
  - be conservative and enable the RX and TX MACs,
  - don't clear GEM_LINK otherwise we don't ever mark the link as up
    again if gem_init_locked() is called from gem_watchdog(),
  - remove superfluous setting of sc_ifflags.
o Don't bother to check whether the interface is running or whether its
  queue is empty before calling gem_start_locked() in gem_tint(), the
  former will check these anyway.
o Call gem_start_locked() in gem_watchdog() in order to try to get
  some more packets going.
o In gem_mii_writereg() after reseting the PCS restore its configuration.

GMAC testing: grehan, marcel
MFC after: 2 weeks

16 years agoPartially revert previous commit. DeleteLink() does not deletes permanent
Alexander Motin [Sun, 22 Jun 2008 11:39:42 +0000 (11:39 +0000)]
Partially revert previous commit. DeleteLink() does not deletes permanent
links so we should be aware of it and try to delete every link only once
or we will loop forever.

16 years agoMake preparations for increasing the size of the kernel virtual address space
Alan Cox [Sun, 22 Jun 2008 04:54:27 +0000 (04:54 +0000)]
Make preparations for increasing the size of the kernel virtual address space
on the amd64 architecture.  The amd64 architecture requires kernel code and
global variables to reside in the highest 2GB of the 64-bit virtual address
space.  Thus, the memory allocated during bootstrap, before the call to
kmem_init(), starts at KERNBASE, which is not necessarily the same as
VM_MIN_KERNEL_ADDRESS on amd64.

16 years agoKERNBASE is not necessarily an address within the kernel map, e.g.,
Alan Cox [Sat, 21 Jun 2008 21:02:13 +0000 (21:02 +0000)]
KERNBASE is not necessarily an address within the kernel map, e.g.,
PowerPC/AIM.  Consequently, it should not be used to determine the maximum
number of kernel map entries.  Intead, use VM_MIN_KERNEL_ADDRESS, which marks
the start of the kernel map on all architectures.

Tested by: marcel@ (PowerPC/AIM)

16 years agoImplement UDP transparent proxy support.
Alexander Motin [Sat, 21 Jun 2008 20:18:57 +0000 (20:18 +0000)]
Implement UDP transparent proxy support.

PR: bin/54274
Submitted by: Nicolai Petri <nicolai@petri.cc>

16 years agoRegression test for a recently fixed strtod bug.
David Schultz [Sat, 21 Jun 2008 19:28:26 +0000 (19:28 +0000)]
Regression test for a recently fixed strtod bug.

16 years agoBring in the vendor's fix for a bug in strtod() whereby
David Schultz [Sat, 21 Jun 2008 19:27:54 +0000 (19:27 +0000)]
Bring in the vendor's fix for a bug in strtod() whereby
strtod("0xyz", &endp) resulted in endp pointing to "0xyz"
instead of "xyz".

Reported by: Tony Finch <dot@dotat.at>
MFC after: 1 week

16 years agoPrepare for a larger kernel virtual address space. Specifically, once
Alan Cox [Sat, 21 Jun 2008 19:19:09 +0000 (19:19 +0000)]
Prepare for a larger kernel virtual address space.  Specifically, once
KERNBASE and VM_MIN_KERNEL_ADDRESS are no longer the same, the physical
memory allocated during bootstrap will be offset from the low-end of the
kernel's page table.

16 years agoRefactor one of the ISO extraction tests: Move the reference
Tim Kientzle [Sat, 21 Jun 2008 19:11:51 +0000 (19:11 +0000)]
Refactor one of the ISO extraction tests:  Move the reference
file into a separate file (instead of embedding it in the C code)
and use later timestamps (timestamps too close to the Epoch fail
predictably on systems that lack timegm(), whose mktime() doesn't
support dates before the Epoch and which are running in timezones
with negative offsets from GMT).  The goal here is to test the ISO
extraction, not the local platform's time support.

16 years agoMfP4: Joerg Sonnenberg's extensions to the mtree support for more
Tim Kientzle [Sat, 21 Jun 2008 19:06:37 +0000 (19:06 +0000)]
MfP4:  Joerg Sonnenberg's extensions to the mtree support for more
complete quoting.  In particular, this handles escaped newlines
and common C-style escapes.

16 years agoA security-check failure here should be ARCHIVE_FAILED (cannot continue this
Tim Kientzle [Sat, 21 Jun 2008 19:05:29 +0000 (19:05 +0000)]
A security-check failure here should be ARCHIVE_FAILED (cannot continue this
operation) and not ARCHIVE_WARN, since we don't actually open the file.
Both bsdtar and bsdcpio will try to copy file contents after an ARCHIVE_WARN,
which will fail loudly.

16 years agoIf we're using -l and can't hardlink the file because of a cross-device
Tim Kientzle [Sat, 21 Jun 2008 17:47:56 +0000 (17:47 +0000)]
If we're using -l and can't hardlink the file because of a cross-device
link, just ignore the -l option and copy the file instead.
In particular, this should fix the COPYTREE_* macros used in the
ports infrastructure which use -l to preserve space but often get
used for cross-device copies.

16 years agoAdd support for PORT/EPRT FTP commands in lowercase.
Alexander Motin [Sat, 21 Jun 2008 16:22:56 +0000 (16:22 +0000)]
Add support for PORT/EPRT FTP commands in lowercase.
Use strncasecmp() instead of huge local implementation to reduce code size.
Check space presence after command/code.

PR: kern/73034

16 years agoRemoved the no-op -p; documented -P.
Ruslan Ermilov [Sat, 21 Jun 2008 15:48:16 +0000 (15:48 +0000)]
Removed the no-op -p; documented -P.

MFC after: 3 days

16 years agoAdd -v (verbose) option to -l command, to show size and backing store
Dmitry Morozovsky [Sat, 21 Jun 2008 15:04:42 +0000 (15:04 +0000)]
Add -v (verbose) option to -l command, to show size and backing store
of all md devices at one time.

Approved by: phk
MFC after: 2 weeks

16 years agoTo catch up with rev 179872: rename enable_quotas to quota_enable.
Simon L. B. Nielsen [Sat, 21 Jun 2008 13:53:35 +0000 (13:53 +0000)]
To catch up with rev 179872: rename enable_quotas to quota_enable.

16 years agoUse minimum of max_aio_procs and target_aio_procs when spawning new
Oleksandr Tymoshenko [Sat, 21 Jun 2008 11:34:34 +0000 (11:34 +0000)]
Use minimum of max_aio_procs and target_aio_procs when spawning new
aiod since there should be no more then max_aio_procs processes.

16 years agoRework line-processing framework to add support for --null and
Tim Kientzle [Sat, 21 Jun 2008 02:20:20 +0000 (02:20 +0000)]
Rework line-processing framework to add support for --null and
to eliminate a callback.

16 years agoVarious long options for GNU cpio compat.
Tim Kientzle [Sat, 21 Jun 2008 02:18:52 +0000 (02:18 +0000)]
Various long options for GNU cpio compat.

16 years agoMfP4: test improvements, mostly for portability.
Tim Kientzle [Sat, 21 Jun 2008 02:17:18 +0000 (02:17 +0000)]
MfP4: test improvements, mostly for portability.

16 years ago- link powerd(8) man page
Daniel Gerzo [Fri, 20 Jun 2008 23:04:34 +0000 (23:04 +0000)]
- link powerd(8) man page

PR: docs/123111
MFC after: 3 days

16 years agoFix PCI id for 945GME Express Integrated Graphics Controller:
Oleksandr Tymoshenko [Fri, 20 Jun 2008 22:23:41 +0000 (22:23 +0000)]
Fix PCI id for 945GME Express Integrated Graphics Controller:
set to 8086:27AE

PR:     kern/124782
Event:  Bugathon#5

16 years agoFix spelling
Oleksandr Tymoshenko [Fri, 20 Jun 2008 21:41:44 +0000 (21:41 +0000)]
Fix spelling

PR: kern/124723
Event: Bugathon#5

16 years agoMake preparations for increasing the size of the kernel virtual
Alan Cox [Fri, 20 Jun 2008 20:59:31 +0000 (20:59 +0000)]
Make preparations for increasing the size of the kernel virtual
address space on the amd64 architecture.  The amd64 architecture
requires kernel code and global variables to reside in the highest 2GB
of the 64-bit virtual address space.  Thus, KERNBASE cannot change.
However, KERNBASE is sometimes used as the start of the kernel virtual
address space.  Henceforth, VM_MIN_KERNEL_ADDRESS should be used
instead.  Since KERNBASE and VM_MIN_KERNEL_ADDRESS are still the same
address, there should be no visible effect from this change (yet).
That said, kris@ has tested crash dumps under the full patch that
increases the kernel virtual address space on amd64 to 6GB.

Tested by: kris@

16 years ago- Fix spelling errors.
Ulf Lilleengen [Fri, 20 Jun 2008 19:48:18 +0000 (19:48 +0000)]
- Fix spelling errors.

Approved by:    kib (mentor)
PR:             kern/124788
Submitted by:   Hywel Mallett <Hywel -at- hmallett.co.uk>

16 years agoAdd et(4), a port of DragonFly's Agere ET1310 10/100/Gigabit
Xin LI [Fri, 20 Jun 2008 19:30:44 +0000 (19:30 +0000)]
Add et(4), a port of DragonFly's Agere ET1310 10/100/Gigabit
Ethernet device driver, written by sephe@

Obtained from: DragonFly
Sponsored by: iXsystems
MFC after: 2 weeks

16 years agoAdd et(4), a port of DragonFly's Agere ET1310 10/100/Gigabit
Xin LI [Fri, 20 Jun 2008 19:28:33 +0000 (19:28 +0000)]
Add et(4), a port of DragonFly's Agere ET1310 10/100/Gigabit
Ethernet device driver, written by sephe@

Obtained from: DragonFly
Sponsored by: iXsystems
MFC after: 2 weeks

16 years agoAdd support for the optional key in the GRE header.
Andrew Thompson [Fri, 20 Jun 2008 17:26:34 +0000 (17:26 +0000)]
Add support for the optional key in the GRE header.

PR: kern/114714
Submitted by: Cristian KLEIN

16 years agoSplit out the probing magic of device_probe_and_attach into
Warner Losh [Fri, 20 Jun 2008 16:58:15 +0000 (16:58 +0000)]
Split out the probing magic of device_probe_and_attach into
device_probe() so that it can be used by busses that may wish to do
additional processing between probe and attach.

Reviewed by: dfr@

16 years agoAdd Xr to getsockname(2)
Poul-Henning Kamp [Fri, 20 Jun 2008 14:47:06 +0000 (14:47 +0000)]
Add Xr to getsockname(2)

16 years agoMake the search for sources in PATH_PORTS more accurate. I only
Joerg Wunsch [Fri, 20 Jun 2008 08:39:42 +0000 (08:39 +0000)]
Make the search for sources in PATH_PORTS more accurate.  I only
noticed that a "whereis -qs qemu" matched the distfiles subdir of qemu
rather than /usr/ports/emulators/qemu.

It now ignores all dot entries in /usr/ports, plus all entries
starting with a capital letter (maintenance stuff like Templates, but
also includes subdir CVS), plus /usr/ports/distfiles which is simply a
magic name in that respect.

16 years agoEnforce the mapping of kernel loadable modules in the uppermost 2GB of the
Alan Cox [Fri, 20 Jun 2008 06:24:34 +0000 (06:24 +0000)]
Enforce the mapping of kernel loadable modules in the uppermost 2GB of the
kernel virtual address space on amd64.

16 years agoMake preparations for increasing the size of the kernel virtual
Alan Cox [Fri, 20 Jun 2008 05:22:09 +0000 (05:22 +0000)]
Make preparations for increasing the size of the kernel virtual
address space on the amd64 architecture.  The amd64 architecture
requires kernel code and global variables to reside in the highest 2GB
of the 64-bit virtual address space.  Thus, KERNBASE cannot change.
However, KERNBASE is sometimes used as the start of the kernel virtual
address space.  Henceforth, VM_MIN_KERNEL_ADDRESS should be used
instead.  Since KERNBASE and VM_MIN_KERNEL_ADDRESS are still the same
address, there should be no visible effect from this change (yet).

16 years agoImplement fmodl.
David Schultz [Thu, 19 Jun 2008 22:39:53 +0000 (22:39 +0000)]
Implement fmodl.
Document fmodl and fix some errors in the fmod manpage.

16 years agoRevert rev. 178124 as requested by kris@. Having jail id not being
Xin LI [Thu, 19 Jun 2008 21:41:57 +0000 (21:41 +0000)]
Revert rev. 178124 as requested by kris@.  Having jail id not being
reused too frequently is useful for script controlled environment.

16 years agoDocument the _arg versions of the uma_zalloc and uma_zfree functions.
Remko Lodder [Thu, 19 Jun 2008 18:33:38 +0000 (18:33 +0000)]
Document the _arg versions of the uma_zalloc and uma_zfree functions.

PR: docs/120357
Submitted by: gahr
MFC after: 3 days

16 years agoRenew semaphore's pointer after wakeup since during msleep
Oleksandr Tymoshenko [Thu, 19 Jun 2008 18:08:42 +0000 (18:08 +0000)]
Renew semaphore's pointer after wakeup since during msleep
sem_base may have been modified by destroying one of semaphores
and semptr would not be valid in this case.

PR: kern/123731

16 years agoAdd myself. Better late then never.
Alexander Motin [Thu, 19 Jun 2008 17:10:05 +0000 (17:10 +0000)]
Add myself. Better late then never.

16 years agoAdd myself.
Dmitry Marakasov [Thu, 19 Jun 2008 16:30:06 +0000 (16:30 +0000)]
Add myself.

Approved by: miwi (mentor)

16 years agoAdd myself.
Dmitry Marakasov [Thu, 19 Jun 2008 16:29:37 +0000 (16:29 +0000)]
Add myself.

Approved by: miwi (mentor)

16 years agoRemove __restrict keywords from array arguments to make GCC's -std=c99 work.
Ed Schouten [Thu, 19 Jun 2008 07:30:32 +0000 (07:30 +0000)]
Remove __restrict keywords from array arguments to make GCC's -std=c99 work.

When GCC is invoked with -std=c99, the following errors are displayed when
including <spawn.h>:

/usr/include/spawn.h:69: error: static or type qualifiers in abstract declarator
/usr/include/spawn.h:69: error: static or type qualifiers in abstract declarator
/usr/include/spawn.h:72: error: static or type qualifiers in abstract declarator
/usr/include/spawn.h:72: error: static or type qualifiers in abstract declarator

We'd better remove the __restrict keywords here. The same is also done
in <regex.h>.

Submitted by: Andrzej Tobola <ato iem pw edu pl>
Reviewed by: davidxu
Approved by: philip (mentor, implicit)

16 years agoMake quota knob conform to other rc(8) knobs. Keep older knob for
Mike Makonnen [Thu, 19 Jun 2008 07:06:11 +0000 (07:06 +0000)]
Make quota knob conform to other rc(8) knobs. Keep older knob for
compatibility.

Requested by: Volker <volker@vwsoft.com>

16 years agoMove the check for enabled knobs further down in run_rc_command() so
Mike Makonnen [Thu, 19 Jun 2008 06:11:34 +0000 (06:11 +0000)]
Move the check for enabled knobs further down in run_rc_command() so
that bogus commands cause usage information to be printed instead of
diagnostics about enabling the knob.

16 years agoProcess spawn attributes in POSIX document order.
David Xu [Thu, 19 Jun 2008 02:42:50 +0000 (02:42 +0000)]
Process spawn attributes in POSIX document order.

16 years agoAdd roken.h to SRCS. This fixes the compilation of slc during a
Marius Strobl [Wed, 18 Jun 2008 21:20:50 +0000 (21:20 +0000)]
Add roken.h to SRCS. This fixes the compilation of slc during a
buildworld on a host running a world built with WITHOUT_KERBEROS
defined.

16 years agoAdd the option stub for the Globetrotter Max 3.6 Modem.
Attilio Rao [Wed, 18 Jun 2008 20:50:30 +0000 (20:50 +0000)]
Add the option stub for the Globetrotter Max 3.6 Modem.

Submitted by: Greg Rivers <gcr at tharned dot org>

16 years agoPrint out the container lock when showing the thread state in DDB.
Attilio Rao [Wed, 18 Jun 2008 20:42:01 +0000 (20:42 +0000)]
Print out the container lock when showing the thread state in DDB.

Tested by: benjsc

16 years agoAdd the SMB functionality for the MCP65 chipset I happen to
Joerg Wunsch [Wed, 18 Jun 2008 20:39:56 +0000 (20:39 +0000)]
Add the SMB functionality for the MCP65 chipset I happen to
have in my new motherboard.

16 years agoCatch up to recentish kgdb changes:
John Baldwin [Wed, 18 Jun 2008 14:23:28 +0000 (14:23 +0000)]
Catch up to recentish kgdb changes:
- Use ptid_get_pid() rather than ptid_get_tid() (part of the changes to
  let 'tid' work for remote kgdb).
- Add a stub kgdb_trgt_new_objfile() hook.

Silence from: obrien, mips@

16 years agoAdd MIPS to the list of known arches.
David E. O'Brien [Wed, 18 Jun 2008 13:52:58 +0000 (13:52 +0000)]
Add MIPS to the list of known arches.

16 years agohandle .INF files for PCMCIA correctly that specify multiple entries in
Weongyo Jeong [Wed, 18 Jun 2008 06:35:37 +0000 (06:35 +0000)]
handle .INF files for PCMCIA correctly that specify multiple entries in
their [Manufacturer] sections and prevent a case that NDIS_PCI_DEV_TABLE
definition was always emitted that it's only emitted once if a .INF file
is for PCI.

16 years agoImplement the set and unset verbs. While here, have the manpage
Marcel Moolenaar [Wed, 18 Jun 2008 01:46:32 +0000 (01:46 +0000)]
Implement the set and unset verbs. While here, have the manpage
catch up with various changes.

16 years agoAdd the set and unset verbs used to set and clear attributes for
Marcel Moolenaar [Wed, 18 Jun 2008 01:13:34 +0000 (01:13 +0000)]
Add the set and unset verbs used to set and clear attributes for
partition entries. Implement the setunset method for the MBR
scheme to control the active flag.

16 years agoBring this up to date with regard to our other section 4 and Intel manpages,
Christian Brueffer [Tue, 17 Jun 2008 21:14:02 +0000 (21:14 +0000)]
Bring this up to date with regard to our other section 4 and Intel manpages,
also fixes a few mdoc bugs.

16 years agoRemove superfluous eofmarker.
Remko Lodder [Tue, 17 Jun 2008 18:56:04 +0000 (18:56 +0000)]
Remove superfluous eofmarker.

Requested by: Jaakko Heinonen
Discussed with: Jaakko, edwin

Approved by: imp (mentor, implicit)

16 years agoDon't export the unused __use_pts() routine.
Ed Schouten [Tue, 17 Jun 2008 14:05:03 +0000 (14:05 +0000)]
Don't export the unused __use_pts() routine.

The __use_pts() routine was once probably used by libutil to determine
if we are using BSD or UNIX98 style PTY device names. It doesn't seem to
be used outside grantpt.c, which means we can make it static and remove
it from the Symbol.map.

Reviewed by: cognet, kib
Approved by: philip (mentor)

16 years agoBack out rev. 1.352 (SVN rev 179842) as phk pointed out that
Bjoern A. Zeeb [Tue, 17 Jun 2008 11:08:49 +0000 (11:08 +0000)]
Back out rev. 1.352  (SVN rev 179842) as phk pointed out that
SRCCONF was omitted here to be able to build non standard trees
with universe as well.

16 years agoFor make universe, in addition to make.conf, also ignore a
Bjoern A. Zeeb [Tue, 17 Jun 2008 09:06:46 +0000 (09:06 +0000)]
For make universe, in addition to make.conf, also ignore a
src.conf with possibe non-default options.

Reviewed by: ru
MFC after: 10 days

16 years agoStyle fix.
David Xu [Tue, 17 Jun 2008 08:23:45 +0000 (08:23 +0000)]
Style fix.

16 years agoChange my email address to the one from the FreeBSD project.
Ed Schouten [Tue, 17 Jun 2008 07:09:58 +0000 (07:09 +0000)]
Change my email address to the one from the FreeBSD project.

Approved by: philip (mentor, implicit), davidxu

16 years agoAdd POSIX routines called posix_spawn() and posix_spawnp(), which
David Xu [Tue, 17 Jun 2008 06:26:29 +0000 (06:26 +0000)]
Add POSIX routines called posix_spawn() and posix_spawnp(), which
can be used as replacements for exec/fork in a lot of cases. This
change also added execvpe() which allows environment variable
PATH to be used for searching executable file, it is used for
implementing posix_spawnp().

PR: standards/122051

16 years ago- Move ether_ifdetach earlier.
Benno Rice [Tue, 17 Jun 2008 05:48:42 +0000 (05:48 +0000)]
- Move ether_ifdetach earlier.
- Drain callouts after ether_ifdetach.

Suggested by: jhb

16 years agoRemove support for RELENG_4 (__FreeBSD_version < 500039).
Florent Thoumie [Mon, 16 Jun 2008 23:41:11 +0000 (23:41 +0000)]
Remove support for RELENG_4 (__FreeBSD_version < 500039).

MFC after: 1 day

16 years agoInstall extra include files that were forgotten in original GCC 4.2.x
Alexander Kabaev [Mon, 16 Jun 2008 22:49:30 +0000 (22:49 +0000)]
Install extra include files that were forgotten in original GCC 4.2.x
import changes.

PR: 124647
Submitted by: Vlad GALU
MFC after: 2 days

16 years agoChange incorrect stale cookie detection in syncookie_lookup() that prematurely
Stephan Uphoff [Mon, 16 Jun 2008 20:08:22 +0000 (20:08 +0000)]
Change incorrect stale cookie detection in syncookie_lookup() that prematurely
declared a cookie as expired.

Reviewed by: andre@, silby@
Reported by:    Yahoo!

16 years agoFix a check in SYN cache expansion (syncache_expand()) to accept packets that arrive...
Stephan Uphoff [Mon, 16 Jun 2008 19:56:59 +0000 (19:56 +0000)]
Fix a check in SYN cache expansion (syncache_expand()) to accept packets that arrive in the receive window instead of just on the left edge of the receive window.
This is needed for correct behavior when packets are lost or reordered.

PR: kern/123950
Reviewed by: andre@, silby@
Reported by: Yahoo!, Wang Jin
MFC after: 1 week

16 years agoAdd another 8139D variant.
Remko Lodder [Mon, 16 Jun 2008 18:32:20 +0000 (18:32 +0000)]
Add another 8139D variant.

PR: 124622
Submitted by: Evgeny Zhirnov <jirnov at gmail dot com>
Approved by: imp (mentor, implicit)
MFC after: 3 days

16 years agoRecord my roots.
Ermal Luçi [Mon, 16 Jun 2008 17:38:48 +0000 (17:38 +0000)]
Record my roots.

Reviewed by: mlaier (mentor)

16 years agoAdd my birthday to the calendar.
Ermal Luçi [Mon, 16 Jun 2008 17:35:34 +0000 (17:35 +0000)]
Add my birthday to the calendar.

Approved by: mlaier (mentor)

16 years agoStruct cdev is always the member of the struct cdev_priv. When devfs
Konstantin Belousov [Mon, 16 Jun 2008 17:34:59 +0000 (17:34 +0000)]
Struct cdev is always the member of the struct cdev_priv. When devfs
needed to promote cdev to cdev_priv, the si_priv pointer was followed.

Use member2struct() to calculate address of the wrapping cdev_priv.
Rename si_priv to __si_reserved.

Tested by: pho
Reviewed by: ed
MFC after: 2 weeks

16 years agoAdd the member2struct() macro, that returns pointer to the containing
Konstantin Belousov [Mon, 16 Jun 2008 17:25:20 +0000 (17:25 +0000)]
Add the member2struct() macro, that returns pointer to the containing
structure given pointer to some structure member.

MFC after: 2 weeks

16 years agoAdd $FreeBSD$ since we now have local changes.
David E. O'Brien [Mon, 16 Jun 2008 17:06:17 +0000 (17:06 +0000)]
Add $FreeBSD$ since we now have local changes.

16 years agoImplement a workaround for a long-standing problem in
Oliver Fromme [Mon, 16 Jun 2008 17:04:04 +0000 (17:04 +0000)]
Implement a workaround for a long-standing problem in
libi386's time(), caused by a qemu bug.  The bug might
be present in other BIOSes, too.

qemu either does not simulate the AT RTC correctly or
has a broken BIOS 1A/02 implementation, and will return
an incorrect value if the RTC is read while it is being
updated.

The effect is worsened by the fact that qemu's INT 15/86
function ("wait" a.k.a. usleep) is non-implmeneted or
broken and returns immediately, causing beastie.4th to
spin in a tight loop calling the "read RTC" function
millions of times, triggering the problem quickly.

Therefore, we keep reading the BIOS value until we get
the same result twice.  This change fixes beastie.4th's
countdown under qemu.

Approved by: des (mentor)

16 years agoMake it clearer that privilege is needed to reduce as well as
Tony Finch [Mon, 16 Jun 2008 14:50:21 +0000 (14:50 +0000)]
Make it clearer that privilege is needed to reduce as well as
increase group membership.

16 years agoUpdate to include the Camellia algorithm which is in the code but
George V. Neville-Neil [Mon, 16 Jun 2008 14:33:54 +0000 (14:33 +0000)]
Update to include the Camellia algorithm which is in the code but
which was accidentally left undocumented in the manual page.