OS-9 Device Descriptor and Configuration Module Reference

OS-9 Device Descriptor and Configuration Module Reference OS-9 Device Descriptor and Configuration Module Reference

rab.ict.pwr.wroc.pl
from rab.ict.pwr.wroc.pl More from this publisher
13.07.2015 Views

4SBFTMDevice Descriptors MICROWAREAvailable ValuesThe file access modes are defined in the header file, modes.h, andlocated in Table 4-8. The file access permission values are defined inthe header file modes.h and in Table 4-9.Table 4-8 dd_mode Available Values for File Access ModesDescription Macro EditModTruncate on open S_ITRUNC 0x0100Ensure contiguous file S_ICONTIG 0x0400Error if file exists on create S_IEXCL 0x0400Create file S_ICREAT 0x0800Append to file S_IAPPEND 0x1000Non-sharable S_ISHARE 0x4000Table 4-9 dd_mode Available Values for File Access PermissionsDescription Macro EditModMask for permission bits S_IPRM 0xffffOwner read S_IREAD 0x0001Owner write S_IWRITE 0x0002Owner execute S_IEXEC 0x0004Search permission S_ISEARCH 0x0004426 OS-9 Device Descriptor and Configuration Module Reference

SBF Device DescriptorsTable 4-9 dd_mode Available Values for File Access Permissions4Description Macro EditModGroup read S_IGREAD 0x0010Group write S_IGWRITE 0x0020Group execute S_IGEXEC 0x0040Group search S_IGSEARCH 0x0040Public read S_IOREAD 0x0100Public write S_IOWRITE 0x0200Public execute S_IOEXEC 0x0400Public search S_IOSEARCH 0x0400OS-9 Device Descriptor and Configuration Module Reference 427

4SBFTM<strong>Device</strong> <strong>Descriptor</strong>s MICROWAREAvailable ValuesThe file access modes are defined in the header file, modes.h, <strong>and</strong>located in Table 4-8. The file access permission values are defined inthe header file modes.h <strong>and</strong> in Table 4-9.Table 4-8 dd_mode Available Values for File Access ModesDescription Macro EditModTruncate on open S_ITRUNC 0x0100Ensure contiguous file S_ICONTIG 0x0400Error if file exists on create S_IEXCL 0x0400Create file S_ICREAT 0x0800Append to file S_IAPPEND 0x1000Non-sharable S_ISHARE 0x4000Table 4-9 dd_mode Available Values for File Access PermissionsDescription Macro EditModMask for permission bits S_IPRM 0xffffOwner read S_IREAD 0x0001Owner write S_IWRITE 0x0002Owner execute S_IEXEC 0x0004Search permission S_ISEARCH 0x0004426 <strong>OS</strong>-9 <strong>Device</strong> <strong>Descriptor</strong> <strong>and</strong> <strong>Configuration</strong> <strong>Module</strong> <strong>Reference</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!