From: Damian Yerrick Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP <--> Linux portability Organization: Pin Eight Software http://pineight.8m.com/ Message-ID: References: <971522982 DOT 631595 AT shelley DOT paradise DOT net DOT nz> X-Newsreader: Forte Agent 1.7/32.534 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 32 X-Trace: /bQNubPFJbJxammqIGckFRAJV5JjnL6JK29big6nkbsTj6cVZQdAGz7U7UVwfa7cxnAgAF9Sl+zH!7wMPJ+kYNx5On1Eu6onwQAir+XHhou3O8DGIHMlHgXNsrE4tlBdzp5qH3lj2XbBZ19L+4JImrcxq!MXos X-Complaints-To: abuse AT gte DOT net X-Abuse-Info: Please be sure to forward a copy of ALL headers X-Abuse-Info: Otherwise we will be unable to process your complaint properly NNTP-Posting-Date: Sun, 15 Oct 2000 00:30:07 GMT Distribution: world Date: Sun, 15 Oct 2000 00:30:07 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On Sun, 15 Oct 2000 00:30:20 +1300, "Edmund Horner" 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? If you run Allegro programs in the console, you need suid root for everything except framebuffer. Any user can run an Allegro program in an X11 window; DGA needs suid root. >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? Remove the CRs with dtou. >3. Lots of functions I use often in DJGPP, usually in connection with files, >simply don't exist in the linux library. The Allegro library has its own portable filesystem layer. For example, instead of findfirst() and the like, I use for_each_file(). --