Questions tagged [header-file]
86 questions
44
votes
3 answers
What exactly are Linux kernel headers?
Possible Duplicate:
What does a kernel source tree contain? Is this related to Linux kernel headers?
I know that if I want to compile my own Linux kernel I need the Linux kernel headers, but what exactly are they good for?
I found out that under…
JohnnyFromBF
- 3,476
- 10
- 32
- 42
13
votes
1 answer
Difference between /usr/include/sys and /usr/include/linux?
Well, obviously there is a difference, but I'm curious about the rational behind why some things go under /usr/include/sys and others go under /usr/include/linux, and have the same header file name? Does this have something to do with POSIX vx…
Jeff
- 233
- 2
- 6
12
votes
1 answer
What does 'uni' mean in unistd.h
What does uni mean in unistd.h
Does it mean unix? or universal?
What is it?
Benjamin
- 1,505
- 2
- 18
- 25
11
votes
4 answers
Using real time kernel headers to compile userspace code vs default headers
Per customer requirements, I installed CentOS 5.6 with the default kernel. With this kernel installed, the time.h file includes the #define CLOCK_MONOTONIC.
Now, a real-time kernel was installed along with the kernel-devel and our code would like to…
cabanaboy
- 111
- 3
10
votes
2 answers
Which header defines the macro that specifies the machine architecture?
Shorter version of question:
Which C header contains the macro that corresponds to the machine architecture of the system (e.g., __x86_64__, __ia64__, __mips__?)
Longer version of question:
I'd like to run the ganglia monitoring tools on a…
Lorin Hochstein
- 8,077
- 17
- 50
- 56
9
votes
2 answers
Why is there no WORD_BIT in limits.h on Linux?
From the manpage man limits.h:
{WORD_BIT}
Number of bits in an object of type int.
Minimum Acceptable Value: 32
However if I run a simple program:
#include
#include
int main() {
…
rahmu
- 19,673
- 28
- 87
- 128
9
votes
2 answers
"sys/ioctl.h" header in linux
I am on Linux 2.6.32-26-generic
When I look in to the linux source code for "ioctl.h" hearer file, I could see many variants. (for different platforms, I guess).…
hari
- 2,400
- 4
- 21
- 22
8
votes
2 answers
What package could "linux-headers-3.7.5-1-ARCH" mean?
I'm debugging a closed-source software installer that seems to have some pre-conceived notions about my distribution. The installation aborts after not finding apt-get. The command it attempts to run is:
apt-get -y -q install…
Anna
- 1,119
- 1
- 11
- 23
7
votes
1 answer
How to create Linux Kernel Headers from Linux Kernel Source?
I'm working with Tiny Core Linux and attempting to install Vmware Tools, which of course needs the Kernel Headers :-).
It does not appear they have the Kernel Headers readily available in a package, but they do have the kernel source. As a result I…
Doug
- 439
- 1
- 4
- 11
7
votes
2 answers
Compiler cannot find header file, do I add the directory to PATH?
I am trying to work with gtk which is located at /usr/include/gtk-3.0/gtk/ .., but all of the header files in the toolkit have #include .
Aside from adding /usr/local/gtk-3.0 to PATH or adding gtk-3.0 to all the include preprocessors,…
sherrellbc
- 2,461
- 7
- 28
- 41
6
votes
1 answer
Detached LUKS-header on Debian-based GNU/Linux
There is scattered information on how to set up a detached header
for a LUKS-encrypted disk on Stack Exchange.
And by searching the web using Google, I found limited information.
Some of the best information I found
is linked to at the bottom of…
Mikkel Rev
- 243
- 1
- 8
6
votes
2 answers
Get header of the C function from BASH
I want to get the header(s) that I need for a given C function - e.g. when I want to see what to include when I want to use fork(), I can type out man fork and see that it's #include . However, I'd like to do it "automatically"(without me…
MatthewRock
- 6,826
- 6
- 31
- 54
5
votes
2 answers
configure: error: libcurl >= 7.28.0 library and headers are required with support for https
Hi I met an issue when I tried to configure for R installation.
Basically, I tried to follow my previous installation process,
(For some reason, I need to reinstall the same R in CentOS6 instead of CentOS5)
./configure…
Jun
- 531
- 4
- 8
- 20
5
votes
2 answers
Command to install linux headers fails
I need to install my linux headers for an Nvidia driver install. But I get an error when doing so:
peter@peter-deb:~$ sudo apt-get install linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state…
ptrcao
- 5,455
- 11
- 36
- 44
4
votes
4 answers
Ubuntu: can't find ndbm.h
I need to compile an old Apache version, 1.3, and the compilation process fails because:
mod_auth_dbm.c:77:18: fatal error: ndbm.h: File or directory not found
Where is this ndbm.h file?
Phate
- 319
- 2
- 6
- 13