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
* 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?
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
)/* parsing heredoc */
+#define LQCHAR BIT(11) /* source string contains QCHAR */
#defineHERES 10 /* max in line */
--
Alexander Polakov | plhk.ru
);
return (0);
#endif
default:
--
Alexander Polakov | plhk.ru
]) ||
strchr(ifs, s[add])) {
if (putbuf_func(s, add) != 0) {
rval = -1;
--
Alexander Polakov | plhk.ru
* 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
* 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
* 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
* 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
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
);
done(1);
}
--
Alexander Polakov | plhk.ru
, len);
}
XftFont *
--
Alexander Polakov | plhk.ru
);
if (nwords == 0) {
vi_error();
--
1.7.5
--
Alexander Polakov | plhk.ru
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
* 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
:
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
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
rv = 0;
DNPRINTF(SR_D_MISC, %s: sr_detach\n, DEVNAME(sc));
--
Alexander Polakov | plhk.ru
)
+ group_movetogroup(cc, tc-group-shortcut - 1);
default:
/* do nothing */
break;
--
Alexander Polakov | plhk.ru
);
}
/*
--
Alexander Polakov | plhk.ru
a diff by request).
3) something really smart
Or we can kill the idea of most recently used goes first.
--
Alexander Polakov | plhk.ru
;
--
Alexander Polakov | plhk.ru
* 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
/the patch:
time cp huge.file /mnt/storage/
2m22.48s real 0m0.02s user 0m45.30s system
--
Alexander Polakov | plhk.ru
* 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
(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
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 *);
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 {
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,
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,
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
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];
* 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
* 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
* 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
* 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
* 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
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
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
* 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
* 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
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
* 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
, 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
* 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 -
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.
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
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
* 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
* 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
)
-{
- XFreeColors(X_Dpy, DefaultColormap(X_Dpy, sc-which), pixel, 1, 0L);
-}
--
Alexander Polakov | plhk.ru
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
* 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
: usbd_new_device failed,
error=%s\n, usbd_errstr(err)));
--
Alexander Polakov | plhk.ru
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
instead of
--
Alexander Polakov | plhk.ru
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
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
* 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
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
* 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
62 matches
Mail list logo