audio(9) manual page

2014-06-23 Thread Alexander Polakov
So I have been trying to write a new audio driver (for Xonar DS if anyone interested) and therefore reading audio(9). I was confused for a while by the use of "will" here. I think it's not clear enough that these functions should be called by the driver code. I'm not a native speaker, so may be i

Re: audio(9) manual page

2014-06-24 Thread Alexander Polakov
* Jason McIntyre [140625 00:41]: > On Tue, Jun 24, 2014 at 09:13:47AM +0200, Alexandre Ratchov wrote: > > I see what you mean. As the manual describes the interface between > > two layers we may need to be more precise about who calls who. > > Wouldn't the following be less ambigous? > > > > When

Re: ksh completion

2011-04-05 Thread Alexander Polakov
* Alexander Polakov [110324 15:48]: > * Alexander Polakov [110315 23:26]: > > * Federico G. Schwindt [110315 17:38]: > > > > I think I'm slightly confused as to you'd like fixed - do you mean that > > > > one shouldn't need to escape a '[&

Re: ksh completion

2011-05-02 Thread Alexander Polakov
* Martynas Venckus [110410 05:17]: > > hi, > > > > (this is a re-post) > > > > make tab completion work for '=', '`', '[', ':', and '$' - pulled from > > mksh by Alexander Polakov (also posted to tech recentl

Re: ksh completion

2011-05-09 Thread Alexander Polakov
* Alexander Polakov [110502 18:19]: > Do you mean something like this or I got it all wrong again and we > have to wait another 15 years for someone to dig into this? That diff was wrong, this one is likely less wrong. Index: bin/ksh/

Re: ksh completion

2011-05-10 Thread Alexander Polakov
* LEVAI Daniel [110510 14:33]: > On Tue, May 10, 2011 at 12:28:06 +0200, LEVAI Daniel wrote: > > On Tue, May 10, 2011 at 08:41:48 +0200, LEVAI Daniel wrote: > > > On Mon, May 09, 2011 at 23:48:46 +0400, Alexander Polakov wrote: > > > > * Alexander Polakov [110502

Re: Fan mode management in acpithinkpad(4)

2011-05-13 Thread Alexander Polakov
and it still works instead of being powering off by > > >acpitz(4). > > > > > User space will not be allowed to play. I don't have a stinkpad so I > can't test this but I do encourage people to play with this diff and > report to the list. My thinkpad is

script(1): read input from file

2011-05-19 Thread Alexander Polakov
; off < cc; ) { ssize_t n = write(master, ibuf + off, cc - off); if (n == -1 && errno != EAGAIN) @@ -303,7 +317,6 @@ doshell(void) void fail(void) { - (void)kill(0, SIGTERM); done(1); } -- Alexander Polakov | plhk.ru

cwm: utf-8 diff

2011-05-27 Thread Alexander Polakov
sc->xftcolor, sc->font, x, y, + (const unsigned char*)text, len); } XftFont * -- Alexander Polakov | plhk.ru

misc. ksh diffs

2011-05-30 Thread Alexander Polakov
mpletion. +* (see x_locate_word() for more on this) +*/ + pos = es->cursor; + if (command) { + pos += (isspace(es->cbuf[es->cursor]) ? 1 : 0); + if (pos > es->linelen) + pos = es->linelen; + } + /* XCF_FULLPATH for count 'cause the menu printed by print_expansions() * was done this way. */ nwords = x_cf_glob(XCF_COMMAND_FILE | (count ? XCF_FULLPATH : 0) | flags, - es->cbuf, es->linelen, es->cursor, + es->cbuf, es->linelen, pos, &start, &end, &words, &is_command); if (nwords == 0) { vi_error(); -- 1.7.5 -- Alexander Polakov | plhk.ru

Re: sd allocation and umass(4)

2011-06-24 Thread Alexander Polakov
; > > > sd(4) unit allocation will always be inconsistent and unpredicatable > > - DUIDs will let you avoid this entirely. > > > By the way, is there a way to mount umass(4) devices without looking at > dmesg for the number of the sd device? > hotplugd(8) -- Alexander Polakov | plhk.ru

cwm: menu border + typo

2011-07-14 Thread Alexander Polakov
| INACTIVEBORDER STRING { free(conf->color[CWM_COLOR_BORDER_INACTIVE].name); -- Alexander Polakov | plhk.ru

Re: cwm: menu border + typo

2011-07-14 Thread Alexander Polakov
* Alexander Polakov [110714 15:24]: > Adds a border around the menu window. I think it looks nicer with > border. I have more worthless cwm diffs, like: - Add "cycleingroup,rcycleingroup" Cycle through clients belonging to the same group as active client. - Redra

Re: Synaptics touchpad

2011-07-22 Thread Alexander Polakov
pms0 at pckbc0 (aux slot) wsmouse0 at pms0 mux 0 wsmouse1 at pms0 mux 0 pms0: Synaptics touchpad, firmware 7.4 -- Alexander Polakov | plhk.ru

ksh: dead assignments found by LLVM analyzer

2011-07-30 Thread Alexander Polakov
*emsgp = "bad file descriptor"; return -1; diff --git a/var.c b/var.c index 77d3969..d3a0554 100644 --- a/var.c +++ b/var.c @@ -830,7 +830,7 @@ is_wdvarassign(const char *s) char ** makenv(void) { - struct block *l = e->loc; + struct block *l; XPtrV env; struct tbl *vp, **vpp; int i; -- Alexander Polakov | plhk.ru

softraid detach routine

2011-07-31 Thread Alexander Polakov
rv; + int rv = 0; DNPRINTF(SR_D_MISC, "%s: sr_detach\n", DEVNAME(sc)); -- Alexander Polakov | plhk.ru

cwm: WM_TRANSIENT_FOR hint support

2011-08-31 Thread Alexander Polakov
f ((tc = client_find(trans)) && tc->group) + group_movetogroup(cc, tc->group->shortcut - 1); default: /* do nothing */ break; -- Alexander Polakov | plhk.ru

ksh: tab completion fix (again)

2012-09-26 Thread Alexander Polakov
I sent this diff in 2011 (?) with a bunch of other diffs. It fixes tab completion for filenames containing special characters like [], () and so. This code affects interactive mode only, and I don't know a way to do automated testing of this. Suggestions welcome. Index: edit.c ===

[hppa64] mkboot fix

2012-09-28 Thread Alexander Polakov
This allows mkboot make bootable lif's. mkboot compiled on amd64, tested with rp2470. Index: mkboot.c === RCS file: /cvs/src/sys/arch/hppa64/stand/mkboot/mkboot.c,v retrieving revision 1.2 diff -u -p -r1.2 mkboot.c --- mkboot.c27

Re: cwm reload support

2012-10-30 Thread Alexander Polakov
* Okan Demirmen [121030 04:10]: > will anyone miss reload support? one can always re-exec cwm, or any > other wm for a matter of fact. I don't know the keybinding for it. It's useless :-) -- Alexander Polakov | plhk.ru

Re: cwm reload support

2012-10-30 Thread Alexander Polakov
* Alexander Polakov [121030 14:40]: > * Okan Demirmen [121030 04:10]: > > will anyone miss reload support? one can always re-exec cwm, or any > > other wm for a matter of fact. > > I don't know the keybinding for it. It's useless :-) It seems people do really us

Re: cwm reload support

2012-10-31 Thread Alexander Polakov
FG_MENU].pixel, @@ -89,8 +87,6 @@ menu_init(struct screen_ctx *sc) gv.background = sc->color[CWM_COLOR_BG_MENU].pixel; gv.function = GXxor; - if (sc->gc) - XFreeGC(X_Dpy, sc->gc); sc->gc = XCreateGC(X_Dpy, sc->menuwin, GCForeground|GCBackground|GCFunction, &gv); } Index: xutil.c === RCS file: /cvs/xenocara/app/cwm/xutil.c,v retrieving revision 1.45 diff -u -p -u -r1.45 xutil.c --- xutil.c 13 Jul 2012 17:01:05 - 1.45 +++ xutil.c 31 Oct 2012 16:38:30 - @@ -429,9 +429,3 @@ xu_getcolor(struct screen_ctx *sc, char return (color.pixel); } - -void -xu_freecolor(struct screen_ctx *sc, unsigned long pixel) -{ - XFreeColors(X_Dpy, DefaultColormap(X_Dpy, sc->which), &pixel, 1, 0L); -} -- Alexander Polakov | plhk.ru

[cwm] tab completion

2012-11-06 Thread Alexander Polakov
esultq, mi, resultentry); + } + globfree(&g); +} + +void search_match_text(struct menu_q *menuq, struct menu_q *resultq, char *search) { struct menu *mi; @@ -194,6 +218,14 @@ search_match_exec(struct menu_q *menuq, if (mj == NULL) TAILQ_INSERT_TAIL(resultq, mi, resultentry); } +} + +void +search_match_exec_path(struct menu_q *menuq, struct menu_q *resultq, char *search) +{ + search_match_exec(menuq, resultq, search); + if (TAILQ_EMPTY(resultq)) + search_match_path(menuq, resultq, search); } static int -- Alexander Polakov | plhk.ru

Re: [cwm] tab completion

2012-11-06 Thread Alexander Polakov
* Alexander Polakov [121107 02:20]: > I think this one is ready for wider testing. > > How to use: hit tab in exec menu to complete the command (start > with / if you want something not in $PATH). When you're ready, > hit tab again. This will open "file menu", w

Re: [PATCH] cwm - maximizing in each direction

2013-01-05 Thread Alexander Polakov
iff (vtile): https://github.com/polachok/cwm-openbsd/commit/514f44cdc994ed764e1fb9211edcbb8198da82c9 -- Alexander Polakov | plhk.ru

uhub: retry attaching device

2013-01-20 Thread Alexander Polakov
DPRINTFN(-1,("uhub_explore: usbd_new_device failed, " "error=%s\n", usbd_errstr(err))); -- Alexander Polakov | plhk.ru

Re: vga diff for testing

2013-03-04 Thread Alexander Polakov
0 port 0x61 spkr0 at pcppi0 aps0 at isa0 port 0x1600/31 npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16 mtrr: Pentium Pro MTRR support ugen0 at uhub4 port 2 "STMicroelectronics Biometric Coprocessor" rev 1.00/0.01 addr 2 vscsi0 at root scsibus2 at vscsi0: 256 targets softraid0 at root scsibus3 at softraid0: 256 targets root on sd0a (2c203a71c0f29eb5.a) swap on sd0b dump on sd0b sd1 at scsibus3 targ 1 lun 0: SCSI2 0/direct fixed sd1: 37785MB, 512 bytes/sector, 77384592 sectors -- Alexander Polakov | plhk.ru

softraid(4) about boot support

2013-03-11 Thread Alexander Polakov
instead of -- Alexander Polakov | plhk.ru

Re: Reduce IPI traffic from signals

2013-04-19 Thread Alexander Polakov
Hello? I've been running with this diff since July without any issues (i386 & amd64). * Alexander Polakov [121213 18:34]: > This diff reduces IPI traffic for a case when process A is sending > a lot of signals to process B running on a different CPU. userret() > delivers all

ls(1) multibyte support

2011-01-04 Thread Alexander Polakov
Hi, I wonder if there any plans on adding multibyte support for ls(1)? Or maybe there's a reason why it's not a great idea (which I am not aware of)? Anyway, here's a patch I have. It's based on DragonFlyBSD's ls. diff -u ls/ls.c ls/ls.c --- ls/ls.c Wed Nov 24 17:39:05 2010 +++ ls/ls.c T

Re: ls(1) multibyte support

2011-01-04 Thread Alexander Polakov
* Stefan Sperling [110104 23:12]: > On Tue, Jan 04, 2011 at 09:14:51PM +0300, Alexander Polakov wrote: > > Hi, > > > > I wonder if there any plans on adding multibyte support for ls(1)? > > Or maybe there's a reason why it's not a great idea (which I am no

Re: ls(1) multibyte support

2011-01-05 Thread Alexander Polakov
Hi, here's an updated version. 1) en_US.UTF-8.src updates from FreeBSD 2) wcwidth() changed to use the same code as iswprint() * maybe just use iswprint() itself? 3) _RUNETYPE_SW0 changed to be !0 (and match FreeBSD). 0 value is used in mklocale to perform additional checks required for MAP

Re: ls(1) multibyte support

2011-01-06 Thread Alexander Polakov
* Alexander Polakov [110105 17:20]: > Hi, > > here's an updated version. > > 1) en_US.UTF-8.src updates from FreeBSD > 2) wcwidth() changed to use the same code as iswprint() >* maybe just use iswprint() itself? > 3) _RUNETYPE_SW0 changed to be !0 (and match

less(1) typo

2011-02-03 Thread Alexander Polakov
- 1.20 +++ less.1 3 Feb 2011 18:52:18 - @@ -1297,7 +1297,7 @@ .Pp If neither LESSCHARSET nor LESSCHARDEF is set, but the string "UTF-8" is found in the -.Ev LC_ALL , LC_TYPE +.Ev LC_ALL , LC_CTYPE or .Ev LANG environment variables, then the default character set is utf-8

ksh completion for [, :, $

2011-02-04 Thread Alexander Polakov
Feb 2011 17:58:48 - @@ -113,6 +113,7 @@ #define CMDWORD BIT(8) /* parsing simple command (alias related) */ #define HEREDELIM BIT(9) /* parsing <<,<<- delimiter */ #define HEREDOC BIT(10)/* parsing heredoc */ +#define LQCHAR BIT(11) /* source string contains QCHAR */ #defineHERES 10 /* max << in line */ -- Alexander Polakov | plhk.ru

thinkpad mute mic key

2011-03-13 Thread Alexander Polakov
ong)-1, (void*)(int)1); break; case KS_AudioRaise: workq_add_task(NULL, 0, (workq_fn)wskbd_set_mixervolume, - (void *)(long)1, NULL); + (void *)(long)1, (void*)(int)1); return (0); #endif default: -- Alexander Polakov | plhk.ru

Re: ksh completion

2011-03-15 Thread Alexander Polakov
for (add = 0, wlen = len; wlen - add > 0; add++) { - if (strchr("\"#$&'()*;<=>?[\\`{|}", s[add]) || + if (strchr(ESCAPEDCHARS, s[add]) || strchr(ifs, s[add])) { if (putbuf_func(s, add) != 0) { rval = -1; -- Alexander Polakov | plhk.ru

pread(2) inconsistency across file systems

2011-03-22 Thread Alexander Polakov
22 Mar 2011 16:52:57 - @@ -108,6 +108,8 @@ dprintf(("ntfs_read: filesize: %d",(u_int32_t)fp->f_size)); + if (uio->uio_offset < 0) + return (EINVAL); /* don't allow reading after end of file */ if (uio->uio_offset > fp->f_size) toread = 0; -- Alexander Polakov | plhk.ru

Re: ksh completion

2011-03-24 Thread Alexander Polakov
* Alexander Polakov [110315 23:26]: > * Federico G. Schwindt [110315 17:38]: > > > I think I'm slightly confused as to you'd like fixed - do you mean that > > > one shouldn't need to escape a '[' if it's the first character? (note > >

cwm: group_movetogroup() fix

2011-12-28 Thread Alexander Polakov
ps[idx], cc); + group_add(gc, cc); } /* -- Alexander Polakov | plhk.ru

Re: Fix cwm cycle

2011-12-31 Thread Alexander Polakov
extract keybinding search code from handle_keypress(), search for cycle keybinding and check for their modifier keys only (I can cook a diff by request). 3) something really smart Or we can kill the idea of "most recently used goes first". -- Alexander Polakov | plhk.ru

cwm: tab-completion

2012-01-19 Thread Alexander Polakov
eak; case XK_Up: *ctl = CTL_UP; -- Alexander Polakov | plhk.ru

Re: cwm: tab-completion

2012-01-22 Thread Alexander Polakov
* Alexander Polakov [120120 01:11]: > Sometimes I want to type something like "xterm -e top" in "exec" menu, > and feel the need for tab completion. And now a bigger thing on top of that. One can tab-complete command with the first menu entry, once ready, just hit tab a

diff: improving msdosfs write speed for large files

2012-04-04 Thread Alexander Polakov
ime cp huge.file /mnt/storage/ 4m5.87s real 0m0.04s user 0m17.56s system w/the patch: time cp huge.file /mnt/storage/ 2m22.48s real 0m0.02s user 0m45.30s system -- Alexander Polakov | plhk.ru

Re: diff: improving msdosfs write speed for large files

2012-04-04 Thread Alexander Polakov
* Alexander Hall [120404 16:16]: > Alexander Polakov wrote: > >tests: > > > >w/o the patch: > > time cp huge.file /mnt/storage/ > > 4m5.87s real 0m0.04s user 0m17.56s system > > > >w/the patch: > > time cp huge.file /mnt/storage/ >

Re: diff: improving msdosfs write speed for large files

2012-04-05 Thread Alexander Polakov
gt; + /* > + * Preserve value for the last cluster before extending the file > + * to speed up further lookups. > + */ > + fc_setcache(dep, FC_OLASTFC, dep->de_fc[FC_LASTFC].fc_frcn, > + dep->de_fc[FC_LASTFC].fc_fsrcn); > + > while (count > 0) { > /* >* Allocate a new cluster chain and cat onto the end of the -- Alexander Polakov | plhk.ru

[cwm patch 2/6] Focus MRU client when doing group_only()

2012-04-08 Thread Alexander Polakov
diff --git a/calmwm.h b/calmwm.h index b365983..9ac93b0 100644 --- a/calmwm.h +++ b/calmwm.h @@ -319,6 +319,7 @@ void client_map(struct client_ctx *); voidclient_maximize(struct client_ctx *); voidclient_move(struct client_ctx *);

[cwm patch 1/6] Implement shell-like tab-completion for menus

2012-04-08 Thread Alexander Polakov
window/application menu: tab completes the word. exec menu: tab completes the word, when at the end of the word file menu appears. diff --git a/calmwm.h b/calmwm.h index 3aaac3e..b365983 100644 --- a/calmwm.h +++ b/calmwm.h @@ -257,7 +257,7 @@ TAILQ_HEAD(cmd_q, cmd); struct menu { TAILQ_E

[cwm patch 4/6] Unmaximize window when moving it

2012-04-08 Thread Alexander Polakov
every window manager around does this, i guess diff --git a/client.c b/client.c index 74bb2e2..1daa4c2 100644 --- a/client.c +++ b/client.c @@ -438,7 +438,11 @@ client_resize(struct client_ctx *cc) void client_move(struct client_ctx *cc) { - XMoveWindow(X_Dpy, cc->win, cc->geom.x, cc->ge

[cwm patch 6/6] Make raise on click work as expected

2012-04-08 Thread Alexander Polakov
mousebind "1" window_raise I wonder if it breaks something. diff --git a/xevents.c b/xevents.c index ad000f8..33bc185 100644 --- a/xevents.c +++ b/xevents.c @@ -261,6 +261,7 @@ xev_handle_buttonpress(XEvent *ee) return; (*mb->callback)(cc, e); + XAllowEvents(X_Dpy

[cwm patch 5/6] Multibyte characters input for menus

2012-04-08 Thread Alexander Polakov
diff --git a/calmwm.c b/calmwm.c index 7e0df51..2ebd685 100644 --- a/calmwm.c +++ b/calmwm.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include @@ -62,6 +63,9 @@ main(int argc, char **argv) char*display_name = NULL; int

[cwm patch 3/6] Better modifier suppression detection

2012-04-08 Thread Alexander Polakov
The obvious solution: just check for every possible modifier. diff --git a/calmwm.h b/calmwm.h index 9ac93b0..2de9578 100644 --- a/calmwm.h +++ b/calmwm.h @@ -202,7 +202,7 @@ struct screen_ctx { Window menuwin; struct color color[CWM_COLOR_MAX];

Re: [cwm patch 1/6] Implement shell-like tab-completion for menus

2012-04-08 Thread Alexander Polakov
* Stuart Henderson [120408 13:42]: > On 2012/01/20 00:44, Alexander Polakov wrote: > > window/application menu: tab completes the word. > > exec menu: tab completes the word, when at the end > > of the word file menu appears. > > I like this quite a lot, but there is

Re: [cwm patch 3/6] Better modifier suppression detection

2012-04-08 Thread Alexander Polakov
* Stuart Henderson [120408 13:43]: > On 2012/01/20 00:15, Alexander Polakov wrote: > > The obvious solution: just check for every possible modifier. > > client.c: In function 'client_cycle': > client.c:641: error: 'struct screen_ctx' has no member named

Re: [cwm patch 1/6] Implement shell-like tab-completion for menus

2012-04-08 Thread Alexander Polakov
* Ted Unangst [120408 18:06]: > On Fri, Jan 20, 2012, Alexander Polakov wrote: > > I'm not sure how you got your clock so wrong, but I almost missed all > your mails because they did not show up where I expected them. My clock is fine, I sent the output of "git format-pat

[patch] compose LED on a usb keyboard

2012-04-18 Thread Alexander Polakov
(PCVT_SUPPORT) case SYSCONS: case PCVT: +#if defined(WSCONS_SUPPORT) /* XXX */ +ioctl(pInfo->fd, WSKBDIO_SETLEDS, &real_leds); +#else ioctl(pInfo->fd, KDSETLED, real_leds); +#endif break; #endif #if defined(WSCONS_SUPPORT) -- Alexander Polakov | plhk.ru

cwm tiling

2012-06-03 Thread Alexander Polakov
I'd like to start a discussion about adding tiling to cwm with these two diffs. First diff adds a helper function to get the area of the screen. I don't have a second screen here, so no idea if it works with Xinerama (please test!). Index: calmwm.h

Re: cwm tiling

2012-06-09 Thread Alexander Polakov
* Tobias Ulmer [120609 11:32]: > On Sun, Jun 03, 2012 at 09:07:13PM +0400, Alexander Polakov wrote: > > I'd like to start a discussion about adding tiling to cwm with > > these two diffs. > > How hard can it be to import spectrwm... You're reinventing the wheel &g

Re: cwm tiling

2012-06-09 Thread Alexander Polakov
* Thomas Pfaff [120608 23:06]: > On Fri, 8 Jun 2012 13:57:35 -0400 > Okan Demirmen wrote: > > > On Fri 2012.06.08 at 19:40 +0200, Thomas Pfaff wrote: > > > On Sun, 3 Jun 2012 21:07:13 +0400 > > > Alexander Polakov wrote: > > > > > > > I&#

Reduce IPI traffic from signals

2012-07-23 Thread Alexander Polakov
This diff reduces IPI traffic for a case when process A is sending a lot of signals to process B running on a different CPU. userret() delivers all process signals at once, so there is no need to send an interrupt for every signal. The problem was noticed by rtorrent 0.9.2 users, which does exactl

ACPI WMI project, need help

2012-07-30 Thread Alexander Polakov
Hi, I started working on porting ACPI WMI (WMI stands for Windows Management Instrumentation, it's ACPI extension by Microsoft) driver from NetBSD hoping it will help me with my HP Compaq 6910p problem [1]. Currently, device attaches, and I can do some simple stuff, like dumping its guids table

hpacel(4): HP 3D DriveGuard Accelerometer driver

2012-08-03 Thread Alexander Polakov
Here is a driver I ported from NetBSD while learning things about OpenBSD ACPI stack. Not very useful. hpacel0 at acpi0: HP 3D DriveGuard accelerometer hw.sensors.hpacel0.raw0=-14 (x-acceleration), OK hw.sensors.hpacel0.raw1=32 (y-acceleration), OK hw.sensors.hpacel0.raw2=957 (z-acceleration), O

Re: pdksh wrong strips quotes in shell substs

2012-08-11 Thread Alexander Polakov
* Philip Guenther [120810 00:45]: > On Thu, Aug 9, 2012 at 5:31 AM, Mark Kettenis wrote: > >> Date: Thu, 9 Aug 2012 11:30:13 +0200 > >> From: Landry Breuil > ... > >> in the context of https://bugzilla.mozilla.org/show_bug.cgi?id=781461 > >> i've stumbled upon the following issue: > >> (our pdks

Re: pdksh wrong strips quotes in shell substs

2012-08-12 Thread Alexander Polakov
* Philip Guenther [120812 18:50]: > On Sun, 12 Aug 2012, Alexander Polakov wrote: > Below is an expansion of your diff for tests/unclass2.t to cover the cases > discussed in this thread plus a couple others. > > > As for how to get the fix to cover all those cases: the here

Re: pdksh wrong strips quotes in shell substs

2012-08-15 Thread Alexander Polakov
Now with Philip's fix applied. * Philip Guenther [120815 15:40]: > On Sun, Aug 12, 2012 at 12:43 PM, Alexander Polakov wrote: > > Ok, second attempt > > Nice. One fix; > > > > @@ -342,7 +346,10 @@ > >

[cwm] ssh menu: match on any part of input

2012-08-24 Thread Alexander Polakov
I don't know about you guys, but: 1) I can recall last octet of an IP address more often than the first, 2) I have a lot of machines in the same /24 subnet. diff --git a/kbfunc.c b/kbfunc.c index 9bbf802..9f1fdb1 100644 --- a/kbfunc.c +++ b/kbfunc.c @@ -377,7 +377,7 @@ kbfunc_ssh(struct client_ct

Re: [cwm] ssh menu: match on any part of input

2012-08-27 Thread Alexander Polakov
* Jonas Jonasson [120827 13:02]: > > I don't know about you guys, but: > > > > 1) I can recall last octet of an IP address more often than the first, > > 2) I have a lot of machines in the same /24 subnet. > > Why not use globbing? Because it is slower to type and less convenient. > I find sea

Re: ThinkPad T60 x86emu panic on resume (w/patch)

2012-09-02 Thread Alexander Polakov
{ 0x, 0x, 0x, 0x}, 0, 0 + }, + + { /* Other ATI video until further notice */ { PCI_VENDOR_ATI, 0x, 0x, 0x }, { 0x, 0x, 0x, 0x}, 1, 0 * Alexander Polakov [120902 21:40]: &

Re: ThinkPad T60 x86emu panic on resume (w/patch)

2012-09-03 Thread Alexander Polakov
* Theo de Raadt [120903 00:13]: > > Index: vga_pci.c > > === > > RCS file: /cvs/src/sys/dev/pci/vga_pci.c,v > > retrieving revision 1.68 > > diff -u -r1.68 vga_pci.c > > --- vga_pci.c 22 Aug 2012 20:58:30 - 1.68 > > +++

Sync i386 NMI trap code with amd64

2012-09-03 Thread Alexander Polakov
Include isa.h to avoid confusion while reading the code (code wrapped into #if NISA > 0 is thrown out by cpp atm). No behaviour change, except for additional printf() before entering the debugger (which I find helpful). Ignore second chunk if you don't care about i386 and amd64 being the same. Btw

Re: ThinkPad T60 x86emu panic on resume (w/patch)

2012-09-04 Thread Alexander Polakov
* Alexander Polakov [120903 21:41]: > Now back to "underlying issues": x86emu executes some code which causes > parity check NMI (bit 7 set in port 0x61) to be generated, which causes > drop to the debugger (I mistook it for a panic). Nobody asked me which code exactly. But I