www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/28/16:52:55

Xref: news2.mv.net comp.os.msdos.djgpp:7976
From: "John M. Aldrich" <fighteer AT cs DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: -segread() and dos.h
Date: Tue, 27 Aug 1996 22:49:29 -0700
Organization: Three pounds of chaos and a pinch of salt
Lines: 34
Message-ID: <3223DDE9.27AD@cs.com>
References: <4vvh2e$jkl AT lastactionhero DOT rs DOT itd DOT umich DOT edu>
NNTP-Posting-Host: ppp228.cs.com
Mime-Version: 1.0
To: William Merril <wlmerril AT mtu DOT edu>
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

William Merril wrote:
> 
> I am helping port a library from m$ C to djgpp 2.0 and have a bit
> of a problem.
> 
> When compiling the library, I get warnings that segread() is
> implicitly defined, which it is.  segread should be defined in
> dos.h, but I can't find it anywhere.
> 
> Does anyone have a suggestion or clue?

This may be a M$-specific function.  Please describe its purpose
and we'll try to suggest a DJGPP equivalent.

If its name is in any way indicative, however, it may not even be
necessary:  under protected mode in DJGPP there are no segments;
all memory is pooled into what is essentially one large segment.
This is also why MK_FP(), etc., are unecessary under DJGPP.  If
'segread()' is indeed such a function, you may want to read the
DJGPP Frequently Asked Questions list (available as v2/faq201b.zip
from your local SimTel mirror) for the various ways in which DPMI
can affect porting of 16-bit programs.

John

-- 
John M. Aldrich, aka Fighteer I <fighteer AT cs DOT com>

-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GCS d- s+:- a-->? c++>$ U@>++$ p>+ L>++ E>+ W+>++ N++ o+ K? w(---) O-
M-- V? PS+ PE Y+ PGP- t+(-) 5- X- R+ tv+() b+++ DI++ D++ G e(*)>++++
h!() !r !y+()
------END GEEK CODE BLOCK------

- Raw text -


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