Product Documentation

FairCom ISAM for C

Previous Topic

Next Topic

Extended File Modes (x8mode)

During file creation, the x8mode member of the XCREblk structure can specify new file modes defined in ctport.h:

Symbolic Constant

Value

Explanation

ctFILEPOS8

0x00000040

Huge file support.

ctFILESEGM

0x00000008

Segmented file. Setting the host segment’s size limit, segsiz, or calling SetFileSegments(), automatically sets this mode.

ctNO_XHDRS

0x00010000

Forces Standard header instead of Extended. (128 byte V6 header)

ctNOENCRYP

0x00000100

If file encryption has been enabled by a call to SetEncryption(), an individual file can disable encryption by OR-ing ctNOENCRYP into the x8mode member of the XCREblk structure.

ctNOSPACHK

0x00000080

Turn off disk full checking for this file only.

ctSEGAUTO

0x00200000

Use up to segmax automatic file segments of segsiz MB. SetFileSegments() is not required.

ctPARTAUTO

0x00800000

Partitioned file support. Auto partition naming based on host file name.

ctTRANDEP

0x00000010

Transaction Dependent Create and Delete.

ctRSTRDEL

0x00000800

Restorable Deletes. All the features of ctTRANDEP plus the ability to roll back file deletions.

ctTRANMODE

0x00000200

Auto switch to ctLOGFIL.

ctPIMGMODE

0x00000400

Auto switch to ctSHADOW.

ctADD2END

0x10000000

Disable deleted space management and always append new records to the end of the file. In V11 and later, automatically enables "add unique keys first," to prevent space from being allocated in the data file that is not reused if a record ADD operation fails with a duplicate key error.

ct6BTRAN

0x20000000

Enables six byte transaction number support.

ctNO6BTRAN

0x40000000

Disables six byte transaction number support.

ctMEMFILE

0x80000000

Temporary memory resident file. ctTRNLOG is not allowed for memory files, so be sure to adjust any IFIL structures to ctPREIMG instead.

TOCIndex