Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

From DOS to LINUX

Posted on 2001-07-03
6
Medium Priority
?
264 Views
Last Modified: 2010-04-21
I've made a little routine using Turbo C (DOS) to manage comunication through the paralel port of a PC...
I want to make it run under Linux, but there are some libraries that Linux doesn't recognize because they are used by DOS, so I can't compile my program...
I'm a newbie in C programing on Linux, so here's my question:

Is there any list, reference guide or something like that where I can have the correspondence between C libraries in Linux and DOS? I know that some equivalence should exist...

0
Comment
Question by:cm_dumestre
6 Comments
 
LVL 4

Expert Comment

by:newmang
ID: 6250751
What functions are you having troubles with?
0
 
LVL 6

Expert Comment

by:graham_k
ID: 6251851
The answer is no. Best stick with specifics & forget the generalities.
0
 
LVL 4

Expert Comment

by:Robson
ID: 6258696
As far as I know there's no such thing as 'Standard ANSI library for pararel port communication' or something -- you'll have to manage it yourself, since hardware programming in Linux is completly different to DOS.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

by:cm_dumestre
ID: 6265039
The libraries I'm having troubles with are:

dos.h
conio.h
process.h
stdio.h
io.h

even when I'm starting to believe Graham K and Robson, I'll wait a little more time for a more complete answer...(at least tell me where to look)...
0
 
LVL 4

Accepted Solution

by:
Robson earned 30 total points
ID: 6268544
dos.h
     No way. You have to learn to do things in Linux way.

conio.h
     Try to look at: http://sourceforge.net/projects/conio/
     There's not much of useful stuff, but you may bother the author to release some. Anyway, better read about ncurses.

process.h
     Is it about processes/threads?
     Read this: http://www.linuxdoc.org/LDP/lpg/

stdio.h
     Standard ANSI library, no trouble.

io.h
     There is io.h in /usr/include/sys at my box, and it contains
     in/out functions.

I hope it helps.
0
 
LVL 3

Expert Comment

by:superschlonz
ID: 6278831
Have a look at the Parallel Port Pin Programming Library for Linux at http://www.circlemud.org/~jelson/software/parapin/
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to fix the unknown display problem in Linux Mint operating system. After installing the OS if you see Display monitor is not recognized then we can install "MESA" utilities to fix this problem or we can install additio…
The purpose of this article is to demonstrate how we can upgrade Python from version 2.7.6 to Python 2.7.10 on the Linux Mint operating system. I am using an Oracle Virtual Box where I have installed Linux Mint operating system version 17.2. Once yo…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…

879 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question