Home | History | Annotate | Download | only in Carbon
      1 # Generated from 'Files.h'
      2 
      3 def FOUR_CHAR_CODE(x): return x
      4 true = True
      5 false = False
      6 fsCurPerm = 0x00
      7 fsRdPerm = 0x01
      8 fsWrPerm = 0x02
      9 fsRdWrPerm = 0x03
     10 fsRdWrShPerm = 0x04
     11 fsRdDenyPerm = 0x10
     12 fsWrDenyPerm = 0x20
     13 fsRtParID = 1
     14 fsRtDirID = 2
     15 fsAtMark = 0
     16 fsFromStart = 1
     17 fsFromLEOF = 2
     18 fsFromMark = 3
     19 pleaseCacheBit = 4
     20 pleaseCacheMask = 0x0010
     21 noCacheBit = 5
     22 noCacheMask = 0x0020
     23 rdVerifyBit = 6
     24 rdVerifyMask = 0x0040
     25 rdVerify = 64
     26 forceReadBit = 6
     27 forceReadMask = 0x0040
     28 newLineBit = 7
     29 newLineMask = 0x0080
     30 newLineCharMask = 0xFF00
     31 fsSBPartialName = 1
     32 fsSBFullName = 2
     33 fsSBFlAttrib = 4
     34 fsSBFlFndrInfo = 8
     35 fsSBFlLgLen = 32
     36 fsSBFlPyLen = 64
     37 fsSBFlRLgLen = 128
     38 fsSBFlRPyLen = 256
     39 fsSBFlCrDat = 512
     40 fsSBFlMdDat = 1024
     41 fsSBFlBkDat = 2048
     42 fsSBFlXFndrInfo = 4096
     43 fsSBFlParID = 8192
     44 fsSBNegate = 16384
     45 fsSBDrUsrWds = 8
     46 fsSBDrNmFls = 16
     47 fsSBDrCrDat = 512
     48 fsSBDrMdDat = 1024
     49 fsSBDrBkDat = 2048
     50 fsSBDrFndrInfo = 4096
     51 fsSBDrParID = 8192
     52 fsSBPartialNameBit = 0
     53 fsSBFullNameBit = 1
     54 fsSBFlAttribBit = 2
     55 fsSBFlFndrInfoBit = 3
     56 fsSBFlLgLenBit = 5
     57 fsSBFlPyLenBit = 6
     58 fsSBFlRLgLenBit = 7
     59 fsSBFlRPyLenBit = 8
     60 fsSBFlCrDatBit = 9
     61 fsSBFlMdDatBit = 10
     62 fsSBFlBkDatBit = 11
     63 fsSBFlXFndrInfoBit = 12
     64 fsSBFlParIDBit = 13
     65 fsSBNegateBit = 14
     66 fsSBDrUsrWdsBit = 3
     67 fsSBDrNmFlsBit = 4
     68 fsSBDrCrDatBit = 9
     69 fsSBDrMdDatBit = 10
     70 fsSBDrBkDatBit = 11
     71 fsSBDrFndrInfoBit = 12
     72 fsSBDrParIDBit = 13
     73 bLimitFCBs = 31
     74 bLocalWList = 30
     75 bNoMiniFndr = 29
     76 bNoVNEdit = 28
     77 bNoLclSync = 27
     78 bTrshOffLine = 26
     79 bNoSwitchTo = 25
     80 bDontShareIt = 21
     81 bNoDeskItems = 20
     82 bNoBootBlks = 19
     83 bAccessCntl = 18
     84 bNoSysDir = 17
     85 bHasExtFSVol = 16
     86 bHasOpenDeny = 15
     87 bHasCopyFile = 14
     88 bHasMoveRename = 13
     89 bHasDesktopMgr = 12
     90 bHasShortName = 11
     91 bHasFolderLock = 10
     92 bHasPersonalAccessPrivileges = 9
     93 bHasUserGroupList = 8
     94 bHasCatSearch = 7
     95 bHasFileIDs = 6
     96 bHasBTreeMgr = 5
     97 bHasBlankAccessPrivileges = 4
     98 bSupportsAsyncRequests = 3
     99 bSupportsTrashVolumeCache = 2
    100 bIsEjectable = 0
    101 bSupportsHFSPlusAPIs = 1
    102 bSupportsFSCatalogSearch = 2
    103 bSupportsFSExchangeObjects = 3
    104 bSupports2TBFiles = 4
    105 bSupportsLongNames = 5
    106 bSupportsMultiScriptNames = 6
    107 bSupportsNamedForks = 7
    108 bSupportsSubtreeIterators = 8
    109 bL2PCanMapFileBlocks = 9
    110 bParentModDateChanges = 10
    111 bAncestorModDateChanges = 11
    112 bSupportsSymbolicLinks = 13
    113 bIsAutoMounted = 14
    114 bAllowCDiDataHandler = 17
    115 kLargeIcon = 1
    116 kLarge4BitIcon = 2
    117 kLarge8BitIcon = 3
    118 kSmallIcon = 4
    119 kSmall4BitIcon = 5
    120 kSmall8BitIcon = 6
    121 kicnsIconFamily = 239
    122 kLargeIconSize = 256
    123 kLarge4BitIconSize = 512
    124 kLarge8BitIconSize = 1024
    125 kSmallIconSize = 64
    126 kSmall4BitIconSize = 128
    127 kSmall8BitIconSize = 256
    128 kWidePosOffsetBit = 8
    129 kUseWidePositioning = (1 << kWidePosOffsetBit)
    130 kMaximumBlocksIn4GB = 0x007FFFFF
    131 fsUnixPriv = 1
    132 kNoUserAuthentication = 1
    133 kPassword = 2
    134 kEncryptPassword = 3
    135 kTwoWayEncryptPassword = 6
    136 kOwnerID2Name = 1
    137 kGroupID2Name = 2
    138 kOwnerName2ID = 3
    139 kGroupName2ID = 4
    140 kReturnNextUser = 1
    141 kReturnNextGroup = 2
    142 kReturnNextUG = 3
    143 kVCBFlagsIdleFlushBit = 3
    144 kVCBFlagsIdleFlushMask = 0x0008
    145 kVCBFlagsHFSPlusAPIsBit = 4
    146 kVCBFlagsHFSPlusAPIsMask = 0x0010
    147 kVCBFlagsHardwareGoneBit = 5
    148 kVCBFlagsHardwareGoneMask = 0x0020
    149 kVCBFlagsVolumeDirtyBit = 15
    150 kVCBFlagsVolumeDirtyMask = 0x8000
    151 kioVAtrbDefaultVolumeBit = 5
    152 kioVAtrbDefaultVolumeMask = 0x0020
    153 kioVAtrbFilesOpenBit = 6
    154 kioVAtrbFilesOpenMask = 0x0040
    155 kioVAtrbHardwareLockedBit = 7
    156 kioVAtrbHardwareLockedMask = 0x0080
    157 kioVAtrbSoftwareLockedBit = 15
    158 kioVAtrbSoftwareLockedMask = 0x8000
    159 kioFlAttribLockedBit = 0
    160 kioFlAttribLockedMask = 0x01
    161 kioFlAttribResOpenBit = 2
    162 kioFlAttribResOpenMask = 0x04
    163 kioFlAttribDataOpenBit = 3
    164 kioFlAttribDataOpenMask = 0x08
    165 kioFlAttribDirBit = 4
    166 kioFlAttribDirMask = 0x10
    167 ioDirFlg = 4
    168 ioDirMask = 0x10
    169 kioFlAttribCopyProtBit = 6
    170 kioFlAttribCopyProtMask = 0x40
    171 kioFlAttribFileOpenBit = 7
    172 kioFlAttribFileOpenMask = 0x80
    173 kioFlAttribInSharedBit = 2
    174 kioFlAttribInSharedMask = 0x04
    175 kioFlAttribMountedBit = 3
    176 kioFlAttribMountedMask = 0x08
    177 kioFlAttribSharePointBit = 5
    178 kioFlAttribSharePointMask = 0x20
    179 kioFCBWriteBit = 8
    180 kioFCBWriteMask = 0x0100
    181 kioFCBResourceBit = 9
    182 kioFCBResourceMask = 0x0200
    183 kioFCBWriteLockedBit = 10
    184 kioFCBWriteLockedMask = 0x0400
    185 kioFCBLargeFileBit = 11
    186 kioFCBLargeFileMask = 0x0800
    187 kioFCBSharedWriteBit = 12
    188 kioFCBSharedWriteMask = 0x1000
    189 kioFCBFileLockedBit = 13
    190 kioFCBFileLockedMask = 0x2000
    191 kioFCBOwnClumpBit = 14
    192 kioFCBOwnClumpMask = 0x4000
    193 kioFCBModifiedBit = 15
    194 kioFCBModifiedMask = 0x8000
    195 kioACUserNoSeeFolderBit = 0
    196 kioACUserNoSeeFolderMask = 0x01
    197 kioACUserNoSeeFilesBit = 1
    198 kioACUserNoSeeFilesMask = 0x02
    199 kioACUserNoMakeChangesBit = 2
    200 kioACUserNoMakeChangesMask = 0x04
    201 kioACUserNotOwnerBit = 7
    202 kioACUserNotOwnerMask = 0x80
    203 kioACAccessOwnerBit = 31
    204 # kioACAccessOwnerMask = (long)0x80000000
    205 kioACAccessBlankAccessBit = 28
    206 kioACAccessBlankAccessMask = 0x10000000
    207 kioACAccessUserWriteBit = 26
    208 kioACAccessUserWriteMask = 0x04000000
    209 kioACAccessUserReadBit = 25
    210 kioACAccessUserReadMask = 0x02000000
    211 kioACAccessUserSearchBit = 24
    212 kioACAccessUserSearchMask = 0x01000000
    213 kioACAccessEveryoneWriteBit = 18
    214 kioACAccessEveryoneWriteMask = 0x00040000
    215 kioACAccessEveryoneReadBit = 17
    216 kioACAccessEveryoneReadMask = 0x00020000
    217 kioACAccessEveryoneSearchBit = 16
    218 kioACAccessEveryoneSearchMask = 0x00010000
    219 kioACAccessGroupWriteBit = 10
    220 kioACAccessGroupWriteMask = 0x00000400
    221 kioACAccessGroupReadBit = 9
    222 kioACAccessGroupReadMask = 0x00000200
    223 kioACAccessGroupSearchBit = 8
    224 kioACAccessGroupSearchMask = 0x00000100
    225 kioACAccessOwnerWriteBit = 2
    226 kioACAccessOwnerWriteMask = 0x00000004
    227 kioACAccessOwnerReadBit = 1
    228 kioACAccessOwnerReadMask = 0x00000002
    229 kioACAccessOwnerSearchBit = 0
    230 kioACAccessOwnerSearchMask = 0x00000001
    231 kfullPrivileges = 0x00070007
    232 kownerPrivileges = 0x00000007
    233 knoUser = 0
    234 kadministratorUser = 1
    235 knoGroup = 0
    236 AppleShareMediaType = FOUR_CHAR_CODE('afpm')
    237 volMountNoLoginMsgFlagBit = 0
    238 volMountNoLoginMsgFlagMask = 0x0001
    239 volMountExtendedFlagsBit = 7
    240 volMountExtendedFlagsMask = 0x0080
    241 volMountInteractBit = 15
    242 volMountInteractMask = 0x8000
    243 volMountChangedBit = 14
    244 volMountChangedMask = 0x4000
    245 volMountFSReservedMask = 0x00FF
    246 volMountSysReservedMask = 0xFF00
    247 kAFPExtendedFlagsAlternateAddressMask = 1
    248 kAFPTagTypeIP = 0x01
    249 kAFPTagTypeIPPort = 0x02
    250 kAFPTagTypeDDP = 0x03
    251 kAFPTagTypeDNS = 0x04
    252 kAFPTagLengthIP = 0x06
    253 kAFPTagLengthIPPort = 0x08
    254 kAFPTagLengthDDP = 0x06
    255 kFSInvalidVolumeRefNum = 0
    256 kFSCatInfoNone = 0x00000000
    257 kFSCatInfoTextEncoding = 0x00000001
    258 kFSCatInfoNodeFlags = 0x00000002
    259 kFSCatInfoVolume = 0x00000004
    260 kFSCatInfoParentDirID = 0x00000008
    261 kFSCatInfoNodeID = 0x00000010
    262 kFSCatInfoCreateDate = 0x00000020
    263 kFSCatInfoContentMod = 0x00000040
    264 kFSCatInfoAttrMod = 0x00000080
    265 kFSCatInfoAccessDate = 0x00000100
    266 kFSCatInfoBackupDate = 0x00000200
    267 kFSCatInfoPermissions = 0x00000400
    268 kFSCatInfoFinderInfo = 0x00000800
    269 kFSCatInfoFinderXInfo = 0x00001000
    270 kFSCatInfoValence = 0x00002000
    271 kFSCatInfoDataSizes = 0x00004000
    272 kFSCatInfoRsrcSizes = 0x00008000
    273 kFSCatInfoSharingFlags = 0x00010000
    274 kFSCatInfoUserPrivs = 0x00020000
    275 kFSCatInfoUserAccess = 0x00080000
    276 kFSCatInfoAllDates = 0x000003E0
    277 kFSCatInfoGettableInfo = 0x0003FFFF
    278 kFSCatInfoSettableInfo = 0x00001FE3
    279 # kFSCatInfoReserved = (long)0xFFFC0000
    280 kFSNodeLockedBit = 0
    281 kFSNodeLockedMask = 0x0001
    282 kFSNodeResOpenBit = 2
    283 kFSNodeResOpenMask = 0x0004
    284 kFSNodeDataOpenBit = 3
    285 kFSNodeDataOpenMask = 0x0008
    286 kFSNodeIsDirectoryBit = 4
    287 kFSNodeIsDirectoryMask = 0x0010
    288 kFSNodeCopyProtectBit = 6
    289 kFSNodeCopyProtectMask = 0x0040
    290 kFSNodeForkOpenBit = 7
    291 kFSNodeForkOpenMask = 0x0080
    292 kFSNodeInSharedBit = 2
    293 kFSNodeInSharedMask = 0x0004
    294 kFSNodeIsMountedBit = 3
    295 kFSNodeIsMountedMask = 0x0008
    296 kFSNodeIsSharePointBit = 5
    297 kFSNodeIsSharePointMask = 0x0020
    298 kFSIterateFlat = 0
    299 kFSIterateSubtree = 1
    300 kFSIterateDelete = 2
    301 # kFSIterateReserved = (long)0xFFFFFFFC
    302 fsSBNodeID = 0x00008000
    303 fsSBAttributeModDate = 0x00010000
    304 fsSBAccessDate = 0x00020000
    305 fsSBPermissions = 0x00040000
    306 fsSBNodeIDBit = 15
    307 fsSBAttributeModDateBit = 16
    308 fsSBAccessDateBit = 17
    309 fsSBPermissionsBit = 18
    310 kFSAllocDefaultFlags = 0x0000
    311 kFSAllocAllOrNothingMask = 0x0001
    312 kFSAllocContiguousMask = 0x0002
    313 kFSAllocNoRoundUpMask = 0x0004
    314 kFSAllocReservedMask = 0xFFF8
    315 kFSVolInfoNone = 0x0000
    316 kFSVolInfoCreateDate = 0x0001
    317 kFSVolInfoModDate = 0x0002
    318 kFSVolInfoBackupDate = 0x0004
    319 kFSVolInfoCheckedDate = 0x0008
    320 kFSVolInfoFileCount = 0x0010
    321 kFSVolInfoDirCount = 0x0020
    322 kFSVolInfoSizes = 0x0040
    323 kFSVolInfoBlocks = 0x0080
    324 kFSVolInfoNextAlloc = 0x0100
    325 kFSVolInfoRsrcClump = 0x0200
    326 kFSVolInfoDataClump = 0x0400
    327 kFSVolInfoNextID = 0x0800
    328 kFSVolInfoFinderInfo = 0x1000
    329 kFSVolInfoFlags = 0x2000
    330 kFSVolInfoFSInfo = 0x4000
    331 kFSVolInfoDriveInfo = 0x8000
    332 kFSVolInfoGettableInfo = 0xFFFF
    333 kFSVolInfoSettableInfo = 0x3004
    334 kFSVolFlagDefaultVolumeBit = 5
    335 kFSVolFlagDefaultVolumeMask = 0x0020
    336 kFSVolFlagFilesOpenBit = 6
    337 kFSVolFlagFilesOpenMask = 0x0040
    338 kFSVolFlagHardwareLockedBit = 7
    339 kFSVolFlagHardwareLockedMask = 0x0080
    340 kFSVolFlagSoftwareLockedBit = 15
    341 kFSVolFlagSoftwareLockedMask = 0x8000
    342 kFNDirectoryModifiedMessage = 1
    343 kFNNoImplicitAllSubscription = (1 << 0)
    344 rAliasType = FOUR_CHAR_CODE('alis')
    345 kARMMountVol = 0x00000001
    346 kARMNoUI = 0x00000002
    347 kARMMultVols = 0x00000008
    348 kARMSearch = 0x00000100
    349 kARMSearchMore = 0x00000200
    350 kARMSearchRelFirst = 0x00000400
    351 asiZoneName = -3
    352 asiServerName = -2
    353 asiVolumeName = -1
    354 asiAliasName = 0
    355 asiParentName = 1
    356 kResolveAliasFileNoUI = 0x00000001
    357 kClippingCreator = FOUR_CHAR_CODE('drag')
    358 kClippingPictureType = FOUR_CHAR_CODE('clpp')
    359 kClippingTextType = FOUR_CHAR_CODE('clpt')
    360 kClippingSoundType = FOUR_CHAR_CODE('clps')
    361 kClippingUnknownType = FOUR_CHAR_CODE('clpu')
    362 kInternetLocationCreator = FOUR_CHAR_CODE('drag')
    363 kInternetLocationHTTP = FOUR_CHAR_CODE('ilht')
    364 kInternetLocationFTP = FOUR_CHAR_CODE('ilft')
    365 kInternetLocationFile = FOUR_CHAR_CODE('ilfi')
    366 kInternetLocationMail = FOUR_CHAR_CODE('ilma')
    367 kInternetLocationNNTP = FOUR_CHAR_CODE('ilnw')
    368 kInternetLocationAFP = FOUR_CHAR_CODE('ilaf')
    369 kInternetLocationAppleTalk = FOUR_CHAR_CODE('ilat')
    370 kInternetLocationNSL = FOUR_CHAR_CODE('ilns')
    371 kInternetLocationGeneric = FOUR_CHAR_CODE('ilge')
    372 kCustomIconResource = -16455
    373 kCustomBadgeResourceType = FOUR_CHAR_CODE('badg')
    374 kCustomBadgeResourceID = kCustomIconResource
    375 kCustomBadgeResourceVersion = 0
    376 # kSystemFolderType = 'macs'.
    377 kRoutingResourceType = FOUR_CHAR_CODE('rout')
    378 kRoutingResourceID = 0
    379 kContainerFolderAliasType = FOUR_CHAR_CODE('fdrp')
    380 kContainerTrashAliasType = FOUR_CHAR_CODE('trsh')
    381 kContainerHardDiskAliasType = FOUR_CHAR_CODE('hdsk')
    382 kContainerFloppyAliasType = FOUR_CHAR_CODE('flpy')
    383 kContainerServerAliasType = FOUR_CHAR_CODE('srvr')
    384 kApplicationAliasType = FOUR_CHAR_CODE('adrp')
    385 kContainerAliasType = FOUR_CHAR_CODE('drop')
    386 kDesktopPrinterAliasType = FOUR_CHAR_CODE('dtpa')
    387 kContainerCDROMAliasType = FOUR_CHAR_CODE('cddr')
    388 kApplicationCPAliasType = FOUR_CHAR_CODE('acdp')
    389 kApplicationDAAliasType = FOUR_CHAR_CODE('addp')
    390 kPackageAliasType = FOUR_CHAR_CODE('fpka')
    391 kAppPackageAliasType = FOUR_CHAR_CODE('fapa')
    392 kSystemFolderAliasType = FOUR_CHAR_CODE('fasy')
    393 kAppleMenuFolderAliasType = FOUR_CHAR_CODE('faam')
    394 kStartupFolderAliasType = FOUR_CHAR_CODE('fast')
    395 kPrintMonitorDocsFolderAliasType = FOUR_CHAR_CODE('fapn')
    396 kPreferencesFolderAliasType = FOUR_CHAR_CODE('fapf')
    397 kControlPanelFolderAliasType = FOUR_CHAR_CODE('fact')
    398 kExtensionFolderAliasType = FOUR_CHAR_CODE('faex')
    399 kExportedFolderAliasType = FOUR_CHAR_CODE('faet')
    400 kDropFolderAliasType = FOUR_CHAR_CODE('fadr')
    401 kSharedFolderAliasType = FOUR_CHAR_CODE('fash')
    402 kMountedFolderAliasType = FOUR_CHAR_CODE('famn')
    403 kIsOnDesk = 0x0001
    404 kColor = 0x000E
    405 kIsShared = 0x0040
    406 kHasNoINITs = 0x0080
    407 kHasBeenInited = 0x0100
    408 kHasCustomIcon = 0x0400
    409 kIsStationery = 0x0800
    410 kNameLocked = 0x1000
    411 kHasBundle = 0x2000
    412 kIsInvisible = 0x4000
    413 kIsAlias = 0x8000
    414 fOnDesk = kIsOnDesk
    415 fHasBundle = kHasBundle
    416 fInvisible = kIsInvisible
    417 fTrash = -3
    418 fDesktop = -2
    419 fDisk = 0
    420 kIsStationary = kIsStationery
    421 kExtendedFlagsAreInvalid = 0x8000
    422 kExtendedFlagHasCustomBadge = 0x0100
    423 kExtendedFlagHasRoutingInfo = 0x0004
    424 kFirstMagicBusyFiletype = FOUR_CHAR_CODE('bzy ')
    425 kLastMagicBusyFiletype = FOUR_CHAR_CODE('bzy?')
    426 kMagicBusyCreationDate = 0x4F3AFDB0
    427