TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Byrne
from: Jonathan de Boyne Pollard
date: 1994-07-29 21:00:08
subject: It`S A Long Long Filenam

MB>
  > I'm writing an OS/2 app, and would like to include support
  > for HPFS long names.
MB>

  I'm so glad that you gave me the opportunity to trot out the answer to
  this question again ... (-:

  To enable an OS/2 program to use long filenames on HPFS, NFS, or
  NETWARE installable filesystems, you need to do these things :

      1.  NOTHING !

  It's that simple.  When you do the above, all calls to the OS/2 API
  (DosOpen, DosFindFirst, DosMove and so on) and the calls in the C
  runtime library that use the OS/2 API (fopen, open, remove, rename and
  so on) will use long filenames with no further intervention.

  (  Those people with ancient 16-bit compilers, using LINK.EXE instead
     of LINK386.EXE, need to add NEWFILES to the NAME statement of the
     DEF file and ensure that they have the 1.3 version of the
     Developers' Toolkit which has CCHMAXPATH set to 260 in   )

  You can if you like add support for the .longname extended attribute
  on 8.3 filesystems such as FAT or CDROM, but that's a lot more
  difficult, and not IMO worth the bother.

  > JdeBP <
___
 X MegaMail 2.10 #0:
--- Maximus/2 2.01wb

* Origin: DoNoR/2,Woking UK (0483-725167) (2:440/4)
SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 413 430
SEEN-BY: 711/807 808 809 934 942 712/353 623 713/888 800/1
@PATH: 440/4 141/209 865 820 3615/50 229/2 12/2442 711/409 54/54 711/808 809
@PATH: 711/934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.