1994-08-19 12:51:31 +02:00
|
|
|
/* Useful #includes and #defines for programming a set of Unix
|
|
|
|
look-alike file system access functions on the Macintosh.
|
|
|
|
Public domain by Guido van Rossum, CWI, Amsterdam (July 1987).
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <Types.h>
|
|
|
|
#include <Files.h>
|
|
|
|
#include <OSUtils.h>
|
|
|
|
|
1994-08-29 10:42:37 +02:00
|
|
|
#ifdef THINK_C
|
1994-08-19 12:51:31 +02:00
|
|
|
#include <pascal.h>
|
|
|
|
#endif
|
|
|
|
|
1997-04-08 17:24:58 +02:00
|
|
|
#include <errno.h>
|
|
|
|
#include <string.h>
|
1994-12-14 15:10:51 +01:00
|
|
|
#ifdef __MWERKS__
|
|
|
|
#include "errno_unix.h"
|
1997-05-07 17:45:01 +02:00
|
|
|
#include <TextUtils.h>
|
1994-12-14 15:10:51 +01:00
|
|
|
#endif
|
1994-08-19 12:51:31 +02:00
|
|
|
|
1995-01-18 14:58:04 +01:00
|
|
|
/* We may be able to use a std routine in think, don't know */
|
|
|
|
unsigned char *Pstring(char *);
|
|
|
|
|
1994-08-19 12:51:31 +02:00
|
|
|
/* Macro to find out whether we can do HFS-only calls: */
|
|
|
|
#define FSFCBLen (* (short *) 0x3f6)
|
|
|
|
#define hfsrunning() (FSFCBLen > 0)
|
|
|
|
|
|
|
|
/* Universal constants: */
|
|
|
|
#define MAXPATH 256
|
1997-04-08 17:24:58 +02:00
|
|
|
#ifndef __MSL__
|
1994-08-19 12:51:31 +02:00
|
|
|
#define TRUE 1
|
|
|
|
#define FALSE 0
|
1997-04-08 17:24:58 +02:00
|
|
|
#endif
|
1994-08-19 12:51:31 +02:00
|
|
|
#ifndef NULL
|
|
|
|
#define NULL 0
|
|
|
|
#endif
|
|
|
|
#define EOS '\0'
|
|
|
|
#define SEP ':'
|