This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Sat, 2002-09-21 09:10:48 +0200, Jan-Benedict Glaw <jbglaw@lug-owl.de> wrote in message <20020921071048.GT13085@lug-owl.de>: > On Sat, 2002-09-21 06:07:53 +0100, Hermione Granger <herm_oh_ninny@hotmail.com> > wrote in message <F592a9jE11ojMcukgae0000f4e0@hotmail.com>: > > Dear gcc people, > > I'm trying to build a "keypressed routine" for linux. This is what I > > have so far. [...] > int temp = K_RAW; [...] > ioctl(keyboard_fd, KDSKBMODE, &temp); > ioctl(keyboard_fd, KDSKBMETA, &temp); [...] > ioctl(keyboard_fd, KDSKBMODE, &old_mode); > ioctl(keyboard_fd, KDSKBMETA, &meta_mode); Oh may, and it's buggy as well:-) The last argument isn't expected to be a pointer here, but only the value. Omit the leading "&"... MfG, JBG -- - Eine Freie Meinung in einem Freien Kopf für - einen Freien Staat voll Freier Bürger Gegen Zensur im Internet Jan-Benedict Glaw . jbglaw@lug-owl.de . +49-172-7608481 -- New APT-Proxy written in shell script -- http://lug-owl.de/~jbglaw/software/ap2/
Attachment:
msg00830/pgp00000.pgp
Description: PGP signature
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |