delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1994/05/25/15:44:02

Date: Wed, 25 May 94 15:00:21 -0400
From: dj AT ctron DOT com (DJ Delorie)
To: ericb AT lsid DOT hp DOT com
Cc: djgpp AT sun DOT soe DOT clarkson DOT edu
Subject: Re: Library problems

> Isn't 512 the true disk blocksize?  If not, is 4096 always the correct
> value, or does it vary depending on how the disk is layed out?  Is
> there a way to ask DOS and fill this field in correctly?

512 is the disk block size, but 4096 is the size of the transfer
buffer.  FILE* accesses are based on st_blksize, so it's set to 4096
to improve performance.  BUFSIZ is also set to 4096.


- Raw text -


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