cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/10/04:54:46

From: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: file max sizes?
Date: 10 Mar 1997 07:05:13 GMT
Organization: The National Capital FreeNet
Lines: 23
Message-ID: <5g0br9$stu@freenet-news.carleton.ca>
References: <01bc2ca1$660fce80$31c9c2d0 AT bonk>
Reply-To: ao950 AT FreeNet DOT Carleton DOT CA (Paul Derbyshire)
NNTP-Posting-Host: freenet3.carleton.ca
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

"Jeffrey A Studer" (jstuder AT flash DOT net) writes:
> Hello all,
> 
> I am very new to djgpp so pardon my ignorance.   I have been opening and
> trying to read a file using open, and read.  I was wondering if there is a
> maximum size of file that can be opened or read from.  it seems that
> reading 40 bytes from a file at once, occasionally gives a SIGSEGV fault at
> runtime ( I wish i knew what these runtime error messages meant, as well. 
> Is there a FAQ on DOS error messages? ).  I WAS trying to read a minimum of
> 280 bytes, in one pass.  I will resort to reading 4 bytes at a time ,
> unless someone can assist me.

Strange. I wrote a binary-hacker that, given a file to read and an output
file and a list of byte positions and new byte values, copies old to new
and changes the specified bytes. It reads the file in chunks of 800 bytes
at a time, into a buffer grabbed with a malloc.

--
    .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
 -()  <  When I go to the theater, I always go straight to the "bag and mix"
    `*'  bulk candy section...because variety is the spice of life... [me]
Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh

- Raw text -


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