The following flags are used by the NKS functions and structures:
The change bit flags are used to control which metadata of a file or directory is updated.They are used by the NXSetAttr and NXSetAttrWithHandle functions, and they are defined in the nks/dirio.h file.
The following flags are ORed together to form a bit mask of a user's effective rights to a file or directory. These flags are defined in the nks/dirio.h file.
The NXFileRangeLock function and the NXFileRangeLockSpec_t structure use following flags:
These flags, listed above, can be ORed with one of the following flags.
The NXDirAttr_t structure uses the following flags to return information about a directory entry. The flags can be ORed together, and they are defined in the nks/dirio.h file.
Directory and file attributes assign properties to individual directories or files. Some attributes are meaningful only when applied at the file level, but some apply to both the directory and the file levels. Attributes apply to all users. These attribute flags are defined in the fsio.h file.
Consoles, files, and FIFOs use the following open modes, and they are used by functions such as NXFileOpen, NXDeviceOpen, and NXIoGetOpenMode and the NXFileOpenSpec_t structure. Exactly one of the first three access flags in the following table can be set.
Operation flags can be ORed to the access flags, depending upon the type of device:
For FIFOs, the following flag can be ORed to a flag in the first set.
For consoles, the following flag can be ORed to a flag in the first set.
For files, the following operation flags can be ORed to a flag in the access set.
A number of functions (NXDirEnumStart, NXGetAttr, NXSetAttr, etc.) and the NXDeHeader_t structure use the following flags to set the amount of file system information to access.
Flag |
Value |
Description |
---|---|---|
NX_DELEVEL_BASIC |
0x7FFFFFFF |
Basic attribute information common to all pathname formats |
NX_DELEVEL_NAME_ONLY |
0x80000000 |
Filename only. The buffer parameter should point to a NXDirAttrWithName_t structure. |
NX_DELEVEL_EXTENDED |
0x80000001 |
Extended file system information |
The NXDeHeader_t, NXNameSpec_t, and NXStreamSpec_t structures use the following flags to specify the object type.
These values specify the name and path format for files or directories. They are defined in the nks/dirio.h file and are used by such structures as NXDeHeader_t and such functions as NXGetAttrWithHandle. NXPathFormat_t enumerates the following values:
The NXFileOpen function, the NXDeviceOpen function, and the NXFileOpenSpec_t structure use following flags: