Re: [PATCH] eventfd: new command

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi!

On Mon, 2010-08-23 at 18:05:19 +0200, Karel Zak wrote:
> On Thu, Aug 19, 2010 at 06:46:41PM +0300, Alexander Shishkin wrote:
> > +static const char *optdescs[] = {
> > +	"exec the main process without forking",
> > +	"echo a number into eventfd",
> > +	"eventfd variable name",
> > +	"command to launch upon signal arrival",
> > +	"initial value of the eventfd counter",
> > +	"print help message"
> > +};
> > +
> > +static void usage(int exitcode)
> > +{
> > +	int i;
> > +
> > +	printf(_("usage: %s [OPTIONS] <program> ...\n\n"
> > +		 "Create, write and poll eventfds.\nOPTIONS:\n"),
> > +		program_invocation_short_name);
> > +	for (i = 0; options[i].name; i++)
> > +		printf("  -%c, --%-10s %s\n", options[i].val, options[i].name,
> > +		       _(optdescs[i]));
> >
> 
> Interesting idea :-) ...

... although not working as currently implemented. The literal strings
would need to be marked with something like gettext_noop() or N_(), or
the gettext call will not find the translated strings on the domain as
xgettext will not have extracted them, nor they will have been
translated.

regards,
guillem
--
To unsubscribe from this list: send the line "unsubscribe util-linux-ng" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux