Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!unixg.ubc.ca!cheddar.ucs.ubc.ca!ballard From: ballard@cheddar.ucs.ubc.ca (Alan Ballard) Newsgroups: comp.os.os2.programmer Subject: Re: HPFS and IBM C/2 Keywords: HPFS, IBM C/2, files Message-ID: <1991Apr16.173135.2668@unixg.ubc.ca> Date: 16 Apr 91 17:31:35 GMT References: <1991Apr16.162439.24649@grasp1.univ-lyon1.fr> Sender: news@unixg.ubc.ca (Usenet News Maintenance) Organization: Computing Services, University of British Columbia Lines: 21 Nntp-Posting-Host: cheddar.ucs.ubc.ca In article <1991Apr16.162439.24649@grasp1.univ-lyon1.fr> rol@grasp1.univ-lyon1.fr (Paul Rolland) writes: > 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... If the file you are trying to access has a name that wouldn't be a valid FAT name (i.e., not 8.3), fopen won't find it *unless* you mark the program as "long name aware". This is done via either an attribute in the .def file for the linker, or by running exehdr or markexe on the linked program. If this isn't the problem, I don't have any other ideas -- I've used fopen on hpfs files without any trouble. Alan Ballard | Internet: ballard@ucs.ubc.ca University Computing Services | Bitnet: USERAB1@UBCMTSG University of British Columbia | Phone: 604-822-3074 Vancouver B.C. Canada V6R 1Z2 | Fax: 604-822-5116