The NetBSD Project

CVS log for src/sys/kern/tty.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN


Revision 1.307 / (download) - annotate - [select for diffs], Wed Oct 26 23:41:49 2022 UTC (3 months, 1 week ago) by riastradh
Branch: MAIN
CVS Tags: netbsd-10-base, netbsd-10, HEAD
Changes since 1.306: +30 -2 lines
Diff to previous 1.306 (colored)

tty(9): New ttylock, ttyunlock, ttylocked functions.

These are wrappers around the global tty_lock for now (and the
continued existence of the tty_lock variable is why the ttylock
function has no underscore in its name).  They will assist in
converting drivers to per-tty locking later on.

Revision 1.306 / (download) - annotate - [select for diffs], Tue Oct 25 23:21:13 2022 UTC (3 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.305: +97 -18 lines
Diff to previous 1.305 (colored)

constty(4): Make MP-safe, take three.

Access to the global constty variable is coordinated as follows:

1. Setting constty to nonnull, with atomic_store_release, is allowed
   only under the new adaptive constty_lock in thread context.  This
   serializes TIOCCONS operations and ensures unlocked readers can
   safely use a constty pointer read with atomic_load_consume.

2. Changing constty from nonnull to null, with atomic_cas_ptr, is
   allowed in any context -- printf(9) uses this to disable a broken
   constty.

3. Reading constty under constty_lock is allowed with
   atomic_load_relaxed, because while constty_lock is held, it can
   only be made null by some other thread/CPU, never made nonnull.

4. Reading constty outside constty_lock is allowed with
   atomic_load_consume in a pserialize read section -- constty is
   only ever made nonnull with atomic_store_release, in (1).
   ttyclose will wait for all these pserialize read sections to
   complete before flushing the tty.

5. To continue to use a struct tty pointer in (4) after the
   pserialize read section has completed, caller must use tty_acquire
   during the pserialize read section and then tty_release when done.
   ttyclose will wait for all these references to drain before
   returning.

These access rules allow us to serialize TIOCCONS, and safely destroy
ttys, without putting any locks on the access paths like printf(9)
that use constty.  Once we set D_MPSAFE, operations on /dev/console
will contend only with other users of the same tty as constty, which
will be an improvement over contending with all other kernel lock
users in the system.

Changes second time around:
- Fix initialization of ok in cons.c cn_redirect.
- Fix reversed sense of conditional in subr_prf.c putone.

Changes third time around:
- Initialize ttyref_cv so we don't panic when trying to use it,
  leading to infinite loop when panic tries to take tty_lock to print
  the panic message while we already hold tty_lock.

Revision 1.305 / (download) - annotate - [select for diffs], Fri Oct 7 18:59:37 2022 UTC (3 months, 4 weeks ago) by riastradh
Branch: MAIN
Changes since 1.304: +18 -96 lines
Diff to previous 1.304 (colored)

Revert "constty(4): Make MP-safe."

Something is still busted and this is interfering with the releng
amd64 testbed.

Revision 1.304 / (download) - annotate - [select for diffs], Thu Oct 6 19:58:41 2022 UTC (4 months ago) by riastradh
Branch: MAIN
Changes since 1.303: +96 -18 lines
Diff to previous 1.303 (colored)

constty(4): Make MP-safe.

Access to the global constty variable is coordinated as follows:

1. Setting constty to nonnull, with atomic_store_release, is allowed
   only under the new adaptive constty_lock in thread context.  This
   serializes TIOCCONS operations and ensures unlocked readers can
   safely use a constty pointer read with atomic_load_consume.

2. Changing constty from nonnull to null, with atomic_cas_ptr, is
   allowed in any context -- printf(9) uses this to disable a broken
   constty.

3. Reading constty under constty_lock is allowed with
   atomic_load_relaxed, because while constty_lock is held, it can
   only be made null by some other thread/CPU, never made nonnull.

4. Reading constty outside constty_lock is allowed with
   atomic_load_consume in a pserialize read section -- constty is
   only ever made nonnull with atomic_store_release, in (1).
   ttyclose will wait for all these pserialize read sections to
   complete before flushing the tty.

5. To continue to use a struct tty pointer in (4) after the
   pserialize read section has completed, caller must use tty_acquire
   during the pserialize read section and then tty_release when done.
   ttyclose will wait for all these references to drain before
   returning.

These access rules allow us to serialize TIOCCONS, and safely destroy
ttys, without putting any locks on the access paths like printf(9)
that use constty.  Once we set D_MPSAFE, operations on /dev/console
will contend only with other users of the same tty as constty, which
will be an improvement over contending with all other kernel lock
users in the system.

Changes second time around:
- Fix initialization of ok in cons.c cn_redirect.
- Fix reversed sense of conditional in subr_prf.c putone.

Revision 1.303 / (download) - annotate - [select for diffs], Tue Oct 4 05:20:01 2022 UTC (4 months ago) by riastradh
Branch: MAIN
Changes since 1.302: +18 -96 lines
Diff to previous 1.302 (colored)

Revert "constty(4): Make MP-safe."

Something appears to be wrong with this.

Revision 1.302 / (download) - annotate - [select for diffs], Mon Oct 3 19:57:06 2022 UTC (4 months ago) by riastradh
Branch: MAIN
Changes since 1.301: +96 -18 lines
Diff to previous 1.301 (colored)

constty(4): Make MP-safe.

Access to the global constty variable is coordinated as follows:

1. Setting constty to nonnull, with atomic_store_release, is allowed
   only under the new adaptive constty_lock in thread context.  This
   serializes TIOCCONS operations and ensures unlocked readers can
   safely use a constty pointer read with atomic_load_consume.

2. Changing constty from nonnull to null, with atomic_cas_ptr, is
   allowed in any context -- printf(9) uses this to disable a broken
   constty.

3. Reading constty under constty_lock is allowed with
   atomic_load_relaxed, because while constty_lock is held, it can
   only be made null by some other thread/CPU, never made nonnull.

4. Reading constty outside constty_lock is allowed with
   atomic_load_consume in a pserialize read section -- constty is
   only ever made nonnull with atomic_store_release, in (1).
   ttyclose will wait for all these pserialize read sections to
   complete before flushing the tty.

5. To continue to use a struct tty pointer in (4) after the
   pserialize read section has completed, caller must use tty_acquire
   during the pserialize read section and then tty_release when done.
   ttyclose will wait for all these references to drain before
   returning.

These access rules allow us to serialize TIOCCONS, and safely destroy
ttys, without putting any locks on the access paths like printf(9)
that use constty.  Once we set D_MPSAFE, operations on /dev/console
will contend only with other users of the same tty as constty, which
will be an improvement over contending with all other kernel lock
users in the system.

Revision 1.301 / (download) - annotate - [select for diffs], Thu Apr 7 21:46:51 2022 UTC (9 months, 4 weeks ago) by riastradh
Branch: MAIN
CVS Tags: bouyer-sunxi-drm-base, bouyer-sunxi-drm
Changes since 1.300: +14 -2 lines
Diff to previous 1.300 (colored)

tty(9): New function tty_unit for struct cdevsw::d_devtounit.

Revision 1.300 / (download) - annotate - [select for diffs], Mon Mar 28 12:39:28 2022 UTC (10 months, 1 week ago) by riastradh
Branch: MAIN
Changes since 1.299: +20 -3 lines
Diff to previous 1.299 (colored)

tty(9): New ttycancel function.

This causes any current and future ttyopens to fail until ttyclose.

This is necessary for revoke to work reliably for device detach like
ucom(4) removable USB devices.  A tty driver for a removable device
needs some way to interrupt a pending .d_open so it returns promptly.
But ttyclose only interrupts ttyopen if it's already sleeping; it
won't cause a concurrent .d_open call which _will call_ but _hasn't
yet called_ ttyopen to avoid sleeping.  Using ttycancel in the tty
driver's .d_cancel makes this work.

Revision 1.299 / (download) - annotate - [select for diffs], Sun Dec 5 07:44:53 2021 UTC (14 months ago) by msaitoh
Branch: MAIN
Changes since 1.298: +5 -5 lines
Diff to previous 1.298 (colored)

s/runable/runnable/

Revision 1.298 / (download) - annotate - [select for diffs], Wed Sep 29 13:14:39 2021 UTC (16 months, 1 week ago) by thorpej
Branch: MAIN
Changes since 1.297: +4 -4 lines
Diff to previous 1.297 (colored)

ttyread_filtops, ttywrite_filtops, ptcread_filtops, and ptcwrite_filtops
are MPSAFE.

Revision 1.297 / (download) - annotate - [select for diffs], Mon Sep 27 00:40:49 2021 UTC (16 months, 1 week ago) by thorpej
Branch: MAIN
Changes since 1.296: +5 -3 lines
Diff to previous 1.296 (colored)

Consistently reference kn->kn_data only within the lock perimeter in
the filtops f_event() callback.

Revision 1.296 / (download) - annotate - [select for diffs], Sun Sep 26 01:16:10 2021 UTC (16 months, 1 week ago) by thorpej
Branch: MAIN
Changes since 1.295: +4 -4 lines
Diff to previous 1.295 (colored)

Change the kqueue filterops::f_isfd field to filterops::f_flags, and
define a flag FILTEROP_ISFD that has the meaning of the prior f_isfd.
Field and flag name aligned with OpenBSD.

This does not constitute a functional or ABI change, as the field location
and size, and the value placed in that field, are the same as the previous
code, but we're bumping __NetBSD_Version__ so 3rd-party module source code
can adapt, as needed.

NetBSD 9.99.89

Revision 1.294.2.1 / (download) - annotate - [select for diffs], Mon Dec 14 14:38:14 2020 UTC (2 years, 1 month ago) by thorpej
Branch: thorpej-futex
Changes since 1.294: +8 -8 lines
Diff to previous 1.294 (colored) next main 1.295 (colored)

Sync w/ HEAD.

Revision 1.295 / (download) - annotate - [select for diffs], Fri Dec 11 03:00:09 2020 UTC (2 years, 1 month ago) by thorpej
Branch: MAIN
CVS Tags: thorpej-i2c-spi-conf2-base, thorpej-i2c-spi-conf2, thorpej-i2c-spi-conf-base, thorpej-i2c-spi-conf, thorpej-futex2-base, thorpej-futex2, thorpej-futex-base, thorpej-cfargs2-base, thorpej-cfargs2, thorpej-cfargs-base, thorpej-cfargs, cjep_sun2x-base1, cjep_sun2x-base, cjep_sun2x, cjep_staticlib_x-base1, cjep_staticlib_x-base, cjep_staticlib_x
Changes since 1.294: +8 -8 lines
Diff to previous 1.294 (colored)

Use sel{record,remove}_knote().

Revision 1.294 / (download) - annotate - [select for diffs], Sat Oct 10 18:53:56 2020 UTC (2 years, 3 months ago) by christos
Branch: MAIN
Branch point for: thorpej-futex
Changes since 1.293: +2 -3 lines
Diff to previous 1.293 (colored)

remove extra break

Revision 1.293 / (download) - annotate - [select for diffs], Sat Oct 10 17:25:11 2020 UTC (2 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.292: +2 -14 lines
Diff to previous 1.292 (colored)

remove broken copy of TIOCGSID.

Revision 1.292 / (download) - annotate - [select for diffs], Sat Oct 10 15:59:41 2020 UTC (2 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.291: +15 -2 lines
Diff to previous 1.291 (colored)

TIOCGSID is used by tcgetsid() so it is not really compat :-)
This should reduce loading the compat module.

Revision 1.291 / (download) - annotate - [select for diffs], Sat Oct 10 14:07:18 2020 UTC (2 years, 3 months ago) by nia
Branch: MAIN
Changes since 1.290: +6 -2 lines
Diff to previous 1.290 (colored)

tty: Negating INT_MIN will overflow int, bail out with EINVAL

Detected by UBSan

Reported-by: syzbot+92c0fca82b74a9798b78@syzkaller.appspotmail.com

Revision 1.290 / (download) - annotate - [select for diffs], Fri Oct 9 09:03:55 2020 UTC (2 years, 3 months ago) by nia
Branch: MAIN
Changes since 1.289: +3 -3 lines
Diff to previous 1.289 (colored)

tty: Avoid undefined behaviour (left shift of 1 by 31 places overflows int)

The valid sizes of the tty input and output queues (according to the man page)
are between 1024 and 65536 and input values are converted to a power of two.

The check on the validity of the range is done after the input values are
converted, however, which means that a hostile program can attempt to set
the queue size to a negative value, and cause integer overflow before
the range is validated.

Detected by UBSan

Reported-by: syzbot+521b73969fd233c49e58@syzkaller.appspotmail.com

Revision 1.289 / (download) - annotate - [select for diffs], Wed Aug 26 16:36:32 2020 UTC (2 years, 5 months ago) by maxv
Branch: MAIN
Changes since 1.288: +5 -2 lines
Diff to previous 1.288 (colored)

Add a check to prevent shift by -1. Not really important in this case,
but to appease KUBSAN.

Reported-by: syzbot+4026e8201b6b484b8cb4@syzkaller.appspotmail.com

Revision 1.288 / (download) - annotate - [select for diffs], Mon Jun 22 16:29:24 2020 UTC (2 years, 7 months ago) by maxv
Branch: MAIN
Changes since 1.287: +9 -12 lines
Diff to previous 1.287 (colored)

Don't leak an unused sysctl log. Found by kLSan.

Revision 1.287 / (download) - annotate - [select for diffs], Sat May 23 23:42:43 2020 UTC (2 years, 8 months ago) by ad
Branch: MAIN
Changes since 1.286: +40 -40 lines
Diff to previous 1.286 (colored)

Move proc_lock into the data segment.  It was dynamically allocated because
at the time we had mutex_obj_alloc() but not __cacheline_aligned.

Revision 1.276.2.2 / (download) - annotate - [select for diffs], Wed Apr 8 14:08:52 2020 UTC (2 years, 9 months ago) by martin
Branch: phil-wifi
Changes since 1.276.2.1: +31 -18 lines
Diff to previous 1.276.2.1 (colored) to branchpoint 1.276 (colored) next main 1.277 (colored)

Merge changes from current as of 20200406

Revision 1.285.2.1 / (download) - annotate - [select for diffs], Sat Jan 25 22:38:51 2020 UTC (3 years ago) by ad
Branch: ad-namecache
Changes since 1.285: +3 -3 lines
Diff to previous 1.285 (colored) next main 1.286 (colored)

Sync with head.

Revision 1.286 / (download) - annotate - [select for diffs], Tue Jan 21 15:25:38 2020 UTC (3 years ago) by christos
Branch: MAIN
CVS Tags: phil-wifi-20200421, phil-wifi-20200411, phil-wifi-20200406, is-mlppp-base, is-mlppp, bouyer-xenpvh-base2, bouyer-xenpvh-base1, bouyer-xenpvh-base, bouyer-xenpvh, ad-namecache-base3, ad-namecache-base2
Changes since 1.285: +3 -3 lines
Diff to previous 1.285 (colored)

Don't crash if we are on a hippie trail, head full of zombie

Revision 1.285 / (download) - annotate - [select for diffs], Tue Jan 7 08:52:47 2020 UTC (3 years ago) by skrll
Branch: MAIN
CVS Tags: ad-namecache-base1, ad-namecache-base
Branch point for: ad-namecache
Changes since 1.284: +3 -4 lines
Diff to previous 1.284 (colored)

Appease gcc

Revision 1.284 / (download) - annotate - [select for diffs], Mon Jan 6 11:18:51 2020 UTC (3 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.283: +27 -13 lines
Diff to previous 1.283 (colored)

ttygetinfo(): avoid crash with zombies. From skrll@, tweaked by me.

Revision 1.283 / (download) - annotate - [select for diffs], Thu Jan 2 16:52:55 2020 UTC (3 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.282: +3 -3 lines
Diff to previous 1.282 (colored)

KNF

Revision 1.282 / (download) - annotate - [select for diffs], Thu Jan 2 16:51:54 2020 UTC (3 years, 1 month ago) by skrll
Branch: MAIN
Changes since 1.281: +5 -5 lines
Diff to previous 1.281 (colored)

Trailing whitespace

Revision 1.276.2.1 / (download) - annotate - [select for diffs], Mon Jun 10 22:09:03 2019 UTC (3 years, 7 months ago) by christos
Branch: phil-wifi
Changes since 1.276: +17 -24 lines
Diff to previous 1.276 (colored)

Sync with HEAD

Revision 1.281 / (download) - annotate - [select for diffs], Fri Mar 1 11:06:57 2019 UTC (3 years, 11 months ago) by pgoyette
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, netbsd-9-base, netbsd-9-3-RELEASE, netbsd-9-2-RELEASE, netbsd-9-1-RELEASE, netbsd-9-0-RELEASE, netbsd-9-0-RC2, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2
Changes since 1.280: +4 -4 lines
Diff to previous 1.280 (colored)

Rename the MODULE_*_HOOK() macros to MODULE_HOOK_*() as briefly
discussed on irc.

NFCI intended.

Ride the earlier kernel bump - it;s getting crowded.

Revision 1.280 / (download) - annotate - [select for diffs], Tue Jan 29 09:28:50 2019 UTC (4 years ago) by pgoyette
Branch: MAIN
Changes since 1.279: +4 -4 lines
Diff to previous 1.279 (colored)

Normalize all the compat hooks' names to the form

	<subsystem>_<function>_<version>_hook

NFCI

XXX Note that although this introduces a change in the kernel-to-
XXX module interface, we are NOT bumping the kernel version number.
XXX We will bump the version number once the interface stabilizes.

Revision 1.279 / (download) - annotate - [select for diffs], Mon Jan 28 15:46:49 2019 UTC (4 years ago) by christos
Branch: MAIN
Changes since 1.278: +13 -22 lines
Diff to previous 1.278 (colored)

- provide a hook for the 43 tty ioctls
- make the 60 tty ioctl hook look the same
- fix the tty code to call both hooks and remove unused lock

Revision 1.278 / (download) - annotate - [select for diffs], Sun Jan 27 02:08:43 2019 UTC (4 years ago) by pgoyette
Branch: MAIN
Changes since 1.277: +15 -13 lines
Diff to previous 1.277 (colored)

Merge the [pgoyette-compat] branch

Revision 1.275.2.9 / (download) - annotate - [select for diffs], Tue Jan 22 07:42:41 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
CVS Tags: pgoyette-compat-merge-20190127
Changes since 1.275.2.8: +6 -15 lines
Diff to previous 1.275.2.8 (colored) to branchpoint 1.275 (colored) next main 1.276 (colored)

Convert the MODULE_{,VOID_}HOOK_CALL macros to do everything in-line
rather than defining an intermediate hook##call function.  Almost
all of the hooks are called only once, and although we lose the
ability of doing things like

	if (MODULE_HOOK_CALL(...) == 0) ...

we simplify things quite a bit.  With this change, we no longer need
to have both declaration and definition macros, and the definition
no longer needs to have both prototype argument list and a "real"
argument list.

FWIW, the above if now needs to written as

	int ret;

	MODULE_HOOK_CALL(..., ret);
	if (ret == 0) ...

with appropriate use of braces {}.

Revision 1.275.2.8 / (download) - annotate - [select for diffs], Fri Jan 18 00:01:01 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.275.2.7: +4 -4 lines
Diff to previous 1.275.2.7 (colored) to branchpoint 1.275 (colored)

Don't restrict hooks to having only int or void types.  Pass the hook's
type to the various macros, as needed.

Allows us to reduce diffs to original in at least one or two places (we
no longer have to provide an additional parameter to the hook routine
for returning a non-int return value).

Revision 1.275.2.7 / (download) - annotate - [select for diffs], Mon Jan 14 13:34:28 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.275.2.6: +4 -4 lines
Diff to previous 1.275.2.6 (colored) to branchpoint 1.275 (colored)

Create a variant of the HOOK macros that handles hook routines of
type void, and use them where appropriate.

Revision 1.275.2.6 / (download) - annotate - [select for diffs], Sun Jan 13 10:49:50 2019 UTC (4 years ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.275.2.5: +6 -6 lines
Diff to previous 1.275.2.5 (colored) to branchpoint 1.275 (colored)

Remove the HOOK2 versions of the MODULE_HOOK macros.  There were
only a few uses, and using them led to some lack of clarity in the
code.  Instead, we now use two separate hooks, with names that
make it clear(er) what we're doing.

This also positions us to start unraveling some of the rtsock_50
mess, which will need (at least) five hooks.

Revision 1.275.2.5 / (download) - annotate - [select for diffs], Mon Oct 15 09:51:33 2018 UTC (4 years, 3 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.275.2.4: +22 -18 lines
Diff to previous 1.275.2.4 (colored) to branchpoint 1.275 (colored)

Convert another hook to the MP-sfe mechanism.

XXX still have three more to convert: openat_10, sysvipc50_sysctl and
XXX compat70_unp_addsockcred

Revision 1.275.2.4 / (download) - annotate - [select for diffs], Thu Sep 6 06:56:42 2018 UTC (4 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.275.2.3: +4 -4 lines
Diff to previous 1.275.2.3 (colored) to branchpoint 1.275 (colored)

Sync with HEAD

Resolve a couple of conflicts (result of the uimin/uimax changes)

Revision 1.275.2.3 / (download) - annotate - [select for diffs], Tue Sep 4 02:21:58 2018 UTC (4 years, 5 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.275.2.2: +16 -4 lines
Diff to previous 1.275.2.2 (colored) to branchpoint 1.275 (colored)

Separate COMPAT_BSDPTY stuff from tty COMPAT_60 stuff.  Enables
building of COMPAT_60 module whether or not COMPAT_BSDPTY is
defined in the kernel.

Revision 1.277 / (download) - annotate - [select for diffs], Mon Sep 3 16:29:35 2018 UTC (4 years, 5 months ago) by riastradh
Branch: MAIN
CVS Tags: pgoyette-compat-20190127, pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906
Changes since 1.276: +4 -4 lines
Diff to previous 1.276 (colored)

Rename min/max -> uimin/uimax for better honesty.

These functions are defined on unsigned int.  The generic name
min/max should not silently truncate to 32 bits on 64-bit systems.
This is purely a name change -- no functional change intended.

HOWEVER!  Some subsystems have

	#define min(a, b)	((a) < (b) ? (a) : (b))
	#define max(a, b)	((a) > (b) ? (a) : (b))

even though our standard name for that is MIN/MAX.  Although these
may invite multiple evaluation bugs, these do _not_ cause integer
truncation.

To avoid `fixing' these cases, I first changed the name in libkern,
and then compile-tested every file where min/max occurred in order to
confirm that it failed -- and thus confirm that nothing shadowed
min/max -- before changing it.

I have left a handful of bootloaders that are too annoying to
compile-test, and some dead code:

cobalt ews4800mips hp300 hppa ia64 luna68k vax
acorn32/if_ie.c (not included in any kernels)
macppc/if_gm.c (superseded by gem(4))

It should be easy to fix the fallout once identified -- this way of
doing things fails safe, and the goal here, after all, is to _avoid_
silent integer truncations, not introduce them.

Maybe one day we can reintroduce min/max as type-generic things that
never silently truncate.  But we should avoid doing that for a while,
so that existing code has a chance to be detected by the compiler for
conversion to uimin/uimax without changing the semantics until we can
properly audit it all.  (Who knows, maybe in some cases integer
truncation is actually intended!)

Revision 1.275.2.2 / (download) - annotate - [select for diffs], Sat Apr 7 04:12:19 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.275.2.1: +4 -4 lines
Diff to previous 1.275.2.1 (colored) to branchpoint 1.275 (colored)

Sync with HEAD.  77 conflicts resolved - all of them $NetBSD$

Revision 1.276 / (download) - annotate - [select for diffs], Fri Mar 30 22:59:43 2018 UTC (4 years, 10 months ago) by maya
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407
Branch point for: phil-wifi
Changes since 1.275: +4 -4 lines
Diff to previous 1.275 (colored)

correct typo: and and -> and

from chris28.

Revision 1.275.2.1 / (download) - annotate - [select for diffs], Sun Mar 18 12:06:59 2018 UTC (4 years, 10 months ago) by pgoyette
Branch: pgoyette-compat
Changes since 1.275: +7 -12 lines
Diff to previous 1.275 (colored)

Initial pass at getting the tty stuff properly modularized.  Subject
to review and revision.

Revision 1.253.2.4 / (download) - annotate - [select for diffs], Sun Dec 3 11:38:45 2017 UTC (5 years, 2 months ago) by jdolecek
Branch: tls-maxphys
Changes since 1.253.2.3: +79 -19 lines
Diff to previous 1.253.2.3 (colored) next main 1.254 (colored)

update from HEAD

Revision 1.275 / (download) - annotate - [select for diffs], Wed Oct 25 08:12:39 2017 UTC (5 years, 3 months ago) by maya
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, pgoyette-compat-base, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: pgoyette-compat
Changes since 1.274: +15 -6 lines
Diff to previous 1.274 (colored)

Use C99 initializer for filterops

Mostly done with spatch with touchups for indentation

@@
expression a;
identifier b,c,d;
identifier p;
@@
const struct filterops p =
- 	{ a, b, c, d
+ 	{
+ 	.f_isfd = a,
+ 	.f_attach = b,
+ 	.f_detach = c,
+ 	.f_event = d,
};

Revision 1.274.6.1 / (download) - annotate - [select for diffs], Thu Apr 27 05:36:37 2017 UTC (5 years, 9 months ago) by pgoyette
Branch: prg-localcount2
Changes since 1.274: +4 -3 lines
Diff to previous 1.274 (colored) next main 1.275 (colored)

Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita.  There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.

Revision 1.271.2.2 / (download) - annotate - [select for diffs], Fri Nov 4 14:49:17 2016 UTC (6 years, 3 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.271.2.1: +8 -6 lines
Diff to previous 1.271.2.1 (colored) to branchpoint 1.271 (colored) next main 1.272 (colored)

Sync with HEAD

Revision 1.262.2.4 / (download) - annotate - [select for diffs], Wed Oct 5 20:56:03 2016 UTC (6 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.262.2.3: +12 -10 lines
Diff to previous 1.262.2.3 (colored) to branchpoint 1.262 (colored) next main 1.263 (colored)

Sync with HEAD

Revision 1.274 / (download) - annotate - [select for diffs], Sat Oct 1 04:42:54 2016 UTC (6 years, 4 months ago) by christos
Branch: MAIN
CVS Tags: prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, nick-nhusb-base-20161004, netbsd-8-base, netbsd-8-2-RELEASE, netbsd-8-1-RELEASE, netbsd-8-1-RC1, netbsd-8-0-RELEASE, netbsd-8-0-RC2, netbsd-8-0-RC1, netbsd-8, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: prg-localcount2
Changes since 1.273: +3 -5 lines
Diff to previous 1.273 (colored)

Require exact credential match; this way even if we su to the original user
that created the session, we won't match his credentials.

Revision 1.273 / (download) - annotate - [select for diffs], Sat Oct 1 03:46:00 2016 UTC (6 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.272: +5 -2 lines
Diff to previous 1.272 (colored)

Weaken the test a bit to still allow non-root to use TIOCSTI; we need to have
the same creds as the session leader process for the tty session.

Revision 1.272 / (download) - annotate - [select for diffs], Thu Sep 29 21:46:32 2016 UTC (6 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.271: +7 -6 lines
Diff to previous 1.271 (colored)

Only allow root to use TIOCSTI. Don't eat the kauth error number.
It is unexpected for an unprivileged process to gain privs by
typing to root's tty:

$ cat installer
#!/bin/sh
whoami
/usr/sbin/sti /dev/tty whoami\\n

$ su unprivileged -c ./installer
unprivileged
$ whoami
root

Revision 1.271.2.1 / (download) - annotate - [select for diffs], Wed Jul 20 23:47:57 2016 UTC (6 years, 6 months ago) by pgoyette
Branch: pgoyette-localcount
Changes since 1.271: +4 -3 lines
Diff to previous 1.271 (colored)

Adapt machine-independant code to the new {b,c}devsw reference-counting
(using localcount(9)).  All callers of {b,c}devsw_lookup() now call
{b,c}devsw_lookup_acquire() which retains a reference on the 'struct
{b,c}devsw'.  This reference must be released by the caller once it is
finished with the structure's content (or other data that would disappear
if the 'struct {b,c}devsw' were to disappear).

Revision 1.262.2.3 / (download) - annotate - [select for diffs], Sat Jul 9 20:25:20 2016 UTC (6 years, 6 months ago) by skrll
Branch: nick-nhusb
Changes since 1.262.2.2: +4 -4 lines
Diff to previous 1.262.2.2 (colored) to branchpoint 1.262 (colored)

Sync with HEAD

Revision 1.271 / (download) - annotate - [select for diffs], Thu Jul 7 06:55:43 2016 UTC (6 years, 7 months ago) by msaitoh
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.270: +4 -4 lines
Diff to previous 1.270 (colored)

KNF. Remove extra spaces. No functional change.

Revision 1.262.2.2 / (download) - annotate - [select for diffs], Sun Dec 27 12:10:05 2015 UTC (7 years, 1 month ago) by skrll
Branch: nick-nhusb
Changes since 1.262.2.1: +37 -2 lines
Diff to previous 1.262.2.1 (colored) to branchpoint 1.262 (colored)

Sync with HEAD (as of 26th Dec)

Revision 1.270 / (download) - annotate - [select for diffs], Thu Oct 22 17:36:33 2015 UTC (7 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529, nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226
Changes since 1.269: +13 -2 lines
Diff to previous 1.269 (colored)

Add console-related ioctls.

Revision 1.269 / (download) - annotate - [select for diffs], Sun Oct 18 15:58:23 2015 UTC (7 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.268: +12 -3 lines
Diff to previous 1.268 (colored)

add the pty ioctls to pass through.

Revision 1.268 / (download) - annotate - [select for diffs], Sun Oct 18 15:14:50 2015 UTC (7 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.267: +17 -2 lines
Diff to previous 1.267 (colored)

handle the hardware layer tty ioctls directly so that we don't need to load
the compat module for normal operations.

Revision 1.262.2.1 / (download) - annotate - [select for diffs], Tue Sep 22 12:06:07 2015 UTC (7 years, 4 months ago) by skrll
Branch: nick-nhusb
Changes since 1.262: +21 -7 lines
Diff to previous 1.262 (colored)

Sync with HEAD

Revision 1.267 / (download) - annotate - [select for diffs], Tue Aug 25 12:55:30 2015 UTC (7 years, 5 months ago) by gson
Branch: MAIN
CVS Tags: nick-nhusb-base-20150921
Changes since 1.266: +4 -4 lines
Diff to previous 1.266 (colored)

In ttywait_timo(), break out of loop on all errors, not just
EWOULDBLOCK, as ttywait() did prior to 1.265.

Revision 1.266 / (download) - annotate - [select for diffs], Mon Aug 24 22:50:32 2015 UTC (7 years, 5 months ago) by pooka
Branch: MAIN
Changes since 1.265: +4 -2 lines
Diff to previous 1.265 (colored)

to garnish, dust with _KERNEL_OPT

Revision 1.265 / (download) - annotate - [select for diffs], Wed Aug 19 12:02:55 2015 UTC (7 years, 5 months ago) by gson
Branch: MAIN
Changes since 1.264: +20 -8 lines
Diff to previous 1.264 (colored)

When closing a tty, limit the amount of time spent waiting for the
output to drain to five seconds so that exiting processes with
buffered output for a serial port blocked by flow control or a pty
that is not being read do not hang indefinitely.  Should fix PRs
kern/12534 and kern/17171.  This is an updated version of the change
of tty.c 1.263.

Revision 1.264 / (download) - annotate - [select for diffs], Sun Jun 14 16:19:31 2015 UTC (7 years, 7 months ago) by gson
Branch: MAIN
Changes since 1.263: +8 -21 lines
Diff to previous 1.263 (colored)

Revert previous; it broke the lib/libc/ttyio/t_ttyio/ioctl test case.

Revision 1.263 / (download) - annotate - [select for diffs], Fri Jun 12 17:28:53 2015 UTC (7 years, 7 months ago) by gson
Branch: MAIN
Changes since 1.262: +21 -8 lines
Diff to previous 1.262 (colored)

When closing a tty, limit the amount of time spent waiting for the
output to drain to five seconds so that exiting processes with
buffered output for a serial port blocked by flow control do not
hang indefinitely.  Should fix PR kern/12534.  OK christos.

Revision 1.262 / (download) - annotate - [select for diffs], Fri Sep 5 05:33:39 2014 UTC (8 years, 5 months ago) by matt
Branch: MAIN
CVS Tags: nick-nhusb-base-20150606, nick-nhusb-base-20150406, nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.261: +6 -6 lines
Diff to previous 1.261 (colored)

Don't use catch as a varible name.

Revision 1.253.2.3 / (download) - annotate - [select for diffs], Wed Aug 20 00:04:29 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-maxphys
Changes since 1.253.2.2: +50 -8 lines
Diff to previous 1.253.2.2 (colored)

Rebase to HEAD as of a few days ago.

Revision 1.259.2.1 / (download) - annotate - [select for diffs], Sun Aug 10 06:55:58 2014 UTC (8 years, 5 months ago) by tls
Branch: tls-earlyentropy
Changes since 1.259: +46 -2 lines
Diff to previous 1.259 (colored) next main 1.260 (colored)

Rebase.

Revision 1.261 / (download) - annotate - [select for diffs], Thu May 22 16:31:19 2014 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
CVS Tags: tls-maxphys-base, tls-earlyentropy-base, netbsd-7-nhusb-base-20170116, netbsd-7-nhusb-base, netbsd-7-nhusb, netbsd-7-base, netbsd-7-2-RELEASE, netbsd-7-1-RELEASE, netbsd-7-1-RC2, netbsd-7-1-RC1, netbsd-7-1-2-RELEASE, netbsd-7-1-1-RELEASE, netbsd-7-1, netbsd-7-0-RELEASE, netbsd-7-0-RC3, netbsd-7-0-RC2, netbsd-7-0-RC1, netbsd-7-0-2-RELEASE, netbsd-7-0-1-RELEASE, netbsd-7-0, netbsd-7
Changes since 1.260: +44 -2 lines
Diff to previous 1.260 (colored)

Use accessor functions for the tty's table of control characters.
(at least from outside the core tty sources)

Move some xon/xoff code from net/ppp_tty.c to kern/tty.c.

Revision 1.260 / (download) - annotate - [select for diffs], Thu May 22 16:28:06 2014 UTC (8 years, 8 months ago) by dholland
Branch: MAIN
Changes since 1.259: +4 -2 lines
Diff to previous 1.259 (colored)

Define TTY_ALLOW_PRIVATE in tty.c, tty_pty.c, and tty_conf.c.

These modules are the core of the tty code that in the long term needs
access to struct tty. (It may be that in the future this can be cut
back to just tty.c; we'll see. For now I'll settle for keeping drivers
out of struct tty.)

Revision 1.249.2.3 / (download) - annotate - [select for diffs], Thu May 22 11:41:03 2014 UTC (8 years, 8 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.249.2.2: +7 -9 lines
Diff to previous 1.249.2.2 (colored) to branchpoint 1.249 (colored) next main 1.250 (colored)

sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs.  ("Protocol error: too many arguments")

Revision 1.257.2.1 / (download) - annotate - [select for diffs], Sun May 18 17:46:08 2014 UTC (8 years, 8 months ago) by rmind
Branch: rmind-smpnet
Changes since 1.257: +6 -8 lines
Diff to previous 1.257 (colored) next main 1.258 (colored)

sync with head

Revision 1.259 / (download) - annotate - [select for diffs], Tue Feb 25 18:30:11 2014 UTC (8 years, 11 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-pagecache-base9, rmind-smpnet-nbase, rmind-smpnet-base, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3
Branch point for: tls-earlyentropy
Changes since 1.258: +2 -7 lines
Diff to previous 1.258 (colored)

Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.

Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.

Revision 1.258 / (download) - annotate - [select for diffs], Sun Feb 23 07:54:43 2014 UTC (8 years, 11 months ago) by mlelstv
Branch: MAIN
Changes since 1.257: +6 -3 lines
Diff to previous 1.257 (colored)

ttioctl always gets a valid lwp reference. Replace attempt to handle a NULL
reference in only one place with a regular assertion.

Revision 1.253.2.2 / (download) - annotate - [select for diffs], Mon Feb 25 00:29:55 2013 UTC (9 years, 11 months ago) by tls
Branch: tls-maxphys
Changes since 1.253.2.1: +3 -3 lines
Diff to previous 1.253.2.1 (colored)

resync with head

Revision 1.257 / (download) - annotate - [select for diffs], Sat Feb 9 00:31:21 2013 UTC (9 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, khorben-n900, agc-symver-base, agc-symver
Branch point for: rmind-smpnet
Changes since 1.256: +3 -3 lines
Diff to previous 1.256 (colored)

printflike maintenance.

Revision 1.253.2.1 / (download) - annotate - [select for diffs], Tue Nov 20 03:02:44 2012 UTC (10 years, 2 months ago) by tls
Branch: tls-maxphys
Changes since 1.253: +18 -8 lines
Diff to previous 1.253 (colored)

Resync to 2012-11-19 00:00:00 UTC

Revision 1.249.2.2 / (download) - annotate - [select for diffs], Tue Oct 30 17:22:36 2012 UTC (10 years, 3 months ago) by yamt
Branch: yamt-pagecache
CVS Tags: yamt-pagecache-tag8
Changes since 1.249.2.1: +30 -10 lines
Diff to previous 1.249.2.1 (colored) to branchpoint 1.249 (colored)

sync with head

Revision 1.256 / (download) - annotate - [select for diffs], Fri Oct 19 16:55:22 2012 UTC (10 years, 3 months ago) by apb
Branch: MAIN
CVS Tags: yamt-pagecache-base8, yamt-pagecache-base7, yamt-pagecache-base6
Changes since 1.255: +13 -2 lines
Diff to previous 1.255 (colored)

Add COMPAT_60 versions of the TIOCPTMGET and TIOCPTSNAME ioctls.

Revision 1.255 / (download) - annotate - [select for diffs], Tue Oct 2 23:10:34 2012 UTC (10 years, 4 months ago) by mlelstv
Branch: MAIN
Changes since 1.254: +4 -2 lines
Diff to previous 1.254 (colored)

Don't call ureadc() with a spinlock held because ureadc() may fault when
writing to userspace.

Revision 1.254 / (download) - annotate - [select for diffs], Sun Sep 30 11:49:44 2012 UTC (10 years, 4 months ago) by mlelstv
Branch: MAIN
Changes since 1.253: +5 -8 lines
Diff to previous 1.253 (colored)

Provide consistent locking around getc() in ttread(). This is necessary
to prevent crashes in MPSAFE tty drivers like ucom.

Revision 1.249.8.2 / (download) - annotate - [select for diffs], Mon Aug 20 19:15:36 2012 UTC (10 years, 5 months ago) by riz
Branch: netbsd-6
CVS Tags: netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus
Changes since 1.249.8.1: +14 -4 lines
Diff to previous 1.249.8.1 (colored) to branchpoint 1.249 (colored) next main 1.250 (colored)

Pull up following revision(s) (requested by christos in ticket #516):
	sys/kern/tty.c: revision 1.251
	sys/kern/tty.c: revision 1.252
	sys/kern/tty.c: revision 1.253
Better (not racy fix) from Paul Goyette.
Use the queue of the tty not garbage from the stack (Paul Goyette)
PR/46780: Dennis Ferguson: Take the easy way out and return EBUSY when changing
the queue size if the output queue is not empty. Other solutions seemed too
complex/fragile.

Revision 1.253 / (download) - annotate - [select for diffs], Fri Aug 17 16:21:19 2012 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Branch point for: tls-maxphys
Changes since 1.252: +10 -5 lines
Diff to previous 1.252 (colored)

Better (not racy fix) from Paul Goyette.

Revision 1.252 / (download) - annotate - [select for diffs], Fri Aug 17 16:14:31 2012 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.251: +3 -3 lines
Diff to previous 1.251 (colored)

Use the queue of the tty not garbage from the stack (Paul Goyette)

Revision 1.251 / (download) - annotate - [select for diffs], Sun Aug 12 14:45:44 2012 UTC (10 years, 5 months ago) by christos
Branch: MAIN
Changes since 1.250: +9 -4 lines
Diff to previous 1.250 (colored)

PR/46780: Dennis Ferguson: Take the easy way out and return EBUSY when changing
the queue size if the output queue is not empty. Other solutions seemed too
complex/fragile.

Revision 1.249.2.1 / (download) - annotate - [select for diffs], Tue Apr 17 00:08:30 2012 UTC (10 years, 9 months ago) by yamt
Branch: yamt-pagecache
Changes since 1.249: +9 -9 lines
Diff to previous 1.249 (colored)

sync with head

Revision 1.249.6.1 / (download) - annotate - [select for diffs], Thu Apr 5 21:33:40 2012 UTC (10 years, 10 months ago) by mrg
Branch: jmcneill-usbmp
Changes since 1.249: +9 -9 lines
Diff to previous 1.249 (colored) next main 1.250 (colored)

sync to latest -current.

Revision 1.249.8.1 / (download) - annotate - [select for diffs], Mon Mar 19 23:23:10 2012 UTC (10 years, 10 months ago) by riz
Branch: netbsd-6
Changes since 1.249: +9 -9 lines
Diff to previous 1.249 (colored)

Pull up following revision(s) (requested by dholland in ticket #128):
	sys/kern/tty.c: revision 1.250
PR/41673: Stathis Kamperis: tcsetpgrp returns EINVAL, but should return EPERM.

Revision 1.250 / (download) - annotate - [select for diffs], Mon Mar 12 18:27:08 2012 UTC (10 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base10
Changes since 1.249: +9 -9 lines
Diff to previous 1.249 (colored)

PR/41673: Stathis Kamperis: tcsetpgrp returns EINVAL, but should return EPERM.

Revision 1.249 / (download) - annotate - [select for diffs], Fri Oct 21 02:08:09 2011 UTC (11 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, netbsd-6-base, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base, jmcneill-audiomp3-base, jmcneill-audiomp3
Branch point for: yamt-pagecache, netbsd-6, jmcneill-usbmp
Changes since 1.248: +13 -67 lines
Diff to previous 1.248 (colored)

extract broken proc_compare. lwp compares against self.

Revision 1.248 / (download) - annotate - [select for diffs], Sat Sep 24 00:05:38 2011 UTC (11 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.247: +99 -9 lines
Diff to previous 1.247 (colored)

- Introduce a sysctl to control the default tty queue size kern.tty.qsize,
  which defaults to 1024 as before.
- Add two ioctls TIOC{G,S}QSIZE to read and adjust the queue size on
  individual ptys.

NB: ttys (and ptys) still silently (or beepingly (IMAXBEL)) drop
    characters if the queue size is exceeded. I.e. you can appear
    to succeed writing to the {p,t}ty, but not all characters will
    have made it if the queue overflows.  CVS:

Revision 1.247 / (download) - annotate - [select for diffs], Fri Sep 23 15:29:08 2011 UTC (11 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.246: +3 -3 lines
Diff to previous 1.246 (colored)

Change obsolete CBSIZE constant (48), to a power of two constant (64) that
is close enough to match the original assumptions.

Revision 1.246 / (download) - annotate - [select for diffs], Tue Jul 26 13:14:18 2011 UTC (11 years, 6 months ago) by yamt
Branch: MAIN
Changes since 1.245: +22 -8 lines
Diff to previous 1.245 (colored)

stop using lbolt in tty

Revision 1.245 / (download) - annotate - [select for diffs], Sun Jul 17 20:54:52 2011 UTC (11 years, 6 months ago) by joerg
Branch: MAIN
Changes since 1.244: +2 -4 lines
Diff to previous 1.244 (colored)

Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.

Revision 1.239.2.1 / (download) - annotate - [select for diffs], Mon Jun 6 09:09:38 2011 UTC (11 years, 8 months ago) by jruoho
Branch: jruoho-x86intr
Changes since 1.239: +42 -17 lines
Diff to previous 1.239 (colored) next main 1.240 (colored)

Sync with HEAD.

Revision 1.234.4.5 / (download) - annotate - [select for diffs], Tue May 31 03:05:03 2011 UTC (11 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.234.4.4: +10 -8 lines
Diff to previous 1.234.4.4 (colored) to branchpoint 1.234 (colored) next main 1.235 (colored)

sync with head

Revision 1.227.4.1.4.2 / (download) - annotate - [select for diffs], Wed May 25 05:35:49 2011 UTC (11 years, 8 months ago) by matt
Branch: matt-nb5-mips64
Changes since 1.227.4.1.4.1: +31 -9 lines
Diff to previous 1.227.4.1.4.1 (colored) to branchpoint 1.227.4.1 (colored) next main 1.227.4.2 (colored)

Merge in LWP_PC status change from -current.  Print PC addr if lwp is
running or runnable.

Revision 1.244 / (download) - annotate - [select for diffs], Sun Apr 24 16:26:51 2011 UTC (11 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: rmind-uvmplock-nbase, rmind-uvmplock-base, cherry-xenmp-base, cherry-xenmp
Changes since 1.243: +12 -10 lines
Diff to previous 1.243 (colored)

Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency.  Remove some unnecessary malloc.h inclusions as well.

Revision 1.234.4.4 / (download) - annotate - [select for diffs], Thu Apr 21 01:42:10 2011 UTC (11 years, 9 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.234.4.3: +1 -0 lines
Diff to previous 1.234.4.3 (colored) to branchpoint 1.234 (colored)

sync with head

Revision 1.243 / (download) - annotate - [select for diffs], Sat Apr 9 06:34:06 2011 UTC (11 years, 10 months ago) by martin
Branch: MAIN
Changes since 1.242: +3 -2 lines
Diff to previous 1.242 (colored)

In ttymalloc() explicitly initialize t_dev to NODEV.
In ptcwakeup() do not bother to wake up a client side if it has not been
opened yet.
The old code would spuriously wakeup the client minor(0) [i.e. ttyp0
typically] or crash the kernel if that wasn't open, see PR kern/40688.
(Old names used to match the PR and test case, adjust names for
/dev/ptm[x] resp. /dev/pts/* accordingly)

Revision 1.234.4.3 / (download) - annotate - [select for diffs], Sat Mar 5 20:55:24 2011 UTC (11 years, 11 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.234.4.2: +41 -15 lines
Diff to previous 1.234.4.2 (colored) to branchpoint 1.234 (colored)

sync with head

Revision 1.239.4.1 / (download) - annotate - [select for diffs], Tue Feb 8 16:20:00 2011 UTC (11 years, 11 months ago) by bouyer
Branch: bouyer-quota2
Changes since 1.239: +31 -9 lines
Diff to previous 1.239 (colored) next main 1.240 (colored)

Sync with HEAD

Revision 1.242 / (download) - annotate - [select for diffs], Wed Feb 2 03:00:44 2011 UTC (12 years ago) by christos
Branch: MAIN
CVS Tags: bouyer-quota2-nbase, bouyer-quota2-base
Changes since 1.241: +27 -23 lines
Diff to previous 1.241 (colored)

fix locking and remove duplicate code.

Revision 1.241 / (download) - annotate - [select for diffs], Sun Jan 23 11:01:08 2011 UTC (12 years ago) by mbalmer
Branch: MAIN
Changes since 1.240: +5 -4 lines
Diff to previous 1.240 (colored)

Cast arguments to vaddr_t when using PRIxVADDR in the printf format string.

Revision 1.240 / (download) - annotate - [select for diffs], Sun Jan 23 07:30:07 2011 UTC (12 years ago) by matt
Branch: MAIN
Changes since 1.239: +19 -2 lines
Diff to previous 1.239 (colored)

Change ^T/SIGINFO to print the PC/CPU# or PC instead of "running"/"runable"
if a port provide LWP_PC.

Revision 1.239 / (download) - annotate - [select for diffs], Fri Nov 19 06:44:43 2010 UTC (12 years, 2 months ago) by dholland
Branch: MAIN
CVS Tags: matt-mips64-premerge-20101231, jruoho-x86intr-base
Branch point for: jruoho-x86intr, bouyer-quota2
Changes since 1.238: +12 -5 lines
Diff to previous 1.238 (colored)

Introduce struct pathbuf. This is an abstraction to hold a pathname
and the metadata required to interpret it. Callers of namei must now
create a pathbuf and pass it to NDINIT (instead of a string and a
uio_seg), then destroy the pathbuf after the namei session is
complete.

Update all namei call sites accordingly. Add a pathbuf(9) man page and
update namei(9).

The pathbuf interface also now appears in a couple of related
additional places that were passing string/uio_seg pairs that were
later fed into NDINIT. Update other call sites accordingly.

Revision 1.234.2.2 / (download) - annotate - [select for diffs], Fri Oct 22 07:22:30 2010 UTC (12 years, 3 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.234.2.1: +0 -3 lines
Diff to previous 1.234.2.1 (colored) to branchpoint 1.234 (colored) next main 1.235 (colored)

Sync with HEAD (-D20101022).

Revision 1.221.2.6 / (download) - annotate - [select for diffs], Sat Oct 9 03:32:32 2010 UTC (12 years, 4 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.221.2.5: +2 -5 lines
Diff to previous 1.221.2.5 (colored) to branchpoint 1.221 (colored) next main 1.222 (colored)

sync with head

Revision 1.238 / (download) - annotate - [select for diffs], Sat Aug 21 13:19:39 2010 UTC (12 years, 5 months ago) by pgoyette
Branch: MAIN
CVS Tags: yamt-nfs-mp-base11, uebayasi-xip-base4, uebayasi-xip-base3
Changes since 1.237: +2 -5 lines
Diff to previous 1.237 (colored)

Update the rest of the kernel to conform to the module subsystem's new
locking protocol.

Revision 1.234.2.1 / (download) - annotate - [select for diffs], Tue Aug 17 06:47:32 2010 UTC (12 years, 5 months ago) by uebayasi
Branch: uebayasi-xip
Changes since 1.234: +28 -17 lines
Diff to previous 1.234 (colored)

Sync with HEAD.

Revision 1.221.2.5 / (download) - annotate - [select for diffs], Wed Aug 11 22:54:43 2010 UTC (12 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.221.2.4: +28 -17 lines
Diff to previous 1.221.2.4 (colored) to branchpoint 1.221 (colored)

sync with head.

Revision 1.234.4.2 / (download) - annotate - [select for diffs], Sat Jul 3 01:19:55 2010 UTC (12 years, 7 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.234.4.1: +16 -10 lines
Diff to previous 1.234.4.1 (colored) to branchpoint 1.234 (colored)

sync with head

Revision 1.237 / (download) - annotate - [select for diffs], Thu Jul 1 02:38:31 2010 UTC (12 years, 7 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base10, uebayasi-xip-base2
Changes since 1.236: +14 -8 lines
Diff to previous 1.236 (colored)

Remove pfind() and pgfind(), fix locking in various broken uses of these.
Rename real routines to proc_find() and pgrp_find(), remove PFIND_* flags
and have consistent behaviour.  Provide proc_find_raw() for special cases.
Fix memory leak in sysctl_proc_corename().

COMPAT_LINUX: rework ptrace() locking, minimise differences between
different versions per-arch.

Note: while this change adds some formal cosmetics for COMPAT_DARWIN and
COMPAT_IRIX - locking there is utterly broken (for ages).

Fixes PR/43176.

Revision 1.236 / (download) - annotate - [select for diffs], Sun Jun 13 03:34:19 2010 UTC (12 years, 7 months ago) by yamt
Branch: MAIN
Changes since 1.235: +4 -4 lines
Diff to previous 1.235 (colored)

update a comment.

Revision 1.234.4.1 / (download) - annotate - [select for diffs], Sun May 30 05:17:58 2010 UTC (12 years, 8 months ago) by rmind
Branch: rmind-uvmplock
Changes since 1.234: +14 -9 lines
Diff to previous 1.234 (colored)

sync with head

Revision 1.235 / (download) - annotate - [select for diffs], Wed May 26 23:53:21 2010 UTC (12 years, 8 months ago) by pooka
Branch: MAIN
Changes since 1.234: +14 -9 lines
Diff to previous 1.234 (colored)

Feed dust to a few linkset uses and explicitly call the constructor.

Revision 1.227.4.1.4.1 / (download) - annotate - [select for diffs], Wed Apr 21 00:28:18 2010 UTC (12 years, 9 months ago) by matt
Branch: matt-nb5-mips64
CVS Tags: matt-nb5-mips64-premerge-20101231, matt-nb5-mips64-k15
Changes since 1.227.4.1: +5 -2 lines
Diff to previous 1.227.4.1 (colored)

sync to netbsd-5

Revision 1.221.2.4 / (download) - annotate - [select for diffs], Thu Mar 11 15:04:20 2010 UTC (12 years, 10 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.221.2.3: +40 -2 lines
Diff to previous 1.221.2.3 (colored) to branchpoint 1.221 (colored)

sync with head

Revision 1.227.4.1.2.1 / (download) - annotate - [select for diffs], Mon Oct 12 10:51:59 2009 UTC (13 years, 3 months ago) by sborrill
Branch: netbsd-5-0
CVS Tags: netbsd-5-0-2-RELEASE
Changes since 1.227.4.1: +5 -2 lines
Diff to previous 1.227.4.1 (colored) next main 1.227.4.2 (colored)

Pull up the following revisions(s) (requested by dsl in ticket #1087):
	sys/kern/tty.c:	revision 1.234

Check for zero length read here - and return zero. Without this there is a
simple local-user panic in ureadc().

Revision 1.227.4.2 / (download) - annotate - [select for diffs], Sun Oct 11 18:03:21 2009 UTC (13 years, 3 months ago) by sborrill
Branch: netbsd-5
CVS Tags: netbsd-5-2-RELEASE, netbsd-5-2-RC1, netbsd-5-2-3-RELEASE, netbsd-5-2-2-RELEASE, netbsd-5-2-1-RELEASE, netbsd-5-2, netbsd-5-1-RELEASE, netbsd-5-1-RC4, netbsd-5-1-RC3, netbsd-5-1-RC2, netbsd-5-1-RC1, netbsd-5-1-5-RELEASE, netbsd-5-1-4-RELEASE, netbsd-5-1-3-RELEASE, netbsd-5-1-2-RELEASE, netbsd-5-1-1-RELEASE, netbsd-5-1, matt-nb5-pq3-base, matt-nb5-pq3
Changes since 1.227.4.1: +5 -2 lines
Diff to previous 1.227.4.1 (colored) to branchpoint 1.227 (colored) next main 1.228 (colored)

Pull up the following revisions(s) (requested by dsl in ticket #1087):
	sys/kern/tty.c:	revision 1.234

Check for zero length read here - and return zero. Without this there is a
simple local-user panic in ureadc().

Revision 1.234 / (download) - annotate - [select for diffs], Sun Oct 11 17:20:48 2009 UTC (13 years, 3 months ago) by dsl
Branch: MAIN
CVS Tags: yamt-nfs-mp-base9, uebayasi-xip-base1, uebayasi-xip-base, matt-premerge-20091211, jym-xensuspend-nbase
Branch point for: uebayasi-xip, rmind-uvmplock
Changes since 1.233: +5 -2 lines
Diff to previous 1.233 (colored)

Check for zero length read here - and return zero.
Most times we've come through spec_read() which has already done the test,
but not always (eg pty with ptsfs mounted).
Without this there is a simple local-user panic in ureadc().
Noted Matthew Mondor on tech-kern.

Revision 1.233 / (download) - annotate - [select for diffs], Fri Oct 2 23:58:53 2009 UTC (13 years, 4 months ago) by elad
Branch: MAIN
Changes since 1.232: +37 -2 lines
Diff to previous 1.232 (colored)

Put the tty opening policy back in the subsystem.

Remove include we don't need from the secmodel code.

Revision 1.221.2.3 / (download) - annotate - [select for diffs], Wed Aug 19 18:48:17 2009 UTC (13 years, 5 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.221.2.2: +7 -5 lines
Diff to previous 1.221.2.2 (colored) to branchpoint 1.221 (colored)

sync with head.

Revision 1.232 / (download) - annotate - [select for diffs], Sat Aug 1 23:07:05 2009 UTC (13 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-nfs-mp-base8, yamt-nfs-mp-base7
Changes since 1.231: +7 -5 lines
Diff to previous 1.231 (colored)

Don't return EWOULDBLOCK on an O_NONBLOCK tty file descriptor that has vmin > 0
and vtime > 0. It should be allowed to go to sleep for the sleep interval
indicated in vtime. Reported by der Mouse a long while ago, and this is what
other unixes do.

Revision 1.230.2.1 / (download) - annotate - [select for diffs], Wed May 13 17:21:57 2009 UTC (13 years, 8 months ago) by jym
Branch: jym-xensuspend
Changes since 1.230: +10 -10 lines
Diff to previous 1.230 (colored) next main 1.231 (colored)

Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.

Revision 1.221.2.2 / (download) - annotate - [select for diffs], Mon May 4 08:13:48 2009 UTC (13 years, 9 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.221.2.1: +58 -40 lines
Diff to previous 1.221.2.1 (colored) to branchpoint 1.221 (colored)

sync with head.

Revision 1.227.2.3 / (download) - annotate - [select for diffs], Tue Apr 28 07:37:01 2009 UTC (13 years, 9 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.227.2.2: +10 -10 lines
Diff to previous 1.227.2.2 (colored) to branchpoint 1.227 (colored) next main 1.228 (colored)

Sync with HEAD.

Revision 1.231 / (download) - annotate - [select for diffs], Sat Apr 25 15:06:32 2009 UTC (13 years, 9 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.230: +10 -10 lines
Diff to previous 1.230 (colored)

- Rearrange pg_delete() and pg_remove() (renamed pg_free), thus
  proc_enterpgrp() with proc_leavepgrp() to free process group and/or
  session without proc_lock held.
- Rename SESSHOLD() and SESSRELE() to  to proc_sesshold() and
  proc_sessrele().  The later releases proc_lock now.

Quick OK by <ad>.

Revision 1.227.2.2 / (download) - annotate - [select for diffs], Tue Mar 3 18:32:56 2009 UTC (13 years, 11 months ago) by skrll
Branch: nick-hppapmap
Changes since 1.227.2.1: +3 -4 lines
Diff to previous 1.227.2.1 (colored) to branchpoint 1.227 (colored)

Sync with HEAD.

Revision 1.227.4.1 / (download) - annotate - [select for diffs], Fri Feb 6 02:05:18 2009 UTC (14 years ago) by snj
Branch: netbsd-5
CVS Tags: netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-1-RELEASE, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b
Branch point for: netbsd-5-0, matt-nb5-mips64
Changes since 1.227: +3 -3 lines
Diff to previous 1.227 (colored)

Pull up following revision(s) (requested by drochner in ticket #417):
	sys/dev/wscons/wsdisplay.c: revision 1.126
	sys/kern/tty.c: revision 1.230
	sys/sys/tty.h: revision 1.86
Avoid deadlock in tty code if a terminal emulation responds to
type/status/etc inquiries. (PR kern/37915)
This is clearly a design problem in tty, but we need a cheap fix now.
The problem is that ttyinput() tries to pull a spinlock which
is already held on calls to t_oproc.
The workaround is based on the fact that within wscons code, the
wsdisplay_emulinput() function is only called directly from
wsdisplaystart(). So we can be sure that the tty lock is held,
and use an inofficial entry point in ttc.c which avoids the locking.
These ate certainly more assumptions than needed by the fix
proposed in the PR, but it doesn't affect (and slow down) other
tty drivers.

Revision 1.230 / (download) - annotate - [select for diffs], Thu Jan 22 20:40:20 2009 UTC (14 years ago) by drochner
Branch: MAIN
CVS Tags: nick-hppapmap-base2
Branch point for: jym-xensuspend
Changes since 1.229: +3 -3 lines
Diff to previous 1.229 (colored)

Avoid deadlock in tty code if a terminal emulation responds to
type/status/etc inquiries. (PR kern/37915)
This is clearly a design problem in tty, but we need a cheap fix now.
The problem is that ttyinput() tries to pull a spinlock which
is already held on calls to t_oproc.
The workaround is based on the fact that within wscons code, the
wsdisplay_emulinput() function is only called directly from
wsdisplaystart(). So we can be sure that the tty lock is held,
and use an inofficial entry point in ttc.c which avoids the locking.
These ate certainly more assumptions than needed by the fix
proposed in the PR, but it doesn't affect (and slow down) other
tty drivers.

Revision 1.229 / (download) - annotate - [select for diffs], Thu Jan 22 14:38:35 2009 UTC (14 years ago) by yamt
Branch: MAIN
Changes since 1.228: +2 -3 lines
Diff to previous 1.228 (colored)

malloc -> kmem_alloc

Revision 1.227.2.1 / (download) - annotate - [select for diffs], Mon Jan 19 13:19:40 2009 UTC (14 years ago) by skrll
Branch: nick-hppapmap
Changes since 1.227: +25 -11 lines
Diff to previous 1.227 (colored)

Sync with HEAD.

Revision 1.212.6.5 / (download) - annotate - [select for diffs], Sat Jan 17 13:29:20 2009 UTC (14 years ago) by mjf
Branch: mjf-devfs2
Changes since 1.212.6.4: +23 -9 lines
Diff to previous 1.212.6.4 (colored) to branchpoint 1.212 (colored) next main 1.213 (colored)

Sync with HEAD.

Revision 1.225.2.2 / (download) - annotate - [select for diffs], Sat Dec 13 01:15:09 2008 UTC (14 years, 1 month ago) by haad
Branch: haad-dm
Changes since 1.225.2.1: +25 -11 lines
Diff to previous 1.225.2.1 (colored) to branchpoint 1.225 (colored) next main 1.226 (colored)

Update haad-dm branch to haad-dm-base2.

Revision 1.228 / (download) - annotate - [select for diffs], Wed Nov 19 18:36:07 2008 UTC (14 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: mjf-devfs2-base, haad-nbase2, haad-dm-base2, haad-dm-base, ad-audiomp2-base, ad-audiomp2
Changes since 1.227: +25 -11 lines
Diff to previous 1.227 (colored)

Make the emulations, exec formats, coredump, NFS, and the NFS server
into modules. By and large this commit:

- shuffles header files and ifdefs
- splits code out where necessary to be modular
- adds module glue for each of the components
- adds/replaces hooks for things that can be installed at runtime

Revision 1.225.2.1 / (download) - annotate - [select for diffs], Sun Oct 19 22:17:29 2008 UTC (14 years, 3 months ago) by haad
Branch: haad-dm
Changes since 1.225: +4 -6 lines
Diff to previous 1.225 (colored)

Sync with HEAD.

Revision 1.212.6.4 / (download) - annotate - [select for diffs], Sun Sep 28 10:40:54 2008 UTC (14 years, 4 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.212.6.3: +2 -4 lines
Diff to previous 1.212.6.3 (colored) to branchpoint 1.212 (colored)

Sync with HEAD.

Revision 1.223.2.2 / (download) - annotate - [select for diffs], Thu Sep 18 04:31:44 2008 UTC (14 years, 4 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.223.2.1: +4 -6 lines
Diff to previous 1.223.2.1 (colored) to branchpoint 1.223 (colored) next main 1.224 (colored)

Sync with wrstuden-revivesa-base-2.

Revision 1.227 / (download) - annotate - [select for diffs], Fri Aug 8 07:18:03 2008 UTC (14 years, 6 months ago) by uebayasi
Branch: MAIN
CVS Tags: wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, netbsd-5-base, netbsd-5-0-RC1, matt-mips64-base2, haad-dm-base1
Branch point for: nick-hppapmap, netbsd-5
Changes since 1.226: +2 -4 lines
Diff to previous 1.226 (colored)

ttywrite: g/c an unused variable (cnt).

Revision 1.224.2.2 / (download) - annotate - [select for diffs], Thu Jul 31 04:51:03 2008 UTC (14 years, 6 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.224.2.1: +4 -4 lines
Diff to previous 1.224.2.1 (colored) to branchpoint 1.224 (colored) next main 1.225 (colored)

Sync with head.

Revision 1.226 / (download) - annotate - [select for diffs], Thu Jul 31 01:46:40 2008 UTC (14 years, 6 months ago) by uebayasi
Branch: MAIN
CVS Tags: simonb-wapbl-nbase, simonb-wapbl-base
Changes since 1.225: +4 -4 lines
Diff to previous 1.225 (colored)

Display t_outcv* channels as "ttyout*", not "ttycan*".

Revision 1.212.6.3 / (download) - annotate - [select for diffs], Sun Jun 29 09:33:14 2008 UTC (14 years, 7 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.212.6.2: +3 -3 lines
Diff to previous 1.212.6.2 (colored) to branchpoint 1.212 (colored)

Sync with HEAD.

Revision 1.223.2.1 / (download) - annotate - [select for diffs], Mon Jun 23 04:31:52 2008 UTC (14 years, 7 months ago) by wrstuden
Branch: wrstuden-revivesa
Changes since 1.223: +26 -19 lines
Diff to previous 1.223 (colored)

Sync w/ -current. 34 merge conflicts to follow.

Revision 1.224.2.1 / (download) - annotate - [select for diffs], Wed Jun 18 16:33:35 2008 UTC (14 years, 7 months ago) by simonb
Branch: simonb-wapbl
Changes since 1.224: +5 -5 lines
Diff to previous 1.224 (colored)

Sync with head.

Revision 1.214.2.3 / (download) - annotate - [select for diffs], Tue Jun 17 09:15:03 2008 UTC (14 years, 7 months ago) by yamt
Branch: yamt-pf42
Changes since 1.214.2.2: +5 -5 lines
Diff to previous 1.214.2.2 (colored) to branchpoint 1.214 (colored) next main 1.215 (colored)

sync with head.

Revision 1.225 / (download) - annotate - [select for diffs], Mon Jun 16 09:51:14 2008 UTC (14 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, wrstuden-revivesa-base-1, wrstuden-revivesa-base
Branch point for: haad-dm
Changes since 1.224: +5 -5 lines
Diff to previous 1.224 (colored)

- PPWAIT is need only be locked by proc_lock, so move it to proc::p_lflag.
- Remove a few needless lock acquires from exec/fork/exit.
- Sprinkle branch hints.

No functional change.

Revision 1.214.2.2 / (download) - annotate - [select for diffs], Wed Jun 4 02:05:40 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.214.2.1: +23 -16 lines
Diff to previous 1.214.2.1 (colored) to branchpoint 1.214 (colored)

sync with head

Revision 1.212.6.2 / (download) - annotate - [select for diffs], Mon Jun 2 13:24:13 2008 UTC (14 years, 8 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.212.6.1: +203 -116 lines
Diff to previous 1.212.6.1 (colored) to branchpoint 1.212 (colored)

Sync with HEAD.

Revision 1.224 / (download) - annotate - [select for diffs], Sun May 25 19:22:21 2008 UTC (14 years, 8 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base3
Branch point for: simonb-wapbl
Changes since 1.223: +23 -16 lines
Diff to previous 1.223 (colored)

Properly fix the "hanging in tty" bug that was worked around with cv_wakeup()
some time again.

Revision 1.214.2.1 / (download) - annotate - [select for diffs], Sun May 18 12:35:10 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-pf42
Changes since 1.214: +176 -101 lines
Diff to previous 1.214 (colored)

sync with head.

Revision 1.221.2.1 / (download) - annotate - [select for diffs], Fri May 16 02:25:27 2008 UTC (14 years, 8 months ago) by yamt
Branch: yamt-nfs-mp
Changes since 1.221: +4 -13 lines
Diff to previous 1.221 (colored)

sync with head.

Revision 1.223 / (download) - annotate - [select for diffs], Sat May 3 05:34:23 2008 UTC (14 years, 9 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-base2, yamt-nfs-mp-base2, hpcarm-cleanup-nbase
Branch point for: wrstuden-revivesa
Changes since 1.222: +4 -6 lines
Diff to previous 1.222 (colored)

use sigismasked.  no functional change.

Revision 1.222 / (download) - annotate - [select for diffs], Mon Apr 28 20:24:05 2008 UTC (14 years, 9 months ago) by martin
Branch: MAIN
Changes since 1.221: +2 -9 lines
Diff to previous 1.221 (colored)

Remove clause 3 and 4 from TNF licenses

Revision 1.221 / (download) - annotate - [select for diffs], Thu Apr 24 18:39:24 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
CVS Tags: yamt-nfs-mp-base
Branch point for: yamt-nfs-mp
Changes since 1.220: +17 -15 lines
Diff to previous 1.220 (colored)

Merge proc::p_mutex and proc::p_smutex into a single adaptive mutex, since
we no longer need to guard against access from hardware interrupt handlers.

Additionally, if cloning a process with CLONE_SIGHAND, arrange to have the
child process share the parent's lock so that signal state may be kept in
sync. Partially addresses PR kern/37437.

Revision 1.220 / (download) - annotate - [select for diffs], Thu Apr 24 15:35:30 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.219: +44 -34 lines
Diff to previous 1.219 (colored)

Network protocol interrupts can now block on locks, so merge the globals
proclist_mutex and proclist_lock into a single adaptive mutex (proc_lock).
Implications:

- Inspecting process state requires thread context, so signals can no longer
  be sent from a hardware interrupt handler. Signal activity must be
  deferred to a soft interrupt or kthread.

- As the proc state locking is simplified, it's now safe to take exit()
  and wait() out from under kernel_lock.

- The system spends less time at IPL_SCHED, and there is less lock activity.

Revision 1.219 / (download) - annotate - [select for diffs], Tue Apr 22 12:04:22 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.218: +3 -3 lines
Diff to previous 1.218 (colored)

Give callout_halt() an additional 'kmutex_t *interlock' argument. If there
is a need to block and wait for the callout to complete, and there is an
interlock, it will be dropped while waiting and reacquired before return.

Revision 1.218 / (download) - annotate - [select for diffs], Mon Apr 21 12:49:20 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.217: +3 -3 lines
Diff to previous 1.217 (colored)

Fix TIOCSIG handling for SIGINFO.

Revision 1.217 / (download) - annotate - [select for diffs], Mon Apr 21 11:56:01 2008 UTC (14 years, 9 months ago) by yamt
Branch: MAIN
Changes since 1.216: +6 -3 lines
Diff to previous 1.216 (colored)

ttygetinfo: fix a locking error in rev.1.215.

Revision 1.216 / (download) - annotate - [select for diffs], Sun Apr 20 19:30:13 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.215: +7 -11 lines
Diff to previous 1.215 (colored)

ttys are allocated/freed infrequently enough that there is no point having
a seperate pool for them.

Revision 1.215 / (download) - annotate - [select for diffs], Sun Apr 20 19:22:45 2008 UTC (14 years, 9 months ago) by ad
Branch: MAIN
Changes since 1.214: +134 -61 lines
Diff to previous 1.214 (colored)

Improve ^T / SIGINFO handling:

- Restore code removed during LWPification.
- Don't touch proc state from a hardware interrupt handler.
- Fix the locking.

Revision 1.214 / (download) - annotate - [select for diffs], Sat Apr 5 14:03:16 2008 UTC (14 years, 10 months ago) by yamt
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.213: +13 -8 lines
Diff to previous 1.213 (colored)

- l_wmesg is not always valid.  check l_wchan when using l_wmesg.
  should fix a crash reported by Juan RP on current-users@.
- ttyinfo: lock lwp when accessing l_wmesg.
- fill_lwp: add an assertion.

Revision 1.212.6.1 / (download) - annotate - [select for diffs], Thu Apr 3 12:43:05 2008 UTC (14 years, 10 months ago) by mjf
Branch: mjf-devfs2
Changes since 1.212: +5 -5 lines
Diff to previous 1.212 (colored)

Sync with HEAD.

Revision 1.212.2.1 / (download) - annotate - [select for diffs], Mon Mar 24 07:16:14 2008 UTC (14 years, 10 months ago) by keiichi
Branch: keiichi-mipv6
Changes since 1.212: +5 -5 lines
Diff to previous 1.212 (colored) next main 1.213 (colored)

sync with head.

Revision 1.197.8.4 / (download) - annotate - [select for diffs], Sun Mar 23 02:05:01 2008 UTC (14 years, 10 months ago) by matt
Branch: matt-armv6
Changes since 1.197.8.3: +7 -7 lines
Diff to previous 1.197.8.3 (colored) to branchpoint 1.197 (colored) next main 1.198 (colored)

sync with HEAD

Revision 1.173.2.10 / (download) - annotate - [select for diffs], Mon Mar 17 09:15:34 2008 UTC (14 years, 10 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.173.2.9: +5 -5 lines
Diff to previous 1.173.2.9 (colored) next main 1.174 (colored)

sync with head.

Revision 1.213 / (download) - annotate - [select for diffs], Sat Mar 1 14:16:51 2008 UTC (14 years, 11 months ago) by rmind
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, ad-socklock-base1
Changes since 1.212: +5 -5 lines
Diff to previous 1.212 (colored)

Welcome to 4.99.55:

- Add a lot of missing selinit() and seldestroy() calls.

- Merge selwakeup() and selnotify() calls into a single selnotify().

- Add an additional 'events' argument to selnotify() call.  It will
  indicate which event (POLL_IN, POLL_OUT, etc) happen.  If unknown,
  zero may be used.

Note: please pass appropriate value of 'events' where possible.
Proposed on: <tech-kern>

Revision 1.199.2.4 / (download) - annotate - [select for diffs], Mon Feb 18 21:06:47 2008 UTC (14 years, 11 months ago) by mjf
Branch: mjf-devfs
Changes since 1.199.2.3: +52 -22 lines
Diff to previous 1.199.2.3 (colored) next main 1.200 (colored)

Sync with HEAD.

Revision 1.173.2.9 / (download) - annotate - [select for diffs], Mon Feb 4 09:24:20 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.173.2.8: +4 -4 lines
Diff to previous 1.173.2.8 (colored)

sync with head.

Revision 1.208.4.2 / (download) - annotate - [select for diffs], Wed Jan 23 19:27:42 2008 UTC (15 years ago) by bouyer
Branch: bouyer-xeni386
Changes since 1.208.4.1: +2 -2 lines
Diff to previous 1.208.4.1 (colored) to branchpoint 1.208 (colored) next main 1.209 (colored)

Sync with HEAD.

Revision 1.212 / (download) - annotate - [select for diffs], Wed Jan 23 15:04:40 2008 UTC (15 years ago) by elad
Branch: MAIN
CVS Tags: nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, hpcarm-cleanup-base, bouyer-xeni386-nbase
Branch point for: mjf-devfs2, keiichi-mipv6
Changes since 1.211: +4 -4 lines
Diff to previous 1.211 (colored)

Tons of process scope changes.

  - Add a KAUTH_PROCESS_SCHEDULER action, to handle scheduler related
    requests, and add specific requests for set/get scheduler policy and
    set/get scheduler parameters.

  - Add a KAUTH_PROCESS_KEVENT_FILTER action, to handle kevent(2) related
    requests.

  - Add a KAUTH_DEVICE_TTY_STI action to handle requests to TIOCSTI.

  - Add requests for the KAUTH_PROCESS_CANSEE action, indicating what
    process information is being looked at (entry itself, args, env,
    open files).

  - Add requests for the KAUTH_PROCESS_RLIMIT action indicating set/get.

  - Add requests for the KAUTH_PROCESS_CORENAME action indicating set/get.

  - Make bsd44 secmodel code handle the newly added rqeuests appropriately.

All of the above make it possible to issue finer-grained kauth(9) calls in
many places, removing some KAUTH_GENERIC_ISSUSER requests.

  - Remove the "CAN" from KAUTH_PROCESS_CAN{KTRACE,PROCFS,PTRACE,SIGNAL}.

Discussed with christos@ and yamt@.

Revision 1.173.2.8 / (download) - annotate - [select for diffs], Mon Jan 21 09:46:27 2008 UTC (15 years ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.173.2.7: +51 -21 lines
Diff to previous 1.173.2.7 (colored)

sync with head

Revision 1.197.8.3 / (download) - annotate - [select for diffs], Wed Jan 9 01:56:25 2008 UTC (15 years, 1 month ago) by matt
Branch: matt-armv6
Changes since 1.197.8.2: +102 -70 lines
Diff to previous 1.197.8.2 (colored) to branchpoint 1.197 (colored)

sync with HEAD

Revision 1.208.4.1 / (download) - annotate - [select for diffs], Wed Jan 2 21:56:18 2008 UTC (15 years, 1 month ago) by bouyer
Branch: bouyer-xeni386
CVS Tags: bouyer-xeni386-merge1
Changes since 1.208: +50 -20 lines
Diff to previous 1.208 (colored)

Sync with HEAD

Revision 1.211 / (download) - annotate - [select for diffs], Wed Jan 2 11:48:55 2008 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-base
Changes since 1.210: +3 -2 lines
Diff to previous 1.210 (colored)

Merge vmlocking2 to head.

Revision 1.210 / (download) - annotate - [select for diffs], Mon Dec 31 21:11:13 2007 UTC (15 years, 1 month ago) by ad
Branch: MAIN
Changes since 1.209: +23 -5 lines
Diff to previous 1.209 (colored)

Hang the correct processes when no output/input available. PR kern/37603.
From christos@.

Revision 1.199.2.3 / (download) - annotate - [select for diffs], Thu Dec 27 00:46:14 2007 UTC (15 years, 1 month ago) by mjf
Branch: mjf-devfs
Changes since 1.199.2.2: +3 -3 lines
Diff to previous 1.199.2.2 (colored)

Sync with HEAD.

Revision 1.206.2.3 / (download) - annotate - [select for diffs], Wed Dec 26 21:39:46 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.206.2.2: +4 -3 lines
Diff to previous 1.206.2.2 (colored) to branchpoint 1.206 (colored) next main 1.207 (colored)

Sync with head.

Revision 1.209 / (download) - annotate - [select for diffs], Wed Dec 26 16:01:37 2007 UTC (15 years, 1 month ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base3
Changes since 1.208: +30 -19 lines
Diff to previous 1.208 (colored)

Merge more changes from vmlocking2, mainly:

- Locking improvements.
- Use pool_cache for more items.

Revision 1.206.2.2 / (download) - annotate - [select for diffs], Fri Dec 21 15:27:04 2007 UTC (15 years, 1 month ago) by ad
Branch: vmlocking2
Changes since 1.206.2.1: +30 -19 lines
Diff to previous 1.206.2.1 (colored) to branchpoint 1.206 (colored)

Protect process groups and sessions with tty_lock.

Revision 1.197.6.8 / (download) - annotate - [select for diffs], Sun Dec 9 19:38:26 2007 UTC (15 years, 2 months ago) by jmcneill
Branch: jmcneill-pm
Changes since 1.197.6.7: +5 -7 lines
Diff to previous 1.197.6.7 (colored) to branchpoint 1.197 (colored) next main 1.198 (colored)

Sync with HEAD.

Revision 1.208 / (download) - annotate - [select for diffs], Sat Dec 8 19:29:49 2007 UTC (15 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, jmcneill-pm-base, cube-autoconf-base, cube-autoconf
Branch point for: bouyer-xeni386
Changes since 1.207: +3 -3 lines
Diff to previous 1.207 (colored)

Remove cn_lwp from struct componentname.  curlwp should be used
from on.  The NDINIT() macro no longer takes the lwp parameter and
associates the credentials of the calling thread with the namei
structure.

Revision 1.199.2.2 / (download) - annotate - [select for diffs], Sat Dec 8 18:20:40 2007 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.199.2.1: +34 -15 lines
Diff to previous 1.199.2.1 (colored)

Sync with HEAD.

Revision 1.206.2.1 / (download) - annotate - [select for diffs], Sat Dec 8 17:57:48 2007 UTC (15 years, 2 months ago) by ad
Branch: vmlocking2
Changes since 1.206: +4 -6 lines
Diff to previous 1.206 (colored)

Sync with head.

Revision 1.173.2.7 / (download) - annotate - [select for diffs], Fri Dec 7 17:33:14 2007 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.173.2.6: +34 -15 lines
Diff to previous 1.173.2.6 (colored)

sync with head

Revision 1.207 / (download) - annotate - [select for diffs], Tue Dec 4 08:57:35 2007 UTC (15 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: vmlocking2-base2, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base
Changes since 1.206: +4 -6 lines
Diff to previous 1.206 (colored)

ttysigintr: proclist_lock can be taken now.

Revision 1.197.6.7 / (download) - annotate - [select for diffs], Tue Nov 27 19:38:12 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.197.6.6: +3 -3 lines
Diff to previous 1.197.6.6 (colored) to branchpoint 1.197 (colored)

Sync with HEAD. amd64 Xen support needs testing.

Revision 1.206 / (download) - annotate - [select for diffs], Mon Nov 26 19:02:04 2007 UTC (15 years, 2 months ago) by pooka
Branch: MAIN
CVS Tags: vmlocking2-base1, vmlocking-nbase
Branch point for: vmlocking2
Changes since 1.205: +3 -3 lines
Diff to previous 1.205 (colored)

Remove the "struct lwp *" argument from all VFS and VOP interfaces.
The general trend is to remove it from all kernel interfaces and
this is a start.  In case the calling lwp is desired, curlwp should
be used.

quick consensus on tech-kern

Revision 1.197.6.6 / (download) - annotate - [select for diffs], Wed Nov 21 21:56:04 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.197.6.5: +33 -12 lines
Diff to previous 1.197.6.5 (colored) to branchpoint 1.197 (colored)

Sync with HEAD.

Revision 1.198.2.4 / (download) - annotate - [select for diffs], Wed Nov 21 21:19:46 2007 UTC (15 years, 2 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.198.2.3: +33 -12 lines
Diff to previous 1.198.2.3 (colored) to branchpoint 1.198 (colored) next main 1.199 (colored)

Sync with HEAD

Revision 1.205 / (download) - annotate - [select for diffs], Tue Nov 20 00:45:23 2007 UTC (15 years, 2 months ago) by ad
Branch: MAIN
CVS Tags: bouyer-xenamd64-base2, bouyer-xenamd64-base
Changes since 1.204: +4 -4 lines
Diff to previous 1.204 (colored)

Call ttstart() with tty_lock held.

Revision 1.204 / (download) - annotate - [select for diffs], Mon Nov 19 19:53:48 2007 UTC (15 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.203: +7 -2 lines
Diff to previous 1.203 (colored)

Work around another funny until I figure out what is going wrong: somehow,
tp->t_rawq.c_cv.cv_waiters is dropping to zero while there are still LWPs
waiting on the queue. dtrace would be really handy here :-/

Revision 1.203 / (download) - annotate - [select for diffs], Mon Nov 19 18:51:51 2007 UTC (15 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.202: +26 -10 lines
Diff to previous 1.202 (colored)

- Factor out too many copies of the same bit of tty code.
- Fix another tty signalling/wakeup problem.

Revision 1.199.2.1 / (download) - annotate - [select for diffs], Mon Nov 19 00:48:56 2007 UTC (15 years, 2 months ago) by mjf
Branch: mjf-devfs
Changes since 1.199: +326 -349 lines
Diff to previous 1.199 (colored)

Sync with HEAD.

Revision 1.198.2.3 / (download) - annotate - [select for diffs], Sun Nov 18 19:35:51 2007 UTC (15 years, 2 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.198.2.2: +23 -40 lines
Diff to previous 1.198.2.2 (colored) to branchpoint 1.198 (colored)

Sync with HEAD

Revision 1.173.2.6 / (download) - annotate - [select for diffs], Thu Nov 15 11:44:54 2007 UTC (15 years, 2 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.173.2.5: +326 -349 lines
Diff to previous 1.173.2.5 (colored)

sync with head.

Revision 1.197.6.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:04:47 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.197.6.4: +25 -42 lines
Diff to previous 1.197.6.4 (colored) to branchpoint 1.197 (colored)

Sync with HEAD.

Revision 1.202 / (download) - annotate - [select for diffs], Wed Nov 14 01:15:31 2007 UTC (15 years, 2 months ago) by ad
Branch: MAIN
Changes since 1.201: +25 -42 lines
Diff to previous 1.201 (colored)

Fix some problems with the tty signalling code.

Revision 1.198.2.2 / (download) - annotate - [select for diffs], Tue Nov 13 16:02:32 2007 UTC (15 years, 2 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.198.2.1: +341 -347 lines
Diff to previous 1.198.2.1 (colored) to branchpoint 1.198 (colored)

Sync with HEAD

Revision 1.197.6.4 / (download) - annotate - [select for diffs], Sun Nov 11 16:48:14 2007 UTC (15 years, 2 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.197.6.3: +338 -345 lines
Diff to previous 1.197.6.3 (colored) to branchpoint 1.197 (colored)

Sync with HEAD.

Revision 1.197.8.2 / (download) - annotate - [select for diffs], Thu Nov 8 11:00:08 2007 UTC (15 years, 3 months ago) by matt
Branch: matt-armv6
CVS Tags: matt-armv6-prevmlocking
Changes since 1.197.8.1: +338 -345 lines
Diff to previous 1.197.8.1 (colored) to branchpoint 1.197 (colored)

sync with -HEAD

Revision 1.201 / (download) - annotate - [select for diffs], Wed Nov 7 15:56:21 2007 UTC (15 years, 3 months ago) by ad
Branch: MAIN
Changes since 1.200: +338 -345 lines
Diff to previous 1.200 (colored)

Merge tty changes from the vmlocking branch.

Revision 1.197.8.1 / (download) - annotate - [select for diffs], Tue Nov 6 23:32:37 2007 UTC (15 years, 3 months ago) by matt
Branch: matt-armv6
Changes since 1.197: +12 -6 lines
Diff to previous 1.197 (colored)

sync with HEAD

Revision 1.197.6.3 / (download) - annotate - [select for diffs], Tue Nov 6 19:25:35 2007 UTC (15 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.197.6.2: +7 -6 lines
Diff to previous 1.197.6.2 (colored) to branchpoint 1.197 (colored)

Sync with HEAD.

Revision 1.200 / (download) - annotate - [select for diffs], Tue Nov 6 00:42:44 2007 UTC (15 years, 3 months ago) by ad
Branch: MAIN
CVS Tags: jmcneill-base
Changes since 1.199: +7 -6 lines
Diff to previous 1.199 (colored)

Merge scheduler changes from the vmlocking branch. All discussed on
tech-kern:

- Invert priority space so that zero is the lowest priority. Rearrange
  number and type of priority levels into bands. Add new bands like
  'kernel real time'.
- Ignore the priority level passed to tsleep. Compute priority for
  sleep dynamically.
- For SCHED_4BSD, make priority adjustment per-LWP, not per-process.

Revision 1.193.2.15 / (download) - annotate - [select for diffs], Mon Nov 5 14:31:44 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.14: +3 -5 lines
Diff to previous 1.193.2.14 (colored) next main 1.194 (colored)

proc_compare: ignore estcpu, just key on pctcpu.

Revision 1.193.2.14 / (download) - annotate - [select for diffs], Thu Nov 1 21:58:23 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.13: +7 -4 lines
Diff to previous 1.193.2.13 (colored)

- Fix interactivity problems under high load. Beacuse soft interrupts
  are being stacked on top of regular LWPs, more often than not aston()
  was being called on a soft interrupt thread instead of a user thread,
  meaning that preemption was not happening on EOI.

- Don't use bool in a couple of data structures. Sub-word writes are not
  always atomic and may clobber other fields in the containing word.

- For SCHED_4BSD, make p_estcpu per thread (l_estcpu). Rework how the
  dynamic priority level is calculated - it's much better behaved now.

- Kill the l_usrpri/l_priority split now that priorities are no longer
  directly assigned by tsleep(). There are three fields describing LWP
  priority:

        l_priority: Dynamic priority calculated by the scheduler.
                This does not change for kernel/realtime threads,
                and always stays within the correct band. Eg for
                timeshared LWPs it never moves out of the user
                priority range. This is basically what l_usrpri
                was before.

        l_inheritedprio: Lent to the LWP due to priority inheritance
                (turnstiles).

        l_kpriority: A boolean value set true the first time an LWP
                sleeps within the kernel. This indicates that the LWP
                should get a priority boost as compensation for blocking.
                lwp_eprio() now does the equivalent of sched_kpri() if
                the flag is set. The flag is cleared in userret().

- Keep track of scheduling class (OTHER, FIFO, RR) in struct lwp, and use
  this to make decisions in a few places where we previously tested for a
  kernel thread.

- Partially fix itimers and usr/sys/intr time accounting in the presence
  of software interrupts.

- Use kthread_create() to create idle LWPs. Move priority definitions
  from the various modules into sys/param.h.

- newlwp -> lwp_create

Revision 1.193.2.13 / (download) - annotate - [select for diffs], Sun Oct 28 22:04:55 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.12: +35 -6 lines
Diff to previous 1.193.2.12 (colored)

Tweak locking / add assertions.

Revision 1.173.2.5 / (download) - annotate - [select for diffs], Sat Oct 27 11:35:37 2007 UTC (15 years, 3 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.173.2.4: +7 -2 lines
Diff to previous 1.173.2.4 (colored)

sync with head.

Revision 1.197.6.2 / (download) - annotate - [select for diffs], Fri Oct 26 15:48:43 2007 UTC (15 years, 3 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.197.6.1: +3 -2 lines
Diff to previous 1.197.6.1 (colored) to branchpoint 1.197 (colored)

Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.

Revision 1.198.2.1 / (download) - annotate - [select for diffs], Thu Oct 25 22:40:03 2007 UTC (15 years, 3 months ago) by bouyer
Branch: bouyer-xenamd64
Changes since 1.198: +3 -2 lines
Diff to previous 1.198 (colored)

Sync with HEAD.

Revision 1.193.2.12 / (download) - annotate - [select for diffs], Tue Oct 23 20:17:14 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.11: +3 -2 lines
Diff to previous 1.193.2.11 (colored)

Sync with head.

Revision 1.193.2.11 / (download) - annotate - [select for diffs], Fri Oct 19 15:54:28 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.10: +148 -57 lines
Diff to previous 1.193.2.10 (colored)

In the tty code, defer posting singals to a soft interrupt. Avoids
touching process state from a hardware interrupt, and avoids locking
problems (tty_lock is always held when the signals are sent).

Revision 1.193.2.10 / (download) - annotate - [select for diffs], Fri Oct 19 13:08:09 2007 UTC (15 years, 3 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.9: +105 -114 lines
Diff to previous 1.193.2.9 (colored)

Replace the tty locks with a global tty_lock.

Revision 1.199 / (download) - annotate - [select for diffs], Thu Oct 18 18:55:00 2007 UTC (15 years, 3 months ago) by joerg
Branch: MAIN
Branch point for: mjf-devfs
Changes since 1.198: +3 -2 lines
Diff to previous 1.198 (colored)

Initialise the callbacks for tty.t_rstrt_ch in ttymalloc
as all drivers but Sun/SPARC's kd.c use the same arguments.
Separate callout_reset into callout_schedule and the initial
callout_setfunc using that.

Revision 1.193.2.9 / (download) - annotate - [select for diffs], Tue Oct 9 13:44:31 2007 UTC (15 years, 4 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.8: +6 -2 lines
Diff to previous 1.193.2.8 (colored)

Sync with head.

Revision 1.197.10.1 / (download) - annotate - [select for diffs], Sat Oct 6 15:28:46 2007 UTC (15 years, 4 months ago) by yamt
Branch: yamt-x86pmap
Changes since 1.197: +6 -2 lines
Diff to previous 1.197 (colored) next main 1.198 (colored)

sync with head.

Revision 1.197.6.1 / (download) - annotate - [select for diffs], Tue Oct 2 18:29:06 2007 UTC (15 years, 4 months ago) by joerg
Branch: jmcneill-pm
Changes since 1.197: +6 -2 lines
Diff to previous 1.197 (colored)

Sync with HEAD.

Revision 1.198 / (download) - annotate - [select for diffs], Tue Sep 25 14:04:07 2007 UTC (15 years, 4 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, vmlocking-base
Branch point for: bouyer-xenamd64
Changes since 1.197: +6 -2 lines
Diff to previous 1.197 (colored)

Use selinit() / seldestroy().

Revision 1.173.2.4 / (download) - annotate - [select for diffs], Mon Sep 3 14:41:13 2007 UTC (15 years, 5 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.173.2.3: +36 -26 lines
Diff to previous 1.173.2.3 (colored)

sync with head.

Revision 1.193.2.8 / (download) - annotate - [select for diffs], Tue Aug 28 13:25:40 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.7: +4 -4 lines
Diff to previous 1.193.2.7 (colored)

wakeup -> cv_broadcast

Revision 1.193.2.7 / (download) - annotate - [select for diffs], Tue Aug 28 13:23:53 2007 UTC (15 years, 5 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.6: +6 -18 lines
Diff to previous 1.193.2.6 (colored)

Use cdev_stop, cdev_tty.

Revision 1.194.2.1 / (download) - annotate - [select for diffs], Wed Jul 11 20:10:15 2007 UTC (15 years, 6 months ago) by mjf
Branch: mjf-ufs-trans
Changes since 1.194: +20 -10 lines
Diff to previous 1.194 (colored) next main 1.195 (colored)

Sync with head.

Revision 1.197 / (download) - annotate - [select for diffs], Mon Jul 9 21:10:57 2007 UTC (15 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-x86pmap-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, hpcarm-cleanup
Branch point for: yamt-x86pmap, matt-armv6, jmcneill-pm
Changes since 1.196: +3 -3 lines
Diff to previous 1.196 (colored)

Merge some of the less invasive changes from the vmlocking branch:

- kthread, callout, devsw API changes
- select()/poll() improvements
- miscellaneous MT safety improvements

Revision 1.193.2.6 / (download) - annotate - [select for diffs], Sun Jul 1 21:50:41 2007 UTC (15 years, 7 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.5: +4 -3 lines
Diff to previous 1.193.2.5 (colored)

Adapt to callout API change.

Revision 1.193.2.5 / (download) - annotate - [select for diffs], Fri Jun 8 14:17:27 2007 UTC (15 years, 8 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.4: +8 -4 lines
Diff to previous 1.193.2.4 (colored)

Sync with head.

Revision 1.196 / (download) - annotate - [select for diffs], Thu May 17 14:51:41 2007 UTC (15 years, 8 months ago) by yamt
Branch: MAIN
Changes since 1.195: +8 -4 lines
Diff to previous 1.195 (colored)

merge yamt-idlelwp branch.  asked by core@.  some ports still needs work.

from doc/BRANCHES:

	idle lwp, and some changes depending on it.

	1. separate context switching and thread scheduling.
	   (cf. gmcgarry_ctxsw)
	2. implement idle lwp.
	3. clean up related MD/MI interfaces.
	4. make scheduler(s) modular.

Revision 1.190.2.4 / (download) - annotate - [select for diffs], Sat Apr 21 15:50:18 2007 UTC (15 years, 9 months ago) by ad
Branch: yamt-idlelwp
Changes since 1.190.2.3: +8 -4 lines
Diff to previous 1.190.2.3 (colored) to branchpoint 1.190 (colored) next main 1.191 (colored)

Some changes mainly for top/ps:

- Add an optional name field to struct lwp.
- Count the total number of context switches + involuntary,
  not voluntary + involuntary.
- Mark the idle threads as LSIDL when not running, otherwise
  they show up funny in a top(1) that shows threads.
- Make pctcpu and cpticks per-LWP attributes.
- Add to kinfo_lwp: cpticks, pctcpu, pid, name.

Revision 1.193.2.4 / (download) - annotate - [select for diffs], Thu Apr 5 21:57:50 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.3: +3 -4 lines
Diff to previous 1.193.2.3 (colored)

Compile fixes.

Revision 1.190.2.3 / (download) - annotate - [select for diffs], Sat Mar 24 14:56:05 2007 UTC (15 years, 10 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.190.2.2: +14 -8 lines
Diff to previous 1.190.2.2 (colored) to branchpoint 1.190 (colored)

sync with head.

Revision 1.193.2.3 / (download) - annotate - [select for diffs], Fri Mar 23 18:01:25 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.2: +28 -28 lines
Diff to previous 1.193.2.2 (colored)

Revert accidental change.

Revision 1.193.2.2 / (download) - annotate - [select for diffs], Wed Mar 21 20:11:53 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.193.2.1: +179 -285 lines
Diff to previous 1.193.2.1 (colored)

- Replace more simple_locks, and fix up in a few places.
- Use condition variables.
- LOCK_ASSERT -> KASSERT.

Revision 1.193.2.1 / (download) - annotate - [select for diffs], Tue Mar 13 16:51:57 2007 UTC (15 years, 10 months ago) by ad
Branch: vmlocking
Changes since 1.193: +14 -8 lines
Diff to previous 1.193 (colored)

Sync with head.

Revision 1.195 / (download) - annotate - [select for diffs], Mon Mar 12 21:33:07 2007 UTC (15 years, 10 months ago) by ad
Branch: MAIN
CVS Tags: yamt-idlelwp-base8, thorpej-atomic-base, thorpej-atomic, reinoud-bufcleanup
Changes since 1.194: +13 -7 lines
Diff to previous 1.194 (colored)

Use mutexes/condvars.

Revision 1.194 / (download) - annotate - [select for diffs], Mon Mar 12 18:18:34 2007 UTC (15 years, 10 months ago) by ad
Branch: MAIN
Branch point for: mjf-ufs-trans
Changes since 1.193: +3 -3 lines
Diff to previous 1.193 (colored)

Pass an ipl argument to pool_init/POOL_INIT to be used when initializing
the pool's lock.

Revision 1.190.2.2 / (download) - annotate - [select for diffs], Mon Mar 12 05:58:43 2007 UTC (15 years, 10 months ago) by rmind
Branch: yamt-idlelwp
Changes since 1.190.2.1: +17 -17 lines
Diff to previous 1.190.2.1 (colored) to branchpoint 1.190 (colored)

Sync with HEAD.

Revision 1.193 / (download) - annotate - [select for diffs], Fri Mar 9 14:11:27 2007 UTC (15 years, 11 months ago) by ad
Branch: MAIN
Branch point for: vmlocking
Changes since 1.192: +13 -13 lines
Diff to previous 1.192 (colored)

- Make the proclist_lock a mutex. The write:read ratio is unfavourable,
  and mutexes are cheaper use than RW locks.
- LOCK_ASSERT -> KASSERT in some places.
- Hold proclist_lock/kernel_lock longer in a couple of places.

Revision 1.192 / (download) - annotate - [select for diffs], Sun Mar 4 06:03:10 2007 UTC (15 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.191: +6 -6 lines
Diff to previous 1.191 (colored)

Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.

Revision 1.190.2.1 / (download) - annotate - [select for diffs], Tue Feb 27 16:54:33 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-idlelwp
Changes since 1.190: +23 -12 lines
Diff to previous 1.190 (colored)

- sync with head.
- move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.

Revision 1.173.2.3 / (download) - annotate - [select for diffs], Mon Feb 26 09:11:19 2007 UTC (15 years, 11 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.173.2.2: +98 -34 lines
Diff to previous 1.173.2.2 (colored)

sync with head.

Revision 1.191 / (download) - annotate - [select for diffs], Sat Feb 17 21:43:08 2007 UTC (15 years, 11 months ago) by dsl
Branch: MAIN
CVS Tags: ad-audiomp-base, ad-audiomp
Changes since 1.190: +23 -12 lines
Diff to previous 1.190 (colored)

Acquire proclist_lock across the p_find() and pg_find() calls while
processing FIOSETOWN and TIOCSPGRP ioctls.

Revision 1.190 / (download) - annotate - [select for diffs], Fri Feb 9 21:55:32 2007 UTC (15 years, 11 months ago) by ad
Branch: MAIN
CVS Tags: post-newlock2-merge
Branch point for: yamt-idlelwp
Changes since 1.189: +70 -20 lines
Diff to previous 1.189 (colored)

Merge newlock2 to head.

Revision 1.187.4.7 / (download) - annotate - [select for diffs], Tue Jan 30 13:51:41 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.187.4.6: +4 -4 lines
Diff to previous 1.187.4.6 (colored) to branchpoint 1.187 (colored) next main 1.188 (colored)

Remove support for SA. Ok core@.

Revision 1.187.4.6 / (download) - annotate - [select for diffs], Fri Jan 12 01:04:07 2007 UTC (16 years ago) by ad
Branch: newlock2
Changes since 1.187.4.5: +9 -6 lines
Diff to previous 1.187.4.5 (colored) to branchpoint 1.187 (colored)

Sync with head.

Revision 1.189 / (download) - annotate - [select for diffs], Thu Jan 4 17:38:26 2007 UTC (16 years, 1 month ago) by elad
Branch: MAIN
CVS Tags: newlock2-nbase, newlock2-base
Changes since 1.188: +9 -6 lines
Diff to previous 1.188 (colored)

Consistent usage of KAUTH_GENERIC_ISSUSER.

Revision 1.173.2.2 / (download) - annotate - [select for diffs], Sat Dec 30 20:50:07 2006 UTC (16 years, 1 month ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.173.2.1: +7 -7 lines
Diff to previous 1.173.2.1 (colored)

sync with head.

Revision 1.187.4.5 / (download) - annotate - [select for diffs], Fri Dec 29 20:27:44 2006 UTC (16 years, 1 month ago) by ad
Branch: newlock2
Changes since 1.187.4.4: +7 -7 lines
Diff to previous 1.187.4.4 (colored) to branchpoint 1.187 (colored)

Checkpoint work in progress.

Revision 1.187.4.4 / (download) - annotate - [select for diffs], Sat Nov 18 21:39:23 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.187.4.3: +3 -3 lines
Diff to previous 1.187.4.3 (colored) to branchpoint 1.187 (colored)

Sync with head.

Revision 1.187.4.3 / (download) - annotate - [select for diffs], Fri Nov 17 16:34:38 2006 UTC (16 years, 2 months ago) by ad
Branch: newlock2
Changes since 1.187.4.2: +25 -11 lines
Diff to previous 1.187.4.2 (colored) to branchpoint 1.187 (colored)

Checkpoint work in progress.

Revision 1.187.4.2 / (download) - annotate - [select for diffs], Tue Oct 24 21:10:21 2006 UTC (16 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.187.4.1: +6 -4 lines
Diff to previous 1.187.4.1 (colored) to branchpoint 1.187 (colored)

- Redo LWP locking slightly and fix some races.
- Fix some locking botches.
- Make signal mask / stack per-proc for SA processes.
- Add _lwp_kill().

Revision 1.187.4.1 / (download) - annotate - [select for diffs], Fri Oct 20 21:33:55 2006 UTC (16 years, 3 months ago) by ad
Branch: newlock2
Changes since 1.187: +45 -11 lines
Diff to previous 1.187 (colored)

Acquire proclist_lock / proclist_mutex when sending signals.

Revision 1.187.2.1 / (download) - annotate - [select for diffs], Thu Sep 14 19:33:35 2006 UTC (16 years, 4 months ago) by riz
Branch: abandoned-netbsd-4
Changes since 1.187: +3 -3 lines
Diff to previous 1.187 (colored) next main 1.188 (colored)

Pull up following revision(s) (requested by martin in ticket #159):
	sys/kern/tty.c: revision 1.188
Avoid NULL deref (this is called with lwp=NULL from ppp interrupt context)

Revision 1.179.8.5 / (download) - annotate - [select for diffs], Thu Sep 14 12:31:48 2006 UTC (16 years, 4 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.179.8.4: +3 -3 lines
Diff to previous 1.179.8.4 (colored) to branchpoint 1.179 (colored) next main 1.180 (colored)

sync with head.

Revision 1.188 / (download) - annotate - [select for diffs], Wed Sep 13 13:28:22 2006 UTC (16 years, 4 months ago) by martin
Branch: MAIN
CVS Tags: yamt-splraiseipl-base5, yamt-splraiseipl-base4, yamt-splraiseipl-base3, yamt-splraiseipl-base2, yamt-splraiseipl-base, yamt-splraiseipl, yamt-pdpolicy-base9, wrstuden-fixsa-newbase, wrstuden-fixsa-base-1, wrstuden-fixsa-base, wrstuden-fixsa, netbsd-4-base, netbsd-4-0-RELEASE, netbsd-4-0-RC5, netbsd-4-0-RC4, netbsd-4-0-RC3, netbsd-4-0-RC2, netbsd-4-0-RC1, netbsd-4-0-1-RELEASE, netbsd-4-0, netbsd-4, matt-nb4-arm-base, matt-nb4-arm
Changes since 1.187: +3 -3 lines
Diff to previous 1.187 (colored)

Avoid NULL deref (this is called with lwp=NULL from ppp interrupt context)

Revision 1.179.4.1 / (download) - annotate - [select for diffs], Sat Sep 9 02:57:17 2006 UTC (16 years, 5 months ago) by rpaulo
Branch: rpaulo-netinet-merge-pcb
Changes since 1.179: +84 -70 lines
Diff to previous 1.179 (colored) next main 1.180 (colored)

sync with head

Revision 1.179.8.4 / (download) - annotate - [select for diffs], Fri Aug 11 15:45:47 2006 UTC (16 years, 5 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.179.8.3: +6 -6 lines
Diff to previous 1.179.8.3 (colored) to branchpoint 1.179 (colored)

sync with head

Revision 1.187 / (download) - annotate - [select for diffs], Thu Aug 3 22:51:05 2006 UTC (16 years, 6 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base8, yamt-pdpolicy-base7, rpaulo-netinet-merge-pcb-base, abandoned-netbsd-4-base
Branch point for: newlock2, abandoned-netbsd-4
Changes since 1.186: +3 -3 lines
Diff to previous 1.186 (colored)

PR/34129: Andreas Gustafsson: Nonblocking write to pty can return 0
If we cannot write on the slave side, always return EWOULDBLOCK in the
non-blocking case, because we don't know that the buffer we started
writing is actually in a system call boundary.

Revision 1.186 / (download) - annotate - [select for diffs], Sun Jul 23 22:06:11 2006 UTC (16 years, 6 months ago) by ad
Branch: MAIN
Changes since 1.185: +5 -5 lines
Diff to previous 1.185 (colored)

Use the LWP cached credentials where sane.

Revision 1.179.8.3 / (download) - annotate - [select for diffs], Mon Jun 26 12:52:57 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.179.8.2: +76 -61 lines
Diff to previous 1.179.8.2 (colored) to branchpoint 1.179 (colored)

sync with head.

Revision 1.173.2.1 / (download) - annotate - [select for diffs], Wed Jun 21 15:09:39 2006 UTC (16 years, 7 months ago) by yamt
Branch: yamt-lazymbuf
Changes since 1.173: +113 -107 lines
Diff to previous 1.173 (colored)

sync with head.

Revision 1.182.2.1 / (download) - annotate - [select for diffs], Mon Jun 19 04:07:16 2006 UTC (16 years, 7 months ago) by chap
Branch: chap-midi
Changes since 1.182: +76 -61 lines
Diff to previous 1.182 (colored) next main 1.183 (colored)

Sync with head.

Revision 1.185 / (download) - annotate - [select for diffs], Wed Jun 7 22:33:41 2006 UTC (16 years, 8 months ago) by kardel
Branch: MAIN
CVS Tags: yamt-pdpolicy-base6, gdamore-uart-base, gdamore-uart, chap-midi-nbase, chap-midi-base
Changes since 1.184: +12 -9 lines
Diff to previous 1.184 (colored)

merge FreeBSD timecounters from branch simonb-timecounters
- struct timeval time is gone
  time.tv_sec -> time_second
- struct timeval mono_time is gone
  mono_time.tv_sec -> time_uptime
- access to time via
	{get,}{micro,nano,bin}time()
	get* versions are fast but less precise
- support NTP nanokernel implementation (NTP API 4)
- further reading:
  Timecounter Paper: http://phk.freebsd.dk/pubs/timecounter.pdf
  NTP Nanokernel: http://www.eecis.udel.edu/~mills/ntp/html/kern.html

Revision 1.179.6.5 / (download) - annotate - [select for diffs], Wed Jun 7 15:51:25 2006 UTC (16 years, 8 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.179.6.4: +5 -5 lines
Diff to previous 1.179.6.4 (colored) to branchpoint 1.179 (colored) next main 1.180 (colored)

Sync with head.

Revision 1.184 / (download) - annotate - [select for diffs], Sun Jun 4 16:44:08 2006 UTC (16 years, 8 months ago) by christos
Branch: MAIN
CVS Tags: simonb-timecounters-base
Changes since 1.183: +5 -5 lines
Diff to previous 1.183 (colored)

Grr, change the code so that it compiles with gcc-3. It was ok with gcc-4.

Revision 1.179.6.4 / (download) - annotate - [select for diffs], Sat Jun 3 19:44:04 2006 UTC (16 years, 8 months ago) by kardel
Branch: simonb-timecounters
CVS Tags: simonb-timcounters-final
Changes since 1.179.6.3: +64 -52 lines
Diff to previous 1.179.6.3 (colored) to branchpoint 1.179 (colored)

Sync with head.

Revision 1.183 / (download) - annotate - [select for diffs], Sat Jun 3 18:18:26 2006 UTC (16 years, 8 months ago) by christos
Branch: MAIN
Changes since 1.182: +64 -52 lines
Diff to previous 1.182 (colored)

Introduce SA_NOKERNINFO, a flag for SIGINFO not to print kernel messages.

Revision 1.179.6.3 / (download) - annotate - [select for diffs], Thu Jun 1 22:38:09 2006 UTC (16 years, 8 months ago) by kardel
Branch: simonb-timecounters
Changes since 1.179.6.2: +9 -5 lines
Diff to previous 1.179.6.2 (colored) to branchpoint 1.179 (colored)

Sync with head.

Revision 1.180.4.1 / (download) - annotate - [select for diffs], Wed May 24 15:50:41 2006 UTC (16 years, 8 months ago) by tron
Branch: peter-altq
Changes since 1.180: +9 -5 lines
Diff to previous 1.180 (colored) next main 1.181 (colored)

Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.

Revision 1.179.8.2 / (download) - annotate - [select for diffs], Wed May 24 10:58:41 2006 UTC (16 years, 8 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.179.8.1: +9 -5 lines
Diff to previous 1.179.8.1 (colored) to branchpoint 1.179 (colored)

sync with head.

Revision 1.182 / (download) - annotate - [select for diffs], Sun May 14 21:15:11 2006 UTC (16 years, 8 months ago) by elad
Branch: MAIN
CVS Tags: yamt-pdpolicy-base5
Branch point for: chap-midi
Changes since 1.181: +6 -5 lines
Diff to previous 1.181 (colored)

integrate kauth.

Revision 1.180.2.3 / (download) - annotate - [select for diffs], Thu May 11 23:30:15 2006 UTC (16 years, 8 months ago) by elad
Branch: elad-kernelauth
Changes since 1.180.2.2: +5 -2 lines
Diff to previous 1.180.2.2 (colored) to branchpoint 1.180 (colored) next main 1.181 (colored)

sync with head

Revision 1.181 / (download) - annotate - [select for diffs], Wed May 10 21:53:18 2006 UTC (16 years, 9 months ago) by mrg
Branch: MAIN
CVS Tags: elad-kernelauth-base
Changes since 1.180: +5 -2 lines
Diff to previous 1.180 (colored)

quell GCC 4.1 uninitialised variable warnings.

XXX: we should audit the tree for which old ones are no longer needed
after getting the older compilers out of the tree..

Revision 1.180.2.2 / (download) - annotate - [select for diffs], Sat May 6 23:31:30 2006 UTC (16 years, 9 months ago) by christos
Branch: elad-kernelauth
Changes since 1.180.2.1: +3 -2 lines
Diff to previous 1.180.2.1 (colored) to branchpoint 1.180 (colored)

- Move kauth_cred_t declaration to <sys/types.h>
- Cleanup struct ucred; forward declarations that are unused.
- Don't include <sys/kauth.h> in any header, but include it in the c files
  that need it.

Approved by core.

Revision 1.179.6.2 / (download) - annotate - [select for diffs], Sat Apr 22 11:39:59 2006 UTC (16 years, 9 months ago) by simonb
Branch: simonb-timecounters
Changes since 1.179.6.1: +2 -7 lines
Diff to previous 1.179.6.1 (colored) to branchpoint 1.179 (colored)

Sync with head.

Revision 1.179.8.1 / (download) - annotate - [select for diffs], Mon Mar 13 09:07:32 2006 UTC (16 years, 10 months ago) by yamt
Branch: yamt-pdpolicy
Changes since 1.179: +2 -7 lines
Diff to previous 1.179 (colored)

sync with head.

Revision 1.180.2.1 / (download) - annotate - [select for diffs], Wed Mar 8 00:53:41 2006 UTC (16 years, 11 months ago) by elad
Branch: elad-kernelauth
Changes since 1.180: +5 -5 lines
Diff to previous 1.180 (colored)

Adapt to kernel authorization KPI.

Revision 1.180 / (download) - annotate - [select for diffs], Sun Mar 5 16:57:16 2006 UTC (16 years, 11 months ago) by christos
Branch: MAIN
CVS Tags: yamt-pdpolicy-base4, yamt-pdpolicy-base3, yamt-pdpolicy-base2, peter-altq-base
Branch point for: peter-altq, elad-kernelauth
Changes since 1.179: +2 -7 lines
Diff to previous 1.179 (colored)

Move ISSET/SET/CLR macros to sys/types.h

Revision 1.179.6.1 / (download) - annotate - [select for diffs], Sat Feb 4 14:30:17 2006 UTC (17 years ago) by simonb
Branch: simonb-timecounters
Changes since 1.179: +12 -9 lines
Diff to previous 1.179 (colored)

Adapt for timecounters: mostly use get*time() and use "time_second"
instead of "time.tv_sec".

Revision 1.179 / (download) - annotate - [select for diffs], Mon Dec 26 18:45:27 2005 UTC (17 years, 1 month ago) by perry
Branch: MAIN
CVS Tags: yamt-uio_vmspace-base5, yamt-uio_vmspace, yamt-pdpolicy-base
Branch point for: yamt-pdpolicy, simonb-timecounters, rpaulo-netinet-merge-pcb
Changes since 1.178: +6 -6 lines
Diff to previous 1.178 (colored)

u_intN_t -> uintN_t

Revision 1.178 / (download) - annotate - [select for diffs], Sun Dec 11 12:24:30 2005 UTC (17 years, 1 month ago) by christos
Branch: MAIN
Changes since 1.177: +10 -9 lines
Diff to previous 1.177 (colored)

merge ktrace-lwp.

Revision 1.154.2.8 / (download) - annotate - [select for diffs], Sun Dec 11 10:29:12 2005 UTC (17 years, 1 month ago) by christos
Branch: ktrace-lwp
Changes since 1.154.2.7: +15 -26 lines
Diff to previous 1.154.2.7 (colored) next main 1.155 (colored)

Sync with head.

Revision 1.176.6.1 / (download) - annotate - [select for diffs], Tue Nov 29 21:23:29 2005 UTC (17 years, 2 months ago) by yamt
Branch: yamt-readahead
Changes since 1.176: +15 -26 lines
Diff to previous 1.176 (colored) next main 1.177 (colored)

sync with head.

Revision 1.177 / (download) - annotate - [select for diffs], Sun Nov 27 05:35:52 2005 UTC (17 years, 2 months ago) by thorpej
Branch: MAIN
CVS Tags: yamt-readahead-base3, ktrace-lwp-base
Changes since 1.176: +15 -26 lines
Diff to previous 1.176 (colored)

Overhaul how TTY line disciplines are handled:
- Replace references to linesw[0] with a ttyldisc_default() function
  that returns the default ("termios") line discipline.
- The linesw[] array is gone, replaced by a linked list.
- ttyldisc_add() and ttyldisc_remove() have been replaced by
  ttyldisc_attach() and ttyldisc_detach().
- Things that provide line disciplines are now responsible for
  registering those disciplines with the system.  The linesw
  structures are no longer declared in tty_conf.c
- Line disciplines are now refcounted; a lookup causes a reference to
  be held.  ttyldisc_release() releases the reference.  Attempts to
  detach an in-use line discipline result in EBUSY.
- Fix function signature lossage in if_sl.c, if_strip.c, and tty_tb.c
  that was masked by the old tty_conf.c
- tty_init() is no longer necessary; delete it and its call from main().

Revision 1.154.2.7 / (download) - annotate - [select for diffs], Thu Nov 10 14:09:45 2005 UTC (17 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.154.2.6: +10 -12 lines
Diff to previous 1.154.2.6 (colored)

Sync with HEAD. Here we go again...

Revision 1.176 / (download) - annotate - [select for diffs], Thu Oct 13 16:18:43 2005 UTC (17 years, 3 months ago) by christos
Branch: MAIN
CVS Tags: yamt-vop-base3, yamt-vop-base2, yamt-vop-base, yamt-vop, yamt-readahead-pervnode, yamt-readahead-perfile, yamt-readahead-base2, yamt-readahead-base, thorpej-vnode-attr-base, thorpej-vnode-attr
Branch point for: yamt-readahead
Changes since 1.175: +5 -3 lines
Diff to previous 1.175 (colored)

- lock the tty when playing with the kqueue list.
- don't return 1, when we expect to return errno [EPERM is kind of stupid
  in this case :-)]

Revision 1.175 / (download) - annotate - [select for diffs], Mon Jul 25 17:32:03 2005 UTC (17 years, 6 months ago) by christos
Branch: MAIN
Changes since 1.174: +3 -3 lines
Diff to previous 1.174 (colored)

In the SIGIO case, only check that we are the controlling tty if we are a
session leader.

Revision 1.174 / (download) - annotate - [select for diffs], Thu Jul 7 00:01:32 2005 UTC (17 years, 7 months ago) by christos
Branch: MAIN
Changes since 1.173: +4 -4 lines
Diff to previous 1.173 (colored)

Allow F{G,S}OWN to succeed on a tty that has no session associated with it,
and it is not the controlling tty. This change allows us to use SIGIO on
a non-controlling tty (eg. debug ntpd with a refclock on a tty).

Revision 1.173 / (download) - annotate - [select for diffs], Sat Jun 11 22:42:24 2005 UTC (17 years, 7 months ago) by christos
Branch: MAIN
Branch point for: yamt-lazymbuf
Changes since 1.172: +2 -3 lines
Diff to previous 1.172 (colored)

Remove an extraneous TTY_UNLOCK. With a LOCKDEBUG kernel, sending FLUSHO
causes a locking assertion.

Revision 1.172 / (download) - annotate - [select for diffs], Sun May 8 18:44:39 2005 UTC (17 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.171: +4 -7 lines
Diff to previous 1.171 (colored)

Panic strings should not end with \n.

Revision 1.170.4.1 / (download) - annotate - [select for diffs], Fri Apr 29 11:29:24 2005 UTC (17 years, 9 months ago) by kent
Branch: kent-audio2
Changes since 1.170: +4 -4 lines
Diff to previous 1.170 (colored) next main 1.171 (colored)

sync with -current

Revision 1.170.6.1 / (download) - annotate - [select for diffs], Sat Mar 19 08:36:12 2005 UTC (17 years, 10 months ago) by yamt
Branch: yamt-km
Changes since 1.170: +4 -4 lines
Diff to previous 1.170 (colored) next main 1.171 (colored)

sync with head.  xen and whitespace.  xen part is not finished.

Revision 1.171 / (download) - annotate - [select for diffs], Sat Feb 26 21:34:55 2005 UTC (17 years, 11 months ago) by perry
Branch: MAIN
CVS Tags: yamt-km-base4, yamt-km-base3, netbsd-3-base, netbsd-3-1-RELEASE, netbsd-3-1-RC4, netbsd-3-1-RC3, netbsd-3-1-RC2, netbsd-3-1-RC1, netbsd-3-1-1-RELEASE, netbsd-3-1, netbsd-3-0-RELEASE, netbsd-3-0-RC6, netbsd-3-0-RC5, netbsd-3-0-RC4, netbsd-3-0-RC3, netbsd-3-0-RC2, netbsd-3-0-RC1, netbsd-3-0-3-RELEASE, netbsd-3-0-2-RELEASE, netbsd-3-0-1-RELEASE, netbsd-3-0, netbsd-3, kent-audio2-base
Changes since 1.170: +4 -4 lines
Diff to previous 1.170 (colored)

nuke trailing whitespace

Revision 1.154.2.6 / (download) - annotate - [select for diffs], Sun Nov 14 08:15:57 2004 UTC (18 years, 2 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.154.2.5: +16 -2 lines
Diff to previous 1.154.2.5 (colored)

Sync with HEAD.

Revision 1.170 / (download) - annotate - [select for diffs], Sat Nov 6 02:03:20 2004 UTC (18 years, 3 months ago) by wrstuden
Branch: MAIN
CVS Tags: yamt-km-base2, yamt-km-base, kent-audio1-beforemerge, kent-audio1-base, kent-audio1
Branch point for: yamt-km, kent-audio2
Changes since 1.169: +16 -2 lines
Diff to previous 1.169 (colored)

Add support for FIONWRITE and FIONSPACE ioctls. FIONWRITE reports
the number of bytes in the send queue, and FIONSPACE reports the
number of free bytes in the send queue. These ioctls permit applications
to monitor file descriptor transmission dynamics.

In examining prior art, FIONWRITE exists with the semantics given
here. FIONSPACE is provided so that programs may easily determine how
much space is left in the send queue; they do not need to know the
send queue size.

The fact that a write may block even if there is enough space in the
send queue for it is noted in the documentation.

FIONWRITE functionality may be used to implement TIOCOUTQ for Linux
emulation - Linux extended this ioctl to sockets, even though they are
not ttys.

Revision 1.154.2.5 / (download) - annotate - [select for diffs], Tue Oct 19 15:58:06 2004 UTC (18 years, 3 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.154.2.4: +3 -6 lines
Diff to previous 1.154.2.4 (colored)

Sync with HEAD

Revision 1.169 / (download) - annotate - [select for diffs], Fri Oct 15 07:15:39 2004 UTC (18 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.168: +3 -6 lines
Diff to previous 1.168 (colored)

Don't initialize ttylist or tty_count in tty_init().

Revision 1.154.2.4 / (download) - annotate - [select for diffs], Tue Sep 21 13:35:16 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.154.2.3: +10 -9 lines
Diff to previous 1.154.2.3 (colored)

Fix the sync with head I botched.

Revision 1.154.2.3 / (download) - annotate - [select for diffs], Sat Sep 18 14:53:03 2004 UTC (18 years, 4 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.154.2.2: +9 -10 lines
Diff to previous 1.154.2.2 (colored)

Sync with HEAD.

Revision 1.154.2.2 / (download) - annotate - [select for diffs], Tue Aug 3 10:52:56 2004 UTC (18 years, 6 months ago) by skrll
Branch: ktrace-lwp
Changes since 1.154.2.1: +134 -35 lines
Diff to previous 1.154.2.1 (colored)

Sync with HEAD

Revision 1.165.2.1 / (download) - annotate - [select for diffs], Wed May 26 20:13:56 2004 UTC (18 years, 8 months ago) by he
Branch: netbsd-2-0
CVS Tags: netbsd-2-base, netbsd-2-1-RELEASE, netbsd-2-1-RC6, netbsd-2-1-RC5, netbsd-2-1-RC4, netbsd-2-1-RC3, netbsd-2-1-RC2, netbsd-2-1-RC1, netbsd-2-1, netbsd-2-0-RELEASE, netbsd-2-0-RC5, netbsd-2-0-RC4, netbsd-2-0-RC3, netbsd-2-0-RC2, netbsd-2-0-RC1, netbsd-2-0-3-RELEASE, netbsd-2-0-2-RELEASE, netbsd-2-0-1-RELEASE, netbsd-2
Changes since 1.165: +13 -7 lines
Diff to previous 1.165 (colored) next main 1.166 (colored)

Pull up revision 1.168 (requested by atatat in ticket #388):
  Add remaining sysctl descriptions under kern subtree.

Revision 1.168 / (download) - annotate - [select for diffs], Tue May 25 04:30:32 2004 UTC (18 years, 8 months ago) by atatat
Branch: MAIN
Changes since 1.167: +13 -7 lines
Diff to previous 1.167 (colored)

Remaining sysctl descriptions under kern subtree

Revision 1.167 / (download) - annotate - [select for diffs], Sun Apr 25 16:42:41 2004 UTC (18 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.166: +4 -6 lines
Diff to previous 1.166 (colored)

Initialise (most) pools from a link set instead of explicit calls
to pool_init.  Untouched pools are ones that either in arch-specific
code, or aren't initialiased during initial system startup.

 Convert struct session, ucred and lockf to pools.

Revision 1.166 / (download) - annotate - [select for diffs], Sun Apr 25 06:13:38 2004 UTC (18 years, 9 months ago) by matt
Branch: MAIN
Changes since 1.165: +3 -3 lines
Diff to previous 1.165 (colored)

Constify the table argument to ttspeedtab.

Revision 1.165 / (download) - annotate - [select for diffs], Wed Mar 24 15:34:53 2004 UTC (18 years, 10 months ago) by atatat
Branch: MAIN
CVS Tags: netbsd-2-0-base
Branch point for: netbsd-2-0
Changes since 1.164: +14 -8 lines
Diff to previous 1.164 (colored)

Tango on sysctl_createv() and flags.  The flags have all been renamed,
and sysctl_createv() now uses more arguments.

Revision 1.164 / (download) - annotate - [select for diffs], Tue Mar 9 05:30:24 2004 UTC (18 years, 11 months ago) by dbj
Branch: MAIN
Changes since 1.163: +15 -2 lines
Diff to previous 1.163 (colored)

add more spltty() calls around TTY_LOCK/UNLOCK where needed

Revision 1.163 / (download) - annotate - [select for diffs], Fri Mar 5 07:27:22 2004 UTC (18 years, 11 months ago) by dbj
Branch: MAIN
Changes since 1.162: +6 -2 lines
Diff to previous 1.162 (colored)

add some spltty() calls around TTY_LOCK() calls that didn't have them

Revision 1.162 / (download) - annotate - [select for diffs], Sun Feb 22 17:51:25 2004 UTC (18 years, 11 months ago) by jdolecek
Branch: MAIN
Changes since 1.161: +12 -8 lines
Diff to previous 1.161 (colored)

use the new NOTE_SUBMIT to flag if the locking is necessary
for EVFILT_READ/EVFILT_WRITE knotes

fixes PR kern/23915 by Martin Husemann (pipes), and similar locking problem
in tty code

Revision 1.161 / (download) - annotate - [select for diffs], Fri Feb 13 11:36:23 2004 UTC (18 years, 11 months ago) by wiz
Branch: MAIN
Changes since 1.160: +5 -5 lines
Diff to previous 1.160 (colored)

Uppercase CPU, plural is CPUs.

Revision 1.160 / (download) - annotate - [select for diffs], Fri Feb 6 06:58:21 2004 UTC (19 years ago) by pk
Branch: MAIN
Changes since 1.159: +10 -5 lines
Diff to previous 1.159 (colored)

ioctl TIOCSCTTY: re-arrange SESSHOLD() calls to allow for better code generation.

Revision 1.159 / (download) - annotate - [select for diffs], Thu Dec 4 19:38:24 2003 UTC (19 years, 2 months ago) by atatat
Branch: MAIN
Changes since 1.158: +33 -2 lines
Diff to previous 1.158 (colored)

Dynamic sysctl.

Gone are the old kern_sysctl(), cpu_sysctl(), hw_sysctl(),
vfs_sysctl(), etc, routines, along with sysctl_int() et al.  Now all
nodes are registered with the tree, and nodes can be added (or
removed) easily, and I/O to and from the tree is handled generically.

Since the nodes are registered with the tree, the mapping from name to
number (and back again) can now be discovered, instead of having to be
hard coded.  Adding new nodes to the tree is likewise much simpler --
the new infrastructure handles almost all the work for simple types,
and just about anything else can be done with a small helper function.

All existing nodes are where they were before (numerically speaking),
so all existing consumers of sysctl information should notice no
difference.

PS - I'm sorry, but there's a distinct lack of documentation at the
moment.  I'm working on sysctl(3/8/9) right now, and I promise to
watch out for buses.

Revision 1.158 / (download) - annotate - [select for diffs], Sun Sep 21 19:17:09 2003 UTC (19 years, 4 months ago) by jdolecek
Branch: MAIN
Changes since 1.157: +31 -2 lines
Diff to previous 1.157 (colored)

cleanup & uniform descriptor owner handling:
* introduce fsetown(), fgetown(), fownsignal() - this sets/retrieves/signals
  the owner of descriptor, according to appropriate sematics
  of TIOCSPGRP/FIOSETOWN/SIOCSPGRP/TIOCGPGRP/FIOGETOWN/SIOCGPGRP ioctl; use
  these routines instead of custom code where appropriate
* make every place handling TIOCSPGRP/TIOCGPGRP handle also FIOSETOWN/FIOGETOWN
  properly, and remove the translation of FIO[SG]OWN to TIOC[SG]PGRP
  in sys_ioctl() & sys_fcntl()
* also remove the socket-specific hack in sys_ioctl()/sys_fcntl() and
  pass the ioctls down to soo_ioctl() as any other ioctl

change discussed on tech-kern@

Revision 1.157 / (download) - annotate - [select for diffs], Sun Sep 21 18:40:38 2003 UTC (19 years, 4 months ago) by manu
Branch: MAIN
Changes since 1.156: +6 -5 lines
Diff to previous 1.156 (colored)

Extra sanity checks: all char devices won't have an associated tty.

Revision 1.156 / (download) - annotate - [select for diffs], Mon Aug 11 10:49:06 2003 UTC (19 years, 6 months ago) by dsl
Branch: MAIN
Changes since 1.155: +16 -10 lines
Diff to previous 1.155 (colored)

Rework VTIME calculations so that they don't hit numeric overflow (ok now
for hz < ~200kHz).  Old code failed VTIME > 214 even with hz=100.
Fixes kern/12285.

Revision 1.155 / (download) - annotate - [select for diffs], Thu Aug 7 16:31:55 2003 UTC (19 years, 6 months ago) by agc
Branch: MAIN
Changes since 1.154: +3 -7 lines
Diff to previous 1.154 (colored)

Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.

Revision 1.154.2.1 / (download) - annotate - [select for diffs], Wed Jul 2 15:26:43 2003 UTC (19 years, 7 months ago) by darrenr
Branch: ktrace-lwp
Changes since 1.154: +10 -9 lines
Diff to previous 1.154 (colored)

Apply the aborted ktrace-lwp changes to a specific branch.  This is just for
others to review, I'm concerned that patch fuziness may have resulted in some
errant code being generated but I'll look at that later by comparing the diff
from the base to the branch with the file I attempt to apply to it.  This will,
at the very least, put the changes in a better context for others to review
them and attempt to tinker with removing passing of 'struct lwp' through
the kernel.

Revision 1.154 / (download) - annotate - [select for diffs], Sun Jun 29 22:31:28 2003 UTC (19 years, 7 months ago) by fvdl
Branch: MAIN
Branch point for: ktrace-lwp
Changes since 1.153: +7 -8 lines
Diff to previous 1.153 (colored)

Back out the lwp/ktrace changes. They contained a lot of colateral damage,
and need to be examined and discussed more.

Revision 1.153 / (download) - annotate - [select for diffs], Sat Jun 28 14:21:57 2003 UTC (19 years, 7 months ago) by darrenr
Branch: MAIN
Changes since 1.152: +10 -9 lines
Diff to previous 1.152 (colored)

Pass lwp pointers throughtout the kernel, as required, so that the lwpid can
be inserted into ktrace records.  The general change has been to replace
"struct proc *" with "struct lwp *" in various function prototypes, pass
the lwp through and use l_proc to get the process pointer when needed.

Bump the kernel rev up to 1.6V

Revision 1.152 / (download) - annotate - [select for diffs], Thu Apr 10 22:35:00 2003 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.151: +3 -3 lines
Diff to previous 1.151 (colored)

use VREAD instead of VWRITE, this ioctl is used to redirect console output.

Revision 1.151 / (download) - annotate - [select for diffs], Thu Apr 10 22:05:57 2003 UTC (19 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.150: +15 -9 lines
Diff to previous 1.150 (colored)

PR/732: Matt Green: TIOCCONS should work if the user owns /dev/console.

Revision 1.150 / (download) - annotate - [select for diffs], Wed Mar 19 11:36:32 2003 UTC (19 years, 10 months ago) by dsl
Branch: MAIN
Changes since 1.149: +3 -3 lines
Diff to previous 1.149 (colored)

Alternative pid/proc allocater, removes all searches associated with pid
lookup and allocation, and any dependency on NPROC or MAXUSERS.
NO_PID changed to -1 (and renamed NO_PGID) to remove artificial limit
on PID_MAX.
As discussed on tech-kern.

Revision 1.149 / (download) - annotate - [select for diffs], Mon Feb 17 22:23:14 2003 UTC (19 years, 11 months ago) by christos
Branch: MAIN
Changes since 1.148: +40 -16 lines
Diff to previous 1.148 (colored)

Add a ttyprintf_nolock() to be called when we are printing the ttyinfo
stuff, since we already have the lock.
Adjust tputchar so that it does not lock, when NOLOCK is passed in flags.

Revision 1.148 / (download) - annotate - [select for diffs], Thu Feb 6 12:21:21 2003 UTC (20 years ago) by pk
Branch: MAIN
Changes since 1.147: +11 -4 lines
Diff to previous 1.147 (colored)

XXX ttioctl(): some drivers call back on us from t_param(), so delay acquiring
tty spin lock until after t_param() returns.

Require t_param() to unlock upon callback?

Revision 1.147 / (download) - annotate - [select for diffs], Wed Feb 5 15:49:03 2003 UTC (20 years ago) by pk
Branch: MAIN
Changes since 1.146: +254 -72 lines
Diff to previous 1.146 (colored)

Make the tty subsystem MP-safe..

..as far as mere mortals are able to, since this code illustrates the finest
points that Italian haute cuisine has to offer.

Revision 1.146 / (download) - annotate - [select for diffs], Sun Jan 19 23:07:32 2003 UTC (20 years ago) by simonb
Branch: MAIN
Changes since 1.145: +3 -3 lines
Diff to previous 1.145 (colored)

Make the char_type array "unsigned char" since we stuff values > 0x80
into it.

Revision 1.145 / (download) - annotate - [select for diffs], Sat Jan 18 10:06:36 2003 UTC (20 years ago) by thorpej
Branch: MAIN
Changes since 1.144: +13 -8 lines
Diff to previous 1.144 (colored)

Merge the nathanw_sa branch.

Revision 1.125.2.16 / (download) - annotate - [select for diffs], Wed Dec 11 06:43:09 2002 UTC (20 years, 2 months ago) by thorpej
Branch: nathanw_sa
CVS Tags: nathanw_sa_end
Changes since 1.125.2.15: +4 -4 lines
Diff to previous 1.125.2.15 (colored) next main 1.126 (colored)

Sync with HEAD.

Revision 1.144 / (download) - annotate - [select for diffs], Tue Nov 26 18:44:35 2002 UTC (20 years, 2 months ago) by christos
Branch: MAIN
CVS Tags: nathanw_sa_before_merge, nathanw_sa_base, gmcgarry_ucred_base, gmcgarry_ucred, gmcgarry_ctxsw_base, gmcgarry_ctxsw, fvdl_fs64_base
Changes since 1.143: +6 -6 lines
Diff to previous 1.143 (colored)

si_ -> sel_ to avoid conflicts with siginfo.

Revision 1.125.2.15 / (download) - annotate - [select for diffs], Mon Nov 11 22:14:04 2002 UTC (20 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.14: +85 -2 lines
Diff to previous 1.125.2.14 (colored)

Catch up to -current

Revision 1.143 / (download) - annotate - [select for diffs], Wed Oct 23 09:14:25 2002 UTC (20 years, 3 months ago) by jdolecek
Branch: MAIN
CVS Tags: kqueue-aftermerge
Changes since 1.142: +87 -4 lines
Diff to previous 1.142 (colored)

merge kqueue branch into -current

kqueue provides a stateful and efficient event notification framework
currently supported events include socket, file, directory, fifo,
pipe, tty and device changes, and monitoring of processes and signals

kqueue is supported by all writable filesystems in NetBSD tree
(with exception of Coda) and all device drivers supporting poll(2)

based on work done by Jonathan Lemon for FreeBSD
initial NetBSD port done by Luke Mewburn and Jason Thorpe

Revision 1.128.2.13 / (download) - annotate - [select for diffs], Thu Oct 10 18:43:17 2002 UTC (20 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.128.2.12: +23 -9 lines
Diff to previous 1.128.2.12 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work

Revision 1.128.2.12 / (download) - annotate - [select for diffs], Sun Sep 29 09:59:15 2002 UTC (20 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.128.2.11: +5 -5 lines
Diff to previous 1.128.2.11 (colored) to branchpoint 1.128 (colored)

drop (caddr_t) and (void *) casts for kn_hook

Revision 1.128.2.11 / (download) - annotate - [select for diffs], Tue Sep 24 09:12:04 2002 UTC (20 years, 4 months ago) by jdolecek
Branch: kqueue
Changes since 1.128.2.10: +39 -46 lines
Diff to previous 1.128.2.10 (colored) to branchpoint 1.128 (colored)

filt_ttywrite(): according to EVFILT_WRITE spec, kn_data should contain
  'amount of space remaining in the write buffer'. So, do not put
  t_outq.c_cc there (which is count of characters in queue), but
  't_outq.c_cn - t_outq.cc' (i.e. total ring buffer length without count
  if characters in queue)

also shuffle filt_*() functions around to not need forward declaration,
  and g/c the prototypes on top

Revision 1.125.2.14 / (download) - annotate - [select for diffs], Tue Sep 17 21:22:22 2002 UTC (20 years, 4 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.13: +16 -6 lines
Diff to previous 1.125.2.13 (colored)

Catch up to -current.

Revision 1.142 / (download) - annotate - [select for diffs], Fri Sep 6 13:18:43 2002 UTC (20 years, 5 months ago) by gehenna
Branch: MAIN
CVS Tags: kqueue-beforemerge, kqueue-base
Changes since 1.141: +16 -6 lines
Diff to previous 1.141 (colored)

Merge the gehenna-devsw branch into the trunk.

This merge changes the device switch tables from static array to
dynamically generated by config(8).

- All device switches is defined as a constant structure in device drivers.

- The new grammer ``device-major'' is introduced to ``files''.

	device-major <prefix> char <num> [block <num>] [<rules>]

- All device major numbers must be listed up in port dependent majors.<arch>
  by using this grammer.

- Added the new naming convention.
  The name of the device switch must be <prefix>_[bc]devsw for auto-generation
  of device switch tables.

- The backward compatibility of loading block/character device
  switch by LKM framework is broken. This is necessary to convert
  from block/character device major to device name in runtime and vice versa.

- The restriction to assign device major by LKM is completely removed.
  We don't need to reserve LKM entries for dynamic loading of device switch.

- In compile time, device major numbers list is packed into the kernel and
  the LKM framework will refer it to assign device major number dynamically.

Revision 1.128.2.10 / (download) - annotate - [select for diffs], Fri Sep 6 08:48:13 2002 UTC (20 years, 5 months ago) by jdolecek
Branch: kqueue
Changes since 1.128.2.9: +11 -4 lines
Diff to previous 1.128.2.9 (colored) to branchpoint 1.128 (colored)

sync kqueue branch with HEAD

Revision 1.119.4.2 / (download) - annotate - [select for diffs], Wed Sep 4 02:53:34 2002 UTC (20 years, 5 months ago) by itojun
Branch: netbsd-1-5
Changes since 1.119.4.1: +5 -1 lines
Diff to previous 1.119.4.1 (colored) to branchpoint 1.119 (colored) next main 1.120 (colored)

sys/kern/tty.c 1.139 (jdolecek)

Make sure repeated TIOCSCTTY doesn't corrupt session hold count.
Fixes kern/17382 by David Laight.

Revision 1.141 / (download) - annotate - [select for diffs], Wed Sep 4 01:32:43 2002 UTC (20 years, 5 months ago) by matt
Branch: MAIN
Changes since 1.140: +4 -4 lines
Diff to previous 1.140 (colored)

Use the queue macros from <sys/queue.h> instead of referring to the queue
members directly.  Use *_FOREACH whenever possible.

Revision 1.138.2.2 / (download) - annotate - [select for diffs], Thu Aug 29 05:23:14 2002 UTC (20 years, 5 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.138.2.1: +11 -4 lines
Diff to previous 1.138.2.1 (colored) to branchpoint 1.138 (colored) next main 1.139 (colored)

catch up with -current.

Revision 1.125.2.13 / (download) - annotate - [select for diffs], Tue Aug 27 23:47:34 2002 UTC (20 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.12: +5 -2 lines
Diff to previous 1.125.2.12 (colored)

Catch up to -current.

Revision 1.140 / (download) - annotate - [select for diffs], Mon Aug 26 01:17:18 2002 UTC (20 years, 5 months ago) by thorpej
Branch: MAIN
CVS Tags: gehenna-devsw-base
Changes since 1.139: +7 -4 lines
Diff to previous 1.139 (colored)

Avoid signed/unsigned comparison warnings from GCC 3.3.

Revision 1.125.2.12 / (download) - annotate - [select for diffs], Thu Aug 1 02:46:26 2002 UTC (20 years, 6 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.11: +6 -2 lines
Diff to previous 1.125.2.11 (colored)

Catch up to -current.

Revision 1.138.4.1 / (download) - annotate - [select for diffs], Mon Jul 22 04:34:30 2002 UTC (20 years, 6 months ago) by lukem
Branch: netbsd-1-6
CVS Tags: netbsd-1-6-RELEASE, netbsd-1-6-RC3, netbsd-1-6-RC2, netbsd-1-6-RC1, netbsd-1-6-PATCH002-RELEASE, netbsd-1-6-PATCH002-RC4, netbsd-1-6-PATCH002-RC3, netbsd-1-6-PATCH002-RC2, netbsd-1-6-PATCH002-RC1, netbsd-1-6-PATCH002, netbsd-1-6-PATCH001-RELEASE, netbsd-1-6-PATCH001-RC3, netbsd-1-6-PATCH001-RC2, netbsd-1-6-PATCH001-RC1, netbsd-1-6-PATCH001
Changes since 1.138: +6 -2 lines
Diff to previous 1.138 (colored) next main 1.139 (colored)

Pull up revision 1.139 (requested by jdolocek in ticket #535):
Make sure repeated TIOCSCTTY doesn't corrupt session hold count.
Fixes kern/17382 by David Laight.

Revision 1.139 / (download) - annotate - [select for diffs], Sun Jul 21 20:43:53 2002 UTC (20 years, 6 months ago) by jdolecek
Branch: MAIN
Changes since 1.138: +6 -2 lines
Diff to previous 1.138 (colored)

Make sure repeated TIOCSCTTY doesn't corrupt session hold count.
Fixes kern/17382 by David Laight.

Revision 1.125.2.11 / (download) - annotate - [select for diffs], Fri Jul 12 01:40:21 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.10: +2 -3 lines
Diff to previous 1.125.2.10 (colored)

No longer need to pull in lwp.h; proc.h pulls it in for us.

Revision 1.125.2.10 / (download) - annotate - [select for diffs], Mon Jun 24 22:10:59 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.9: +5 -5 lines
Diff to previous 1.125.2.9 (colored)

Curproc->curlwp renaming.

Change uses of "curproc->l_proc" back to "curproc", which is more like the
original use. Bare uses of "curproc" are now "curlwp".

"curproc" is now #defined in proc.h as ((curlwp) ? (curlwp)->l_proc) : NULL)
so that it is always safe to reference curproc (*de*referencing curproc
is another story, but that's always been true).

Revision 1.128.2.9 / (download) - annotate - [select for diffs], Sun Jun 23 17:49:38 2002 UTC (20 years, 7 months ago) by jdolecek
Branch: kqueue
Changes since 1.128.2.8: +52 -51 lines
Diff to previous 1.128.2.8 (colored) to branchpoint 1.128 (colored)

catch up with -current on kqueue branch

Revision 1.125.2.9 / (download) - annotate - [select for diffs], Thu Jun 20 03:47:24 2002 UTC (20 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.8: +45 -48 lines
Diff to previous 1.125.2.8 (colored)

Catch up to -current.

Revision 1.138.2.1 / (download) - annotate - [select for diffs], Thu May 16 04:12:25 2002 UTC (20 years, 8 months ago) by gehenna
Branch: gehenna-devsw
Changes since 1.138: +16 -6 lines
Diff to previous 1.138 (colored)

Replace the direct-access to devsw table with calling devsw APIs.

Revision 1.138 / (download) - annotate - [select for diffs], Thu May 2 13:38:57 2002 UTC (20 years, 9 months ago) by enami
Branch: MAIN
CVS Tags: netbsd-1-6-base
Branch point for: netbsd-1-6, gehenna-devsw
Changes since 1.137: +42 -45 lines
Diff to previous 1.137 (colored)

- Fix more and more white space nits.
- ANSIfy the last K&R function definition in this file.

Revision 1.119.4.1 / (download) - annotate - [select for diffs], Fri Apr 26 17:56:24 2002 UTC (20 years, 9 months ago) by he
Branch: netbsd-1-5
CVS Tags: netbsd-1-5-PATCH003
Changes since 1.119: +6 -2 lines
Diff to previous 1.119 (colored)

Pull up revision 1.136 (requested by christos):
  Use SESSHOLD and SESSRELE consistently, and add them to t_session,
  so that we do not have dangling references.

Revision 1.137 / (download) - annotate - [select for diffs], Sat Apr 20 06:04:35 2002 UTC (20 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.136: +4 -4 lines
Diff to previous 1.136 (colored)

Fix a white-space nit.

Revision 1.125.2.8 / (download) - annotate - [select for diffs], Wed Apr 17 00:06:19 2002 UTC (20 years, 9 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.7: +5 -1 lines
Diff to previous 1.125.2.7 (colored)

Catch up to -current.

Revision 1.136 / (download) - annotate - [select for diffs], Fri Apr 12 17:02:33 2002 UTC (20 years, 9 months ago) by christos
Branch: MAIN
Changes since 1.135: +7 -3 lines
Diff to previous 1.135 (colored)

Use SESSHOLD and SESSRELE consistently.
Add SESSHOLD and SESSRELE to the t_session, so that we don't have dangling
references [inspired by OpenBSD].

Revision 1.125.2.7 / (download) - annotate - [select for diffs], Mon Apr 1 07:47:59 2002 UTC (20 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.6: +6 -7 lines
Diff to previous 1.125.2.6 (colored)

Catch up to -current.
(CVS: It's not just a program. It's an adventure!)

Revision 1.135 / (download) - annotate - [select for diffs], Mon Mar 25 04:26:43 2002 UTC (20 years, 10 months ago) by itohy
Branch: MAIN
Changes since 1.134: +4 -4 lines
Diff to previous 1.134 (colored)

Print ttyinfo *before* (not after) sending SIGINFO to processes.
This generates more useful information of a process who catches SIGINFO,
rather than always printing "runnable" (the process is marked runnable
because of the signal).
Inspired by the behavior of BSD/OS.

Revision 1.134 / (download) - annotate - [select for diffs], Sun Mar 17 19:41:07 2002 UTC (20 years, 10 months ago) by atatat
Branch: MAIN
CVS Tags: eeh-devprop-base, eeh-devprop
Changes since 1.133: +3 -3 lines
Diff to previous 1.133 (colored)

Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for
indicating an unhandled "command".  ERESTART is -1, which can lead to
confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been
placed at -4.  No ioctl code should now return -1 anywhere.  The
ioctl() system call is now properly restartable.

Revision 1.128.2.8 / (download) - annotate - [select for diffs], Sat Mar 16 16:01:51 2002 UTC (20 years, 10 months ago) by jdolecek
Branch: kqueue
Changes since 1.128.2.7: +6 -7 lines
Diff to previous 1.128.2.7 (colored) to branchpoint 1.128 (colored)

Catch up with -current.

Revision 1.133 / (download) - annotate - [select for diffs], Fri Mar 8 20:48:41 2002 UTC (20 years, 11 months ago) by thorpej
Branch: MAIN
CVS Tags: newlock-base, newlock
Changes since 1.132: +3 -3 lines
Diff to previous 1.132 (colored)

Pool deals fairly well with physical memory shortage, but it doesn't
deal with shortages of the VM maps where the backing pages are mapped
(usually kmem_map).  Try to deal with this:

* Group all information about the backend allocator for a pool in a
  separate structure.  The pool references this structure, rather than
  the individual fields.
* Change the pool_init() API accordingly, and adjust all callers.
* Link all pools using the same backend allocator on a list.
* The backend allocator is responsible for waiting for physical memory
  to become available, but will still fail if it cannot callocate KVA
  space for the pages.  If this happens, carefully drain all pools using
  the same backend allocator, so that some KVA space can be freed.
* Change pool_reclaim() to indicate if it actually succeeded in freeing
  some pages, and use that information to make draining easier and more
  efficient.
* Get rid of PR_URGENT.  There was only one use of it, and it could be
  dealt with by the caller.

From art@openbsd.org.

Revision 1.132 / (download) - annotate - [select for diffs], Mon Mar 4 02:32:58 2002 UTC (20 years, 11 months ago) by simonb
Branch: MAIN
Changes since 1.131: +2 -3 lines
Diff to previous 1.131 (colored)

nlinesw is already declared in <sys/conf.h>.

Revision 1.125.2.6 / (download) - annotate - [select for diffs], Thu Feb 28 04:14:46 2002 UTC (20 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.5: +10 -5 lines
Diff to previous 1.125.2.5 (colored)

Catch up to -current.

Revision 1.128.2.7 / (download) - annotate - [select for diffs], Mon Feb 11 20:10:24 2002 UTC (20 years, 11 months ago) by jdolecek
Branch: kqueue
Changes since 1.128.2.6: +7 -2 lines
Diff to previous 1.128.2.6 (colored) to branchpoint 1.128 (colored)

Sync w/ -current.

Revision 1.131 / (download) - annotate - [select for diffs], Fri Feb 8 18:36:53 2002 UTC (21 years ago) by christos
Branch: MAIN
CVS Tags: ifpoll-base
Changes since 1.130: +5 -5 lines
Diff to previous 1.130 (colored)

Andrew Brown found that we overflowed all cases in the TTLINEDNAMELEN.
ouch.

Revision 1.130 / (download) - annotate - [select for diffs], Mon Jan 28 02:06:03 2002 UTC (21 years ago) by simonb
Branch: MAIN
Changes since 1.129: +7 -2 lines
Diff to previous 1.129 (colored)

Add sysctls to read tk_{nin,nout,cancc,rawcc} (under a kern.tkstat node).
"extern" those variables in <sys/dkstat.h>, and add declarations for them
in sys/tty.c

Revision 1.128.2.6 / (download) - annotate - [select for diffs], Thu Jan 10 20:00:10 2002 UTC (21 years, 1 month ago) by thorpej
Branch: kqueue
Changes since 1.128.2.5: +4 -1 lines
Diff to previous 1.128.2.5 (colored) to branchpoint 1.128 (colored)

Sync kqueue branch with -current.

Revision 1.125.2.5 / (download) - annotate - [select for diffs], Wed Nov 14 19:16:44 2001 UTC (21 years, 2 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.4: +4 -1 lines
Diff to previous 1.125.2.4 (colored)

Catch up to -current.

Revision 1.128.6.1 / (download) - annotate - [select for diffs], Mon Nov 12 21:18:57 2001 UTC (21 years, 2 months ago) by thorpej
Branch: thorpej-mips-cache
Changes since 1.128: +4 -1 lines
Diff to previous 1.128 (colored) next main 1.129 (colored)

Sync the thorpej-mips-cache branch with -current.

Revision 1.129 / (download) - annotate - [select for diffs], Mon Nov 12 15:25:27 2001 UTC (21 years, 2 months ago) by lukem
Branch: MAIN
CVS Tags: thorpej-mips-cache-base
Changes since 1.128: +4 -1 lines
Diff to previous 1.128 (colored)

add RCSIDs

Revision 1.128.4.4 / (download) - annotate - [select for diffs], Sat Oct 13 17:42:52 2001 UTC (21 years, 3 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.128.4.3: +20 -23 lines
Diff to previous 1.128.4.3 (colored) to branchpoint 1.128 (colored) next main 1.129 (colored)

Revert the t_dev -> t_devvp change in struct tty. The way that tty
structs are currently used (especially by console ttys) aren't
ready for it, and this will require quite a few changes.

Revision 1.128.4.3 / (download) - annotate - [select for diffs], Wed Sep 26 15:28:21 2001 UTC (21 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.128.4.2: +4 -1 lines
Diff to previous 1.128.4.2 (colored) to branchpoint 1.128 (colored)

* add a VCLONED vnode flag that indicates a vnode representing a cloned
  device.
* rename REVOKEALL to REVOKEALIAS, and add a REVOKECLONE flag, to pass
  to VOP_REVOKE
* the revoke system call will revoke all aliases, as before, but not the
  clones
* vdevgone is called when detaching a device, so make it use REVOKECLONE
  to get rid of all clones as well
* clean up all uses of VOP_OPEN wrt. locking.
* add a few VOPS to spec_vnops that need to do something when it's a
  clone vnode (access and getattr)
* add a copy of the vnode vattr structure of the original 'master' vnode
  to the specinfo of a cloned vnode. could possibly redirect getattr to
  the 'master' vnode, but this has issues with revoke
* add a vdev_reassignvp function that disassociates a vnode from its
  original device, and reassociates it with the specified dev_t. to be
  used by cloning devices only, in case a new minor is allocated.
* change all direct references in drivers to v_devcookie and v_rdev
  to vdev_privdata(vp) and vdev_rdev(vp). for diagnostic purposes
  when debugging race conditions that still exist wrt. locking and
  revoking vnodes.
* make the locking state of a vnode consistent when passed to
  d_open and d_close (unlocked). locked would be better, but has
  some deadlock issues

Revision 1.128.4.2 / (download) - annotate - [select for diffs], Tue Sep 18 19:13:53 2001 UTC (21 years, 4 months ago) by fvdl
Branch: thorpej-devvp
Changes since 1.128.4.1: +10 -2 lines
Diff to previous 1.128.4.1 (colored) to branchpoint 1.128 (colored)

Various changes to make cloning devices possible:

	* Add an extra argument (struct vnode **) to VOP_OPEN. If it is
	  not NULL, specfs will create a cloned (aliased) vnode during
	  the call, and return it there. The caller should release and
	  unlock the original vnode if a new vnode was returned. The
	  new vnode is returned locked.

	* Add a flag field to the cdevsw and bdevsw structures.
	  DF_CLONING indicates that it wants a new vnode for each
	  open (XXX is there a better way? devprop?)

	* If a device is cloning, always call the close entry
	  point for a VOP_CLOSE.


Also, rewrite cons.c to do the right thing with vnodes. Use VOPs
rather then direct device entry calls. Suggested by mycroft@

Light to moderate testing done an i386 system (arch doesn't matter
though, these are MI changes).

Revision 1.128.2.5 / (download) - annotate - [select for diffs], Sat Sep 8 02:33:49 2001 UTC (21 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.128.2.4: +3 -5 lines
Diff to previous 1.128.2.4 (colored) to branchpoint 1.128 (colored)

Add a selnotify(), which does a selwakeup() + KNOTE(), rather than
requiring all callers to do both.

This may be a transitional step only, or it may stick.  I haven't
decided yet.

Revision 1.128.2.4 / (download) - annotate - [select for diffs], Fri Sep 7 22:01:53 2001 UTC (21 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.128.2.3: +3 -3 lines
Diff to previous 1.128.2.3 (colored) to branchpoint 1.128 (colored)

More const.

Revision 1.128.2.3 / (download) - annotate - [select for diffs], Fri Sep 7 19:45:03 2001 UTC (21 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.128.2.2: +6 -6 lines
Diff to previous 1.128.2.2 (colored) to branchpoint 1.128 (colored)

Stash the tty pointer in kn->kn_hook, not the dev_t.

Revision 1.128.2.2 / (download) - annotate - [select for diffs], Fri Sep 7 16:20:35 2001 UTC (21 years, 5 months ago) by thorpej
Branch: kqueue
Changes since 1.128.2.1: +3 -1 lines
Diff to previous 1.128.2.1 (colored) to branchpoint 1.128 (colored)

Actually activate knotes when appropriate (at the same time
that selwakeup() is performed).

Revision 1.128.4.1 / (download) - annotate - [select for diffs], Fri Sep 7 04:45:38 2001 UTC (21 years, 5 months ago) by thorpej
Branch: thorpej-devvp
Changes since 1.128: +18 -10 lines
Diff to previous 1.128 (colored)

Commit my "devvp" changes to the thorpej-devvp branch.  This
replaces the use of dev_t in most places with a struct vnode *.

This will form the basic infrastructure for real cloning device
support (besides being architecurally cleaner -- it'll be good
to get away from using numbers to represent objects).

Revision 1.125.2.4 / (download) - annotate - [select for diffs], Wed Aug 22 18:36:47 2001 UTC (21 years, 5 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.3: +2 -2 lines
Diff to previous 1.125.2.3 (colored)

In ttyinfo(), iterate over pick->p_lwps, not p->p_lwps.

Revision 1.128.2.1 / (download) - annotate - [select for diffs], Tue Jul 10 13:48:05 2001 UTC (21 years, 7 months ago) by lukem
Branch: kqueue
Changes since 1.128: +87 -1 lines
Diff to previous 1.128 (colored)

add kqueue methods for filt_tty*

Revision 1.125.2.3 / (download) - annotate - [select for diffs], Thu Jun 21 20:07:05 2001 UTC (21 years, 7 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.2: +3 -5 lines
Diff to previous 1.125.2.2 (colored)

Catch up to -current.

Revision 1.128 / (download) - annotate - [select for diffs], Wed May 2 10:32:08 2001 UTC (21 years, 9 months ago) by scw
Branch: MAIN
CVS Tags: thorpej-devvp-base3, thorpej-devvp-base2, thorpej-devvp-base, pre-chs-ubcperf, post-chs-ubcperf
Branch point for: thorpej-mips-cache, thorpej-devvp, kqueue
Changes since 1.127: +3 -5 lines
Diff to previous 1.127 (colored)

Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point
in each tty driver to indirect through it.

This allows tty line-disciplines to handle poll(2) system calls.

Revision 1.115.2.5 / (download) - annotate - [select for diffs], Sat Apr 21 17:46:30 2001 UTC (21 years, 9 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.115.2.4: +2 -4 lines
Diff to previous 1.115.2.4 (colored) to branchpoint 1.115 (colored) next main 1.116 (colored)

Sync with HEAD

Revision 1.125.2.2 / (download) - annotate - [select for diffs], Mon Apr 9 01:57:57 2001 UTC (21 years, 10 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125.2.1: +120 -181 lines
Diff to previous 1.125.2.1 (colored)

Catch up with -current.

Revision 1.127 / (download) - annotate - [select for diffs], Sat Mar 31 00:35:23 2001 UTC (21 years, 10 months ago) by enami
Branch: MAIN
CVS Tags: thorpej_scsipi_nbase, thorpej_scsipi_beforemerge, thorpej_scsipi_base
Changes since 1.126: +2 -4 lines
Diff to previous 1.126 (colored)

Remove unnecessary test of tp->t_linesw against NULL; they are results
of confusion while correcting compilation error after t_line is
replaced with t_linesw.

Revision 1.115.2.4 / (download) - annotate - [select for diffs], Tue Mar 27 15:32:24 2001 UTC (21 years, 10 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.115.2.3: +118 -177 lines
Diff to previous 1.115.2.3 (colored) to branchpoint 1.115 (colored)

Sync with HEAD.

Revision 1.126 / (download) - annotate - [select for diffs], Thu Mar 22 04:52:25 2001 UTC (21 years, 10 months ago) by lukem
Branch: MAIN
Changes since 1.125: +119 -178 lines
Diff to previous 1.125 (colored)

convert to ANSI KNF

Revision 1.125.2.1 / (download) - annotate - [select for diffs], Mon Mar 5 22:49:46 2001 UTC (21 years, 11 months ago) by nathanw
Branch: nathanw_sa
Changes since 1.125: +16 -10 lines
Diff to previous 1.125 (colored)

Initial commit of scheduler activations and lightweight process support.

Revision 1.115.2.3 / (download) - annotate - [select for diffs], Fri Jan 5 17:36:41 2001 UTC (22 years, 1 month ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.115.2.2: +4 -4 lines
Diff to previous 1.115.2.2 (colored) to branchpoint 1.115 (colored)

Sync with HEAD

Revision 1.125 / (download) - annotate - [select for diffs], Fri Dec 22 22:59:00 2000 UTC (22 years, 1 month ago) by jdolecek
Branch: MAIN
Branch point for: nathanw_sa
Changes since 1.124: +5 -5 lines
Diff to previous 1.124 (colored)

split off thread specific stuff from struct sigacts to struct sigctx, leaving
    only signal handler array sharable between threads
move other random signal stuff from struct proc to struct sigctx

This addresses kern/10981 by Matthew Orgass.

Revision 1.115.2.2 / (download) - annotate - [select for diffs], Wed Nov 22 16:05:26 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.115.2.1: +37 -12 lines
Diff to previous 1.115.2.1 (colored) to branchpoint 1.115 (colored)

Sync with HEAD.

Revision 1.115.2.1 / (download) - annotate - [select for diffs], Mon Nov 20 18:09:12 2000 UTC (22 years, 2 months ago) by bouyer
Branch: thorpej_scsipi
Changes since 1.115: +68 -64 lines
Diff to previous 1.115 (colored)

Update thorpej_scsipi to -current as of a month ago

Revision 1.124 / (download) - annotate - [select for diffs], Wed Nov 15 01:47:14 2000 UTC (22 years, 2 months ago) by enami
Branch: MAIN
Changes since 1.123: +9 -23 lines
Diff to previous 1.123 (colored)

Don't allow t_linesw to be NULL.

Revision 1.123 / (download) - annotate - [select for diffs], Tue Nov 14 22:17:49 2000 UTC (22 years, 2 months ago) by thorpej
Branch: MAIN
Changes since 1.122: +2 -2 lines
Diff to previous 1.122 (colored)

NBPG -> PAGE_SIZE

Revision 1.122 / (download) - annotate - [select for diffs], Sun Nov 5 15:37:09 2000 UTC (22 years, 3 months ago) by jdolecek
Branch: MAIN
Changes since 1.121: +2 -3 lines
Diff to previous 1.121 (colored)

add new function sigismasked(), which checks whether passed signal
is ignored or masked by the process, and use it appropriately
instead of directly checking p->p_sigmask and p->p_sigignore

Revision 1.121 / (download) - annotate - [select for diffs], Wed Nov 1 23:51:38 2000 UTC (22 years, 3 months ago) by eeh
Branch: MAIN
Changes since 1.120: +48 -8 lines
Diff to previous 1.120 (colored)

Make line disciplines modular so they can be added or removed dynamically.

Revision 1.120 / (download) - annotate - [select for diffs], Tue Jun 27 17:41:41 2000 UTC (22 years, 7 months ago) by mrg
Branch: MAIN
Changes since 1.119: +1 -3 lines
Diff to previous 1.119 (colored)

remove include of <vm/vm.h>

Revision 1.119 / (download) - annotate - [select for diffs], Fri May 26 00:36:52 2000 UTC (22 years, 8 months ago) by thorpej
Branch: MAIN
CVS Tags: netbsd-1-5-base, netbsd-1-5-RELEASE, netbsd-1-5-PATCH002, netbsd-1-5-PATCH001, netbsd-1-5-BETA2, netbsd-1-5-BETA, netbsd-1-5-ALPHA2, minoura-xpg4dl-base, minoura-xpg4dl
Branch point for: netbsd-1-5
Changes since 1.118: +5 -3 lines
Diff to previous 1.118 (colored)

Introduce a new process state distinct from SRUN called SONPROC
which indicates that the process is actually running on a
processor.  Test against SONPROC as appropriate rather than
combinations of SRUN and curproc.  Update all context switch code
to properly set SONPROC when the process becomes the current
process on the CPU.

Revision 1.118 / (download) - annotate - [select for diffs], Thu Mar 30 09:27:13 2000 UTC (22 years, 10 months ago) by augustss
Branch: MAIN
Changes since 1.117: +54 -54 lines
Diff to previous 1.117 (colored)

Get rid of register declarations.

Revision 1.117 / (download) - annotate - [select for diffs], Tue Mar 28 18:39:03 2000 UTC (22 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.116: +5 -5 lines
Diff to previous 1.116 (colored)

Cast timeval members to types we know the printf conversions of.

Revision 1.116 / (download) - annotate - [select for diffs], Thu Mar 23 06:30:12 2000 UTC (22 years, 10 months ago) by thorpej
Branch: MAIN
Changes since 1.115: +7 -3 lines
Diff to previous 1.115 (colored)

New callout mechanism with two major improvements over the old
timeout()/untimeout() API:
- Clients supply callout handle storage, thus eliminating problems of
  resource allocation.
- Insertion and removal of callouts is constant time, important as
  this facility is used quite a lot in the kernel.

The old timeout()/untimeout() API has been removed from the kernel.

Revision 1.112.8.2 / (download) - annotate - [select for diffs], Mon Aug 2 22:19:14 1999 UTC (23 years, 6 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.112.8.1: +4 -4 lines
Diff to previous 1.112.8.1 (colored) to branchpoint 1.112 (colored) next main 1.113 (colored)

Update from trunk.

Revision 1.115 / (download) - annotate - [select for diffs], Sat Jul 24 15:10:02 1999 UTC (23 years, 6 months ago) by tron
Branch: MAIN
CVS Tags: wrstuden-devbsize-base, wrstuden-devbsize-19991221, wrstuden-devbsize, fvdl-softdep-base, fvdl-softdep, comdex-fall-1999-base, comdex-fall-1999, chs-ubc2-newbase, chs-ubc2-base
Branch point for: thorpej_scsipi
Changes since 1.114: +3 -3 lines
Diff to previous 1.114 (colored)

Fix NULL pointer access. Patch supplied by Dave Huang in PR kern/8055.

Revision 1.114 / (download) - annotate - [select for diffs], Thu Jul 22 18:13:37 1999 UTC (23 years, 6 months ago) by thorpej
Branch: MAIN
Changes since 1.113: +3 -3 lines
Diff to previous 1.113 (colored)

Rework the process exit path, in preparation for making process exit
and PID allocation MP-safe.  A new process state is added: SDEAD.  This
state indicates that a process is dead, but not yet a zombie (has not
yet been processed by the process reaper).

SDEAD processes exist on both the zombproc list (via p_list) and deadproc
(via p_hash; the proc has been removed from the pidhash earlier in the exit
path).  When the reaper deals with a process, it changes the state to
SZOMB, so that wait4 can process it.

Add a P_ZOMBIE() macro, which treats a proc in SZOMB or SDEAD as a zombie,
and update various parts of the kernel to reflect the new state.

Revision 1.112.8.1 / (download) - annotate - [select for diffs], Mon Jun 21 01:24:04 1999 UTC (23 years, 7 months ago) by thorpej
Branch: chs-ubc2
Changes since 1.112: +1 -24 lines
Diff to previous 1.112 (colored)

Sync w/ -current.

Revision 1.113 / (download) - annotate - [select for diffs], Sun Apr 25 02:56:30 1999 UTC (23 years, 9 months ago) by simonb
Branch: MAIN
Changes since 1.112: +1 -24 lines
Diff to previous 1.112 (colored)

g/c REAL_CLISTS.

Revision 1.112 / (download) - annotate - [select for diffs], Fri Sep 11 12:50:11 1998 UTC (24 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-4-base, netbsd-1-4-RELEASE, netbsd-1-4-PATCH003, netbsd-1-4-PATCH002, netbsd-1-4-PATCH001, netbsd-1-4, kenh-if-detach-base, kenh-if-detach, kame_14_19990705, kame_14_19990628, kame_141_19991130, kame, chs-ubc-base, chs-ubc
Branch point for: chs-ubc2
Changes since 1.111: +15 -13 lines
Diff to previous 1.111 (colored)

Substantial signal handling changes:
* Increase the size of sigset_t to accomodate 128 signals -- adding new
  versions of sys_setprocmask(), sys_sigaction(), sys_sigpending() and
  sys_sigsuspend() to handle the changed arguments.
* Abstract the guts of sys_sigaltstack(), sys_setprocmask(), sys_sigaction(),
  sys_sigpending() and sys_sigsuspend() into separate functions, and call them
  from all the emulations rather than hard-coding everything.  (Avoids uses
  the stackgap crap for these system calls.)
* Add a new flag (p_checksig) to indicate that a process may have signals
  pending and userret() needs to do the full (slow) check.
* Eliminate SAS_ALTSTACK; it's exactly the inverse of SS_DISABLE.
* Correct emulation bugs with restoring SS_ONSTACK.
* Make the signal mask in the sigcontext always use the emulated mask format.
* Store signals internally in sigaction structures, rather than maintaining a
  bunch of little sigsets for each SA_* bit.
* Keep track of where we put the signal trampoline, rather than figuring it out
  in *_sendsig().
* Issue a warning when a non-emulated sigaction bit is observed.
* Add missing emulated signals, and a native SIGPWR (currently not used).
* Implement the `not reset when caught' semantics for relevant signals.

Note: Only code touched by the i386 port has been modified.  Other ports and
emulations need to be updated.

Revision 1.111 / (download) - annotate - [select for diffs], Tue Sep 1 00:23:28 1998 UTC (24 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.110: +9 -3 lines
Diff to previous 1.110 (colored)

Use the pool allocator and the "nointr" pool page allocator for tty
structures.

Revision 1.110 / (download) - annotate - [select for diffs], Tue Aug 18 06:29:32 1998 UTC (24 years, 5 months ago) by thorpej
Branch: MAIN
Changes since 1.109: +3 -2 lines
Diff to previous 1.109 (colored)

Add some braces to make egcs happy (ambiguous else warning).

Revision 1.107.2.1 / (download) - annotate - [select for diffs], Sat Aug 8 03:06:57 1998 UTC (24 years, 6 months ago) by eeh
Branch: eeh-paddr_t
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored) next main 1.108 (colored)

Revert cdevsw mmap routines to return int.

Revision 1.109 / (download) - annotate - [select for diffs], Tue Aug 4 04:03:16 1998 UTC (24 years, 6 months ago) by perry
Branch: MAIN
Changes since 1.108: +7 -7 lines
Diff to previous 1.108 (colored)

Abolition of bcopy, ovbcopy, bcmp, and bzero, phase one.
  bcopy(x, y, z) ->  memcpy(y, x, z)
ovbcopy(x, y, z) -> memmove(y, x, z)
   bcmp(x, y, z) ->  memcmp(x, y, z)
  bzero(x, y)    ->  memset(x, 0, y)

Revision 1.108 / (download) - annotate - [select for diffs], Fri Jul 31 22:50:52 1998 UTC (24 years, 6 months ago) by perry
Branch: MAIN
Changes since 1.107: +3 -3 lines
Diff to previous 1.107 (colored)

fix sizeofs so they comply with the KNF style guide. yes, it is pedantic.

Revision 1.107 / (download) - annotate - [select for diffs], Sun Mar 22 00:55:38 1998 UTC (24 years, 10 months ago) by mycroft
Branch: MAIN
CVS Tags: eeh-paddr_t-base
Branch point for: eeh-paddr_t
Changes since 1.106: +58 -2 lines
Diff to previous 1.106 (colored)

Move the code to wait for carrier on a tty into a common function, since it
depends only on device-independent state bits.
Implement SunOS-style `dialout' devices.

Revision 1.106 / (download) - annotate - [select for diffs], Sat Mar 21 04:02:47 1998 UTC (24 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.105: +1 -9 lines
Diff to previous 1.105 (colored)

Replace TS_WOPEN with t_wopen, per mail on tech-kern.

Revision 1.105 / (download) - annotate - [select for diffs], Sun Mar 1 02:22:32 1998 UTC (24 years, 11 months ago) by fvdl
Branch: MAIN
Changes since 1.104: +2 -2 lines
Diff to previous 1.104 (colored)

Merge with Lite2 + local changes

Revision 1.1.1.3 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:12:57 1998 UTC (24 years, 11 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-2
Changes since 1.1.1.2: +12 -8 lines
Diff to previous 1.1.1.2 (colored)

Import 4.4BSD-Lite2

Revision 1.1.1.2 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 1 02:09:48 1998 UTC (24 years, 11 months ago) by fvdl
Branch: WFJ-920714, CSRG
CVS Tags: lite-1, date-03-may-96
Changes since 1.1.1.1: +1923 -1 lines
Diff to previous 1.1.1.1 (colored)

Import 4.4BSD-Lite for reference

Revision 1.104 / (download) - annotate - [select for diffs], Sat Feb 14 01:26:50 1998 UTC (24 years, 11 months ago) by thorpej
Branch: MAIN
Changes since 1.103: +6 -1 lines
Diff to previous 1.103 (colored)

Implement TIOCGSID.

Revision 1.103 / (download) - annotate - [select for diffs], Fri Feb 13 21:53:46 1998 UTC (24 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.102: +6 -5 lines
Diff to previous 1.102 (colored)

Add ONOCR and ONLRET output modes, from XPG4.2.

Revision 1.102 / (download) - annotate - [select for diffs], Thu Feb 12 20:39:44 1998 UTC (24 years, 11 months ago) by kleink
Branch: MAIN
Changes since 1.101: +2 -2 lines
Diff to previous 1.101 (colored)

Fix variable declarations:  register -> register int.

Revision 1.101 / (download) - annotate - [select for diffs], Fri Dec 12 12:49:40 1997 UTC (25 years, 2 months ago) by drochner
Branch: MAIN
Changes since 1.100: +4 -4 lines
Diff to previous 1.100 (colored)

Make ttyblock() work as intended and documented in canonical mode.
(operator precedence problem)
closes PR kern/2131 (Matthias Pfaller)

Revision 1.99.2.1 / (download) - annotate - [select for diffs], Tue Oct 28 01:59:37 1997 UTC (25 years, 3 months ago) by thorpej
Branch: netbsd-1-3
CVS Tags: netbsd-1-3-RELEASE, netbsd-1-3-PATCH003-CANDIDATE2, netbsd-1-3-PATCH003-CANDIDATE1, netbsd-1-3-PATCH003-CANDIDATE0, netbsd-1-3-PATCH003, netbsd-1-3-PATCH002, netbsd-1-3-PATCH001, netbsd-1-3-BETA
Changes since 1.99: +3 -1 lines
Diff to previous 1.99 (colored) next main 1.100 (colored)

Pull up from trunk: defopt UCONSOLE.

Revision 1.100 / (download) - annotate - [select for diffs], Tue Oct 28 01:53:52 1997 UTC (25 years, 3 months ago) by thorpej
Branch: MAIN
Changes since 1.99: +3 -1 lines
Diff to previous 1.99 (colored)

defopt UCONSOLE

Revision 1.99 / (download) - annotate - [select for diffs], Sun Oct 19 20:35:21 1997 UTC (25 years, 3 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-3-base
Branch point for: netbsd-1-3
Changes since 1.98: +4 -6 lines
Diff to previous 1.98 (colored)

Count characters even when !OPOST and FLUSHO.
Don't output the \r for ONLCR if FLUSHO.

Revision 1.96.4.1 / (download) - annotate - [select for diffs], Tue Oct 14 10:26:17 1997 UTC (25 years, 3 months ago) by thorpej
Branch: marc-pcmcia
Changes since 1.96: +8 -8 lines
Diff to previous 1.96 (colored) next main 1.97 (colored)

Update marc-pcmcia branch from trunk.

Revision 1.98 / (download) - annotate - [select for diffs], Thu Oct 9 12:59:56 1997 UTC (25 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: marc-pcmcia-base
Changes since 1.97: +7 -7 lines
Diff to previous 1.97 (colored)

Make various standard wmesg strings const.

Revision 1.97 / (download) - annotate - [select for diffs], Thu Oct 9 12:49:52 1997 UTC (25 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.96: +2 -2 lines
Diff to previous 1.96 (colored)

Make wmesg arguments to various functions const.

Revision 1.96.6.1 / (download) - annotate - [select for diffs], Mon Sep 8 23:10:37 1997 UTC (25 years, 5 months ago) by thorpej
Branch: thorpej-signal
Changes since 1.96: +4 -4 lines
Diff to previous 1.96 (colored) next main 1.97 (colored)

Significantly restructure the way signal state for a process is stored.
Rather than using bitmasks to redundantly store the information kept
in the process's sigacts (because the sigacts was kept in the u-area),
hang sigacts directly off the process, and access it directly.

Simplify signal setup code tremendously by storing information in
the sigacts as an array of struct sigactions, rather than in a different
format, since userspace uses sigactions.

Make sigacts sharable by adding reference counting.

Revision 1.96 / (download) - annotate - [select for diffs], Fri Jun 20 10:50:11 1997 UTC (25 years, 7 months ago) by kleink
Branch: MAIN
CVS Tags: thorpej-signal-base, marc-pcmcia-bp, bouyer-scsipi
Branch point for: thorpej-signal, marc-pcmcia
Changes since 1.95: +19 -15 lines
Diff to previous 1.95 (colored)

Add some robustness to ttymodem(), e.g. do not SIGHUP when there hasn't been
an actual carrier transition; from Charles M. Hannum.

Revision 1.95 / (download) - annotate - [select for diffs], Wed Jun 18 15:32:33 1997 UTC (25 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.94: +4 -1 lines
Diff to previous 1.94 (colored)

When a background process attempts to TIOC[CS]BRK (a.k.a. tcsendbreak()) or
TIOCSTART (a.k.a tcflow()), send its process group a SIGTTOU.

Revision 1.94 / (download) - annotate - [select for diffs], Tue Jun 17 20:41:59 1997 UTC (25 years, 7 months ago) by kleink
Branch: MAIN
Changes since 1.93: +29 -15 lines
Diff to previous 1.93 (colored)

Rewrote break/parity/framing error handling from spec.

Revision 1.93 / (download) - annotate - [select for diffs], Thu May 22 17:35:42 1997 UTC (25 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.92: +4 -2 lines
Diff to previous 1.92 (colored)

If the pgrp_id argument of TIOCSPGRP (a.k.a. tcsetpgrp()) does not specify
an existing process group, return EINVAL.

Revision 1.92 / (download) - annotate - [select for diffs], Tue May 20 13:11:33 1997 UTC (25 years, 8 months ago) by kleink
Branch: MAIN
Changes since 1.91: +2 -1 lines
Diff to previous 1.91 (colored)

When a background process attempts to TIOCDRAIN (a.k.a. tcdrain()), send
its process group a SIGTTOU signal.

Revision 1.91 / (download) - annotate - [select for diffs], Sat May 17 00:19:02 1997 UTC (25 years, 8 months ago) by thorpej
Branch: MAIN
Changes since 1.90: +2 -2 lines
Diff to previous 1.90 (colored)

Fix printf format botch.

Revision 1.90 / (download) - annotate - [select for diffs], Fri May 16 21:39:59 1997 UTC (25 years, 8 months ago) by gwr
Branch: MAIN
Changes since 1.89: +12 -11 lines
Diff to previous 1.89 (colored)

Eliminate vmspace.vm_pmap and all references to it unless
__VM_PMAP_HACK is defined (for temporary compatibility).
The __VM_PMAP_HACK code should be removed after all the
ports that define it have removed all vm_pmap references.

Revision 1.89 / (download) - annotate - [select for diffs], Mon Apr 7 16:09:28 1997 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.88: +2 -2 lines
Diff to previous 1.88 (colored)

Fix a CRNL/NLCR botch I made after looking this up in the X/Open spec.
Fixes PR 3453; from John Kohl and Enami Tsugutomo.

Revision 1.88 / (download) - annotate - [select for diffs], Sun Apr 6 14:44:44 1997 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.87: +8 -2 lines
Diff to previous 1.87 (colored)

Add some clarification about the TTBREAKC macro's purpose; suggested by
Chris G. Demetriou.

Revision 1.87 / (download) - annotate - [select for diffs], Sun Apr 6 08:15:17 1997 UTC (25 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.86: +2 -2 lines
Diff to previous 1.86 (colored)

fix missing parenthesis in TTBREAKC()

Revision 1.86 / (download) - annotate - [select for diffs], Sat Apr 5 21:40:34 1997 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.85: +6 -3 lines
Diff to previous 1.85 (colored)

If TOSTOP is set, and the process group of the writing process is orphaned,
and the writing process is not ignoring or blocking SIGTTOU, do not signal
the process but return EIO.

Revision 1.85 / (download) - annotate - [select for diffs], Sat Apr 5 19:50:18 1997 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.84: +6 -6 lines
Diff to previous 1.84 (colored)

Recognize EOL2 as a delimiter/"break" character only if IEXTEN is set.

Revision 1.84 / (download) - annotate - [select for diffs], Fri Apr 4 21:05:00 1997 UTC (25 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.83: +5 -5 lines
Diff to previous 1.83 (colored)

Remove unintended piece of last change.

Revision 1.83 / (download) - annotate - [select for diffs], Fri Apr 4 21:02:28 1997 UTC (25 years, 10 months ago) by mycroft
Branch: MAIN
Changes since 1.82: +22 -28 lines
Diff to previous 1.82 (colored)

Fix several bugs related to MDMBUF.  Also, remove the partial handling from
ttymodem(); it's not complete, it's better done in the driver, and only the
com driver ever supported it anyway.

Revision 1.82 / (download) - annotate - [select for diffs], Fri Apr 4 15:10:34 1997 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.81: +4 -1 lines
Diff to previous 1.81 (colored)

As specified in POSIX.1 (and termios(4)!), when cc[VMIN]==0 a read() shall
be satisfied by any amount of data actually read.

Revision 1.81 / (download) - annotate - [select for diffs], Thu Apr 3 14:24:45 1997 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.80: +53 -46 lines
Diff to previous 1.80 (colored)

WERASE, REPRINT, STATUS and DSUSP are extensions to the POSIX.1 GTI
set of special characters: recognize them only if IEXTEN is set.

Revision 1.80 / (download) - annotate - [select for diffs], Wed Apr 2 03:23:01 1997 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.79: +2 -2 lines
Diff to previous 1.79 (colored)

KNF glitch in last commit, pointed out by Chris G. Demetriou.

Revision 1.79 / (download) - annotate - [select for diffs], Wed Apr 2 03:11:27 1997 UTC (25 years, 10 months ago) by kleink
Branch: MAIN
Changes since 1.78: +10 -1 lines
Diff to previous 1.78 (colored)

Implement OCRNL "\r" -> "\n" tty output translation.
Fixes PR standards/3434.

Revision 1.78 / (download) - annotate - [select for diffs], Sat Mar 29 23:26:27 1997 UTC (25 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.77: +7 -1 lines
Diff to previous 1.77 (colored)

PR/3396: Klaus Klein: If CREAD is not set drop incoming data.

Revision 1.77 / (download) - annotate - [select for diffs], Fri Oct 25 22:11:39 1996 UTC (26 years, 3 months ago) by cgd
Branch: MAIN
CVS Tags: thorpej-setroot, mrg-vm-swap, is-newarp-before-merge, is-newarp-base, is-newarp
Changes since 1.76: +3 -3 lines
Diff to previous 1.76 (colored)

don't thow away char_type's 'const'ness via a cast when passing it to scanc().
(1) that causes -Wcast-qual to be unhappy, and (2) the cast is unnecessary!

Revision 1.76 / (download) - annotate - [select for diffs], Sun Oct 13 02:32:45 1996 UTC (26 years, 3 months ago) by christos
Branch: MAIN
Changes since 1.75: +2 -2 lines
Diff to previous 1.75 (colored)

backout previous kprintf change

Revision 1.75 / (download) - annotate - [select for diffs], Thu Oct 10 22:46:31 1996 UTC (26 years, 4 months ago) by christos
Branch: MAIN
Changes since 1.74: +2 -2 lines
Diff to previous 1.74 (colored)

printf -> kprintf, sprintf -> ksprintf

Revision 1.74 / (download) - annotate - [select for diffs], Sat Sep 7 12:41:02 1996 UTC (26 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.73: +29 -25 lines
Diff to previous 1.73 (colored)

Implement poll(2).

Revision 1.68.4.2 / (download) - annotate - [select for diffs], Thu Jun 6 16:04:52 1996 UTC (26 years, 8 months ago) by thorpej
Branch: netbsd-1-2
CVS Tags: netbsd-1-2-RELEASE, netbsd-1-2-PATCH001, netbsd-1-2-BETA
Changes since 1.68.4.1: +13 -2 lines
Diff to previous 1.68.4.1 (colored) to branchpoint 1.68 (colored) next main 1.69 (colored)

Pull up changes from revision 1.73, per Matt's request.

Revision 1.73 / (download) - annotate - [select for diffs], Thu Jun 6 15:31:24 1996 UTC (26 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.72: +4 -2 lines
Diff to previous 1.72 (colored)

don't tty_detach() in ttyfree().  make the user of ttyfree() do
the tty_detach() as not all ttymalloc()'ed ttys are tty_attach()ed.

Revision 1.72 / (download) - annotate - [select for diffs], Tue Jun 4 13:59:10 1996 UTC (26 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.71: +10 -1 lines
Diff to previous 1.71 (colored)

add a comment on how to use tty_attach().

Revision 1.68.4.1 / (download) - annotate - [select for diffs], Sun Jun 2 09:08:08 1996 UTC (26 years, 8 months ago) by mrg
Branch: netbsd-1-2
Changes since 1.68: +46 -2 lines
Diff to previous 1.68 (colored)

pull up tty stats "bug fix".

Revision 1.71 / (download) - annotate - [select for diffs], Thu May 30 23:43:31 1996 UTC (26 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.70: +6 -2 lines
Diff to previous 1.70 (colored)

a few minor KNF nits

Revision 1.70 / (download) - annotate - [select for diffs], Thu May 30 23:32:33 1996 UTC (26 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.69: +2 -2 lines
Diff to previous 1.69 (colored)

check tty_count first (from cgd).

Revision 1.69 / (download) - annotate - [select for diffs], Wed May 29 02:04:22 1996 UTC (26 years, 8 months ago) by mrg
Branch: MAIN
Changes since 1.68: +41 -1 lines
Diff to previous 1.68 (colored)

impliment ttylist stats based on disk stats.

Revision 1.68 / (download) - annotate - [select for diffs], Fri Mar 29 01:55:12 1996 UTC (26 years, 10 months ago) by christos
Branch: MAIN
CVS Tags: netbsd-1-2-base
Branch point for: netbsd-1-2
Changes since 1.67: +3 -3 lines
Diff to previous 1.67 (colored)

Fix another printf format warning.

Revision 1.67 / (download) - annotate - [select for diffs], Sat Mar 16 23:17:15 1996 UTC (26 years, 10 months ago) by christos
Branch: MAIN
Changes since 1.66: +3 -3 lines
Diff to previous 1.66 (colored)

Fix printf() formats.

Revision 1.66 / (download) - annotate - [select for diffs], Fri Feb 9 19:00:38 1996 UTC (27 years ago) by christos
Branch: MAIN
Changes since 1.65: +5 -10 lines
Diff to previous 1.65 (colored)

More proto fixes

Revision 1.65 / (download) - annotate - [select for diffs], Sun Feb 4 02:17:15 1996 UTC (27 years ago) by christos
Branch: MAIN
Changes since 1.64: +44 -36 lines
Diff to previous 1.64 (colored)

First pass at prototyping

Revision 1.63.2.1 / (download) - annotate - [select for diffs], Fri Feb 2 06:12:22 1996 UTC (27 years ago) by mycroft
Branch: netbsd-1-1
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored) next main 1.64 (colored)

Bring in changes for mondo patch 2.

Revision 1.64 / (download) - annotate - [select for diffs], Wed Jan 10 20:52:27 1996 UTC (27 years, 1 month ago) by pk
Branch: MAIN
Changes since 1.63: +2 -2 lines
Diff to previous 1.63 (colored)

Correct test for ECHONL (from der Mouse; PR#1922).

Revision 1.63 / (download) - annotate - [select for diffs], Tue Oct 10 01:26:57 1995 UTC (27 years, 4 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-1-1-base, netbsd-1-1-RELEASE, netbsd-1-1-PATCH001
Branch point for: netbsd-1-1
Changes since 1.62: +7 -4 lines
Diff to previous 1.62 (colored)

Add hooks for COMPAT_FREEBSD, from Noriyuki Soda.

Revision 1.62 / (download) - annotate - [select for diffs], Fri Sep 22 00:11:35 1995 UTC (27 years, 4 months ago) by cgd
Branch: MAIN
Changes since 1.61: +18 -8 lines
Diff to previous 1.61 (colored)

fix annoying but non-critical rounding but in ttyinfo().  (If
microseconds goes over 10^6 when rounding, increment seconds.)

Revision 1.61 / (download) - annotate - [select for diffs], Sun Jul 2 18:13:02 1995 UTC (27 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.60: +2 -2 lines
Diff to previous 1.60 (colored)

Close routines take file flags, not I/O flags.  Fix two incorrect usages.

Revision 1.60 / (download) - annotate - [select for diffs], Sun Jun 4 14:01:37 1995 UTC (27 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.59: +7 -5 lines
Diff to previous 1.59 (colored)

Only do software flow control if IXOFF is set.  Also fix hardware flow control
case in ttyblock().

Revision 1.59 / (download) - annotate - [select for diffs], Sun Jun 4 12:57:52 1995 UTC (27 years, 8 months ago) by mycroft
Branch: MAIN
Changes since 1.58: +5 -5 lines
Diff to previous 1.58 (colored)

Use ISSET() and CLR() in two cases.

Revision 1.58 / (download) - annotate - [select for diffs], Wed Apr 19 18:46:10 1995 UTC (27 years, 9 months ago) by mycroft
Branch: MAIN
Changes since 1.57: +2 -2 lines
Diff to previous 1.57 (colored)

Change ttselect() to use a callback to get the tty structure.

Revision 1.57 / (download) - annotate - [select for diffs], Thu Nov 17 20:27:13 1994 UTC (28 years, 2 months ago) by christos
Branch: MAIN
Changes since 1.56: +4 -4 lines
Diff to previous 1.56 (colored)

Added ifdef COMPAT_SVR4 to the kernel compat code needed.

Revision 1.56 / (download) - annotate - [select for diffs], Sun Oct 30 22:11:05 1994 UTC (28 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.55: +2 -2 lines
Diff to previous 1.55 (colored)

Change argument list of ttioctl() to match other ioctl functions.

Revision 1.55 / (download) - annotate - [select for diffs], Sun Oct 30 21:47:54 1994 UTC (28 years, 3 months ago) by cgd
Branch: MAIN
Changes since 1.54: +3 -2 lines
Diff to previous 1.54 (colored)

be more careful with types, also pull in headers where necessary.

Revision 1.54 / (download) - annotate - [select for diffs], Mon Oct 24 09:09:06 1994 UTC (28 years, 3 months ago) by mycroft
Branch: MAIN
Changes since 1.53: +3 -3 lines
Diff to previous 1.53 (colored)

Fix a bug I introduced in the last commit, regarding a VTIME timeout causing
EWOULDBLOCK to be returned rather than looping again to see if any characters
are pending.  Also, fix another bug in the original code; if someone changed
VMIN behind our back, last_cc might be uninitialized when we reference it.

Revision 1.53 / (download) - annotate - [select for diffs], Wed Oct 12 13:38:16 1994 UTC (28 years, 4 months ago) by mycroft
Branch: MAIN
Changes since 1.52: +2 -9 lines
Diff to previous 1.52 (colored)

Remove the need for some untimeouts.

Revision 1.49.2.2 / (download) - annotate - [select for diffs], Sun Sep 18 18:36:30 1994 UTC (28 years, 4 months ago) by cgd
Branch: netbsd-1-0
CVS Tags: netbsd-1-0-RELEASE, netbsd-1-0-PATCH1, netbsd-1-0-PATCH06, netbsd-1-0-PATCH05, netbsd-1-0-PATCH04, netbsd-1-0-PATCH03, netbsd-1-0-PATCH02, netbsd-1-0-PATCH0
Changes since 1.49.2.1: +2 -2 lines
Diff to previous 1.49.2.1 (colored) to branchpoint 1.49 (colored) next main 1.50 (colored)

latest fix, from trunk, per theo.

Revision 1.52 / (download) - annotate - [select for diffs], Sun Sep 18 18:32:51 1994 UTC (28 years, 4 months ago) by deraadt
Branch: MAIN
Changes since 1.51: +2 -2 lines
Diff to previous 1.51 (colored)

fix PR#484 relating to backspacing over a tab.

Revision 1.51 / (download) - annotate - [select for diffs], Tue Aug 30 03:06:07 1994 UTC (28 years, 5 months ago) by mycroft
Branch: MAIN
Changes since 1.50: +3 -3 lines
Diff to previous 1.50 (colored)

Convert process, file, and namei lists and hash tables to use queue.h.

Revision 1.49.2.1 / (download) - annotate - [select for diffs], Wed Aug 3 03:51:00 1994 UTC (28 years, 6 months ago) by cgd
Branch: netbsd-1-0
Changes since 1.49: +4 -1 lines
Diff to previous 1.49 (colored)

from trunk

Revision 1.50 / (download) - annotate - [select for diffs], Tue Aug 2 08:45:46 1994 UTC (28 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.49: +4 -1 lines
Diff to previous 1.49 (colored)

Clear t_flags on first open.

Revision 1.49 / (download) - annotate - [select for diffs], Wed Jun 29 06:33:20 1994 UTC (28 years, 7 months ago) by cgd
Branch: MAIN
CVS Tags: netbsd-1-0-base
Branch point for: netbsd-1-0
Changes since 1.48: +2041 -1 lines
Diff to previous 1.48 (colored)

New RCS ID's, take two.  they're more aesthecially pleasant, and use 'NetBSD'

Revision 1.48 / (download) - annotate - [select for diffs], Wed May 25 09:58:53 1994 UTC (28 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.47: +1 -1 lines
Diff to previous 1.47 (colored)

use u_char's instead of char's; else the TTY_QUOTE bit can get accidentally
be set.

Revision 1.47 / (download) - annotate - [select for diffs], Thu May 12 03:48:33 1994 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.46: +1 -1 lines
Diff to previous 1.46 (colored)

upgrade to 4.4-Lite's tty code.  our bug fixes included, some might need GC.

Revision 1.46 / (download) - annotate - [select for diffs], Thu May 5 05:38:35 1994 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.45: +1 -1 lines
Diff to previous 1.45 (colored)

lots of changes: prototype migration, move lots of variables, definitions,
and structure elements around.  kill some unnecessary type and macro
definitions.  standardize clock handling.  More changes than you'd want.

Revision 1.45 / (download) - annotate - [select for diffs], Wed May 4 03:42:06 1994 UTC (28 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.44: +1 -1 lines
Diff to previous 1.44 (colored)

Rename a lot of process flags.

Revision 1.44 / (download) - annotate - [select for diffs], Sat Apr 9 22:35:00 1994 UTC (28 years, 10 months ago) by deraadt
Branch: MAIN
Changes since 1.43: +1 -1 lines
Diff to previous 1.43 (colored)

FIONREAD plays with an int, not an off_t.

Revision 1.43 / (download) - annotate - [select for diffs], Fri Mar 18 04:01:15 1994 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.42: +1 -1 lines
Diff to previous 1.42 (colored)

fix somebody's typo

Revision 1.42 / (download) - annotate - [select for diffs], Fri Mar 18 03:48:30 1994 UTC (28 years, 10 months ago) by cgd
Branch: MAIN
Changes since 1.41: +1 -1 lines
Diff to previous 1.41 (colored)

add hw input flow control support

Revision 1.41 / (download) - annotate - [select for diffs], Sat Mar 5 22:42:54 1994 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.40: +1 -1 lines
Diff to previous 1.40 (colored)

Don't do TIOCHPCL if !COMPAT_43.  In the new world, you use termios.

Revision 1.40 / (download) - annotate - [select for diffs], Sun Feb 20 17:24:19 1994 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.39: +1 -1 lines
Diff to previous 1.39 (colored)

Return a legitimate value from ttylclose().

Revision 1.39 / (download) - annotate - [select for diffs], Sun Feb 20 16:56:56 1994 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.38: +1 -1 lines
Diff to previous 1.38 (colored)

Don't send SIGINFO if ISIG off.

Revision 1.38 / (download) - annotate - [select for diffs], Sun Feb 20 16:55:10 1994 UTC (28 years, 11 months ago) by mycroft
Branch: MAIN
Changes since 1.37: +1 -1 lines
Diff to previous 1.37 (colored)

Some formatting changes.

Revision 1.37 / (download) - annotate - [select for diffs], Mon Feb 14 18:22:39 1994 UTC (28 years, 11 months ago) by ws
Branch: MAIN
Changes since 1.36: +1 -1 lines
Diff to previous 1.36 (colored)

(Hopefully) do the right thing with VTIME > 0 and select

Revision 1.36 / (download) - annotate - [select for diffs], Wed Feb 9 21:06:46 1994 UTC (29 years ago) by mycroft
Branch: MAIN
Changes since 1.35: +1 -1 lines
Diff to previous 1.35 (colored)

All ioctl routines take a struct proc * now.

Revision 1.35 / (download) - annotate - [select for diffs], Tue Feb 1 15:09:52 1994 UTC (29 years ago) by deraadt
Branch: MAIN
Changes since 1.34: +1 -1 lines
Diff to previous 1.34 (colored)

more untimouts needed, from someone at freebsd

Revision 1.34 / (download) - annotate - [select for diffs], Fri Jan 28 11:32:43 1994 UTC (29 years ago) by deraadt
Branch: MAIN
Changes since 1.33: +1 -1 lines
Diff to previous 1.33 (colored)

undo totally misguided changes from Andrew Chernov in rev. 1.7:
RTS has nothing to do with ttyblock()
also, close a race.

Revision 1.33 / (download) - annotate - [select for diffs], Sun Jan 23 06:06:21 1994 UTC (29 years ago) by deraadt
Branch: MAIN
Changes since 1.32: +1 -1 lines
Diff to previous 1.32 (colored)

more COMPAT_SUNOS changes.

Revision 1.32 / (download) - annotate - [select for diffs], Fri Jan 7 19:13:30 1994 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.31: +1 -1 lines
Diff to previous 1.31 (colored)

do the *right* thing with resident set size

Revision 1.31 / (download) - annotate - [select for diffs], Fri Jan 7 17:51:24 1994 UTC (29 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.30: +1 -1 lines
Diff to previous 1.30 (colored)

really fix the tab code

Revision 1.30 / (download) - annotate - [select for diffs], Wed Jan 5 16:25:37 1994 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.29: +1 -1 lines
Diff to previous 1.29 (colored)

from Mike Karels <karels@bsdi.com>: clear the PENDIN flag if ICANON
is cleared, and retain the PENDIN flag if set when ICANON is set

Revision 1.29 / (download) - annotate - [select for diffs], Thu Dec 30 12:05:16 1993 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.28: +1 -1 lines
Diff to previous 1.28 (colored)

print out what we think is the resident set size.  very nasty; the field
in the proc's vmspace struct should be updated, but isn't...
Also, if the process is a zombie or infantile, don't print, because
that could cause a null pointer deref.

Revision 1.28 / (download) - annotate - [select for diffs], Fri Dec 24 01:07:40 1993 UTC (29 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.27: +1 -1 lines
Diff to previous 1.27 (colored)

OXTABS expansion was putting fewer than the required spaces if the clists
became full. we now retry the tab expansion later.

Revision 1.27 / (download) - annotate - [select for diffs], Mon Dec 20 12:42:36 1993 UTC (29 years, 1 month ago) by cgd
Branch: MAIN
Changes since 1.26: +1 -1 lines
Diff to previous 1.26 (colored)

load average changes from magnum

Revision 1.26 / (download) - annotate - [select for diffs], Sat Dec 18 04:22:05 1993 UTC (29 years, 1 month ago) by mycroft
Branch: MAIN
Changes since 1.25: +1 -1 lines
Diff to previous 1.25 (colored)

Canonicalize all #includes.

Revision 1.25 / (download) - annotate - [select for diffs], Thu Dec 16 18:09:08 1993 UTC (29 years, 1 month ago) by deraadt
Branch: MAIN
Changes since 1.24: +1 -1 lines
Diff to previous 1.24 (colored)

fix from Daniel Harris <daniel@werple.apana.org.au>
VTIME code must untimeout

Revision 1.24 / (download) - annotate - [select for diffs], Mon Dec 13 14:40:31 1993 UTC (29 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.23: +1 -1 lines
Diff to previous 1.23 (colored)

VMIN/VTIME support from Marc Teitelbaum <marc@vangogh.cs.berkeley.edu>

Revision 1.22.2.6 / (download) - annotate - [select for diffs], Thu Dec 9 23:12:00 1993 UTC (29 years, 2 months ago) by deraadt
Branch: magnum
Changes since 1.22.2.5: +1 -1 lines
Diff to previous 1.22.2.5 (colored) to branchpoint 1.22 (colored) next main 1.23 (colored)

update to trunk

Revision 1.23 / (download) - annotate - [select for diffs], Thu Dec 9 22:58:17 1993 UTC (29 years, 2 months ago) by deraadt
Branch: MAIN
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (colored)

echo ^V^? correctly as ^?. From Edward Wang <edward@homer.CS.Berkeley.EDU>

Revision 1.22.2.5 / (download) - annotate - [select for diffs], Sun Nov 14 21:17:57 1993 UTC (29 years, 2 months ago) by mycroft
Branch: magnum
Changes since 1.22.2.4: +1 -1 lines
Diff to previous 1.22.2.4 (colored) to branchpoint 1.22 (colored)

Canonicalize all #includes.

Revision 1.22.2.4 / (download) - annotate - [select for diffs], Mon Oct 18 06:46:52 1993 UTC (29 years, 3 months ago) by deraadt
Branch: magnum
Changes since 1.22.2.3: +1 -1 lines
Diff to previous 1.22.2.3 (colored) to branchpoint 1.22 (colored)

#ifdef COMPAT_43
	->
#if defined(COMPAT_43) || defined(COMPAT_SUNOS)
in a few places

Revision 1.22.2.3 / (download) - annotate - [select for diffs], Thu Sep 30 17:04:02 1993 UTC (29 years, 4 months ago) by deraadt
Branch: magnum
Changes since 1.22.2.2: +1 -1 lines
Diff to previous 1.22.2.2 (colored) to branchpoint 1.22 (colored)

calcru() calculates times from ticks.

Revision 1.22.2.2 / (download) - annotate - [select for diffs], Fri Sep 24 08:51:43 1993 UTC (29 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.22.2.1: +1 -1 lines
Diff to previous 1.22.2.1 (colored) to branchpoint 1.22 (colored)

Make all files using spl*() #include cpu.h.  Changes from trunk.
init_main.c: New method of pseudo-device of initialization.
kern_clock.c: hardclock() and softclock() now take a pointer to a clockframe.
softclock() only does callouts.
kern_synch.c: Remove spurious declaration of endtsleep().  Adjust uses of
averunnable for new struct loadav.
subr_prf.c: Allow printf() formats in panic().
tty.c: averunnable changes.
vfs_subr.c: va_size and va_bytes are now quads.

Revision 1.22.2.1 / (download) - annotate - [select for diffs], Tue Sep 14 18:24:25 1993 UTC (29 years, 4 months ago) by mycroft
Branch: magnum
Changes since 1.22: +1 -1 lines
Diff to previous 1.22 (colored)

init_main.c:  clock changes from 4.4; initclocks() is called after vfsinit().
No startrtclock() or enablertclock().  Some pseudo-device cruft, but this needs
to be updated.
kern_clock.c:  from 4.4: gatherstats() --> statclock().  statclock(),
hardclock(), and softclock() take a `struct clockframe *'.  New initclocks(),
harclock(), statclock(), startprofclock(), and stopprofclock().
kern_synch.c:  from 4.4: machine-independent swtch(), which is now where
process time is integrated.  Calls cpu_swtch() with the current process as an
arg.
subr_autoconf.c:  Fix typo.
subr_prf.c:  msgbufp and msgbufmapped are define in machdep.c
tty.c:  Make TIOCHPCL #ifdef COMPAT_43.
Incorporate changes from main branch.

Revision 1.22 / (download) - annotate - [select for diffs], Mon Aug 23 16:36:42 1993 UTC (29 years, 5 months ago) by mycroft
Branch: MAIN
CVS Tags: magnum-base
Branch point for: magnum
Changes since 1.21: +1 -1 lines
Diff to previous 1.21 (colored)

If ospeed is set to 0, SIGHUP the session leader (if any).

Revision 1.21 / (download) - annotate - [select for diffs], Sun Aug 1 19:26:03 1993 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.20: +1 -1 lines
Diff to previous 1.20 (colored)

Add RCS identifiers (this time on the correct side of the branch), and
incorporate recent changes in netbsd-0-9 branch.

Revision 1.20.2.2 / (download) - annotate - [select for diffs], Sat Jul 31 12:17:01 1993 UTC (29 years, 6 months ago) by cgd
Branch: netbsd-0-9
CVS Tags: netbsd-0-9-patch-001, netbsd-0-9-RELEASE, netbsd-0-9-BETA, netbsd-0-9-ALPHA2
Changes since 1.20.2.1: +1 -0 lines
Diff to previous 1.20.2.1 (colored) to branchpoint 1.20 (colored) next main 1.21 (colored)

give names, err, wmesg's, to my "pain" -- i.e. convert sleep() to tsleep()

Revision 1.20.2.1, Mon Jul 19 05:52:30 1993 UTC (29 years, 6 months ago) by cgd
Branch: netbsd-0-9
Changes since 1.20: +0 -1 lines
FILE REMOVED

file tty.c was added on branch netbsd-0-9 on 1993-07-31 12:17:01 +0000

Revision 1.20 / (download) - annotate - [select for diffs], Mon Jul 19 05:52:30 1993 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
CVS Tags: netbsd-0-9-base, netbsd-0-9-ALPHA
Branch point for: netbsd-0-9
Changes since 1.19: +1 -1 lines
Diff to previous 1.19 (colored)

Move flushq() macro into tty.h.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Jul 19 05:48:01 1993 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.18: +1 -1 lines
Diff to previous 1.18 (colored)

Use flushq() macro instead.

Revision 1.18 / (download) - annotate - [select for diffs], Mon Jul 19 05:13:36 1993 UTC (29 years, 6 months ago) by mycroft
Branch: MAIN
Changes since 1.17: +1 -1 lines
Diff to previous 1.17 (colored)

Use ndflush(), not while(getc()).

Revision 1.17 / (download) - annotate - [select for diffs], Mon Jul 12 11:16:07 1993 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.16: +1 -1 lines
Diff to previous 1.16 (colored)

Change tty code to use clist interface, but with ring buffer implementation.
Also, fix a couple of bugs in tty.c and pccons.c, and some gross kluginess
in the hp300 stuff.

Revision 1.16 / (download) - annotate - [select for diffs], Sun Jul 11 07:22:52 1993 UTC (29 years, 7 months ago) by cgd
Branch: MAIN
Changes since 1.15: +1 -1 lines
Diff to previous 1.15 (colored)

re-add two changes which had been deleted by commit of r1.7

Revision 1.15 / (download) - annotate - [select for diffs], Fri Jul 2 03:11:11 1993 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.14: +1 -1 lines
Diff to previous 1.14 (colored)

Blasted ftpd!

Revision 1.14 / (download) - annotate - [select for diffs], Fri Jul 2 03:04:51 1993 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.13: +1 -1 lines
Diff to previous 1.13 (colored)

Fix bugs in rb_write and rb_cwrite, and make tab handling use rb_cwrite.

Revision 1.13 / (download) - annotate - [select for diffs], Thu Jul 1 00:22:10 1993 UTC (29 years, 7 months ago) by mycroft
Branch: MAIN
Changes since 1.12: +1 -1 lines
Diff to previous 1.12 (colored)

Fix a situation where we might forget to splx().

Revision 1.12 / (download) - annotate - [select for diffs], Sun Jun 27 06:06:14 1993 UTC (29 years, 7 months ago) by andrew
Branch: MAIN
Changes since 1.11: +1 -1 lines
Diff to previous 1.11 (colored)

* ansifications
* question about whether the "tp->t_state |= TS_ISOPEN" in ttyopen() should
  be shifted to the end of the block in which it appears.

Revision 1.11 / (download) - annotate - [select for diffs], Sun Jun 20 04:52:53 1993 UTC (29 years, 7 months ago) by andrew
Branch: MAIN
Changes since 1.10: +1 -1 lines
Diff to previous 1.10 (colored)

Fixed ECHONL.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Jun 6 23:05:12 1993 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.9: +1 -1 lines
Diff to previous 1.9 (colored)

make getc() and ungetc() be rb{un,}getc(), so getc() and ungetc()
don't conflict w/ansi prototypes...

Revision 1.9 / (download) - annotate - [select for diffs], Wed May 26 10:06:41 1993 UTC (29 years, 8 months ago) by deraadt
Branch: MAIN
Changes since 1.8: +1 -1 lines
Diff to previous 1.8 (colored)

tty dynamic allocation

Revision 1.8 / (download) - annotate - [select for diffs], Tue May 18 18:19:27 1993 UTC (29 years, 8 months ago) by cgd
Branch: MAIN
Changes since 1.7: +1 -1 lines
Diff to previous 1.7 (colored)

make kernel select interface be one-stop shopping & clean it all up.

Revision 1.7 / (download) - annotate - [select for diffs], Thu May 13 20:58:26 1993 UTC (29 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.6: +1 -1 lines
Diff to previous 1.6 (colored)

various 8-bit patches from Andrew Chernov <ache@astral.msk.su>
tty_compat.c is cleaned up, as is STOP+TIOCSTI in tty.c

Revision 1.6 / (download) - annotate - [select for diffs], Thu May 13 06:42:56 1993 UTC (29 years, 9 months ago) by cgd
Branch: MAIN
Changes since 1.5: +1 -1 lines
Diff to previous 1.5 (colored)

from Luke Mewburn <zak@rmit.edu.au>:
add TIOCSTAT ioctl to give load average stats if requested (for tcsh)

Revision 1.5 / (download) - annotate - [select for diffs], Mon May 10 23:15:37 1993 UTC (29 years, 9 months ago) by deraadt
Branch: MAIN
Changes since 1.4: +1 -1 lines
Diff to previous 1.4 (colored)

ring buffer now uses rbchar's (shorts) instead of chars.

Revision 1.4 / (download) - annotate - [select for diffs], Wed Mar 24 20:22:51 1993 UTC (29 years, 10 months ago) by sef
Branch: MAIN
CVS Tags: netbsd-alpha-1, netbsd-0-8
Changes since 1.3: +1 -1 lines
Diff to previous 1.3 (colored)

Oops.  Inserted at the wrong place.

Revision 1.3 / (download) - annotate - [select for diffs], Wed Mar 24 19:41:48 1993 UTC (29 years, 10 months ago) by sef
Branch: MAIN
Changes since 1.2: +1 -1 lines
Diff to previous 1.2 (colored)

Handle one-word cases in word-erase.

Revision 1.2 / (download) - annotate - [select for diffs], Sun Mar 21 18:04:42 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN
CVS Tags: patchkit-0-2-2
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

after 0.2.2 "stable" patches applied

Revision 1.1.1.1 / (download) - annotate - [select for diffs] (vendor branch), Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: WFJ-920714, CSRG
CVS Tags: WFJ-386bsd-01
Changes since 1.1: +1 -1 lines
Diff to previous 1.1 (colored)

initial import of 386bsd-0.1 sources

Revision 1.1 / (download) - annotate - [select for diffs], Sun Mar 21 09:45:37 1993 UTC (29 years, 10 months ago) by cgd
Branch: MAIN

Initial revision

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>