Thread View: comp.os.os2.programmer
4 messages
4 total messages
Started by Paul Rolland
Tue, 16 Apr 1991 18:33
HPFS and IBM C/2, part two
Author: Paul Rolland
Date: Tue, 16 Apr 1991 18:33
Date: Tue, 16 Apr 1991 18:33
25 lines
1620 bytes
1620 bytes
Hi Networkers, Another question about OS/2, HPFS and the OS/2 calls to file function. In my previous message, I told that I couldn't access a file on an HPFS disk with the C/2 open and fopen functions. So, I used the OS/2 call DosOpen. And then, suprise. I thought HPFS could handle long file name... So, I tried to DosOpen the file ROUTETABLE.DATA, but it fails, returning me the error 206 (FILENAME_EXCED_RANGE). So, I had to reduce it to ROUTE.TAB, without changing anything else... and it works ! But my manual tells me that : 'the High Performance File System (HPFS) permits having many parts in a name if each part is separated by a period.' and 'Generally, long file names support 255 characters per name part; the HPFS names support 254.' [from IBM Operating System Extended Edition Version 1.2 User's Guide Volume 1: Base Operating System] My question is : WHY ? Why can't I access a file that is fully supported by the file system ? 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
Re: HPFS and IBM C/2, part two
Author: Ramesh_Rama_Pendakur
Date: Wed, 17 Apr 1991 00:00
Date: Wed, 17 Apr 1991 00:00
9 lines
715 bytes
715 bytes
I don't know about your version of the Operating System, but in OS/2 1.3 the better way would be to use DosOpen2. As for C Run-time support, it might use the old version of DosOpen. Just a wild guess. Try it anyway. Post the results if you would. - ... -
Re: HPFS and IBM C/2, part two
Author: Alan Ballard
Date: Wed, 17 Apr 1991 04:56
Date: Wed, 17 Apr 1991 04:56
13 lines
1198 bytes
1198 bytes
In article <41343@cup.portal.com> Ramesh_Rama_Pendakur@cup.portal.com writes: >the better way would be to use DosOpen2. As for C Run-time support, it >might use the old version of DosOpen. Whether you use fopen , DosOpen, or DosOpen2 isn't relevent. Whether the program is long-name-aware or not is what matters. (Time for a FAQ list for this group, maybe.) 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
Re: HPFS and IBM C/2, part two
Author: Mikael Wahlgren
Date: Wed, 17 Apr 1991 22:45
Date: Wed, 17 Apr 1991 22:45
19 lines
1481 bytes
1481 bytes
In article <41343@cup.portal.com> Ramesh_Rama_Pendakur@cup.portal.com writes: >I don't know about your version of the Operating System, but in OS/2 1.3 >the better way would be to use DosOpen2. As for C Run-time support, it >might use the old version of DosOpen. >Just a wild guess. Try it anyway. Post the results if you would. This is dead WRONG, and so it was a couple of weeks ago when someone told the same thing. The -2 calls (like DosOpen2) are NOT for HPFS support, but for Extended Attribute linking. The "old" API's fully support the HPFS long filenames, and the only thing you have to do is to use the DosOpen call and set the NEWFILES flag in your EXE-header. If you use a C-function for opening a file (like fopen), this should also be OK with HPFS long filenames, but you have to check that the library reserves enough space for your filename. Mikael Wahlgren d9mikael@dtek.chalmers.se
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads