delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1992/07/21/18:03:25

From: Eric Backus <ericb AT lsid DOT hp DOT com>
Subject: statfs() and int21 ah=36
To: djgpp AT sun DOT soe DOT clarkson DOT edu (djgpp)
Date: Tue, 21 Jul 92 14:25:19 PDT
Mailer: Elm [revision: 66.25]

I am trying to implement the function statfs(), which is the UNIX
function used for determining how big your file system is and how much
room is left.

To do this, I was going to use interrupt 0x21 with AH = 0x36, which is
the DOS call that returns this kind of information.  Unfortunately,
go32 doesn't support this particular interrupt/AH combination.

The following context diff should fix the problem (in DJGPP 1.07), but
I can't test it because I don't have Turbo C++.

I would be most grateful if someone would apply this diff, remake
go32.exe, and mail a copy of it to me.  Then I could test my statfs()
function, and if it works give it to DJ to include in DJGPP.
--
				Eric Backus
				ericb%hplsla AT hplabs DOT hp DOT com
				(206) 335-2495

*** go32/exphdlr.c.orig	Tue Jul 21 13:24:19 1992
--- go32/exphdlr.c	Tue Jul 21 13:52:58 1992
***************
*** 377,382 ****
--- 377,383 ----
      case 0x2b:
      case 0x2c:
      case 0x2d:
+     case 0x36:
      case 0x42:
      case 0x57:
      case 0x68:

- Raw text -


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