LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices

Reply
 
Search this Thread
Old 07-09-2010, 12:13 PM   #1
connie84911
LQ Newbie
 
Registered: Jan 2010
Posts: 24

Rep: Reputation: 0
Which files are "kernel header files"


I'm trying to make sure my program doesn't include any linux kernel header files. How can I determine if they are kernel headers?

Further, does including kernel header files make a program GPL?

Thanks
 
Old 07-09-2010, 01:49 PM   #2
irmin
Member
 
Registered: Jan 2010
Location: the universe
Distribution: Slackware (modified), Slackware64 (modified), openSuSE (modified)
Posts: 342

Rep: Reputation: 62
The kernel header files are located in /usr/include/linux/*, /usr/include/asm* and /usr/src/linux.

BtW: Why do you want to include certain third-party header files in your program? Just make them a requirement for the user before he installs/uses your program. You could always make the additional files available as a separate package.

If you mean by "include" the #include-directive, then you will be including kernel header files for sure in your program, if you use glibc as your c-library.

I'm not a lawyer so I cannot say if your program will be GPLed by this procedure.
 
Old 07-11-2010, 11:54 PM   #3
TheIndependentAquarius
Senior Member
 
Registered: Dec 2008
Posts: 4,619
Blog Entries: 29

Rep: Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896Reputation: 896
Quote:
Originally Posted by connie84911 View Post
I'm trying to make sure my program doesn't include any linux kernel header files. How can I determine if they are kernel headers?
You can check through "Synaptic Package Manager" whether you have "kernel-devel" package or not !!
 
Old 07-12-2010, 12:02 AM   #4
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728Reputation: 728
A program is not going to include **any** files unless you tell it to.

Let's assume that when you say "make it GPL", you mean make it "open source". You cannot do this by adding something. You can however, make it closed (proprietary) by adding proprietary code.

the fundamental rule of an OpenSource license is that you must keep open anything that comes to you as open.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Where can I get "Header Files" for Suse 10.0?? Need it for Mkcdrec Backup Utility Balarabay1 Linux - Software 2 08-13-2006 09:51 AM
Location of the directory of "C" header files RoMan65 Linux - Software 8 01-19-2006 04:59 PM
VMware & "directory of C header files" pacranch Amigo 12 05-14-2005 03:39 PM
"Cannot find header source files" when trying to install Nvidia 6111 drivers naddad Linux - Newbie 3 08-31-2004 12:42 PM
How do I get "Kernel Header" files so I can install nVidia drivers Stevetgn Linux - Newbie 4 01-14-2004 05:57 PM


All times are GMT -5. The time now is 07:47 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration