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

Re: audio(9) manual page

2014-06-24 Thread Alexander Polakov
* Jason McIntyre j...@kerhand.co.uk [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?

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. -- Alexander

ksh completion for [, :, $

2011-02-04 Thread Alexander Polakov
)/* 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
); return (0); #endif default: -- Alexander Polakov | plhk.ru

Re: ksh completion

2011-03-15 Thread Alexander Polakov
]) || strchr(ifs, s[add])) { if (putbuf_func(s, add) != 0) { rval = -1; -- Alexander Polakov | plhk.ru

Re: ksh completion

2011-03-24 Thread Alexander Polakov
* Alexander Polakov polac...@gmail.com [110315 23:26]: * Federico G. Schwindt fg...@lodoss.net [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 that /bin/[ exists). Else, can you

Re: ksh completion

2011-04-05 Thread Alexander Polakov
* Alexander Polakov polac...@gmail.com [110324 15:48]: * Alexander Polakov polac...@gmail.com [110315 23:26]: * Federico G. Schwindt fg...@lodoss.net [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

Re: ksh completion

2011-05-02 Thread Alexander Polakov
* Martynas Venckus marty...@venck.us [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 recently). closes pr 6006 too. comments/ok? The diff is a workaround and even

Re: ksh completion

2011-05-09 Thread Alexander Polakov
* Alexander Polakov polac...@gmail.com [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/edit.c

Re: ksh completion

2011-05-10 Thread Alexander Polakov
* LEVAI Daniel l...@ecentrum.hu [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 polac...@gmail.com [110502 18:19

Re: Fan mode management in acpithinkpad(4)

2011-05-13 Thread Alexander Polakov
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 AMD-powered, so 60 degrees is *normal* for it. With this diff the fan is always running at max speed, generating lots of noise. -- Alexander Polakov | plhk.ru

script(1): read input from file

2011-05-19 Thread Alexander Polakov
); done(1); } -- Alexander Polakov | plhk.ru

cwm: utf-8 diff

2011-05-27 Thread Alexander Polakov
, len); } XftFont * -- Alexander Polakov | plhk.ru

misc. ksh diffs

2011-05-30 Thread Alexander Polakov
); if (nwords == 0) { vi_error(); -- 1.7.5 -- Alexander Polakov | plhk.ru

Re: sdn allocation and umass(4)

2011-06-24 Thread Alexander Polakov
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 sdn device? hotplugd(8) -- Alexander Polakov | plhk.ru

Re: cwm: menu border + typo

2011-07-14 Thread Alexander Polakov
* Alexander Polakov polac...@gmail.com [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. - Redraw

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
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 = 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
) + group_movetogroup(cc, tc-group-shortcut - 1); default: /* do nothing */ break; -- Alexander Polakov | plhk.ru

cwm: group_movetogroup() fix

2011-12-28 Thread Alexander Polakov
); } /* -- Alexander Polakov | plhk.ru

Re: Fix cwm cycle

2011-12-31 Thread Alexander Polakov
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
; -- Alexander Polakov | plhk.ru

Re: cwm: tab-completion

2012-01-22 Thread Alexander Polakov
* Alexander Polakov polac...@gmail.com [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 again and start

diff: improving msdosfs write speed for large files

2012-04-04 Thread Alexander Polakov
/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 alexan...@beard.se [120404 16:16]: Alexander Polakov polac...@gmail.com 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/ 2m22.48s real 0m0.02s user

Re: diff: improving msdosfs write speed for large files

2012-04-05 Thread Alexander Polakov
(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 {

[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,

[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 err.h #include errno.h #include getopt.h +#include locale.h #include signal.h #include stdlib.h #include string.h @@ -62,6 +63,9 @@ main(int argc, char **argv) char

[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 s...@spacehopper.org [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 a bug

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

2012-04-08 Thread Alexander Polakov
* Stuart Henderson s...@spacehopper.org [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 'altpersist' It didn't

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

2012-04-08 Thread Alexander Polakov
* Ted Unangst t...@tedunangst.com [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-patch

Re: cwm tiling

2012-06-09 Thread Alexander Polakov
* Tobias Ulmer tobi...@tmux.org [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 here, badly. No, I am

Re: cwm tiling

2012-06-09 Thread Alexander Polakov
* Thomas Pfaff tpf...@tp76.info [120608 23:06]: On Fri, 8 Jun 2012 13:57:35 -0400 Okan Demirmen o...@demirmen.com wrote: On Fri 2012.06.08 at 19:40 +0200, Thomas Pfaff wrote: On Sun, 3 Jun 2012 21:07:13 +0400 Alexander Polakov p...@sdf.org wrote: I'd like to start a discussion

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

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

Re: pdksh wrong strips quotes in shell substs

2012-08-11 Thread Alexander Polakov
* Philip Guenther guent...@gmail.com [120810 00:45]: On Thu, Aug 9, 2012 at 5:31 AM, Mark Kettenis mark.kette...@xs4all.nl wrote: Date: Thu, 9 Aug 2012 11:30:13 +0200 From: Landry Breuil lan...@rhaalovely.net ... in the context of https://bugzilla.mozilla.org/show_bug.cgi?id=781461 i've

Re: pdksh wrong strips quotes in shell substs

2012-08-12 Thread Alexander Polakov
* Philip Guenther guent...@gmail.com [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 heredoc case

[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

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

2012-08-27 Thread Alexander Polakov
* Jonas Jonasson jonas.jonas...@safe-mail.net [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

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

2012-09-02 Thread Alexander Polakov
, 0x, 0x}, 0, 0 + }, + + { /* Other ATI video until further notice */ { PCI_VENDOR_ATI, 0x, 0x, 0x }, { 0x, 0x, 0x, 0x}, 1, 0 * Alexander Polakov p...@sdf.org [120902 21:40]: Suspending system

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

2012-09-03 Thread Alexander Polakov
* Theo de Raadt dera...@cvs.openbsd.org [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 -

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.

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 o...@demirmen.com [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 p...@sdf.org [121030 14:40]: * Okan Demirmen o...@demirmen.com [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 use

Re: cwm reload support

2012-10-31 Thread Alexander Polakov
) -{ - XFreeColors(X_Dpy, DefaultColormap(X_Dpy, sc-which), pixel, 1, 0L); -} -- Alexander Polakov | plhk.ru

[cwm] tab completion

2012-11-06 Thread Alexander Polakov
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 p...@sdf.org [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, which can be used

uhub: retry attaching device

2013-01-20 Thread Alexander Polakov
: 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
root on sd0a (2c203a71c0f29eb5.a) swap on sd0b dump on sd0b sd1 at scsibus3 targ 1 lun 0: OPENBSD, SR CRYPTO, 005 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 p...@sdf.org [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 process

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

Re: ls(1) multibyte support

2011-01-04 Thread Alexander Polakov
* Stefan Sperling s...@stsp.name [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 not aware of)? Anyway, here's

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

Re: ls(1) multibyte support

2011-01-06 Thread Alexander Polakov
* Alexander Polakov polac...@gmail.com [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 FreeBSD). 0 value