Solved

From DOS to LINUX

Posted on 2001-07-03
6
258 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
How To Install Bash on Windows 10

Windows’ budding partnership with Canonical has certainly led to some great improvements. One of them being the ability to use Bash on your Windows machine without third party applications! This might be one of the greatest things a cloud engineer in a Windows environment can do!

 

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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

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 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…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

623 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