LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 02-05-2011, 10:45 AM   #1
krish_iitd
LQ Newbie
 
Registered: Feb 2011
Location: New Delhi
Posts: 2
Blog Entries: 1

Rep: Reputation: 3
Question sys/type.h header file does not worked


Hello
Look the following program

#include<sys/type.h>
#include<stdio.h>
#include<unistd.h>
int main()
{
pid_t pid;
pid = fork();
printf("Process identification number is = %d\n",pid);
}

after compilation as follow
gcc fork01.c
it will generate the following error

fork01.c:1: fatal error: sys/type.h: No such file or directory
compilation terminated.

Can any one help me, since I am new in this field.
Thank you in advance
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 02-05-2011, 11:46 AM   #2
Aquarius_Girl
Senior Member
 
Registered: Dec 2008
Posts: 4,731
Blog Entries: 29

Rep: Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940Reputation: 940
It is
Code:
#include <sys/types.h>
http://linux.die.net/man/2/fork
 
2 members found this post helpful.
Old 02-06-2011, 12:57 AM   #3
krish_iitd
LQ Newbie
 
Registered: Feb 2011
Location: New Delhi
Posts: 2

Original Poster
Blog Entries: 1

Rep: Reputation: 3
sys/types.h

Quote:
Originally Posted by Anisha Kaul View Post
It is
Code:
#include <sys/types.h>
http://linux.die.net/man/2/fork
Thank you...
 
  


Reply



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
How to check missing header files included from another header file adisan82 Linux - Software 1 01-28-2011 03:57 AM
Get file icon from extension, file type, or mime-type Guitarist88 Programming 3 04-21-2008 10:58 AM
Content-type header in php missing xlq Linux - Server 2 03-15-2007 08:06 AM
Problem with extern struct object, in header file. Undefined type. RHLinuxGUY Programming 7 07-24-2006 12:01 AM
how can one know the exact file type using a sys call? mohit_garg Linux - Software 1 11-15-2005 10:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration