]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
21 years agoRe-implement kernel access control for quotactl() as found in the
Robert Watson [Sun, 15 Jun 2003 06:36:19 +0000 (06:36 +0000)]
Re-implement kernel access control for quotactl() as found in the
UFS quota implementation.  Push some quite broken access control
logic out of ufs_quotactl() into the individual command
implementations in ufs_quota.c; fix that logic.  Pass in the thread
argument to any quotactl command that will need to perform access
control.

o quotaon() requires privilege (PRISON_ROOT).

o quotaoff() requires privilege (PRISON_ROOT).

o getquota() requires that:

    If the type is USRQUOTA, either the effective uid match the
    requested quota ID, that the unprivileged_get_quota flag be
    set, or that the thread be privileged (PRISON_ROOT).

    If the type is GRPQUOTA, require that either the thread be
    a member of the group represented by the requested quota ID,
    that the unprivileged_get_quota flag be set, or that the
    thread be privileged (PRISON_ROOT).

o setquota() requires privilege (PRISON_ROOT).

o setuse() requires privilege (PRISON_ROOT).

o qsync() requires no special privilege (consistent with what
  was present before, but probably not very useful).

Add a new sysctl, security.bsd.unprivileged_get_quota, which when
set to a non-zero value, will permit unprivileged users to query user
quotas with non-matching uids and gids.  Set this to 0 by default
to be mostly consistent with the previous behavior (the same for
USRQUOTA, but not for GRPQUOTA).

Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories

21 years agoTighten up the string->integer conversion in sysctl(8):
Robert Watson [Sun, 15 Jun 2003 06:26:08 +0000 (06:26 +0000)]
Tighten up the string->integer conversion in sysctl(8):

(1) Reject zero-length strings for CTLTYPE_INT, _UINT, _LONG,
    _ULONG.  Do not silently convert to 0.

(2) When converting CTLTYPE_INT, _UINT, _LONG, and _ULONG, check the
    end pointer generated by strtol() and strtoul() rather than
    discarding it.  Reject the string if either none of the string
    was useful for conversion to an integer, or if there was
    trailing garbage.

I.e., we will not allow you to set a numeric sysctl to a value unless
we can completely convert the string argument to a numeric value.
I tripped over this when I put the following in /etc/sysctl.conf:

   kern.maxfiles="4000"

Ouch.

21 years agoDisable unneeded devices and options.
Yoshihiro Takahashi [Sun, 15 Jun 2003 04:31:52 +0000 (04:31 +0000)]
Disable unneeded devices and options.

21 years agoRemove CPU_ATHLON_SSE_HACK option.
Yoshihiro Takahashi [Sun, 15 Jun 2003 04:29:37 +0000 (04:29 +0000)]
Remove CPU_ATHLON_SSE_HACK option.

21 years agoInclude "../Makefile.inc"
Yoshihiro Takahashi [Sun, 15 Jun 2003 04:27:22 +0000 (04:27 +0000)]
Include "../Makefile.inc"

21 years agoMost power management devices don't exist on pc98.
Yoshihiro Takahashi [Sun, 15 Jun 2003 04:24:28 +0000 (04:24 +0000)]
Most power management devices don't exist on pc98.

21 years agoThe en module has been broken for the last 40 hours. Disconnect it
Warner Losh [Sun, 15 Jun 2003 04:15:29 +0000 (04:15 +0000)]
The en module has been broken for the last 40 hours.  Disconnect it
from the tree until it is fixed.  Since it is an atm driver, it isn't
commonly used so this will not negatively impact too many people.
harti can reconnect it when he resurfaces and corrects the en module
problems.  This should allow snapshots to start succeeding again.

Reported by: lots of people

21 years ago - Increase the ksegrp's cpu time history buffer to 250ms.
Jeff Roberson [Sun, 15 Jun 2003 04:14:25 +0000 (04:14 +0000)]
 - Increase the ksegrp's cpu time history buffer to 250ms.
 - Decrease the history buffer divisor to 2 so that we remember more of the
   old behavior.

21 years ago- Enable support for building Configuration ROM.
Hidetoshi Shimokawa [Sun, 15 Jun 2003 04:09:26 +0000 (04:09 +0000)]
- Enable support for building Configuration ROM.
- Improve probe message for S800 chips.

21 years agoP_THREADED was renamed to P_SA, follow up.
David Xu [Sun, 15 Jun 2003 03:42:04 +0000 (03:42 +0000)]
P_THREADED was renamed to P_SA, follow up.

21 years agoFix crom_add_simple_text().
Hidetoshi Shimokawa [Sun, 15 Jun 2003 03:22:30 +0000 (03:22 +0000)]
Fix crom_add_simple_text().
Bytewap Configuration ROM image.

21 years agoAdd CSRVAL_VENDOR_PRIVATE.
Hidetoshi Shimokawa [Sun, 15 Jun 2003 03:19:55 +0000 (03:19 +0000)]
Add CSRVAL_VENDOR_PRIVATE.

21 years ago1. Migrate TDF_UPCALLING from td_flags to td_pflags.
David Xu [Sun, 15 Jun 2003 03:18:58 +0000 (03:18 +0000)]
1. Migrate TDF_UPCALLING from td_flags to td_pflags.
2. Add a flag TDF_SA, it will be used to distinguish SA
   based thread from bound thread.

21 years agofix a couple typos in the comments
John-Mark Gurney [Sun, 15 Jun 2003 03:08:37 +0000 (03:08 +0000)]
fix a couple typos in the comments

From NetBSD's bootpd (in src/usr.sbin/bootp)

21 years agofix bootpd to use fd_set. For some reason on Sparc, using int with
John-Mark Gurney [Sun, 15 Jun 2003 03:05:14 +0000 (03:05 +0000)]
fix bootpd to use fd_set.  For some reason on Sparc, using int with
select is broken.

21 years agomake rarpd use in_addr_t instead of u_long since this is neccessary
John-Mark Gurney [Sun, 15 Jun 2003 03:00:22 +0000 (03:00 +0000)]
make rarpd use in_addr_t instead of u_long since this is neccessary
on 64bit platforms

ok'd by: silence

21 years ago - Cap the growth of sleep and run time in sched_exit_kse().
Jeff Roberson [Sun, 15 Jun 2003 02:52:29 +0000 (02:52 +0000)]
 - Cap the growth of sleep and run time in sched_exit_kse().

21 years agoFix some style problems, some of which are old, some new, and some
David Schultz [Sun, 15 Jun 2003 02:21:13 +0000 (02:21 +0000)]
Fix some style problems, some of which are old, some new, and some
inherited from UFS.

Requested by: bde, njl

21 years ago - Fix the maximum slice value. I accidentally checked in a value of '2'
Jeff Roberson [Sun, 15 Jun 2003 02:18:29 +0000 (02:18 +0000)]
 - Fix the maximum slice value.  I accidentally checked in a value of '2'
   which meant no process would run for longer than 20ms.
 - Slightly redo the interactivity scorer.  It follows the same algorithm but
   in a slightly more correct way.  Previously values above half were
   incorrect.
 - Lower the interactivity threshold to 20.  It seems that in testing non-
   interactive tasks are hardly ever near there and expensive interactive
   tasks can sometimes surpass it.  This area needs more testing.
 - Remove an unnecessary KTR.
 - Fix a case where an idle thread that had an elevated priority due to
   priority prop. would be placed back on the idle queue.
 - Delay setting NEEDRESCHED until userret() for threads that haad their
   priority elevated while in kernel.  This gives us the same context switch
   optimization as SCHED_4BSD.
 - Limit the child's slice to 1 in sched_fork_kse() so we detect its behavior
   more quickly.
 - Inhert some of the run/slp time from the child in sched_exit_ksegrp().
 - Redo some of the priority comparisons so they are more clear.
 - Throttle the frequency of sched_pctcpu_update() so that rounding errors
   do not make it invalid.

21 years agoMerge the following from the English version:
Hiroki Sato [Sun, 15 Jun 2003 02:10:37 +0000 (02:10 +0000)]
Merge the following from the English version:

1.158 -> 1.159 hardware/common/dev.sgml

21 years agocheck_drive: If the partition isn't a Vinum drive, release it again
Greg Lehey [Sun, 15 Jun 2003 01:42:01 +0000 (01:42 +0000)]
check_drive: If the partition isn't a Vinum drive, release it again
and return NULL.

vinum_scandisk: Don't handle NULL device pointers.
        Only look at compatibility partition for i386.  This
        is a kludge which should go away once I have adequate
        documentation for the New World Order.

Together, these fixes remove occasional error messages about
non-existent drives.  They may also fix a number of problems that have
been reported without a PR.

PRs: None

21 years agoDon't set TDF_UPCALLING in cpu_set_upcall, it is not only used by
David Xu [Sun, 15 Jun 2003 00:54:07 +0000 (00:54 +0000)]
Don't set TDF_UPCALLING in cpu_set_upcall, it is not only used by
SA process.

21 years agoRename P_THREADED to P_SA. P_SA means a process is using scheduler
David Xu [Sun, 15 Jun 2003 00:31:24 +0000 (00:31 +0000)]
Rename P_THREADED to P_SA. P_SA means a process is using scheduler
activations.

21 years agoWhite space fix.
Hidetoshi Shimokawa [Sun, 15 Jun 2003 00:17:38 +0000 (00:17 +0000)]
White space fix.

21 years agoUse #ifdef __alpha__, not __alpha.
Alan Cox [Sun, 15 Jun 2003 00:12:42 +0000 (00:12 +0000)]
Use #ifdef __alpha__, not __alpha.

21 years agoIf someone tries to mount a union filesystem with another unionfs as
David Schultz [Sat, 14 Jun 2003 23:56:27 +0000 (23:56 +0000)]
If someone tries to mount a union filesystem with another unionfs as
the upper layer, fail gracefully instead of panicing.

MFC after: 3 days

21 years agoIntroduce malloc types M_UNDCACHE and M_UNPATH for important
David Schultz [Sat, 14 Jun 2003 23:48:20 +0000 (23:48 +0000)]
Introduce malloc types M_UNDCACHE and M_UNPATH for important
unionfs-related data structures to aid in debugging memory leaks.
Use NULL and NULLVP instead of 0 as appropriate.

MFC after: 3 days

21 years agoFactor out the process of freeing ``directory caches'', which unionfs
David Schultz [Sat, 14 Jun 2003 23:27:29 +0000 (23:27 +0000)]
Factor out the process of freeing ``directory caches'', which unionfs
directory vnodes use to refer to their constituent vnodes, into
union_dircache_free().  Also s/union_dircache/union_dircache_get/ and
tweak the structure of union_dircache_r().

MFC after: 3 days

21 years agoMigrate the thread stack management functions from the machine-dependent
Alan Cox [Sat, 14 Jun 2003 23:23:55 +0000 (23:23 +0000)]
Migrate the thread stack management functions from the machine-dependent
to the machine-independent parts of the VM.  At the same time, this
introduces vm object locking for the non-i386 platforms.

Two details:

1. KSTACK_GUARD has been removed in favor of KSTACK_GUARD_PAGES.  The
different machine-dependent implementations used various combinations
of KSTACK_GUARD and KSTACK_GUARD_PAGES.  To disable guard page, set
KSTACK_GUARD_PAGES to 0.

2. Remove the (unnecessary) clearing of PG_ZERO in vm_thread_new.  In
5.x, (but not 4.x,) PG_ZERO can only be set if VM_ALLOC_ZERO is passed
to vm_page_alloc() or vm_page_grab().

21 years agoCatch up man page with reality in rc.d/named.
Mike Makonnen [Sat, 14 Jun 2003 22:43:40 +0000 (22:43 +0000)]
Catch up man page with reality in rc.d/named.

Pointed out by: Simon L. Nielsen <simon@nitro.dk>

21 years agoMerge common XPT_CALC_GEOMETRY functions into a single convenience function.
Nate Lawson [Sat, 14 Jun 2003 22:40:08 +0000 (22:40 +0000)]
Merge common XPT_CALC_GEOMETRY functions into a single convenience function.
Devices below may experience a change in geometry.

* umass(4) drives exactly 1 GB in size now no longer use extended geometry.

21 years agoUpdate a comment about symlinking named's pid file to correctly
Mike Makonnen [Sat, 14 Jun 2003 22:26:30 +0000 (22:26 +0000)]
Update a comment about symlinking named's pid file to correctly
reflect the code.

Suggested by: maxim

21 years agoMerge common XPT_CALC_GEOMETRY functions into a single convenience function.
Nate Lawson [Sat, 14 Jun 2003 22:17:41 +0000 (22:17 +0000)]
Merge common XPT_CALC_GEOMETRY functions into a single convenience function.
Devices below may experience a change in geometry.

* Due to a bug, aic(4) never used extended geometry.  Changes all drives
  >1G to now use extended translation.
* sbp(4) drives exactly 1 GB in size now no longer use extended geometry.
* umass(4) drives exactly 1 GB in size now no longer use extended geometry.

For all other controllers in this commit, this should be a no-op.

Looked over by: scottl

21 years agoMerge common XPT_CALC_GEOMETRY functions into a single convenience function.
Nate Lawson [Sat, 14 Jun 2003 22:17:38 +0000 (22:17 +0000)]
Merge common XPT_CALC_GEOMETRY functions into a single convenience function.
Devices below may experience a change in geometry.

* Due to a bug, aic(4) never used extended geometry.  Changes all drives
  >1G to now use extended translation.
* sbp(4) drives exactly 1 GB in size now no longer use extended geometry.
* umass(4) drives exactly 1 GB in size now no longer use extended geometry.

For all other controllers in this commit, this should be a no-op.

PR:
Submitted by:
Looked over by: scottl
Approved by:
Obtained from:
MFC after:

21 years agoFix the KMOD for the lpbb device.
John-Mark Gurney [Sat, 14 Jun 2003 20:43:33 +0000 (20:43 +0000)]
Fix the KMOD for the lpbb device.

21 years agoamdpm was omitted from the build of i2c controllers. Fixed.
Nicolas Souchu [Sat, 14 Jun 2003 20:32:46 +0000 (20:32 +0000)]
amdpm was omitted from the build of i2c controllers. Fixed.

21 years agoAdd i2c to the list of modules to build.
Nicolas Souchu [Sat, 14 Jun 2003 20:21:35 +0000 (20:21 +0000)]
Add i2c to the list of modules to build.

21 years agoRemove MAINTAINER lines.
David E. O'Brien [Sat, 14 Jun 2003 19:32:52 +0000 (19:32 +0000)]
Remove MAINTAINER lines.

21 years agoUpdate and try to remain out of area where conflict exists.
David E. O'Brien [Sat, 14 Jun 2003 19:27:10 +0000 (19:27 +0000)]
Update and try to remain out of area where conflict exists.

21 years agoTidy up. Sort headers.
Mark Murray [Sat, 14 Jun 2003 18:42:37 +0000 (18:42 +0000)]
Tidy up. Sort headers.

21 years agoMinor tweaks to the build process so that we can build 5.1-current on
Warner Losh [Sat, 14 Jun 2003 17:50:13 +0000 (17:50 +0000)]
Minor tweaks to the build process so that we can build 5.1-current on
4.8-stable:

Must build lib/libc before libpthread.  Fix how we do this to be more
consistant with how lists are handled in the file.  Also, don't bother
to prebuild libc if we're not building libpthread.

Submitted by: ru@
Reviewed by: bde@ (before ru@ submitted it)

21 years agoPut on the core hat and back out all of the CSTD= changes. Core will
Warner Losh [Sat, 14 Jun 2003 17:41:59 +0000 (17:41 +0000)]
Put on the core hat and back out all of the CSTD= changes.  Core will
deal with working with the parties to define a coherent definition for
CSTD that doesn't break things.

Core hat seconded by: markm

21 years agoSome glue to allow lint(1) to work on the kernel. This is not
Mark Murray [Sat, 14 Jun 2003 17:28:13 +0000 (17:28 +0000)]
Some glue to allow lint(1) to work on the kernel. This is not
complete without some config(8) work. Config(8) needs to provide
some ${NORMAL_LINT} rules to make foo.ln files.

21 years agoAvoid dereferencing the thread pointer in smb_iod_addrq() if it's NULL.
Tim J. Robbins [Sat, 14 Jun 2003 15:45:34 +0000 (15:45 +0000)]
Avoid dereferencing the thread pointer in smb_iod_addrq() if it's NULL.
Fixes mdconfig -t vnode on smbfs: mdsetcred()'s "horrible kludge"
calls into smbfs VOP_READ with a NULL uio_td.

21 years agoDon't follow smbnode n_parent pointer when NREFPARENT flag is not set
Tim J. Robbins [Sat, 14 Jun 2003 15:24:54 +0000 (15:24 +0000)]
Don't follow smbnode n_parent pointer when NREFPARENT flag is not set
in smb_fphelp(): the parent vnode may have already been recycled
since we don't hold a reference to it. Fixes a panic when rebooting
with mdconfig -t vnode devices referring to vnodes on a smbfs mount.

21 years agoDon't truncate the output file before making sure that we can
Tom Rhodes [Sat, 14 Jun 2003 13:41:31 +0000 (13:41 +0000)]
Don't truncate the output file before making sure that we can
read at least 1 byte from the input file without problems.  This
fixes a bug in uncompress(1) that causes the accidental removal
of files that happen to have the same name as the output file,
even when the uncompression fails and is aborted, i.e.:

$ echo hello world > hello
$ touch hello.Z
$ ls -l hello*
-rw-rw-r--  1 giorgos  giorgos  12 Jun 14 13:33 hello
-rw-rw-r--  1 giorgos  giorgos   0 Jun 14 13:33 hello.Z
$ ./uncompress -f hello
uncompress: hello.Z: Inappropriate file type or format
$ ls -l hello*
-rw-rw-r--  1 giorgos  giorgos  0 Jun 14 13:33 hello.Z
$

PR: 46787
Submitted by: keramida

21 years agoDo not bogusly set CSTD to the empty string.
Dag-Erling Smørgrav [Sat, 14 Jun 2003 13:30:32 +0000 (13:30 +0000)]
Do not bogusly set CSTD to the empty string.

21 years agoRemove the old xref to kerberos(1), and replace it with an xref to
Tom Rhodes [Sat, 14 Jun 2003 13:23:49 +0000 (13:23 +0000)]
Remove the old xref to kerberos(1), and replace it with an xref to
kerberos(8).  According to markm, the kerberos(8) manual page is
installed if NO_KERBEROS is set.

PR: 30443

21 years agoFix all WARNS. Checked with "make WARNS=9". Remove unused file.
Mark Murray [Sat, 14 Jun 2003 13:00:21 +0000 (13:00 +0000)]
Fix all WARNS.  Checked with "make WARNS=9". Remove unused file.

21 years agoSet the precedence on failure reports to "bulk" so I don't get tons of
Dag-Erling Smørgrav [Sat, 14 Jun 2003 12:36:13 +0000 (12:36 +0000)]
Set the precedence on failure reports to "bulk" so I don't get tons of
vacation notices every time the tree breaks.

21 years agoAdd a system policy, and have the login and su policies include it rather
Dag-Erling Smørgrav [Sat, 14 Jun 2003 12:35:05 +0000 (12:35 +0000)]
Add a system policy, and have the login and su policies include it rather
than duplicate it.  This requires OpenPAM Dianthus, which was committed two
weeks ago; installing these files on a system running a world older than
June 1st, 2003 will cause login(1) and su(1) to fail.

21 years agoRevert to a known-good state. Anyone desiring to experiment with stricter
Dag-Erling Smørgrav [Sat, 14 Jun 2003 11:57:44 +0000 (11:57 +0000)]
Revert to a known-good state.  Anyone desiring to experiment with stricter
global settings is free to do so in his or her own source tree.

21 years agoIn the last clean-up of this code, the fact that the default tty mode
Brian Feldman [Sat, 14 Jun 2003 08:26:47 +0000 (08:26 +0000)]
In the last clean-up of this code, the fact that the default tty mode
information could only be gleaned from the the tty descriptor itself
was neglected, so never did the tty's default settings get copied from
the kernel.  Specifically, this caused all manner of ctrl-keys to not
work.  Fix this by calling dogettytab() in all the proper places, and
retrieving the terminfo temporarily in dogettytab().

21 years agoMove the *_new_altkstack() and *_dispose_altkstack() functions out of the
Alan Cox [Sat, 14 Jun 2003 06:20:25 +0000 (06:20 +0000)]
Move the *_new_altkstack() and *_dispose_altkstack() functions out of the
various pmap implementations into the machine-independent vm.  They were
all identical.

21 years agoOnly use this with a non-GCC compiler.
David E. O'Brien [Sat, 14 Jun 2003 06:04:23 +0000 (06:04 +0000)]
Only use this with a non-GCC compiler.

21 years agoUse GCC's internal built-in alloca implementation, when available.
David E. O'Brien [Sat, 14 Jun 2003 06:01:35 +0000 (06:01 +0000)]
Use GCC's internal built-in alloca implementation, when available.

Submitted by: DES

21 years agoRemove MAINTAINER= lines in the makefiles for camcontrol, iostat, libcam
Kenneth D. Merry [Sat, 14 Jun 2003 05:28:01 +0000 (05:28 +0000)]
Remove MAINTAINER= lines in the makefiles for camcontrol, iostat, libcam
and libdevstat, since the new way of doing things is to just list
maintainership in src/MAINTAINERS.

Also, remove duplicate entries in src/MAINTAINERS for those utilities.  I
already had entries for them.

21 years agoRemove kernel event tracing. The overhead is significant when running
Marcel Moolenaar [Sat, 14 Jun 2003 00:01:24 +0000 (00:01 +0000)]
Remove kernel event tracing. The overhead is significant when running
under ski.

21 years agoDocument ENOSPC.
Tom Rhodes [Fri, 13 Jun 2003 22:41:12 +0000 (22:41 +0000)]
Document ENOSPC.

PR: 52612
Submitted by: Marc Olzheim <marcolz@ilse.nl>

21 years agoFix alignment requirements of tulip_rombuf by further increasing
Bernd Walter [Fri, 13 Jun 2003 22:34:03 +0000 (22:34 +0000)]
Fix alignment requirements of tulip_rombuf by further increasing
tulip_boardid size.
Add a comment to tulip_rombuf about this requirement.
I have had panics on alpha while probing a de card.

21 years agoWhen building a shared library, link it against libgcc_pic.a instead of the
Peter Wemm [Fri, 13 Jun 2003 22:25:41 +0000 (22:25 +0000)]
When building a shared library, link it against libgcc_pic.a instead of the
non-PIC libgcc.a.  Linking non-pic code into a shared library is not
a good thing.  It happens to break amd64 at compile time, and the ppc
folks want it too.  The problem is mainly with C++ code, unwind-dw2.c
in particular.  Most of the other functions in libgcc.a are self
contained so most of the time it isn't a problem.  The dwarf2 unwinder
is not safe though since it does make global variable references.

Reviewed by: kan

21 years agoIf the -proxy_only option is used, the -alias_address/-interface
Ruslan Ermilov [Fri, 13 Jun 2003 22:15:42 +0000 (22:15 +0000)]
If the -proxy_only option is used, the -alias_address/-interface
options are not required.

Suggested by: Vaclav Petricek
MFC after: 2 weeks

21 years agoBuild/install the PIC version of libgcc (libcc_pic.a) for use by shared
Peter Wemm [Fri, 13 Jun 2003 22:07:39 +0000 (22:07 +0000)]
Build/install the PIC version of libgcc (libcc_pic.a) for use by shared
libraries that do exception unwinding.

21 years agoThis is unusable on amd64. Remove it before it causes more confusion.
Peter Wemm [Fri, 13 Jun 2003 21:56:30 +0000 (21:56 +0000)]
This is unusable on amd64.  Remove it before it causes more confusion.
It is only possible to do this on an ABI that has a compulsory frame
pointer, which the amd64 ABI does not.  Thus, it is only possible to
implement this as a compiler builtin.

21 years agoWe cannot use c99 on amd64 either due to lack of alloca(). libc:strptime()
Peter Wemm [Fri, 13 Jun 2003 21:54:21 +0000 (21:54 +0000)]
We cannot use c99 on amd64 either due to lack of alloca().  libc:strptime()
uses alloca() and alloca is impossible to implement as a callable function
on amd64.  It has to be a compiler builtin.  Note that the bigger problem
is that libc is not c99 clean internally.

21 years agoIn the PKT_ALIAS_PROXY_ONLY mode, make sure to preserve the
Ruslan Ermilov [Fri, 13 Jun 2003 21:54:01 +0000 (21:54 +0000)]
In the PKT_ALIAS_PROXY_ONLY mode, make sure to preserve the
original source IP address, as promised in the manual page.

Spotted by: Vaclav Petricek

21 years agoRemoved a couple of .Xo/.Xc that are leftovers of the "ninth-argument
Ruslan Ermilov [Fri, 13 Jun 2003 21:39:22 +0000 (21:39 +0000)]
Removed a couple of .Xo/.Xc that are leftovers of the "ninth-argument
limit" mdoc(7) atavism.

21 years agoClarify that original address and port when doing transparent proxying
Ruslan Ermilov [Fri, 13 Jun 2003 21:36:24 +0000 (21:36 +0000)]
Clarify that original address and port when doing transparent proxying
are _destination_ address and port.

21 years agoAdded myself to the AUTHORS section.
Ruslan Ermilov [Fri, 13 Jun 2003 21:32:01 +0000 (21:32 +0000)]
Added myself to the AUTHORS section.

21 years agoAdd a comment about the MPSAFEness of this pccard_intr handler. Given
Warner Losh [Fri, 13 Jun 2003 21:30:29 +0000 (21:30 +0000)]
Add a comment about the MPSAFEness of this pccard_intr handler.  Given
how we registered pccard_intr, it is MPSAFE.  However, since we
register the pccard_intr handler with the flags of the ISR we call,
that is the gating factor.  We need do nothing specific here.

Prompted by: seeing pccard_intr in a panic.

21 years agoRemove code that tries to detect if the MCLSHIFT and MSIZE macros
Maxime Henrion [Fri, 13 Jun 2003 20:46:34 +0000 (20:46 +0000)]
Remove code that tries to detect if the MCLSHIFT and MSIZE macros
are the same that those of the kernel in the KLD_MODULE case.  If
we ever want to detect that kind of problems, this is not the right
place to do this since every network driver would be affected by
such desynchronisation.

21 years ago- Document the fact that you can specify several DMA operations to
Maxime Henrion [Fri, 13 Jun 2003 20:07:49 +0000 (20:07 +0000)]
- Document the fact that you can specify several DMA operations to
  bus_dmamap_sync() by OR'ing them together.
- Don't document what BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE and
  BUS_DMASYNC_POSTREAD|BUS_DMASYNC_POSTWRITE is supposed to do when
  passed to bus_dmamap_sync().  There are other possible combinations
  and the reader just needs to know what the individual flags do and
  that he can combine different DMA operations.
- Use .An when listing authors.

Reviewed by: hmp

21 years agoAdd a retrospective entry about how having installed a broken sed(1)
Marcel Moolenaar [Fri, 13 Jun 2003 20:05:46 +0000 (20:05 +0000)]
Add a retrospective entry about how having installed a broken sed(1)
can cause build failures.

Triggered by: too many questions on the -current

21 years agoUse the <sys/bitstring.h> rather than <bitstring.h>
Poul-Henning Kamp [Fri, 13 Jun 2003 19:40:44 +0000 (19:40 +0000)]
Use the <sys/bitstring.h> rather than <bitstring.h>

21 years agoFinish the repocopy of bitstring.h to sys so it can be used
Poul-Henning Kamp [Fri, 13 Jun 2003 19:40:13 +0000 (19:40 +0000)]
Finish the repocopy of bitstring.h to sys so it can be used
from kernel code.

21 years agoStyle(9).
Maxime Henrion [Fri, 13 Jun 2003 19:39:21 +0000 (19:39 +0000)]
Style(9).

21 years agoAdd vm object locking to pmap_object_init_pt().
Alan Cox [Fri, 13 Jun 2003 19:27:52 +0000 (19:27 +0000)]
Add vm object locking to pmap_object_init_pt().

21 years agoHardwire APB's PCI buses down. If we don't do this, pciconf -l returns
John-Mark Gurney [Fri, 13 Jun 2003 17:44:03 +0000 (17:44 +0000)]
Hardwire APB's PCI buses down.  If we don't do this, pciconf -l returns
selectors that are incorrect to use with pciconf -[rw]

Fixes-PR: sparc64/50789
Ok's by: tmm

21 years ago- Use _PATH_TTY and _PATH_DEVNULL macros.
Maxime Henrion [Fri, 13 Jun 2003 17:05:41 +0000 (17:05 +0000)]
- Use _PATH_TTY and _PATH_DEVNULL macros.
- Don't fail if we can't open /dev/null since this can happen if
  xargs is jail'ed or chroot'ed.

These fixes were submitted by Todd Miller from the OpenBSD project.
There was one problem in those fixes that broke -o, which is corrected
here and should be committed to the OpenBSD repo by Todd soon.

MFC in: 3 days

21 years agoEliminated two dozens of superfluous cats and two r-cats (sorry, Jordan).
Ruslan Ermilov [Fri, 13 Jun 2003 16:13:28 +0000 (16:13 +0000)]
Eliminated two dozens of superfluous cats and two r-cats (sorry, Jordan).

Suggested by: Dan Nelson

21 years agoImplement the ioctl that returns a list of currently open VCCs.
Hartmut Brandt [Fri, 13 Jun 2003 13:50:38 +0000 (13:50 +0000)]
Implement the ioctl that returns a list of currently open VCCs.

21 years agoFactor out the description of how to configure a CLIP into its own
Hartmut Brandt [Fri, 13 Jun 2003 12:33:33 +0000 (12:33 +0000)]
Factor out the description of how to configure a CLIP into its own
man page. This will be more scaleable as more driver man pages hit
the tree. Add also a description on how to do this configuration
in the rc.conf script.

21 years agoRemove the documentation of the raw AAL0 access which has been removed.
Hartmut Brandt [Fri, 13 Jun 2003 12:27:41 +0000 (12:27 +0000)]
Remove the documentation of the raw AAL0 access which has been removed.
This raw cell stuff not used in the tree and a doubt that it is used
anywhere else. It was also very Midway specific.

21 years agoMake the midway driver use the new ATM phy driver. This allows one to
Hartmut Brandt [Fri, 13 Jun 2003 12:08:09 +0000 (12:08 +0000)]
Make the midway driver use the new ATM phy driver. This allows one to
toggle several media options (sonet/sdh, for example) with ifconfig and
to see the carrier state in ifconfig's output. It gives also read/write
access (given the right privilegs) to the S/Uni registers to user space
programs.

21 years agoRegen.
Josef Karthauser [Fri, 13 Jun 2003 11:24:45 +0000 (11:24 +0000)]
Regen.

21 years agoAllow the EPSON USB scanner 1250 to be recognised as a uscanner device.
Josef Karthauser [Fri, 13 Jun 2003 11:20:26 +0000 (11:20 +0000)]
Allow the EPSON USB scanner 1250 to be recognised as a uscanner device.

Submitted by: Cristiano Deana <deana@bmm.it>
By way of: n_hibma
MFC after: 3 days

21 years agoPlug a serious memory leak. The -STABLE equivalent of this patch has
David Schultz [Fri, 13 Jun 2003 08:59:37 +0000 (08:59 +0000)]
Plug a serious memory leak.  The -STABLE equivalent of this patch has
been tested extensively, but -CURRENT testing has been hampered by a
number of panics that also occur without the patch.  Since the
destabilizing changes between 4.X and 5.X are external to unionfs,
I believe this patch applies equally well to both.

Thanks to scrappy for assistance testing these and other changes.

MFC after: 4 days

21 years agoMake the VFS cache use zones instead of malloc(9). This results in a
Dag-Erling Smørgrav [Fri, 13 Jun 2003 08:46:13 +0000 (08:46 +0000)]
Make the VFS cache use zones instead of malloc(9).  This results in a
small but noticeable increase in performance for name lookup operations.

The code uses two zones, one for short names (less than 32 characters)
and one for long names (up to NAME_MAX).  Since most file names are
fairly short, this saves a considerable amount of space that would
otherwise be wasted if we always allocated NAME_MAX bytes.  The cutoff
value of 32 characters was picked arbitrarily and may benefit from some
tweaking; it could also be made into a tunable.

Submitted by: hmp

21 years agoAdd vm object locking.
Alan Cox [Fri, 13 Jun 2003 08:11:14 +0000 (08:11 +0000)]
Add vm object locking.

21 years agoUse waitpid, instead of wait3, which is more portable.
Juli Mallett [Fri, 13 Jun 2003 07:37:45 +0000 (07:37 +0000)]
Use waitpid, instead of wait3, which is more portable.

Submitted by: "Todd C. Miller" <Todd.Miller@courtesan.com>
Obtained from: OpenBSD
Reviewed by: tjr

21 years agoRemove redundant return; from void function.
Juli Mallett [Fri, 13 Jun 2003 07:25:15 +0000 (07:25 +0000)]
Remove redundant return; from void function.

Submitted by: "Todd C. Miller" <Todd.Miller@courtesan.com>
Obtained from: OpenBSD

21 years agoMark libxpg4 as OBSOLETE_IN_6: it has been empty since its contents
Tim J. Robbins [Fri, 13 Jun 2003 07:21:37 +0000 (07:21 +0000)]
Mark libxpg4 as OBSOLETE_IN_6: it has been empty since its contents
were merged into libc in 4.5-RELEASE.

21 years agoMark the following interfaces as OBSOLETE_IN_6:
Tim J. Robbins [Fri, 13 Jun 2003 07:13:54 +0000 (07:13 +0000)]
Mark the following interfaces as OBSOLETE_IN_6:
    fgetrune(), fputrune(), fungetrune(), mbrune(), mbrrune(), mbmb(),
    setinvalidrune(), UTF2 encoding method.
These have been marked as being deprecated in their manual pages since 5.0,
and their use causes a linker warning.

21 years agoGet this area compiling with the highest WARNS= that it works with.
Mark Murray [Fri, 13 Jun 2003 07:04:02 +0000 (07:04 +0000)]
Get this area compiling with the highest WARNS= that it works with.
Obsolete WFORMAT= junk also removed where possible.

OK'ed by: obrien
Tested on: sparc64, alpha, i386

21 years agoClean up the fifo_open() implementation:
Don Lewis [Fri, 13 Jun 2003 06:58:11 +0000 (06:58 +0000)]
Clean up the fifo_open() implementation:

        Restructure the error handling portion of the resource allocation
        code to eliminate duplicated code.

        Test for the O_NONBLOCK && fi_readers == 0 case before incrementing
        fi_writers and modifying the the socket flag to avoid having to
        undo these operations in this error case.

        Restructure and simplify the code that handles blocking opens.

There should be no change to functionality.

21 years agoExtend the scope of the vm object lock in swp_pager_async_iodone() to cover
Alan Cox [Fri, 13 Jun 2003 06:17:42 +0000 (06:17 +0000)]
Extend the scope of the vm object lock in swp_pager_async_iodone() to cover
a vm_page_free().

21 years agoAdd vm object locking to various pagers' "get pages" methods, i386 stack
Alan Cox [Fri, 13 Jun 2003 03:02:28 +0000 (03:02 +0000)]
Add vm object locking to various pagers' "get pages" methods, i386 stack
management functions, and a u area management function.

21 years agoConditionally attach the MCA bus device.
Matthew N. Dodd [Fri, 13 Jun 2003 00:43:57 +0000 (00:43 +0000)]
Conditionally attach the MCA bus device.

21 years agoAs a workaround for the latest problems, don't init hermes cards more
Warner Losh [Fri, 13 Jun 2003 00:40:37 +0000 (00:40 +0000)]
As a workaround for the latest problems, don't init hermes cards more
than once.  This appears to work around the hanging issues, at the
expense of warnings about bad RID allocations.  I'm not sure this is a
permanant workaround, but does appear to help in the tests that I've
done here.

21 years agoDespite my best efforts the Linux way of doing this is the only
Matthew N. Dodd [Fri, 13 Jun 2003 00:36:03 +0000 (00:36 +0000)]
Despite my best efforts the Linux way of doing this is the only
way that works correctly.

- Remove unused function.
- Move declaration of variables to .S file.