HPlogo New Features of MPE/iX: Using the Hierarchical File System: 300 MPE/iX Computer Systems > Chapter 4 What's New for Programmers?

Terminating File Name Strings

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Glossary

 » Index

Many MPE/iX intrinsics that access a file by its file name require that you terminate the file name string specified in the formaldesignator parameter with a nonalphanumeric character that is not reserved by MPE/iX. Prior to MPE/iX Release 4.5, you could use the nonalphanumeric characters, such as "-" and "_" to terminate a file name string.

Beginning with MPE/iX Release 4.5, the hyphen "-" and underscore "_" characters can be interpreted as part of the file name if the system is interpreting the name using HFS syntax. (The system could then attempt to interpret invalid data on the stack as part of the file name.) Therefore, these two characters should no longer be used by the following intrinsics to terminate a file name string:

  • CATOPEN

  • FLABELINFO

  • FOPEN

  • FPARSE

  • FRENAME

  • STACKDUMP

The above mentioned characters can still be used to terminate MPE syntax names, but this is not recommended practice, because these characters will not terminate an HFS-Escaped name. The recommended practice is to terminate a file name string with an ASCII null character.

For additional information about these intrinsics, refer to the appropriate intrinsic descriptions located in the MPE/iX Intrinsics Reference Manual (32650-90028).

Feedback to webmaster