using linux kernel headers in KDE code

Thiago Macieira thiago at kde.org
Sat Apr 30 15:19:58 BST 2005


Matt Rogers wrote:
> What I _am_ looking for though, is a clarification as to whether the
> linux specific headers should be copied into kde's cvs or whether we
> should just use whatever headers are installed. i remember there being
> problems with linux kernel headers with kde in past, hence the reason
> for wanting the clarification.

That is what I recommend.

Copy the necessary stuff from the kernel headers into a private header of 
ours in CVS. The kernel ABI isn't supposed to change, so the most that 
can happen is use obsolete system calls or interfaces -- which they have 
to support.

Just be sure to not break ABI when cleaning up the kernel-specific stuff 
(__user, etc.). I.e., don't unpack packed structures, etc.

Do the constants and structures change from architecture to architecture?

-- 
  Thiago Macieira  -  thiago (AT) macieira (DOT) info
    PGP/GPG: 0x6EF45358; fingerprint:
    E067 918B B660 DBD1 105C  966C 33F5 F005 6EF4 5358

5. Swa he géanhwearf tó timbran, and hwonne he cóm, lá! Unix cwæð "Hello, 
World". Ǽfre ǽghwilc wæs glæd and seo woruld wæs fréo.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050430/619c651b/attachment.sig>


More information about the kde-core-devel mailing list