blob: b64a47e69293ecea4cde546ab4caa78a3f6c0f70 [file] [log] [blame]
Guido van Rossumd4d77281994-08-19 10:51:31 +00001/* Useful #includes and #defines for programming a set of Unix
2 look-alike file system access functions on the Macintosh.
3 Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
4*/
5
6#include <Types.h>
7#include <Files.h>
8#include <OSUtils.h>
9
Guido van Rossum739267b1994-08-29 08:42:37 +000010#ifdef THINK_C
Guido van Rossumd4d77281994-08-19 10:51:31 +000011#include <pascal.h>
12#endif
13
Jack Jansen0c637701994-12-14 14:10:51 +000014#ifdef __MWERKS__
15#include "errno_unix.h"
16#endif
Guido van Rossumd4d77281994-08-19 10:51:31 +000017#include <errno.h>
18#include <string.h>
19
Jack Jansend50e4e11995-01-18 13:58:04 +000020/* We may be able to use a std routine in think, don't know */
21unsigned char *Pstring(char *);
22
Guido van Rossumd4d77281994-08-19 10:51:31 +000023/* Macro to find out whether we can do HFS-only calls: */
24#define FSFCBLen (* (short *) 0x3f6)
25#define hfsrunning() (FSFCBLen > 0)
26
27/* Universal constants: */
28#define MAXPATH 256
29#define TRUE 1
30#define FALSE 0
31#ifndef NULL
32#define NULL 0
33#endif
34#define EOS '\0'
35#define SEP ':'