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