Bug 2859 - linux/i2c.h header contains kernel-only definitions
Summary: linux/i2c.h header contains kernel-only definitions
Status: RESOLVED INVALID
Alias: None
Product: glibc
Classification: Unclassified
Component: libc (show other bugs)
Version: 2.3.3
: P2 normal
Target Milestone: ---
Assignee: Ulrich Drepper
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-28 07:54 UTC by Bart Van Assche
Modified: 2016-05-17 18:21 UTC (History)
1 user (show)

See Also:
Host: x86_64-unknown-linux-gnu
Target: x86_64-unknown-linux-gnu
Build: x86_64-unknown-linux-gnu
Last reconfirmed:
fweimer: security-


Attachments
An example that demonstrates that <linux/i2c.h> gives compilation problems (127 bytes, text/plain)
2006-06-28 07:57 UTC, Bart Van Assche
Details

Note You need to log in before you can comment on or make changes to this bug.
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.