[PATCH 5/5] Recreate xkb/keymap/hurd from xkeyboard-config-1.8's xfree86 keymap.

2010-08-11 Thread Diego Nieto Cid
modified: xkb/keymap/hurd * Don't include inexistant symbol file: pc104. * en_US was replaced by pc(pc105). * Append us layout by default as pc(pc105) no longer describes a full keyboard. --- xkb/keymap/hurd | 294 +++ 1 file

[PATCH 3/5] Skip to main file's default section when needed.

2010-08-11 Thread Diego Nieto Cid
--- parser.y |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/parser.y b/parser.y index 93966e7..cf1ca33 100644 --- a/parser.y +++ b/parser.y @@ -1486,6 +1486,8 @@ parse_xkbconfig (char *xkbdir, char *xkbkeymapfile, char *xkbkeymap) if (xkbkeymap) skip_to

[PATCH 4/5] Update key type assigment routine.

2010-08-11 Thread Diego Nieto Cid
--- xkb.c | 47 +-- 1 files changed, 33 insertions(+), 14 deletions(-) diff --git a/xkb.c b/xkb.c index 9da51a2..00fa6e0 100644 --- a/xkb.c +++ b/xkb.c @@ -388,28 +388,47 @@ iskeypad (int width, int *sym) /* Get the keytype (the keytype determines wh

[PATCH 2/5] Lexer support for keycodes with +/- symbols and arbitrary level numbers.

2010-08-11 Thread Diego Nieto Cid
--- lex.l |3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/lex.l b/lex.l index 37b88c3..6ef9134 100644 --- a/lex.l +++ b/lex.l @@ -30,7 +30,7 @@ %option nodebug %option UNPUT -KEYCODE"<"[A-Z][A-Z0-9]*">" +KEYCODE"<"[A-Z][-+A-Z0-9]*">"

[PATCH 1/5] Add type to $$ in mid-rules.

2010-08-11 Thread Diego Nieto Cid
(see http://www.mail-archive.com/help-bi...@gnu.org/msg02159.html ) --- parser.y |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/parser.y b/parser.y index 9fe2a39..93966e7 100644 --- a/parser.y +++ b/parser.y @@ -336,8 +336,8 @@ mods: mods '+' rmod { $$.rmods = $1.rm

Re: [PATCH 1/8] Update the parser to work

2010-08-11 Thread Diego Nieto Cid
Hi, 2010/8/9 : > > Hm... Perhaps it would be better to send these individually? Seems like > they are rather independent; and it would be easier to review them one > by one... > No problem. I was somehow expecting this answer. :) -- TOC: 1. Add type to $$ in mid-rules. 2. Lexer support

Re: [PATCH 2/8] Avoid hashing garbage for short keynames.

2010-08-11 Thread Diego Nieto Cid
Hi, 2010/8/9 : > > Hm, why tmp[5]? The way I read the code, only 4 entries are used... > Well it's the null that terminates the string. But as this isn't used as a string it probably does not make much sense. > BTW, minor stylistic nitpick: I generally consider it clearer and more > robust to u

Re: [PATCH 0/8] Bring console-driver-xkb up to date

2010-08-11 Thread Diego Nieto Cid
> 2010/8/9 : > > Indeed. I'm not really familiar with the situation; but it sounds like > xkb never should have been an extra driver, but rather just an update > (perhaps on a development branch) of the normal pc_kbd driver -- with > the xkb code simply replacing the old keymap handling... > Old

Re: [PATCH] Add support to send file descriptors over Unix sockets

2010-08-11 Thread Emilio Pozuelo Monfort
Hi, On 01/08/10 21:02, Carl Fredrik Hammar wrote: > On Tue, Jul 27, 2010 at 08:08:36PM +0200, Emilio Pozuelo Monfort wrote: >> >> This patch adds support for SCM_RIGHTS to glibc. It works fine >> when sending file descriptors from a socket() or a socketpair() call, >> but not from e.g. an open() c

Re: sleep in microsecond or nanosecond

2010-08-11 Thread Thomas Bushnell, BSG
The current technique is to use a blocking mach_msg which will never complete, and with a timeout. The reason that nanosleep and usleep don't work is because 10ms is the granularity of the Mach clock. Changing the interface here isn't the issue so much as changing the implementation. Thomas On M

news 2010-07: great work Thomas!

2010-08-11 Thread Arne Babenhauserheide
Hi Thomas, I just read the enhanced version of the news on the static site, and it’s wonderful! Many thanks for improving it and making it much more personal! - Arne PS: for microblogging: - dent: https://identi.ca/notice/45803005 - tweet: https://twitter.com/ArneBab/status/20887244862 s

Re: [PATCH 0/8] Bring console-driver-xkb up to date

2010-08-11 Thread olafBuddenhagen
Hi, On Wed, Aug 04, 2010 at 04:19:58AM -0300, Diego Nieto Cid wrote: >The past couple of weeks I've been packaging Marco's input driver >for Arch Hurd and I've found that some changes were necesary to >make it work again. [...] >Only the first patch is strictly necesary to be able

Re: [PATCH 6/8] Add missing functions to input_driver_test.

2010-08-11 Thread olafBuddenhagen
Hi, On Wed, Aug 04, 2010 at 04:20:04AM -0300, Diego Nieto Cid wrote: > +void console_switch_back(void) > +{ > + puts("Switch back\n"); Hm... I'm slightly ambivalent about the use of puts(). It make a lot of sense technically in this case; and now that I think about it, I wonder why it isn't use

Re: preliminary patch for initrd support in Mach

2010-08-11 Thread olafBuddenhagen
Hi, On Tue, Aug 03, 2010 at 07:16:25PM -0400, Jeremie Koenig wrote: > On Sat, Jul 31, 2010 at 04:49:08PM +0200, Samuel Thibault wrote: > > Jérémie Koenig, le Sat 12 Jun 2010 19:05:20 +0200, a écrit : > > > @@ -128,7 +129,7 @@ > > > } > > >else > > > { > > > - int i, losers, max

Re: translators in submodules and copyright assignment

2010-08-11 Thread olafBuddenhagen
Hi, On Fri, Aug 06, 2010 at 08:18:13PM +0200, Arne Babenhauserheide wrote: > Since copyright assignment is a problem to some (i.e. those who > can???t be found anymore), would it be possible to just use submodules > for all translators which don???t have full copyright assignment? Hm... I'm not

Re: [PATCH 8/8] Use vfprintf in debug_printf and write to stderr.

2010-08-11 Thread olafBuddenhagen
Hi, On Wed, Aug 04, 2010 at 04:20:06AM -0300, Diego Nieto Cid wrote: > @@ -123,7 +123,7 @@ debug_printf (const char *f, ...) > >va_start (ap, f); > #ifdef XKB_DEBUG > - ret = printf (f, ap); > + ret = vfprintf (stderr, f, ap); > #endif >va_end (ap); Looks right :-) I guess the t

Re: [PATCH 7/8] Argument's default values are set independently.

2010-08-11 Thread olafBuddenhagen
Hi, On Wed, Aug 04, 2010 at 04:20:05AM -0300, Diego Nieto Cid wrote: > @@ -1748,6 +1748,9 @@ xkb_init (void **handle, int no_exit, int argc, char > **argv, int *next) >if (!arguments.xkbdir) > { >arguments.xkbdir = "/usr/share/X11/xkb"; > +} > + if (!arguments.keymapfile) >

Re: Fixing grub-probe to work with user-space part stores

2010-08-11 Thread olafBuddenhagen
Hi, On Sat, Aug 07, 2010 at 05:28:57PM +0200, Carl Fredrik Hammar wrote: > On Tue, Jul 27, 2010 at 08:22:14PM +0200, olafbuddenha...@gmx.net wrote: > > GRUB effectively needs a three-way mapping between filesystems, device > > node names, and GRUB device names. The mapping between GRUB devices an

Re: [PATCH 2/8] Avoid hashing garbage for short keynames.

2010-08-11 Thread olafBuddenhagen
Hi, On Wed, Aug 04, 2010 at 04:20:00AM -0300, Diego Nieto Cid wrote: > +static inline int > +keyname_hash(char *keyname) > +{ > + char tmp[5] = {0, 0, 0, 0, 0}; > + strncpy(tmp, keyname, 4); Hm, why tmp[5]? The way I read the code, only 4 entries are used... BTW, minor stylistic nitpick: I ge

Re: [PATCH 1/8] Update the parser to work with current XKB files.

2010-08-11 Thread olafBuddenhagen
Hi, On Wed, Aug 04, 2010 at 04:19:59AM -0300, Diego Nieto Cid wrote: > Squashed commits: > > * Add type to $$ in mid-rules.(see: > http://www.mail-archive.com/help-bi...@gnu.org/msg02159.html ) > > * Lexer support for keycodes with +/- symbols and arbitrary level > numbers. > > *

Re: sleep in microsecond or nanosecond

2010-08-11 Thread olafBuddenhagen
Hi, On Tue, Jul 06, 2010 at 08:44:30AM +0800, Da Zheng wrote: > I need a program to sleep in several microseconds, but neither > nanosleep() nor usleep() can work. They sleep at least 10ms. So it > seems the only option is to use loop and Linux kernel does so as well > for udelay() and ndelay().