delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/11/02/02:04:19

Date: Thu, 2 Nov 1995 08:40:58 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: James Tsillas <jtsilla AT ccs DOT neu DOT edu>
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Two problems and a question with 1.12

On Wed, 1 Nov 1995, James Tsillas wrote:

> The fread() library routine seems to ignore the seconds argument
> (count), assuming it is always 1.

No, it doesn't.  This is the first few lines from libsrc/c/io/fread.c:

fread(ptr, size, count, iop)
        register void *ptr;
        int size, count;
        register FILE *iop;
{
        register int s;
        int c;

        s = size * count;
        while (s > 0) {
                if (iop->_cnt < s) {
                        if (iop->_cnt > 0) {
                                bcopy(iop->_ptr, ptr, iop->_cnt);
                                ptr += iop->_cnt;
                                s -= iop->_cnt;
                        }

As you can see, it uses a multiple of `size' and `count', which is what 
it's supposed to do.  If you use a library from 1.12, then you should be OK.

> The virtual memory mapping of the VGA 64k aperature seems to not work
> under DPMI (Windows).

In DJGPP v1.12, graphics doesn't work in DPMI mode, this is clearly 
stated in README.DOC and explained in the DJGPP FAQ list (faq102.zip from 
the same place you get DJGPP).

- Raw text -


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