[prev in list] [next in list] [prev in thread] [next in thread] 

List:       linux-kernel
Subject:    Re: [PATCH]: problem: pc_keyb.h
From:       Martin Mares <mj () ucw ! cz>
Date:       2001-08-31 19:30:50
[Download RAW message or body]

Hello!

> Why can't I include pc_keyb.h directtly into a C program ?
> I need that for a part of GPM.

pc_keyb.h is a kernel include, thus it uses the kernel set of types
which unfortunately collides badly with the types used in user space.

The best solution is to create your own include and copy the
relevant parts of pc_keyb.h there.

BTW what exactly do you plan to do? Sending keyboard controller
or mouse controller commands from user space is probably very
dangerous as it's going to collide with the commands sent by the
kernel.
 
				Have a nice fortnight
-- 
Martin `MJ' Mares   <mj@ucw.cz>   http://atrey.karlin.mff.cuni.cz/~mj/
Faculty of Math and Physics, Charles University, Prague, Czech Rep., Earth
If a train station is where the train stops, what is a work station?
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic