473,388 Members | 1,426 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,388 software developers and data experts.

equivalent linux header files for windows in c language

2
Is there any linux equivalent header files for windows in c programming for the following header files(linux)
Expand|Select|Wrap|Line Numbers
  1. #include <asm/uaccess.h>
  2. #include <asm/system.h>
  3. #include <linux/types.h>
  4. #include <linux/kernel.h>
  5. #include <linux/string.h>
  6. #include <linux/mm.h>
  7. #include <linux/socket.h>
  8. #include <linux/in.h>
  9. #include <linux/inet.h>
  10. #include <linux/netdevice.h>
  11. #include <linux/fcdevice.h>
  12. #include <linux/skbuff.h>
  13. #include <linux/errno.h>
  14. #include <linux/timer.h>
  15. #include <linux/net.h>
  16. #include <linux/proc_fs.h>
  17. #include <linux/init.h>
  18. #include <net/arp.h>
Dec 17 '12 #1
4 4050
johny10151981
1,059 1GB
Don't look for equivalent header look for equivalent functions
Dec 17 '12 #2
weaknessforcats
9,208 Expert Mod 8TB
There are equivalent header files for standard C and C++ programming because those are ANSI languages. Neither Linux nor Windows are ANSI so don't look for equivalent header files.
Dec 17 '12 #3
rajni
2
Then how we run the same program in windows
Dec 20 '12 #4
weaknessforcats
9,208 Expert Mod 8TB
You will need to make a copy of your code, cange all the header files to Windows header files and rebuild the prograom using a compiler that can produce Windows executables.

Portability like this is a big deal. It's always a problem.
Dec 20 '12 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

21
by: Hattuari | last post by:
I'm learning C++ after having spent several years in the computer industry doing both system administration and engineering. I've written code in Perl, Bash, Pascal, Ada, C, Mathematica (hundreds...
16
by: matthurne | last post by:
I just started learning C++ on my own...I'm using Accelerated C++. Something it hasn't explained and I keep wondering about is how header files actually work. I suspect it doesn't get into it...
11
by: Steven T. Hatton | last post by:
In the past there have been lengthy discussiions regarding the role of header files in C++. People have been very adamat about header files serving as in interface to the implementation. I do...
0
by: Francis Glassborow | last post by:
'You Can Do It!' has just been published in French as 'Je me lance!', not this is not an advertising pitch but an appeal for your help. Quite sensibly the translators have augmented my library by...
11
by: ambika | last post by:
Iam just trying to know "c". And I have a small doubt about these header files. The header files just contain the declaration part...Where is the definition for these declarations written??And how...
8
by: ginnisharma1 | last post by:
Hi All, I am very new to C language and I got really big assignment in my work.I am wondering if anyone can help me.........I need to port compiler from unix to windows and compiler is written...
3
by: anand.ba | last post by:
Hi, I need to port some C code from UNIX SGI to Windows (MS VC++ compiler). The following header files arent available in windows: #include <sys/param.h> #include <sys/ioctl.h> #include...
1
by: raghu | last post by:
Hello Every one I am working on VxWorks while building a C program which includes header files as windows.h and process.h giving me an Error saying cannot find the files. Both header files are...
1
by: Frank Swarbrick | last post by:
Stupid question, probably... Is some version of the Development Client needed in order for the db2 header files (sql.h, etc.) to show up in the sqllib/include library? Or is there some place we...
6
by: aman | last post by:
What is the Location of C header files in a linux system??? Also, how do I add conio.h.. C in linux doesnt support it by default
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.