]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/log
FreeBSD/FreeBSD.git
23 years agoo Move per-process jail pointer (p->pr_prison) to inside of the subject
rwatson [Wed, 21 Feb 2001 06:39:57 +0000 (06:39 +0000)]
o Move per-process jail pointer (p->pr_prison) to inside of the subject
  credential structure, ucred (cr->cr_prison).
o Allow jail inheritence to be a function of credential inheritence.
o Abstract prison structure reference counting behind pr_hold() and
  pr_free(), invoked by the similarly named credential reference
  management functions, removing this code from per-ABI fork/exit code.
o Modify various jail() functions to use struct ucred arguments instead
  of struct proc arguments.
o Introduce jailed() function to determine if a credential is jailed,
  rather than directly checking pointers all over the place.
o Convert PRISON_CHECK() macro to prison_check() function.
o Move jail() function prototypes to jail.h.
o Emulate the P_JAILED flag in fill_kinfo_proc() and no longer set the
  flag in the process flags field itself.
o Eliminate that "const" qualifier from suser/p_can/etc to reflect
  mutex use.

Notes:

o Some further cleanup of the linux/jail code is still required.
o It's now possible to consider resolving some of the process vs
  credential based permission checking confusion in the socket code.
o Mutex protection of struct prison is still not present, and is
  required to protect the reference count plus some fields in the
  structure.

Reviewed by: freebsd-arch
Obtained from: TrustedBSD Project

23 years agoDon't include "${.CURDIR}/../../Makefile.inc" explicitly. Doing so was
bde [Wed, 21 Feb 2001 06:12:38 +0000 (06:12 +0000)]
Don't include "${.CURDIR}/../../Makefile.inc" explicitly.  Doing so was
a bogus no-op in the usual case where fortune/ is a subdir of games/
(since <bsd.prog.mk> does an equivalent include automatically if
possible), but breaks building fortune when fortune/ is outside of the
games/ tree (since the include was unconditional here).  This fix
depends on a previous fix for non-recursiveness of ../Makefile.inc
(it didn't exist).

PR: 25232

23 years agoo Remove unnecessary jail() check in bpfopen() -- we limit device access
rwatson [Wed, 21 Feb 2001 05:34:34 +0000 (05:34 +0000)]
o Remove unnecessary jail() check in bpfopen() -- we limit device access
  in jail using /dev namespace limits and mknod() limits, not by explicit
  checks in the device open code.

23 years agoFix a typo, that in some cases may lead to incorrect packages reordering.
sobomax [Wed, 21 Feb 2001 02:01:10 +0000 (02:01 +0000)]
Fix a typo, that in some cases may lead to incorrect packages reordering.

23 years agoEnsure that RLIMIT_NPROC limits are at least 1 to avoid bad interaction
tegge [Tue, 20 Feb 2001 23:34:16 +0000 (23:34 +0000)]
Ensure that RLIMIT_NPROC limits are at least 1 to avoid bad interaction
with chgproccnt.  MFC candiate.

Reviewed by: alfred

23 years agoOnly call in_pcbnotify if the src port number != 0, as we
jesper [Tue, 20 Feb 2001 23:25:04 +0000 (23:25 +0000)]
Only call in_pcbnotify if the src port number != 0, as we
treat 0 as a wildcard in src/sys/in_pbc.c:in_pcbnotify()

It's sufficient to check for src|local port, as we'll have no
sessions with src|local port == 0

Without this a attacker sending ICMP messages, where the attached
IP header (+ 8 bytes) has the address and port numbers == 0, would
have the ICMP message applied to all sessions.

PR: kern/25195
Submitted by: originally by jesper, reimplimented by jlemon's advice
Reviewed by: jlemon
Approved by: jlemon

23 years agoFix vinum for both devfs and non-devfs systems.
alfred [Tue, 20 Feb 2001 22:07:36 +0000 (22:07 +0000)]
Fix vinum for both devfs and non-devfs systems.

userland tool:

  Use the vfs.devfs.generation sysctl to test for devfs presense
  (thanks phk!) when devfs is active it will not try to create the
  device nodes in /dev and therefore will not complain about the
  failure to do so.

  Revert the change in the #define for VINUM_DIR in the kernel
  header so that vinum can find its device nodes.

  Replace perror() with vinum_perror() to print file/line when
  DEVBUG is defined (not defined by default).

kernel:

  Don't use the #define names for the "superdev" creation since
  they will be prepended by "/dev/" (based on VINUM_DIR), instead
  use string constants.

  Create both debug and non-debug "superdev" nodes in the devfs.

Problem noticed and fix tested by: Martin Blapp <mblapp@fuchur.lan.attic.ch>

23 years agoUse the more logical author syntax from pkg_version and quote
jkh [Tue, 20 Feb 2001 21:57:19 +0000 (21:57 +0000)]
Use the more logical author syntax from pkg_version and quote
email addresses properly.

23 years agoSend a ICMP unreachable instead of dropping the packet silent, if we
jesper [Tue, 20 Feb 2001 21:31:47 +0000 (21:31 +0000)]
Send a ICMP unreachable instead of dropping the packet silent, if we
receive a packet not for us, and forwarding disabled.

PR: kern/24512
Reviewed by: jlemon
Approved by: jlemon

23 years agoRemove unneeded loop increment in src/sys/netinet/in_pcb.c:in_pcbnotify
jesper [Tue, 20 Feb 2001 21:11:29 +0000 (21:11 +0000)]
Remove unneeded loop increment in src/sys/netinet/in_pcb.c:in_pcbnotify

Forgotten by phk, when committing fix in kern/23986

PR: kern/23986
Reviewed by: phk
Approved by: phk

23 years agoFix some glaring insecurities in the prototype firewall configurations.
nsayer [Tue, 20 Feb 2001 19:54:31 +0000 (19:54 +0000)]
Fix some glaring insecurities in the prototype firewall configurations.

pass udp from any 53 to ${oip}

allows an attacker to access ANY local port by simply binding his local
side to 53. The state keeping mechanism is the correct way to allow DNS
replies to go back to their source.

23 years agoBring the new script into -current. Still untested here, but there
luigi [Tue, 20 Feb 2001 17:09:40 +0000 (17:09 +0000)]
Bring the new script into -current. Still untested here, but there
is a high chance that they work modulo minor things.

23 years agoforced commit to note that the last delta also reordered some code in
alfred [Tue, 20 Feb 2001 12:14:01 +0000 (12:14 +0000)]
forced commit to note that the last delta also reordered some code in
remove_sd_entry() to:

  Simplify (hopefully) it by moving all error returns closer to
  the beginning of the function.

  Return an error when "Error removing subdisk %s: not found in
  plex %s\n" would have been reported, as I doubt that we are "OK"
  after printing that error message.

23 years agoThese pages are not i386-specific.
ru [Tue, 20 Feb 2001 12:13:29 +0000 (12:13 +0000)]
These pages are not i386-specific.

23 years agoTake a shot at making vinum devfs aware.
alfred [Tue, 20 Feb 2001 11:37:04 +0000 (11:37 +0000)]
Take a shot at making vinum devfs aware.

Adding make_dev() and destroy_dev() calls in (hopefully) the right
places.

This is done by calling make_dev() in each object constructor and
caching the dev_t's returned from make_dev() in each struct
'subdisk'(sd), 'plex' and 'volume' such that the 'object'_free()
functioncs can call destroy dev.

This change makes a subset of the old /dev/vinum appear under devfs.

Enough nodes appear such that I'm able to mount my striped volume.

There may be more work needed to get vinum configuration working
properly.

23 years agoThis patch corrects two problems with the rate limiting code
mckusick [Tue, 20 Feb 2001 11:14:38 +0000 (11:14 +0000)]
This patch corrects two problems with the rate limiting code
that was introduced in revision 1.80. The problem manifested
itself with a `locking against myself' panic and could also
result in soft updates inconsistences associated with inodedeps.
The two problems are:

1) One of the background operations could manipulate the bitmap
while holding it locked with intent to create. This held lock
results in a `locking against myself' panic, when the background
processing that we have been coopted to do tries to lock the bitmap
which we are already holding locked. To understand how to fix this
problem, first, observe that we can do the background cleanups in
inodedep_lookup only when allocating inodedeps (DEPALLOC is set in
the call to inodedep_lookup). Second observe that calls to
inodedep_lookup with DEPALLOC set can only happen from the following
calls into the softdep code:

        softdep_setup_inomapdep
        softdep_setup_allocdirect
        softdep_setup_remove
        softdep_setup_freeblocks
        softdep_setup_directory_change
        softdep_setup_directory_add
        softdep_change_linkcnt

Only the first two of these can come from ffs_alloc.c while holding
a bitmap locked. Thus, inodedep_lookup must not go off to do
request_cleanups when being called from these functions. This change
adds a flag, NODELAY, that can be passed to inodedep_lookup to let
it know that it should not do background processing in those cases.

2) The return value from request_cleanup when helping out with the
cleanup was 0 instead of 1. This meant that despite the fact that
we may have slept while doing the cleanups, the code did not recheck
for the appearance of an inodedep (e.g., goto top in inodedep_lookup).
This lead to the softdep inconsistency in which we ended up with
two inodedep's for the same inode.

Reviewed by: Peter Wemm <peter@yahoo-inc.com>,
Matt Dillon <dillon@earth.backplane.com>

23 years agoRemove the MD part from the document title.
ru [Tue, 20 Feb 2001 11:07:27 +0000 (11:07 +0000)]
Remove the MD part from the document title.

Forgotten by: obrien

23 years ago- In the KTR_EXTEND case, use a const char * to point to the passed in
jhb [Tue, 20 Feb 2001 10:39:55 +0000 (10:39 +0000)]
- In the KTR_EXTEND case, use a const char * to point to the passed in
  filename insteada of copying the first 32 characters of it.
- Add in const modifiers for the passed in format strings and filenames
  and their respective members in the ktr_entry struct.

23 years agoTypo fixes: prefered -> preferred
kris [Tue, 20 Feb 2001 10:30:22 +0000 (10:30 +0000)]
Typo fixes: prefered -> preferred
There are some others in contributed/external code I haven't touched.

23 years ago- Add a new ithread_schedule() function to do the bulk of the work of
jhb [Tue, 20 Feb 2001 10:25:29 +0000 (10:25 +0000)]
- Add a new ithread_schedule() function to do the bulk of the work of
  scheduling an interrupt thread to run when needed.  This has the side
  effect of enabling support for entropy gathering from interrupts on
  all architectures.
- Change the software interrupt and x86 and alpha hardware interrupt code
  to use ithread_schedule() for most of their processing when scheduling
  an interrupt to run.
- Remove the pesky Warning message about interrupt threads having entropy
  enabled.  I'm not sure why I put that in there in the first place.
- Add more error checking for parameters and change some cases that
  returned EINVAL to panic on failure instead via KASSERT().
- Instead of doing a documented evil hack of setting the P_NOLOAD flag
  on every interrupt thread whose pri was SWI_CLOCK, set the flag
  explicity for clk_ithd's proc during start_softintr().

23 years agoBetter detection of duplicated initialization.
simokawa [Tue, 20 Feb 2001 10:23:25 +0000 (10:23 +0000)]
Better detection of duplicated initialization.

Obtained from: KAME

23 years agoCorrect comment typos
kris [Tue, 20 Feb 2001 10:23:10 +0000 (10:23 +0000)]
Correct comment typos

23 years ago- Axe unused macros used by BSD/OS in assembly for KTR tracing.
jhb [Tue, 20 Feb 2001 09:54:44 +0000 (09:54 +0000)]
- Axe unused macros used by BSD/OS in assembly for KTR tracing.
- Add a __printflike() tag to ktr_tracepoint() in the KTR_EXTEND case to
  verify the arguments passed to KTR tracepoints.

23 years ago- Abolish the 'show ktr_first' and 'show ktr_next' commands.
jhb [Tue, 20 Feb 2001 09:53:27 +0000 (09:53 +0000)]
- Abolish the 'show ktr_first' and 'show ktr_next' commands.
- Add pager capability to the 'show ktr' command.  It functions much like
  'ps': Enter at the prompt displays one more entry, Space displays
  another page, and any other key quits.

23 years agoThis time really fix the machine/lock.h thing. This time don't fool make
peter [Tue, 20 Feb 2001 09:37:00 +0000 (09:37 +0000)]
This time really fix the machine/lock.h thing.  This time don't fool make
into thinking that the way to build a .o file is to "rm -f .depend".

Suggested by: imp

23 years agoBack out a controverial commit.
obrien [Tue, 20 Feb 2001 09:09:27 +0000 (09:09 +0000)]
Back out a controverial commit.

23 years agoTurns out we do need to do bootstrapping of MACHINE_CPU here: make(1) won't
kris [Tue, 20 Feb 2001 08:37:51 +0000 (08:37 +0000)]
Turns out we do need to do bootstrapping of MACHINE_CPU here: make(1) won't
set the variable until you rebuild it, and the alternative is to be stuck
playing games with ``.if defined(MACHINE_CPU) && ... '' for all eternity.
We now set up the reasonable default for i386 and alpha here -- given this
it probably makes sense to remove the corresponding code from make(1).

23 years agoPreserve alignment of first mbuf in m_copypacket.
luigi [Tue, 20 Feb 2001 08:23:41 +0000 (08:23 +0000)]
Preserve alignment of first mbuf in m_copypacket.
This is useful when doing copies of packet where some leading
space has been preallocated to insert protocol headers.
Note that there are in fact almost no users of m_copypacket.

MFC candidate.

23 years agoMFS: rev 1.28.2.2 - Support GCC 3.0.
obrien [Tue, 20 Feb 2001 08:20:34 +0000 (08:20 +0000)]
MFS: rev 1.28.2.2 - Support GCC 3.0.

23 years ago- Don't call clear_resched() in userret(), instead, clear the resched flag
jhb [Tue, 20 Feb 2001 05:26:15 +0000 (05:26 +0000)]
- Don't call clear_resched() in userret(), instead, clear the resched flag
  in mi_switch() just before calling cpu_switch() so that the first switch
  after a resched request will satisfy the request.
- While I'm at it, move a few things into mi_switch() and out of
  cpu_switch(), specifically set the p_oncpu and p_lastcpu members of
  proc in mi_switch(), and handle the sched_lock state change across a
  context switch in mi_switch().
- Since cpu_switch() no longer handles the sched_lock state change, we
  have to setup an initial state for sched_lock in fork_exit() before we
  release it.

23 years agoTake luigi's suggestion and move the check for nothing to do to before the
imp [Tue, 20 Feb 2001 04:43:59 +0000 (04:43 +0000)]
Take luigi's suggestion and move the check for nothing to do to before the
lock so we don't have lots of null lock/release pairs.

23 years agoAdd DC_UNLOCK before first return. This caused returns when dc was on
imp [Tue, 20 Feb 2001 04:21:27 +0000 (04:21 +0000)]
Add DC_UNLOCK before first return.  This caused returns when dc was on
a shared interrupt.

Pointed out by tegge.

23 years agoRegen
gallatin [Tue, 20 Feb 2001 03:48:53 +0000 (03:48 +0000)]
Regen

23 years agoSort out the umount breakage introduced in the last 2 revisions.
gallatin [Tue, 20 Feb 2001 03:47:59 +0000 (03:47 +0000)]
Sort out the umount breakage introduced in the last 2 revisions.

Please note:
When committing changes to this file, it is important to note that
linux is not freebsd -- their system call numbers (and sometimes names)
are different on different platforms.  When in doubt (and you always need
to be) check the arch-specific unistd.h and entry.S files in the linux
kernel sources to see what the syscall numbers really are.

23 years agoCorrect IPv4 option processing.
kris [Tue, 20 Feb 2001 03:25:50 +0000 (03:25 +0000)]
Correct IPv4 option processing.

Submitted by: itojun
Obtained from: KAME

23 years agoHook up the linux module for alpha again.
jlemon [Tue, 20 Feb 2001 02:19:01 +0000 (02:19 +0000)]
Hook up the linux module for alpha again.

Approved by: beast

23 years agoRegenerate.
jlemon [Tue, 20 Feb 2001 02:16:38 +0000 (02:16 +0000)]
Regenerate.

23 years agoFix duplicate linux_mount definition
jlemon [Tue, 20 Feb 2001 02:16:07 +0000 (02:16 +0000)]
Fix duplicate linux_mount definition

23 years agoPlace some hooks (__stdin, __stdout, __stderr) into libc for a future
peter [Tue, 20 Feb 2001 01:56:52 +0000 (01:56 +0000)]
Place some hooks (__stdin, __stdout, __stderr) into libc for a future
ABI change.  There is some serious evilness here to work around some
gcc weaknesses.  We need to know the sizeof(FILE) manually until __sF
goes away in the next major bump.  We have the size for Alpha and i386,
missing is ia64, ppc and sparc* (and i386 with 64 bit longs).
At some point down the track we can change the stdin etc #defines to
stop hard coding the size of FILE into application binaries.

Lots of head scratching and ideas and testing by: green, imp

23 years agoAdd back a missing file from the no-asm case
kris [Tue, 20 Feb 2001 01:50:25 +0000 (01:50 +0000)]
Add back a missing file from the no-asm case

Submitted by: gallatin

23 years agoRemove bogus setting of MACHINE_CPU here. There is no need for it.
kris [Mon, 19 Feb 2001 23:33:13 +0000 (23:33 +0000)]
Remove bogus setting of MACHINE_CPU here.  There is no need for it.

Submitted by: bde

23 years agoRemove a remnant of my attempt to get alpha asm code working. OpenSSL
kris [Mon, 19 Feb 2001 23:31:53 +0000 (23:31 +0000)]
Remove a remnant of my attempt to get alpha asm code working.  OpenSSL
does include code for the alpha, but as far as I can tell, it is
non-functional (e.g. it's not even compiled by the native openssl build on
the alpha).

Noticed by: gallatin

23 years agoChange the read-only reply to "550 Permission denied.".
des [Mon, 19 Feb 2001 21:51:26 +0000 (21:51 +0000)]
Change the read-only reply to "550 Permission denied.".

23 years agoMove linux to i386 only until it gets fixed for alpha (again).
mjacob [Mon, 19 Feb 2001 21:20:33 +0000 (21:20 +0000)]
Move linux to i386 only until it gets fixed for alpha (again).

23 years agoCosmetic and spelling fixes. Includes some MDOC policework.
markm [Mon, 19 Feb 2001 20:08:01 +0000 (20:08 +0000)]
Cosmetic and spelling fixes. Includes some MDOC policework.

Submitted by: ru (mostly)

23 years agoadd LC_MONETARY, LC_MESSAGES and LC_NUMERIC definitions for ru_RU.CP866 and
phantom [Mon, 19 Feb 2001 20:05:22 +0000 (20:05 +0000)]
add LC_MONETARY, LC_MESSAGES and LC_NUMERIC definitions for ru_RU.CP866 and
ru_RU.ISO_8859-5 locales

23 years agocleanup commentaries
phantom [Mon, 19 Feb 2001 19:09:00 +0000 (19:09 +0000)]
cleanup commentaries

23 years ago. add comment that 4 character of int_curr_symbol should be SPACE
phantom [Mon, 19 Feb 2001 18:55:34 +0000 (18:55 +0000)]
. add comment that 4 character of int_curr_symbol should be SPACE
. fix chinese locales to meet this requirement

23 years agoBack out rev 1.92
peter [Mon, 19 Feb 2001 18:27:42 +0000 (18:27 +0000)]
Back out rev 1.92

23 years agoChange default devfs permissions to the ones in MAKEDEV.
n_hibma [Mon, 19 Feb 2001 18:14:49 +0000 (18:14 +0000)]
Change default devfs permissions to the ones in MAKEDEV.

Suggested by: rwatson

23 years agoInstall manpages into machine-specific (i386) subdir.
ru [Mon, 19 Feb 2001 16:01:05 +0000 (16:01 +0000)]
Install manpages into machine-specific (i386) subdir.

23 years agoRemove (now unnecessary) MLINKS.
ru [Mon, 19 Feb 2001 15:52:38 +0000 (15:52 +0000)]
Remove (now unnecessary) MLINKS.

23 years agoRemoved all traces of T_ASTFLT (except for gaps where it was). It became
bde [Mon, 19 Feb 2001 15:47:38 +0000 (15:47 +0000)]
Removed all traces of T_ASTFLT (except for gaps where it was).  It became
unused except in dead code when ast() was split off from trap().

23 years agoAdd missing .../cat?/alpha directories.
ru [Mon, 19 Feb 2001 15:30:11 +0000 (15:30 +0000)]
Add missing .../cat?/alpha directories.

23 years agoActually make sure the make release line at the top isn't misleading.
asmodai [Mon, 19 Feb 2001 14:23:49 +0000 (14:23 +0000)]
Actually make sure the make release line at the top isn't misleading.

CVSROOT is mandatory.  Also note what CVSROOT has to be set to.

Found by: local make release hacking

23 years agoImplement one nice feature of original BSD man(1):
ru [Mon, 19 Feb 2001 14:19:57 +0000 (14:19 +0000)]
Implement one nice feature of original BSD man(1):

: As some manual pages are intended only for specific architectures,
: man searches any subdirectories, with the same name as the current
: architecture, in every directory which it searches.  Machine specific
: areas are checked before general areas.  The current machine type may
: be overridden by setting the environment variable MACHINE to the name
: of a specific architecture.

23 years agoFixed the order of environment variables list.
ru [Mon, 19 Feb 2001 14:02:48 +0000 (14:02 +0000)]
Fixed the order of environment variables list.

23 years agoImprove pkg_delete(1) behaviour when deleting several packages at once.
sobomax [Mon, 19 Feb 2001 13:26:13 +0000 (13:26 +0000)]
Improve pkg_delete(1) behaviour when deleting several packages at once.

Instead of trying to delete packages in the same order as they were specified
in the command line, reorder deletion in such a way that if package A depends
on package B then package A will be deleted before B no matter in which order
they were specified in the command line.

Reviewed by: jkh, will
Approved by: jkh

23 years agoEnable AI_ADDRCONFIG as a valid flag of getaddrinfo(3). Some
ume [Mon, 19 Feb 2001 13:13:51 +0000 (13:13 +0000)]
Enable AI_ADDRCONFIG as a valid flag of getaddrinfo(3).  Some
applications specify AI_ADDRCONFIG and fail to run under FreeBSD.
Latest mews is known.  Now, getaddrinfo(3) behaves according to
AI_ADDRCONFIG.

23 years agoCreate directory infrastructure required to format, display
ru [Mon, 19 Feb 2001 13:08:14 +0000 (13:08 +0000)]
Create directory infrastructure required to format, display
and store preformatted /usr/share/man manual pages in 8-bit
iso-8859-1 charset for all *_*.ISO_8859-1 locales.

Requested by: des
Input from: ache

23 years agoThere is an arbitrary file size limit in ctm of 20MB. By my reckoning,
mckay [Mon, 19 Feb 2001 12:04:46 +0000 (12:04 +0000)]
There is an arbitrary file size limit in ctm of 20MB.  By my reckoning,
ports/INDEX,v is currently 19.97MB and will blow this limit on the next
update.  Let's try doubling the limit again, to give us time to get
around to removing the limit altogether.

23 years agoDo not output extra comma before "and" for references with two authors.
ru [Mon, 19 Feb 2001 11:58:15 +0000 (11:58 +0000)]
Do not output extra comma before "and" for references with two authors.

Example:
.Rs
.%A Author1
.%A Author2
.%B Book
.Re

Produced:
Author1, and Author2, Book.

Now produces:
Author1 and Author2, Book.

Ported from: mdocNG

23 years agomdoc(7) police: well-known section name is EXAMPLES, not EXAMPLE.
ru [Mon, 19 Feb 2001 10:49:15 +0000 (10:49 +0000)]
mdoc(7) police: well-known section name is EXAMPLES, not EXAMPLE.

23 years agoFixed a longstanding latency bug in signal delivery. When a signal
bde [Mon, 19 Feb 2001 09:40:58 +0000 (09:40 +0000)]
Fixed a longstanding latency bug in signal delivery.  When a signal
is sent to a process, psignal() needs to schedule an AST for the
process if the process is runnable, not just if it is current, so that
pending signals get checked for on the next return of the process to
user mode.  This wasn't practical until recently because the AST flag
was per-cpu so setting it for a non-current process would usually just
cause a bogus AST for the current process.

For non-current processes looping in user mode, it took accidental
(?) magic to deliver signals at all.  Signals were usually delivered
late as a side effect of rescheduling (need_resched() sets astpending,
etc.).  In pre-SMPng, delivery was delayed by at most 1 quantum (the
need_resched() call in roundrobin() is certain to occur within 1
quantum for looping processes).  In -current, things are complicated
by normal interrupt handlers being threads.  Missing handling of the
complications makes roundrobin() a bogus no-op, but preemptive
scheduling sort of works anyway due to even larger bogons elsewhere.

23 years agoAdd 500.queuerun
ache [Mon, 19 Feb 2001 07:12:37 +0000 (07:12 +0000)]
Add 500.queuerun

23 years agoDeal properly with "0"
ache [Mon, 19 Feb 2001 06:19:51 +0000 (06:19 +0000)]
Deal properly with "0"

23 years agoUse ttymalloc() instead of roll-our-own.
peter [Mon, 19 Feb 2001 04:53:55 +0000 (04:53 +0000)]
Use ttymalloc() instead of roll-our-own.

23 years ago${BDECFLAGS} work. And fix a real error in the process. A "MAXUSERS"
peter [Mon, 19 Feb 2001 04:43:21 +0000 (04:43 +0000)]
${BDECFLAGS} work.  And fix a real error in the process.  A "MAXUSERS"
string could have been passed to free();  There are some warnings here
I am not sure how to fix as they are in the lex scanner code, etc.

23 years agoChanged the aston() family to operate on a specified process instead of
bde [Mon, 19 Feb 2001 04:15:59 +0000 (04:15 +0000)]
Changed the aston() family to operate on a specified process instead of
always on curproc.  This is needed to implement signal delivery properly
(see a future log message for kern_sig.c).

Debogotified the definition of aston().  aston() was defined in terms
of signotify() (perhaps because only the latter already operated on
a specified process), but aston() is the primitive.

Similar changes are needed in the ia64 versions of cpu.h and trap.c.
I didn't make them because the ia64 is missing the prerequisite changes
to make astpending and need_resched per-process and those changes are
too large to make without testing.

23 years agoSlight improvement to previous checkin.
archie [Mon, 19 Feb 2001 04:06:30 +0000 (04:06 +0000)]
Slight improvement to previous checkin.

23 years agoAdd an example showing how to configure a node from the command line.
archie [Mon, 19 Feb 2001 04:00:52 +0000 (04:00 +0000)]
Add an example showing how to configure a node from the command line.

23 years agoIntroduce support for using OpenSSL ASM optimizations. This is done
kris [Mon, 19 Feb 2001 03:59:05 +0000 (03:59 +0000)]
Introduce support for using OpenSSL ASM optimizations.  This is done
through the use of a new build directive, MACHINE_CPU, which contains a
list of the CPU generations/features for which optimizations are desired.
This feature will be extended to cover the ports tree in the future.

Currently OpenSSL provides optimizations for i386, i586 and i686-class
CPUs. Currently it has not been tested on an i386 or i486.

Teach make(1) to provide sensible defaults for MACHINE_CPU if it is not
defined (namely, the lowest common denominator CPU we support for each
architecture).  Currently this is i386 for the i386 architecture and ev4
for the alpha.  sys.mk also sets the variable as a last resort for
consistency with MACHINE_ARCH and bootstrapping from very old versions of
make.

Benchmarks show a significant speed increase even in the i386 case, with
additional improvements for i586 and i686 systems.  For maximum performance
define MACHINE_CPU=i686 i586 i386 in /etc/make.conf.

Based on a patch submitted by:  Mike Silbersack <silby@silby.com>
Reviewed by:    current

23 years agoFixed style bugs in clock.c rev.1.164 and cpu.h rev.1.52-1.53 -- declare
bde [Mon, 19 Feb 2001 03:00:34 +0000 (03:00 +0000)]
Fixed style bugs in clock.c rev.1.164 and cpu.h rev.1.52-1.53 -- declare
tsc_present in the right places (together with other variables of the
same linkage), and don't use messy ifdefs just to avoid exporting it in
some cases.

23 years agoMove the sendmail -q from cron to periodic, as suggested by a few people.
peter [Mon, 19 Feb 2001 02:47:42 +0000 (02:47 +0000)]
Move the sendmail -q from cron to periodic, as suggested by a few people.
This has the benefit of adding a random start time element as daily
processing takes a different amount of time on different machines.

23 years agoHave yacc use a prototype for yygrowstack(void) on ANSI compilers.
peter [Mon, 19 Feb 2001 01:10:01 +0000 (01:10 +0000)]
Have yacc use a prototype for yygrowstack(void) on ANSI compilers.
This fixes a gcc warning with -Wmissing-prototypes.

23 years agoDevices are NOT compiled with the "special c2 option -i"..
peter [Sun, 18 Feb 2001 22:42:15 +0000 (22:42 +0000)]
Devices are NOT compiled with the "special c2 option -i"..

23 years agoBe extra certain that "#include <osreldate.h>" must not be used in
peter [Sun, 18 Feb 2001 20:44:06 +0000 (20:44 +0000)]
Be extra certain that "#include <osreldate.h>" must not be used in
kernel code.

23 years ago"Fix" the machine/lock.h problem in modules depend with a sledge hammer.
peter [Sun, 18 Feb 2001 20:23:22 +0000 (20:23 +0000)]
"Fix" the machine/lock.h problem in modules depend with a sledge hammer.
This forces bsd.dep.mk to rebuild the .depend file.

23 years agoDocument the entropy device.
markm [Sun, 18 Feb 2001 18:08:43 +0000 (18:08 +0000)]
Document the entropy device.

If you want to know how to harvest network traffic and interrupts,
READ HERE!

23 years agoSet the interrupt-harvesting bit for those hardware items that I
markm [Sun, 18 Feb 2001 18:02:15 +0000 (18:02 +0000)]
Set the interrupt-harvesting bit for those hardware items that I
can actually test.

Nothing will happen until the sysadmin turns on intr-harvesting
on her computer.

23 years agoInsert entropy harvesting calls for network traffic. By
markm [Sun, 18 Feb 2001 17:54:52 +0000 (17:54 +0000)]
Insert entropy harvesting calls for network traffic. By
default, no entropy will be harvested.

23 years agoAllow the superuser to prefent all interrupt harvesting on
markm [Sun, 18 Feb 2001 17:47:55 +0000 (17:47 +0000)]
Allow the superuser to prefent all interrupt harvesting on
her system.

23 years agoProvide the infrastructure for sysadmins to select the broad class
markm [Sun, 18 Feb 2001 17:40:47 +0000 (17:40 +0000)]
Provide the infrastructure for sysadmins to select the broad class
of entropy harvesting they wish to perform: "ethernet" (LAN),
point-to-point and interrupt.

23 years agoIntroduce $TAR_RSH to enable use of ssh as transport.
ume [Sun, 18 Feb 2001 17:30:29 +0000 (17:30 +0000)]
Introduce $TAR_RSH to enable use of ssh as transport.

23 years agoEncapselate midi_info, nmidi and nsynth into midi.c.
tanimura [Sun, 18 Feb 2001 15:58:56 +0000 (15:58 +0000)]
Encapselate midi_info, nmidi and nsynth into midi.c.

23 years agoSwitch to using a struct xucred instead of a struct xucred when not
green [Sun, 18 Feb 2001 13:30:20 +0000 (13:30 +0000)]
Switch to using a struct xucred instead of a struct xucred when not
actually in the kernel.  This structure is a different size than
what is currently in -CURRENT, but should hopefully be the last time
any application breakage is caused there.  As soon as any major
inconveniences are removed, the definition of the in-kernel struct
ucred should be conditionalized upon defined(_KERNEL).

This also changes struct export_args to remove dependency on the
constantly-changing struct ucred, as well as limiting the bounds
of the size fields to the correct size.  This means: a) mountd and
friends won't break all the time, b) mountd and friends won't crash
the kernel all the time if they don't know what they're doing wrt
actual struct export_args layout.

Reviewed by: bde

23 years agoZap LIBTCL, it's been superfluous for several years.
kris [Sun, 18 Feb 2001 11:58:54 +0000 (11:58 +0000)]
Zap LIBTCL, it's been superfluous for several years.

23 years agoAdd yesstr/nostr.
abial [Sun, 18 Feb 2001 11:17:41 +0000 (11:17 +0000)]
Add yesstr/nostr.

23 years agoAdjust columns for wide nicenesses in 'top -S'.
markm [Sun, 18 Feb 2001 11:08:47 +0000 (11:08 +0000)]
Adjust columns for wide nicenesses in 'top -S'.

23 years agoPreceed/preceeding are not english words. Use precede and preceding.
asmodai [Sun, 18 Feb 2001 10:44:00 +0000 (10:44 +0000)]
Preceed/preceeding are not english words.  Use precede and preceding.

Add $FreeBSD$.

23 years agoPreceed/preceeding are not english words. Use precede and preceding.
asmodai [Sun, 18 Feb 2001 10:43:53 +0000 (10:43 +0000)]
Preceed/preceeding are not english words.  Use precede and preceding.

23 years agoPreceed/preceeding are not english words. Use precede or preceding.
asmodai [Sun, 18 Feb 2001 10:25:42 +0000 (10:25 +0000)]
Preceed/preceeding are not english words.  Use precede or preceding.

23 years agoPreceed/preceeding are not english words. Use precede or preceding.
asmodai [Sun, 18 Feb 2001 10:25:31 +0000 (10:25 +0000)]
Preceed/preceeding are not english words.  Use precede or preceding.

Add $FreeBSD$.

23 years agoRemove unneeded loop increment in src/sys/netinet/in_pcb.c:in_pcbnotify
phk [Sun, 18 Feb 2001 09:34:55 +0000 (09:34 +0000)]
Remove unneeded loop increment in src/sys/netinet/in_pcb.c:in_pcbnotify

Add new PRC_UNREACH_ADMIN_PROHIB in sys/sys/protosw.h

Remove condition on TCP in src/sys/netinet/ip_icmp.c:icmp_input

In src/sys/netinet/ip_icmp.c:icmp_input set code = PRC_UNREACH_ADMIN_PROHIB
or PRC_UNREACH_HOST for all unreachables except ICMP_UNREACH_NEEDFRAG

Rename sysctl icmp_admin_prohib_like_rst to icmp_unreach_like_rst
to reflect the fact that we also react on ICMP unreachables that
are not administrative prohibited.  Also update the comments to
reflect this.

In sys/netinet/tcp_subr.c:tcp_ctlinput add code to treat
PRC_UNREACH_ADMIN_PROHIB and PRC_UNREACH_HOST different.

PR: 23986
Submitted by: Jesper Skriver <jesper@skriver.dk>

23 years agoRemove a debug printf.
phk [Sun, 18 Feb 2001 09:16:49 +0000 (09:16 +0000)]
Remove a debug printf.

23 years agoDuh! forgot to add BSD_daemon to the mtree files.
phk [Sun, 18 Feb 2001 08:18:44 +0000 (08:18 +0000)]
Duh!  forgot to add BSD_daemon to the mtree files.

Submitted by: "Niels Chr. Bank-Pedersen" <ncbp@bank-pedersen.dk>

23 years agoDo not compile INET6 support if RELEASE_CRUNCH is defined
luigi [Sun, 18 Feb 2001 07:28:31 +0000 (07:28 +0000)]
Do not compile INET6 support if RELEASE_CRUNCH is defined
(used by install floppy/picobsd)

23 years agoAdd a check in the interrupt service routine to return quickly in
luigi [Sun, 18 Feb 2001 07:21:28 +0000 (07:21 +0000)]
Add a check in the interrupt service routine to return quickly in
case there is nothing to do. This happens normally when the card shares
the interrupt line with other devices.

This code saves a couple of microseconds per interrupt even on a
fast CPU. You normally would not care, except under heavy tinygram
traffic where you can have some 50-100.000 interrupts per second...

On passing, correct a spelling error.

23 years agoremove unused data structure definition, and corresponding macro into*()
luigi [Sun, 18 Feb 2001 07:10:03 +0000 (07:10 +0000)]
remove unused data structure definition, and corresponding macro into*()

23 years agoEnable command line editing in the shell
luigi [Sun, 18 Feb 2001 06:54:07 +0000 (06:54 +0000)]
Enable command line editing in the shell