Solved

From DOS to LINUX

Posted on 2001-07-03
6
257 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 

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 10 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

[Webinar] Learn How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

Have you ever been frustrated by having to click seven times in order to retrieve a small bit of information from the web, always the same seven clicks, scrolling down and down until you reach your target? When you know the benefits of the command l…
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…
Come and listen to Percona CEO Peter Zaitsev discuss what’s new in Percona open source software, including Percona Server for MySQL (https://www.percona.com/software/mysql-database/percona-server) and MongoDB (https://www.percona.com/software/mongo-…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

734 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