Bug 2859

Summary: linux/i2c.h header contains kernel-only definitions
Product: glibc Reporter: Bart Van Assche <bart.vanassche>
Component: libcAssignee: Ulrich Drepper <drepper.fsp>
Status: RESOLVED INVALID    
Severity: normal CC: glibc-bugs
Priority: P2 Flags: fweimer: security-
Version: 2.3.3   
Target Milestone: ---   
Host: x86_64-unknown-linux-gnu Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu Last reconfirmed:
Attachments: An example that demonstrates that <linux/i2c.h> gives compilation problems

Description Bart Van Assche 2006-06-28 07:54:07 UTC
The header <linux/i2c.h> is provided by glibc and is needed from user-space
because it contains the definitions of e.g. I2C_TENBIT, I2C_SLAVE, ... However,
it contains many declarations and definitions that only make sense when included
from within the kernel, and that make no sense in user-space (e.g.
i2c_master_send(), struct i2c_driver). Additionally, user-space C source files
that include <linux/i2c.h> do not compile.
Comment 1 Bart Van Assche 2006-06-28 07:57:10 UTC
Created attachment 1124 [details]
An example that demonstrates that <linux/i2c.h> gives compilation problems
Comment 2 Andreas Jaeger 2006-06-28 14:33:53 UTC
The linux headers are not part of glibc, they are added by your distribution and
come from the Linux kernel source package.

There's nothing we can do.