Newsgroups: comp.os.os2.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!caen!ox.com!math.fu-berlin.de!grasp1!rol
From: rol@grasp1.univ-lyon1.fr (Paul Rolland)
Subject: HPFS and IBM C/2
Message-ID: <1991Apr16.162439.24649@grasp1.univ-lyon1.fr>
Date: Tue, 16 Apr 1991 16:24:39 GMT
Organization: INSA Departement Informatique, Lyon, France
Keywords: HPFS, IBM C/2, files

Hi networkers,

	I've experimented the following : when I used the IBM C/2 functions
fopen or open to open a file that is situated on an HPFS disk, I always
have a return code telling me that the file hasn't been found. If I just 
change in my program the disk to access a DOS disk, it works...

	So, is access to an HPFS disk impossible with fopen and open, and
will I be oblige to use the OS/2 DosOpen ? If not, what is the problem ?

Second problem, that is related : I did the following
#include <stdio.h>
#include <io.h>

void main(void)
{
  FILE * fd;

  fd=fopen("E:\\FILENAME","r");
  printf("Fopen done\n");
  fclose(fd);
  printf("fclose done\n");
}

But I never see the second message, I have a trap with a protection
violation before... Is it normal, with E being an HPFS disk ?

	Paul.

 Paul Rolland, engineer [I hope :)] in July 91,
 Specialist of assembly on PC [Not too bad in fact :)],
 Trying to progress on Unix administration
 					   Email : rol@grasp1.univ-lyon1.fr 
