[LUGOS-PROG] num & caps lock
Rok Pape?
rok.papez at kiss.uni-lj.si
Fri Apr 12 12:21:22 CEST 2002
Hi!
®ivjo!
On Thursday 11 April 2002 22:31, Andrej Lajovic wrote:
> return(ioctl(STDIN_FILENO, KDSKBLED, K_NUMLOCK));
iz "include/linux/kd.h":
// define za priziganje ledic
#define LED_SCR 0x01 /* scroll lock led */
#define LED_CAP 0x04 /* caps lock led */
#define LED_NUM 0x02 /* num lock led */
//define za vklapljanje tipk in ledic
#define K_SCROLLLOCK 0x01
#define K_CAPSLOCK 0x02
#define K_NUMLOCK 0x04
Mislim, da je razvidno kje je napaka :-).
> 2.4.13
Potrjujem napako na 2.4.18 in prilagam tale simplistic patch.
Postavi se v /usr/src/linux in naredi patch -p1 < /path/to/attached/patch. Na
novo prevedi svoj program (jedra ni treba prevajati) in zadeva bi morala
delovati.
Prilagam tudi svoj testni programæiæ.
--
best regards,
Rok Pape¾.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kd.h_patch
Type: text/x-c
Size: 834 bytes
Desc: not available
Url : http://liste2.lugos.si/pipermail/lugos-prog/attachments/20020412/0863c48a/kd-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cc.c
Type: text/x-c
Size: 597 bytes
Desc: not available
Url : http://liste2.lugos.si/pipermail/lugos-prog/attachments/20020412/0863c48a/cc-0001.bin
More information about the lugos-prog
mailing list