summaryrefslogtreecommitdiffstats
path: root/sys/dev/syscons
Commit message (Collapse)AuthorAgeFilesLines
* Added dependency on the apm(4) module.ru2003-02-151-0/+1
|
* chase more of the MIN/MAX mess. *sigh*alfred2003-02-021-0/+3
|
* Remove M_TRYWAIT/M_WAITOK/M_WAIT. Callers should use 0.alfred2003-01-216-12/+12
| | | | Merge M_NOWAIT/M_DONTWAIT into a single flag M_NOWAIT.
* Do not try to work around ``poor (un)sign extension code''robert2002-10-201-11/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | creation by GCC-2.6.3. Casting pointers to unsigned char to volatile pointers to unsigned char seemed to produce better results on the ia32 architecture with old versions of GCC. The current FreeBSD system compiler GCC-3.2.1 emits better sign extension code for non-volatile variables: volatile char c; int i = c; is compiled to: ... movb -1(%ebp), %al movbsl %al, %eax movl %eax, -8(%ebp) ... char c; int i = c; is compiled to: ... movbsl -1(%ebp), %eax movl %eax, -8(%ebp) ... The same holds for zero-extension of dereferenced pointers to volatile unsigned char. When compiled on alpha or sparc64, the code produced for the two examples above does not differ.
* Make kqueue(2) work for virtual terminals.kbyanc2002-10-171-1/+2
| | | | | PR: 40486 Submitted by: Jilles Tjoelker <jilles+fbsd-bugs@stack.nl>
* Be consistent about "static" functions: if the function is markedphk2002-09-281-5/+5
| | | | | | static in its prototype, mark it static at the definition too. Inspired by: FlexeLint warning #512
* Replace various spelling with FALLTHROUGH which is lint()ablecharnier2002-08-251-2/+2
|
* Use machine/limits.h rather than userland limits.h (which may come frompeter2002-08-221-1/+1
| | | | the userland source tree, or even worse: /usr/include)
* Don't use "NULL" when "0" is really meant.archie2002-08-212-5/+5
|
* de-count schistory.c. The handling of NSC was rather bogus here and waspeter2002-08-191-4/+13
| | | | | | | | little more than a place holder, because nothing actually counted the number of 'sc' units to compare it against NSC. A bit more work here is needed so that the scaling of SC_MAX_HISTORY_SIZE and extra_history_size goes up when more sc units are added. But, it does not appear that we can have more than one console yet, so it does not seem particularly urgent.
* 1. Allow information about current history size be retrieved using ioctl(2);sobomax2002-08-191-5/+44
| | | | | 2. modify screen dumpung routine, so that in addition to visible area, it allows to grab any portion of history buffer as well.
* Add a VT_LOCKSWITCH ioctl that disallows vty switching. Somethingdd2002-07-102-0/+15
| | | | | | | | like this can be emulated by VT_SETMODEing to VT_PROCESS and never releasing the vty, but this has a number of problems, most notably that a process must stay resident for the lock to be in effect. Reviewed by: roam, sheldonh
* Make sc_saver_keyb_only (sceen saver interrupted by keyboard input only)alfred2002-06-061-1/+1
| | | | the default.
* When a program launched on the local console exits, the shell willmux2002-05-041-1/+2
| | | | | | | | call read() to get the next command, and scread() disables the screensaver. We don't want this behaviour in the sc_saver_keybonly case. Submitted by: Olivier Houchard <doginou@ci0.org>
* Turn on TGA support.obrien2002-04-133-5/+13
| | | | Submitted by: Andrew M. Miklic <AndrwMklc@cs.com>
* remove blanktime sysctl, this can't be done as easily as it looks.alfred2002-04-051-2/+0
| | | | Requested by: jhb
* Add some functionality via sysctl to syscons.alfred2002-04-051-1/+8
| | | | | | | | | | | hw.syscons.saver.keybonly: used to specify that only input is to interrupt the screensaver. This allows one to run a chatty console app but still have the screen blank out until a key is pressed. There should probably also be an ioctl for this, we'll do that later. hw.syscons.saver.blanktime: exports the screensaver timeout via sysctl. Submitted by: Olivier Houchard <doginou@cognet.ci0.org>
* Change the suser() API to take advantage of td_ucred as well as do ajhb2002-04-012-3/+3
| | | | | | | | | | | | general cleanup of the API. The entire API now consists of two functions similar to the pre-KSE API. The suser() function takes a thread pointer as its only argument. The td_ucred member of this thread must be valid so the only valid thread pointers are curthread and a few kernel threads such as thread0. The suser_cred() function takes a pointer to a struct ucred as its first argument and an integer flag as its second argument. The flag is currently only used for the PRISON_ROOT flag. Discussed on: smp@
* Remote newly unused variable to unbreak LINT.brooks2002-03-251-1/+1
| | | | Pointy hat to: amorita
* Add new graphical screen saver (dragon_saver).amorita2002-03-235-90/+490
| | | | Add support for NEC PC-9821 PEGC screen (fire/logo/rain/warp_saver).
* Remove __P.alfred2002-03-201-1/+1
|
* Extend CONS_GETINFO ioctl to provide information about size of the currentlysobomax2002-03-161-0/+1
| | | | | | displayed font. MFC after: 2 weeks
* Fixed compilation warnings.ru2002-03-061-0/+2
|
* Simple p_ucred -> td_ucred changes to start using the per-thread ucredjhb2002-02-271-1/+1
| | | | reference.
* Lock struct pgrp, session and sigio.tanimura2002-02-231-3/+20
| | | | | | | | | | | | | | | | | | | | | | | | | New locks are: - pgrpsess_lock which locks the whole pgrps and sessions, - pg_mtx which protects the pgrp members, and - s_mtx which protects the session members. Please refer to sys/proc.h for the coverage of these locks. Changes on the pgrp/session interface: - pgfind() needs the pgrpsess_lock held. - The caller of enterpgrp() is responsible to allocate a new pgrp and session. - Call enterthispgrp() in order to enter an existing pgrp. - pgsignal() requires a pgrp lock held. Reviewed by: jhb, alfred Tested on: cvsup.jp.FreeBSD.org (which is a quad-CPU machine running -current)
* Spell #if 0 correctlygallatin2002-02-141-2/+2
|
* In the word selection mode don't append newline if the word ends at thesobomax2002-01-051-0/+4
| | | | screen boundary.
* Fix POLA - when selecting line into syscons' cut'n'paste buffer (doublesobomax2001-11-251-0/+4
| | | | | | click) do not include newline into the buffer. This is exacly how things worked before my recent changes to the cut'n'paste code and how they work in 4-STABLE.
* More drive-by stylification, and some clarificationsdes2001-11-061-10/+16
|
* More drive-by stylificationdes2001-11-061-4/+4
|
* Drive-by stylification + reintroduce set_border().des2001-11-063-212/+219
|
* Some fix for the recent apm module changes.iwasaki2001-11-011-11/+3
| | | | | | | | | | | | | | - Now that apm loadable module can inform its existence to other kernel components (e.g. i386/isa/clock.c:startrtclock()'s TCS hack). - Exchange priority of SI_SUB_CPU and SI_SUB_KLD for above purpose. - Add simple arbitration mechanism for APM vs. ACPI. This prevents the kernel enables both of them. - Remove obsolete `#ifdef DEV_APM' related code. - Add abstracted interface for Powermanagement operations. Public apm(4) functions, such as apm_suspend(), should be replaced new interfaces. Currently only power_pm_suspend (successor of apm_suspend) is implemented. Reviewed by: peter, arch@ and audit@
* Add the TGA video driver. This is a great accomplishtment and will helpobrien2001-11-011-716/+168
| | | | | | | | us a lot on older Alphas. Andrew Gallatin, Thomas V. Crimi, and Peter Jeremy contributed to this work along with the submitter. Submitted by: Andrew M. Miklic <miklic@home.com>
* cn_tab no longer exists, use cnadd() to add a console device. Note thatjlemon2001-10-241-1/+1
| | | | this may result in duplicate console output in some cases.
* Enable console. There are far too many 'ifdef __i386__' in this file.dfr2001-10-061-7/+7
|
* o Modify syscons ioctl securelevel checks to use securelevel_gt() (oh look,rwatson2001-09-261-2/+3
| | | | | | yet another API to do direct hardware I/O access.) Obtained from: TrustedBSD Project
* Introduce new syscons(4) kernel options:sobomax2001-09-211-100/+91
| | | | | | | | | | | | | - SC_CUT_SPACES2TABS - when copying text into the cut buffer convert leading spaces into the tabs; - SC_CUT_SEPCHARS="XYZ" - treat supplied characters as possible words separators when the driver searches for words boundaries when doing cut operation. Also unify cut code a bit to decrease amount of duplicated code. This fixes line cut mode, so that it is no longer pads line with useless spaces. Approved by: ru
* KSE Milestone 2julian2001-09-128-35/+35
| | | | | | | | | | | | | | Note ALL MODULES MUST BE RECOMPILED make the kernel aware that there are smaller units of scheduling than the process. (but only allow one thread per process at this time). This is functionally equivalent to teh previousl -current except that there is a thread associated with each process. Sorry john! (your next MFC will be a doosie!) Reviewed by: peter@freebsd.org, dillon@freebsd.org X-MFC after: ha ha ha ha
* Fix some malformed macro concatenation that gcc-3 has objections about.peter2001-09-101-4/+4
|
* repo-copy the source files from modules/syscons to the normal treepeter2001-08-092-5/+13
| | | | and connect them to the normal build infrastructure.
* Don't call wakeup() while we are in DDB. The patch wasyokota2001-08-071-3/+16
| | | | | | developed by bde. I added the same check in one more place where wakeup() might be called during the DDB session. Submitted by: bde
* Use #ifdef DEV_SPLASH (from opt_splash.h) rather thanyokota2001-08-021-28/+28
| | | | | #if NSPLASH > 0 (from splash.h) to test the presence of the splash driver.
* Add FBIO_BLANK ioctl support. Return ENODEV for yet-to-be-yokota2001-08-021-0/+5
| | | | supported ioctls for now.
* Refine cursor type/shape control escape sequences andyokota2001-08-025-111/+215
| | | | | | | ioctls. We can now add ve, vi and vs capabilities to cons25 in termcap. Discussed with and tested by: ache
* Fix grammar nit.dd2001-08-011-1/+1
|
* - Fix "off by one" error in VT_WAITACTIVATE. Correctly acceptyokota2001-07-221-5/+5
| | | | | | | | 0 as meaning the requesting vty. - Accept 0 as the requesting vty in VT_ACTIVATE as in VT_WAITACTIVE. PR: 24423 MFC after: 10 days
* Fix off by one error for ESC[1J.yokota2001-07-201-1/+1
| | | | | PR: kern/18381 MFC after: 10 days
* Define a couple of subroutines to replace duplicated common code. Youyokota2001-07-201-65/+59
| | | | shoulnd't see any functional difference.
* - Define a convenience macro ISTTYOPEN().yokota2001-07-121-21/+28
| | | | | | | - Slightly refine screen saver logic. No functional change. MFC after: 2 weeks
* Fix dependencies between kernel options:yokota2001-07-105-17/+26
| | | | | | | | | | - When both SC_PIXEL_MODE and SC_NO_FONT_LOADING are defined, quietly drop SC_NO_FONT_LOADING, because the pixel(raster) console requires font. - When SC_NO_FONT_LOADING is defined, force SC_ALT_MOUSE_IMAGE. Without font, the arrow-shaped mouse cursor cannot be drawn. - Fiddle and simplify some internal macros. MFC after: 2 weeks
OpenPOWER on IntegriCloud