]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
19 years agoMake smbfs capable to use 16bit char set in filenames.
Takanori Watanabe [Wed, 4 May 2005 15:05:46 +0000 (15:05 +0000)]
Make smbfs capable to use 16bit char set in filenames.

PR:78110

19 years agoAdd more technical terms to reduce false positives when spellchecking
Murray Stokely [Wed, 4 May 2005 14:19:36 +0000 (14:19 +0000)]
Add more technical terms to reduce false positives when spellchecking
FreeBSD documentation.

19 years agoIf we don't get a suggested MTU during path MTU discovery
Andre Oppermann [Wed, 4 May 2005 13:48:44 +0000 (13:48 +0000)]
If we don't get a suggested MTU during path MTU discovery
look up the packet size of the packet that generated the
response, step down the MTU by one step through ip_next_mtu()
and try again.

Suggested by: dwmalone

19 years agoCleanup IPFW2 ifdefs.
Gleb Smirnoff [Wed, 4 May 2005 13:24:37 +0000 (13:24 +0000)]
Cleanup IPFW2 ifdefs.

19 years agoMakefile is not needed here.
Gleb Smirnoff [Wed, 4 May 2005 13:24:12 +0000 (13:24 +0000)]
Makefile is not needed here.

19 years agoAdd another step of 1280 (gif(4) tunnels) to ip_next_mtu().
Andre Oppermann [Wed, 4 May 2005 13:23:54 +0000 (13:23 +0000)]
Add another step of 1280 (gif(4) tunnels) to ip_next_mtu().

19 years agoIPFW version 2 is the only option now in HEAD. Do not confuse
Gleb Smirnoff [Wed, 4 May 2005 13:14:57 +0000 (13:14 +0000)]
IPFW version 2 is the only option now in HEAD. Do not confuse
users of future releases with instructions about building IPFW2
on RELENG_4.

19 years agoIPFW version 2 is the only option in HEAD and RELENG_5.
Gleb Smirnoff [Wed, 4 May 2005 13:12:52 +0000 (13:12 +0000)]
IPFW version 2 is the only option in HEAD and RELENG_5.
Thus, cleanup unnecessary now ifdefs.

19 years agoPass icmp_error() the MTU argument directly instead of
Andre Oppermann [Wed, 4 May 2005 13:09:19 +0000 (13:09 +0000)]
Pass icmp_error() the MTU argument directly instead of
an interface pointer.  This simplifies a couple of uses
and removes some XXX workarounds.

19 years agoBuild userland libalias using src/sys/netinet/libalias.
Gleb Smirnoff [Wed, 4 May 2005 12:49:44 +0000 (12:49 +0000)]
Build userland libalias using src/sys/netinet/libalias.

Reviewed by: ru
Repocopy by: peter

19 years agoAdd -m option (find module using modfind() and stat it).
Max Khon [Wed, 4 May 2005 12:46:43 +0000 (12:46 +0000)]
Add -m option (find module using modfind() and stat it).

19 years ago- add $FreeBSD$.
Hajimu UMEMOTO [Wed, 4 May 2005 12:02:10 +0000 (12:02 +0000)]
- add $FreeBSD$.
- do service lookup.
- add options to use gethostbyname(3) or getipnodebyname(3) instead
  of getaddrinfo(3).
- add option to do reverse lookup.

19 years agoThis commit was generated by cvs2svn to compensate for changes in r145857,
Hajimu UMEMOTO [Wed, 4 May 2005 11:55:42 +0000 (11:55 +0000)]
This commit was generated by cvs2svn to compensate for changes in r145857,
which included commits to RCS files with non-trunk default branches.

19 years agoimport of parallel name resolution test.
Hajimu UMEMOTO [Wed, 4 May 2005 11:55:42 +0000 (11:55 +0000)]
import of parallel name resolution test.

Obtained from: NetBSD

19 years agoDocument the fact that accept(2) may return EINVAL when addrlen is
Giorgos Keramidas [Wed, 4 May 2005 11:09:26 +0000 (11:09 +0000)]
Document the fact that accept(2) may return EINVAL when addrlen is
negative (in addition to returning EINVAL when called on a descriptor
that is not a socket).

Submitted by: Arne H Juul <arnej@europe.yahoo-inc.com>
PR: docs/80587

19 years agoIntroduce MAC Framework and MAC Policy entry points to label and control
Robert Watson [Wed, 4 May 2005 10:39:15 +0000 (10:39 +0000)]
Introduce MAC Framework and MAC Policy entry points to label and control
access to POSIX Semaphores:

mac_init_posix_sem()            Initialize label for POSIX semaphore
mac_create_posix_sem()          Create POSIX semaphore
mac_destroy_posix_sem()         Destroy POSIX semaphore
mac_check_posix_sem_destroy()   Check whether semaphore may be destroyed
mac_check_posix_sem_getvalue()  Check whether semaphore may be queried
mac_check_possix_sem_open()     Check whether semaphore may be opened
mac_check_posix_sem_post()      Check whether semaphore may be posted to
mac_check_posix_sem_unlink()    Check whether semaphore may be unlinked
mac_check_posix_sem_wait()      Check whether may wait on semaphore

Update Biba, MLS, Stub, and Test policies to implement these entry points.
For information flow policies, most semaphore operations are effectively
read/write.

Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Sponsored by: DARPA, McAfee, SPARTA
Obtained from: TrustedBSD Project

19 years agoUse libutil in DPADD as well.
Max Laier [Wed, 4 May 2005 08:57:12 +0000 (08:57 +0000)]
Use libutil in DPADD as well.

Submitted by: ru

19 years agoThe correct description for mode "w" is
Dag-Erling Smørgrav [Wed, 4 May 2005 08:12:44 +0000 (08:12 +0000)]
The correct description for mode "w" is
  (((truncate to zero length) or (create)) (text file)) (for writing)
and not
  ((truncate file to zero length) or (create text file)) (for writing)

MFC after: 1 week

19 years ago-introduce net.bpf sysctl instead of the less intuitive debug.*
Christian S.J. Peron [Wed, 4 May 2005 03:09:28 +0000 (03:09 +0000)]
-introduce net.bpf sysctl instead of the less intuitive debug.*

    debug.bpf_bufsize is now net.bpf.bufsize
    debug.bpf_maxbufsize is now net.bpf.maxbufsize

-move function prototypes for bpf_drvinit and bpf_clone up to the
 top of the file with the others
-assert bpfd lock in catchpacket() and bpf_wakeup()

MFC after: 2 weeks

19 years agoA patch to support Palm Tungsten T via USB-Cradle.
Julian Elischer [Wed, 4 May 2005 00:46:24 +0000 (00:46 +0000)]
A patch to support Palm Tungsten T via USB-Cradle.
not suer where it comes from but suspect kimoto at ohnolab.org

MFC after: 1 week

19 years agodo mutex lock for each yp calls. with this,
Hajimu UMEMOTO [Tue, 3 May 2005 20:30:31 +0000 (20:30 +0000)]
do mutex lock for each yp calls.  with this,
  http://cvsweb.netbsd.org/bsdweb.cgi/src/regress/lib/libpthread/resolv/
is working.

19 years agoMove definitions of 'struct kuser' and 'struct ksem' from uipc_sem.c
Robert Watson [Tue, 3 May 2005 20:21:24 +0000 (20:21 +0000)]
Move definitions of 'struct kuser' and 'struct ksem' from uipc_sem.c
to ksem.h so that they are accessible from the MAC Framework for the
purposes of labeling and enforcing additional protections.  #error
if these are included without _KERNEL, since they are not intended
(nor installed) for user application use.

Submitted by: Dandekar Hrishikesh <rishi_dandekar at sbcglobal dot net>
Sponsored by: DARPA, SPARTA
Obtained from: TrustedBSD Project

19 years agoBump __FreeBSD_version for pf 3.7 and inform about user visible changes.
Max Laier [Tue, 3 May 2005 17:43:14 +0000 (17:43 +0000)]
Bump __FreeBSD_version for pf 3.7 and inform about user visible changes.

19 years agoUpdate ifconfig's pfsync module for 3.7 pfsync(4)
Max Laier [Tue, 3 May 2005 16:59:14 +0000 (16:59 +0000)]
Update ifconfig's pfsync module for 3.7 pfsync(4)

19 years agoAdapt Makefiles for pfctl(8) and authpf(8) to 3.7 sources.
Max Laier [Tue, 3 May 2005 16:57:38 +0000 (16:57 +0000)]
Adapt Makefiles for pfctl(8) and authpf(8) to 3.7 sources.

19 years agoResolve conflicts created during the import of pf 3.7 Some features are
Max Laier [Tue, 3 May 2005 16:55:20 +0000 (16:55 +0000)]
Resolve conflicts created during the import of pf 3.7 Some features are
missing and will be implemented in a second step.  This is functional as is.

Tested by: freebsd-pf, pfsense.org
Obtained from: OpenBSD

19 years agoThis commit was generated by cvs2svn to compensate for changes in r145837,
Max Laier [Tue, 3 May 2005 16:47:37 +0000 (16:47 +0000)]
This commit was generated by cvs2svn to compensate for changes in r145837,
which included commits to RCS files with non-trunk default branches.

19 years agoImport pf userland from OpenBSD 3.7 (OPENBSD_3_7 as of today)
Max Laier [Tue, 3 May 2005 16:47:37 +0000 (16:47 +0000)]
Import pf userland from OpenBSD 3.7 (OPENBSD_3_7 as of today)

19 years agoResolve conflicts created during the import of pf 3.7 Some features are
Max Laier [Tue, 3 May 2005 16:43:32 +0000 (16:43 +0000)]
Resolve conflicts created during the import of pf 3.7 Some features are
missing and will be implemented in a second step.  This is functional as is.

Tested by: freebsd-pf, pfsense.org
Obtained from: OpenBSD
X-MFC after: never (breaks API/ABI)

19 years ago - Initialize vfslocked correctly early enough for MAC to compile.
Jeff Roberson [Tue, 3 May 2005 16:24:59 +0000 (16:24 +0000)]
 - Initialize vfslocked correctly early enough for MAC to compile.
 - Fix one place where we explicitly drop Giant!

Pointy hat to: me
Submitted by: Max Laier
Warned by: Tinderbox

19 years agoCleanup for getgrouplist(3):
Xin LI [Tue, 3 May 2005 16:20:03 +0000 (16:20 +0000)]
Cleanup for getgrouplist(3):
 - Use /*- instead of /* for copyright section
 - Include unistd.h for prototype of it
 - Sort and separate includes as described in style(9)
 - ANSIfy the function defination
 - Use const for the traversing iterator

19 years agofix signed/unsigned comparison warnings.
Hajimu UMEMOTO [Tue, 3 May 2005 16:13:31 +0000 (16:13 +0000)]
fix signed/unsigned comparison warnings.

Obtained from: NetBSD

19 years agoInclude paths.h for prototype of getbootfile(3).
Xin LI [Tue, 3 May 2005 15:28:07 +0000 (15:28 +0000)]
Include paths.h for prototype of getbootfile(3).

19 years ago- move to SCHED_4BSD per jeffr's comments on SCHED_ULE's state
Peter Grehan [Tue, 3 May 2005 11:56:05 +0000 (11:56 +0000)]
- move to SCHED_4BSD per jeffr's comments on SCHED_ULE's state
- enable MSDOSFS
- ehci is stable on the powerbook
- modules have been working for a long time.

19 years ago - Add a new object flag "OBJ_NEEDSGIANT". We set this flag if the
Jeff Roberson [Tue, 3 May 2005 11:11:26 +0000 (11:11 +0000)]
 - Add a new object flag "OBJ_NEEDSGIANT".  We set this flag if the
   underlying vnode requires Giant.
 - In vm_fault only acquire Giant if the underlying object has NEEDSGIANT
   set.
 - In vm_object_shadow inherit the NEEDSGIANT flag from the backing object.

19 years ago - Set the v_object pointer after a successful VOP_OPEN(). This isn't a
Jeff Roberson [Tue, 3 May 2005 11:05:33 +0000 (11:05 +0000)]
 - Set the v_object pointer after a successful VOP_OPEN().  This isn't a
   perfect solution as the lower vm object can change at unpredictable times
   if our lower vp happens to be on another unionfs, etc.

Submitted by: Oleg Sharoiko <os@rsu.ru>

19 years ago - Don't restrict the softdep stats to DEBUG kernels, they cost nothing to
Jeff Roberson [Tue, 3 May 2005 11:03:29 +0000 (11:03 +0000)]
 - Don't restrict the softdep stats to DEBUG kernels, they cost nothing to
   export.  This was happening anyway since this file manually sets DEBUG.
 - Add a sysctl for the number of items on the worklist.
 - Use a more canonical loop restart in softdep_fsync_mountdev, it saves
   some code at the expense of a goto and makes me worry less about
   modifying a variable that should be private to the TAILQ_FOREACH_SAFE
   macro.

19 years ago - Remove two mtx_asserts that can incorrectly trigger if
Jeff Roberson [Tue, 3 May 2005 10:58:05 +0000 (10:58 +0000)]
 - Remove two mtx_asserts that can incorrectly trigger if
   devstat_end_transaction is called from a fast interrupt.  Presently
   there is no way for mtx_assert to determine that we're not executing
   in a real thread context.

Submitted by: jhusted@isilon.com

19 years ago - A vnode may have made its way onto the free list while it was being
Jeff Roberson [Tue, 3 May 2005 10:56:00 +0000 (10:56 +0000)]
 - A vnode may have made its way onto the free list while it was being
   vgone'd.  We must remove it from the freelist before returning in
   vtryrecycle() or we may get a duplicate free.

Reported by: kkenn

19 years ago - Use namei to acquire Giant for VFS if it is necessary. Drop the explicit
Jeff Roberson [Tue, 3 May 2005 10:55:05 +0000 (10:55 +0000)]
 - Use namei to acquire Giant for VFS if it is necessary.  Drop the explicit
   Giant acquisition.
 - Remove GIANT_REQUIRED in the few remaining cases; the vm and vfs have
   both been locked.

19 years ago - Use NAMEI to pickup Giant if we need it in fpcheckstd().
Jeff Roberson [Tue, 3 May 2005 10:52:22 +0000 (10:52 +0000)]
 - Use NAMEI to pickup Giant if we need it in fpcheckstd().

19 years ago - Neither of our image formats require Giant now that the vm and vfs have
Jeff Roberson [Tue, 3 May 2005 10:51:38 +0000 (10:51 +0000)]
 - Neither of our image formats require Giant now that the vm and vfs have
   been locked.

19 years agoReshape the dma code to be a bit more flexible so it can cope with
Søren Schmidt [Tue, 3 May 2005 07:55:07 +0000 (07:55 +0000)]
Reshape the dma code to be a bit more flexible so it can cope with
new HW that has new and different demands.
Fix a few nits in former commit in this cleanup crusade.

Sponsored by: pair.com

19 years agoProperly mask off the status bits when checking to see if the ccb is still
Scott Long [Tue, 3 May 2005 07:11:19 +0000 (07:11 +0000)]
Properly mask off the status bits when checking to see if the ccb is still
valid to process.  This was causing deferred commands to be rejected due
to their extra status flag.

MFC After: 3 days

19 years agoThe driver looks like it can create valid 64-bit scatter-gather lists, so
Scott Long [Tue, 3 May 2005 05:44:42 +0000 (05:44 +0000)]
The driver looks like it can create valid 64-bit scatter-gather lists, so
don't restrict it to a 32-bit address space.  Also use the correct busdma
flags for the SRB memory area.

MFC After: 3 days

19 years agoThe kthread is disabled at this time, so don't try to wake it up on
Scott Long [Tue, 3 May 2005 05:42:03 +0000 (05:42 +0000)]
The kthread is disabled at this time, so don't try to wake it up on
shutdown.  This fixes a panic on reboot.

MFC After: 3 days

19 years agoPut gnome-lite and kde-lite on disc2 for ia64. The full gnome and kde
Marcel Moolenaar [Tue, 3 May 2005 05:37:09 +0000 (05:37 +0000)]
Put gnome-lite and kde-lite on disc2 for ia64. The full gnome and kde
packages is causing the disc2 ISO to overflow in excess of 100MB.

MFC after: 2 days

19 years agoRemove only the packages sub-directory before recreating it. Do not
Marcel Moolenaar [Tue, 3 May 2005 04:19:07 +0000 (04:19 +0000)]
Remove only the packages sub-directory before recreating it. Do not
remove the whole disc treei structure. This allows one to specify the
disc trees created by a prior release build (under R/cdrom) as the
destination without destroying the contents. This better integrates
with release building and makes further automation easier.

MFC after: 2 days

19 years agoAllow specifying which INDEX file to use by setting PKG_INDEX. By default
Marcel Moolenaar [Tue, 3 May 2005 04:11:56 +0000 (04:11 +0000)]
Allow specifying which INDEX file to use by setting PKG_INDEX. By default
the INDEX file is taken from the package source tree as defined by the
PKG_TREE variable. This change allows using the (possibly incomplete)
packages on pointyhat.

MFC after: 2 days

19 years agoFix some busdma API violations in the dumpsys handler.
Scott Long [Mon, 2 May 2005 22:56:52 +0000 (22:56 +0000)]
Fix some busdma API violations in the dumpsys handler.

MFC After: 3 days

19 years agoEnabke mkuzip(1) on amd64.
Maxim Sobolev [Mon, 2 May 2005 17:40:40 +0000 (17:40 +0000)]
Enabke mkuzip(1) on amd64.

Submitted by: Matteo Riondato <rionda@gufi.org>

19 years agoMake WARNS=6 clean, which should make it compiling on amd64.
Maxim Sobolev [Mon, 2 May 2005 17:38:49 +0000 (17:38 +0000)]
Make WARNS=6 clean, which should make it compiling on amd64.

Submitted by: Matteo Riondato <rionda@gufi.org>

19 years agoMake brandelf(1)'s -t "ABI format" case insensitive, as the ABI value
Brian Feldman [Mon, 2 May 2005 17:19:33 +0000 (17:19 +0000)]
Make brandelf(1)'s -t "ABI format" case insensitive, as the ABI value
given is looked up in a table and no longer stored literally in the
header.

Submitted by: Divacky Roman <xdivac02@stud.fit.vutbr.cz
PR: 80499
MFC After: 1 month

19 years agoDon't copy the NFSMNT_* flags into struct statfs's f_flags field,
Ian Dowse [Mon, 2 May 2005 15:57:10 +0000 (15:57 +0000)]
Don't copy the NFSMNT_* flags into struct statfs's f_flags field,
as they have no connection with the expected MNT_* flags. This bug
was exposed 18 months ago when the assignments to f_flags in
vfs_syscalls.c were moved to before the VFS_STATFS() call. It was
fixed in the CSRG source 10 years ago, but we never picked up that
change.

PR: kern/80390
MFC after: 1 week

19 years agoUse static for static variables. This fixes gcc4 build.
Xin LI [Mon, 2 May 2005 14:18:08 +0000 (14:18 +0000)]
Use static for static variables.  This fixes gcc4 build.

19 years agoUse socklen_t in place of socket operations, instead of int
Xin LI [Mon, 2 May 2005 14:02:43 +0000 (14:02 +0000)]
Use socklen_t in place of socket operations, instead of int

19 years agoDocument the device burncd uses by default.
Christian Brueffer [Mon, 2 May 2005 11:59:21 +0000 (11:59 +0000)]
Document the device burncd uses by default.

Submitted by: Christoph Mallon <christoph.mallon@gmx.de>
MFC after: 3 days

19 years agoadd targets for ipnodes.byname and ipnodes.byaddr which carries
Hajimu UMEMOTO [Mon, 2 May 2005 11:19:52 +0000 (11:19 +0000)]
add targets for ipnodes.byname and ipnodes.byaddr which carries
IPv6 addresses.  these targets are off by default, and these
are built when there is /var/yp/ipnodes.

19 years agoInclude systat.h for cmdtab, to make gcc4 happy.
Xin LI [Mon, 2 May 2005 10:50:10 +0000 (10:50 +0000)]
Include systat.h for cmdtab, to make gcc4 happy.

19 years agoCleanups for gcc4:
Xin LI [Mon, 2 May 2005 10:31:27 +0000 (10:31 +0000)]
Cleanups for gcc4:

 - Use socklen_t for socket functions
 - Remove an unnecessary extern
 - Signed/unsigned cleanups

Reviewed by: harti

19 years agoConsistently use signed char so gcc4 won't complain
Xin LI [Mon, 2 May 2005 10:23:03 +0000 (10:23 +0000)]
Consistently use signed char so gcc4 won't complain

19 years agoWARNS=6 and gcc4 cleanup:
Xin LI [Mon, 2 May 2005 10:13:38 +0000 (10:13 +0000)]
WARNS=6 and gcc4 cleanup:
- Use const where necessary
- Use __unused where applicable
- Rename variables that is conflicit with global definations

19 years agoNeaten usage message.
Joseph Koshy [Mon, 2 May 2005 10:07:11 +0000 (10:07 +0000)]
Neaten usage message.

19 years agoinclude stdarg.h for va_list
Xin LI [Mon, 2 May 2005 10:04:16 +0000 (10:04 +0000)]
include stdarg.h for va_list

19 years agoMake gcc4 happy by making consistent signedness.
Xin LI [Mon, 2 May 2005 10:00:39 +0000 (10:00 +0000)]
Make gcc4 happy by making consistent signedness.

19 years agofix typo in previos commit.
Hajimu UMEMOTO [Mon, 2 May 2005 09:42:59 +0000 (09:42 +0000)]
fix typo in previos commit.

19 years agoteach IPv6 to async DNS resolver in ypserv:
Hajimu UMEMOTO [Mon, 2 May 2005 09:34:07 +0000 (09:34 +0000)]
teach IPv6 to async DNS resolver in ypserv:
- query AAAA RR on ipnodes.byname query.
- query .ip6.arpa. on ipnodes.byaddr query.

19 years agofixed a possible reference to a broken memory
SUZUKI Shinsuke [Mon, 2 May 2005 07:44:24 +0000 (07:44 +0000)]
fixed a possible reference to a broken memory

MFC after: 1 day

19 years agoAlways attach a subdisk even if no valid metadata found.
Søren Schmidt [Mon, 2 May 2005 07:06:50 +0000 (07:06 +0000)]
Always attach a subdisk even if no valid metadata found.
This allows the disks to be used later in a raid create.

19 years agoRemove GIANT_REQUIRED from vmspace_exec().
Alan Cox [Mon, 2 May 2005 07:05:20 +0000 (07:05 +0000)]
Remove GIANT_REQUIRED from vmspace_exec().

Prodded by: jeff

19 years agoNew release notes: musycc gone, new ndis(4) driver generation/load
Bruce A. Mah [Mon, 2 May 2005 05:56:30 +0000 (05:56 +0000)]
New release notes:  musycc gone, new ndis(4) driver generation/load
mechanism, bsnmp 1.9, libz 1.2.2.

19 years agothe 3rd argument of getsockname() should be socklen_t*.
Hajimu UMEMOTO [Mon, 2 May 2005 04:43:32 +0000 (04:43 +0000)]
the 3rd argument of getsockname() should be socklen_t*.

Submitted by: stefanf

19 years agoSince it is not possible for curthread to be NULL in this context,
Christian S.J. Peron [Mon, 2 May 2005 02:07:55 +0000 (02:07 +0000)]
Since it is not possible for curthread to be NULL in this context,
drop the check+initialization for a straight initialization. Also
assert that curthread will never be NULL just to be sure.

Discussed with: rwatson, peter
MFC after: 1 week

19 years agoNew release notes: IPFilter 4.1.8, tcsh 6.14.00.
Bruce A. Mah [Mon, 2 May 2005 01:14:36 +0000 (01:14 +0000)]
New release notes:  IPFilter 4.1.8, tcsh 6.14.00.

19 years agoFix a few grammos and style nits here and there.
Bruce A. Mah [Mon, 2 May 2005 01:09:32 +0000 (01:09 +0000)]
Fix a few grammos and style nits here and there.

19 years agoMake caesar and pom WARNS 6 clean. While there, use prototypes everywhere.
Stefan Farfeleder [Sun, 1 May 2005 19:34:22 +0000 (19:34 +0000)]
Make caesar and pom WARNS 6 clean.  While there, use prototypes everywhere.

PR: 62456

19 years agoRemove lame and ineffectual attempt to fix ipf breakage of tenderbox.
Warner Losh [Sun, 1 May 2005 17:36:09 +0000 (17:36 +0000)]
Remove lame and ineffectual attempt to fix ipf breakage of tenderbox.

19 years agoMFen 1.845-1.849
Xin LI [Sun, 1 May 2005 15:07:58 +0000 (15:07 +0000)]
MFen 1.845-1.849

Obtained from: The FreeBSD Simplified Chinese Project CVS

19 years agoAdd convenience APIs pmc_width() and pmc_capabilities() to -lpmc.
Joseph Koshy [Sun, 1 May 2005 14:11:49 +0000 (14:11 +0000)]
Add convenience APIs pmc_width() and pmc_capabilities() to -lpmc.
Have pmcstat(8) and pmccontrol(8) use these APIs.

Return PMC class-related constants (PMC widths and capabilities)
with the OP GETCPUINFO call leaving OP PMCINFO to return only the
dynamic information associated with a PMC (i.e., whether enabled,
owner pid, reload count etc.).

Allow pmc_read() (i.e., OPS PMCRW) on active self-attached PMCs to
get upto-date values from hardware since we can guarantee that the
hardware is running the correct PMC at the time of the call.

Bug fixes:
 - (x86 class processors) Fix a bug that prevented an RDPMC
   instruction from being recognized as permitted till after the
   attached process had context switched out and back in again after
   a pmc_start() call.

   Tighten the rules for using RDPMC class instructions: a GETMSR
   OP is now allowed only after an OP ATTACH has been done by the
   PMC's owner to itself.  OP GETMSR is not allowed for PMCs that
   track descendants, for PMCs attached to processes other than
   their owner processes.

 - (P4/HTT processors only) Fix a bug that caused the MI and MD
   layers to get out of sync.  Add a new MD operation 'get_config()'
   as part of this fix.

 - Allow multiple system-mode PMCs at the same row-index but on
   different CPUs to be allocated.

 - Reject allocation of an administratively disabled PMC.

Misc. code cleanups and refactoring.  Improve a few comments.

19 years agoRemove now unused inirw variable from previous use of COMMON_END().
Robert Watson [Sun, 1 May 2005 14:01:38 +0000 (14:01 +0000)]
Remove now unused inirw variable from previous use of COMMON_END().

Reported by: csjp

19 years agoCatch up with latest ATA newbus commits.
Peter Grehan [Sun, 1 May 2005 13:11:29 +0000 (13:11 +0000)]
Catch up with latest ATA newbus commits.

19 years agoFix typo in last commit.
Peter Grehan [Sun, 1 May 2005 13:06:05 +0000 (13:06 +0000)]
Fix typo in last commit.

Approved by: rwatson

19 years agooops, we don't need previous change.
Hajimu UMEMOTO [Sun, 1 May 2005 12:37:12 +0000 (12:37 +0000)]
oops, we don't need previous change.

19 years agoUpdate on the last commit, the dma* funciton needs to be called with
Søren Schmidt [Sun, 1 May 2005 12:24:45 +0000 (12:24 +0000)]
Update on the last commit, the dma* funciton needs to be called with
a channel device, not an ata device, or we'll be out of luck in
reset/timeout where we dont have a device.

19 years agomake it compilable without YP definition.
Hajimu UMEMOTO [Sun, 1 May 2005 12:08:57 +0000 (12:08 +0000)]
make it compilable without YP definition.

19 years ago - All buffers should either be clean or dirty. If neither of these flags
Jeff Roberson [Sun, 1 May 2005 12:00:36 +0000 (12:00 +0000)]
 - All buffers should either be clean or dirty.  If neither of these flags
   are set when we attempt to remove a buffer from a queue we should panic.
   Hopefully this will catch the source of the wrong bufobj panics.

Sponsored by: Isilon Systems, Inc.

19 years agoSlide unlocking of the tcbinfo lock earlier in tcp_usr_send(), as it's
Robert Watson [Sun, 1 May 2005 11:11:38 +0000 (11:11 +0000)]
Slide unlocking of the tcbinfo lock earlier in tcp_usr_send(), as it's
needed only for implicit connect cases.  Under load, especially on SMP,
this can greatly reduce contention on the tcbinfo lock.

NB: Ambiguities about the state of so_pcb need to be resolved so that
all use of the tcbinfo lock in non-implicit connection cases can be
eliminated.

Submited by: Kazuaki Oda <kaakun at highway dot ne dot jp>

19 years ago- Merged some missing changes from fdisk/fdisk.c.
Yoshihiro Takahashi [Sun, 1 May 2005 10:08:35 +0000 (10:08 +0000)]
- Merged some missing changes from fdisk/fdisk.c.
- Remove ifdef PC98.
- Make WARN=4 clean.

19 years agocosmetic changes.
Yoshihiro Takahashi [Sun, 1 May 2005 09:50:02 +0000 (09:50 +0000)]
cosmetic changes.

19 years agoAdd some convenience defines.
Yoshihiro Takahashi [Sun, 1 May 2005 09:48:24 +0000 (09:48 +0000)]
Add some convenience defines.

19 years agoFix signed vs unsigned warning.
Yoshihiro Takahashi [Sun, 1 May 2005 09:44:50 +0000 (09:44 +0000)]
Fix signed vs unsigned warning.

19 years agoGo back to the old way of finding the Promise metadata, the new way was
Søren Schmidt [Sun, 1 May 2005 08:45:12 +0000 (08:45 +0000)]
Go back to the old way of finding the Promise metadata, the new way was
too simple causing older controllers metadata to get lost.

19 years ago - document powerd_flags too
Alexander Leidinger [Sun, 1 May 2005 08:34:01 +0000 (08:34 +0000)]
 - document powerd_flags too
 - add a reference to powerd(8)

Approved by: mentor (joerg)

19 years agoAdd ntp.jst.mfeed.ad.jp and ntp1.v6.mfeed.ad.jp (IPv6 only) to
Makoto Matsushita [Sun, 1 May 2005 08:19:54 +0000 (08:19 +0000)]
Add ntp.jst.mfeed.ad.jp and ntp1.v6.mfeed.ad.jp (IPv6 only) to
the NTP server list.

The servers are by Internet Multifeed Co., and connected to their
IX service JPNAP.  It would be a good NTP server for machines in Japan.

See also http://www.jst.mfeed.ad.jp/ for more details (Japanese only).

Reviewed by: nork

19 years agodon't see RES_USE_INET6 when called from getipnodeby*().
Hajimu UMEMOTO [Sun, 1 May 2005 07:39:45 +0000 (07:39 +0000)]
don't see RES_USE_INET6 when called from getipnodeby*().

19 years agoMerged more changes from fdisk/fdisk.c.
Yoshihiro Takahashi [Sun, 1 May 2005 05:04:05 +0000 (05:04 +0000)]
Merged more changes from fdisk/fdisk.c.

19 years agoUse NDOSPART macro instead of a magic number.
Yoshihiro Takahashi [Sun, 1 May 2005 05:01:55 +0000 (05:01 +0000)]
Use NDOSPART macro instead of a magic number.

19 years agoMerged from src/sbin/fdisk/fdisk.c revision 1.77.
Yoshihiro Takahashi [Sun, 1 May 2005 04:14:01 +0000 (04:14 +0000)]
Merged from src/sbin/fdisk/fdisk.c revision 1.77.

19 years agoMFi386: revision 1.1198 (add KDB_STOP_NMI option).
Yoshihiro Takahashi [Sun, 1 May 2005 04:00:12 +0000 (04:00 +0000)]
MFi386: revision 1.1198 (add KDB_STOP_NMI option).

19 years agoMFi386: revision 1.220 (add KDB_STOP_NMI option).
Yoshihiro Takahashi [Sun, 1 May 2005 03:59:25 +0000 (03:59 +0000)]
MFi386: revision 1.220 (add KDB_STOP_NMI option).