delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2000/10/14/20:31:02

From: Jason Green <news AT jgreen4 DOT fsnet DOT co DOT uk>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: DJGPP <--> Linux portability
Date: Sun, 15 Oct 2000 01:17:18 +0100
Organization: Customer of Energis Squared
Lines: 33
Message-ID: <qmthus8ufc2lfurf5kkj6r83m7jnj4rj6n@4ax.com>
References: <971522982 DOT 631595 AT shelley DOT paradise DOT net DOT nz>
NNTP-Posting-Host: modem-140.scandium.dialup.pol.co.uk
Mime-Version: 1.0
X-Trace: newsg3.svr.pol.co.uk 971569121 1043 62.136.20.140 (15 Oct 2000 00:18:41 GMT)
NNTP-Posting-Date: 15 Oct 2000 00:18:41 GMT
X-Complaints-To: abuse AT theplanet DOT net
X-Newsreader: Forte Agent 1.7/32.534
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

"Edmund Horner" <ejrh AT paradise DOT net DOT nz> wrote:

> 1. I have a disquieting feeling that doing graphics stuff in Linux is
> tricky.  For example when I try to run the examples that come with the
> Allegro WIP, I get errors about Mode-X (this only happens for some of the
> examples).  Does a program need to do stuff with permissions in order to
> change video mode, or something?

I don't use Allegro but I believe it sits on top of SVGAlib in Linux.
SVGAlib programs need to be suid root to have access to the video
hardware.

> 2. Backslash-newlines, which i use occassionally for the more complicated
> #defines, aren't recognised by cpp, apparently because of the CRLF problem.
> Is there a simple way I can get around this?  I'd like to be able to compile
> the same sources that I edit with RHIDE in dos.

As others have said, you can work with LF-only files in DOS if the
editor supports it (use utod/dtou to convert).  

Also, in Linux you can use the col command to convert a CRLF file to
LF-only.

AFAIK, latest versions of gcc are happy with CRLF, so you could also
upgrade gcc on the Linux box.

> 3. Lots of functions I use often in DJGPP, usually in connection with files,
> simply don't exist in the linux library.  (But I can get around this by
> using more complicated things like fstat().)  Still, the question remains...

Which functions in particular?  If the DJGPP documentation lists POSIX
compatibility for a function you should expect to find it on Linux
too.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019