Commit Graph

139770 Commits

Author SHA1 Message Date
alc
2fc7871f11 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).
2008-06-20 05:22:09 +00:00
das
9e4d306f6f Implement fmodl.
Document fmodl and fix some errors in the fmod manpage.
2008-06-19 22:39:53 +00:00
delphij
4f152d47fa Revert rev. 178124 as requested by kris@. Having jail id not being
reused too frequently is useful for script controlled environment.
2008-06-19 21:41:57 +00:00
remko
78396ae0b6 Document the _arg versions of the uma_zalloc and uma_zfree functions.
PR:		docs/120357
Submitted by:	gahr
MFC after:	3 days
2008-06-19 18:33:38 +00:00
gonzo
c5bc6314e2 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
2008-06-19 18:08:42 +00:00
mav
6f4770a5ef Add myself. Better late then never. 2008-06-19 17:10:05 +00:00
amdmi3
08aafcf00c Add myself.
Approved by:	miwi (mentor)
2008-06-19 16:30:06 +00:00
amdmi3
6e3a72289a Add myself.
Approved by:	miwi (mentor)
2008-06-19 16:29:37 +00:00
ed
f9f94ca577 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)
2008-06-19 07:30:32 +00:00
mtm
3e6ea433a5 Make quota knob conform to other rc(8) knobs. Keep older knob for
compatibility.

Requested by: Volker <volker@vwsoft.com>
2008-06-19 07:06:11 +00:00
mtm
7a52073f5b 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.
2008-06-19 06:11:34 +00:00
davidxu
6acc22fcf7 Process spawn attributes in POSIX document order. 2008-06-19 02:42:50 +00:00
marius
3807b1c27a 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.
2008-06-18 21:20:50 +00:00
attilio
612ed1b139 Add the option stub for the Globetrotter Max 3.6 Modem.
Submitted by:	Greg Rivers <gcr at tharned dot org>
2008-06-18 20:50:30 +00:00
attilio
e6328e119b Print out the container lock when showing the thread state in DDB.
Tested by:	benjsc
2008-06-18 20:42:01 +00:00
joerg
b76441b5e0 Add the SMB functionality for the MCP65 chipset I happen to
have in my new motherboard.
2008-06-18 20:39:56 +00:00
jhb
7941cfc256 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@
2008-06-18 14:23:28 +00:00
obrien
9b1f265839 Add MIPS to the list of known arches. 2008-06-18 13:52:58 +00:00
weongyo
efe54e593f 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.
2008-06-18 06:35:37 +00:00
marcel
b12551bbfa Implement the set and unset verbs. While here, have the manpage
catch up with various changes.
2008-06-18 01:46:32 +00:00
marcel
1fee86b4dc 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.
2008-06-18 01:13:34 +00:00
brueffer
4cbff60e70 Bring this up to date with regard to our other section 4 and Intel manpages,
also fixes a few mdoc bugs.
2008-06-17 21:14:02 +00:00
remko
079461efe6 Remove superfluous eofmarker.
Requested by:	Jaakko Heinonen
Discussed with:	Jaakko, edwin

Approved by:	imp (mentor, implicit)
2008-06-17 18:56:04 +00:00
ed
9e714aa901 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)
2008-06-17 14:05:03 +00:00
bz
a786ca56c9 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.
2008-06-17 11:08:49 +00:00
bz
e772b82d0b 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
2008-06-17 09:06:46 +00:00
davidxu
6061beeb70 Style fix. 2008-06-17 08:23:45 +00:00
ed
daf7b8336e Change my email address to the one from the FreeBSD project.
Approved by:	philip (mentor, implicit), davidxu
2008-06-17 07:09:58 +00:00
davidxu
3c1842a44c 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
2008-06-17 06:26:29 +00:00
benno
0b0ecff057 - Move ether_ifdetach earlier.
- Drain callouts after ether_ifdetach.

Suggested by:	jhb
2008-06-17 05:48:42 +00:00
flz
ffdd95144d Remove support for RELENG_4 (__FreeBSD_version < 500039).
MFC after:	1 day
2008-06-16 23:41:11 +00:00
kan
c4c883e016 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
2008-06-16 22:49:30 +00:00
ups
817daf0500 Change incorrect stale cookie detection in syncookie_lookup() that prematurely
declared a cookie as expired.

Reviewed by:	andre@, silby@
Reported by:    Yahoo!
2008-06-16 20:08:22 +00:00
ups
c8dbf3db60 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
2008-06-16 19:56:59 +00:00
remko
c1f10cbbe7 Add another 8139D variant.
PR:		124622
Submitted by:	Evgeny Zhirnov <jirnov at gmail dot com>
Approved by:	imp (mentor, implicit)
MFC after:	3 days
2008-06-16 18:32:20 +00:00
eri
b921dc0d49 Record my roots.
Reviewed by:	mlaier (mentor)
2008-06-16 17:38:48 +00:00
eri
8690aed8ef Add my birthday to the calendar.
Approved by:	mlaier (mentor)
2008-06-16 17:35:34 +00:00
kib
eecc60305f 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
2008-06-16 17:34:59 +00:00
kib
4c48f0aa48 Add the member2struct() macro, that returns pointer to the containing
structure given pointer to some structure member.

MFC after:	2 weeks
2008-06-16 17:25:20 +00:00
obrien
64a55bfcba Add $FreeBSD$ since we now have local changes. 2008-06-16 17:06:17 +00:00
olli
992f3401a7 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)
2008-06-16 17:04:04 +00:00
fanf
f629d3e257 Make it clearer that privilege is needed to reduce as well as
increase group membership.
2008-06-16 14:50:21 +00:00
gnn
b6432cbc60 Update to include the Camellia algorithm which is in the code but
which was accidentally left undocumented in the manual page.
2008-06-16 14:33:54 +00:00
flz
a47d4949f6 Style fix (use naked commands).
Reported by:	obrien
2008-06-16 09:15:27 +00:00
dougb
cd6153995a Include bsd.own.mk to pick up the definition of MK_GNU_CPIO 2008-06-16 07:24:05 +00:00
dougb
a3207e6791 Properly alphabetize the BSD_CPIO option 2008-06-16 07:23:12 +00:00
dougb
ec695f0315 Regenerate to add the definitions of WITHOUT_BSD_CPIO WITH_GNU_CPIO
and WITHOUT_GNU_GREP
2008-06-16 05:50:21 +00:00
dougb
aab693d38c 1. Make the BSD version of cpio the default [1]
a. The BSD version will be built and installed unless
WITHOUT_BSD_CPIO is defined.
b. The GNU version will not be built or installed unless
WITH_GNU_CPIO is defined. If this is defined, the symlink
in /usr/bin will be to the GNU version whether the BSD
version is present or not.

When these changes are MFCed the defaults should be flipped.

2. Add a knob to disable the building of GNU grep. This will
make it easier for those that want to test the BSD version in
the ports.

Approved by:	kientzle [1]
2008-06-16 05:48:15 +00:00
dougb
a7b386d2c5 Regenerate using svn $FreeBSD$ tags. There is no change in the actual
man page text other than the date.
2008-06-16 05:33:16 +00:00
jb
567c5d727e Remove code that isn't required. It actually breaks the case where KDTRACE_HOOKS
is defined and KDB isn't. This is the case that it was intended for.
2008-06-16 04:44:29 +00:00