1994-08-19 10:51:31 +00: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>
|
|
|
|
|
1997-04-08 15:24:58 +00:00
|
|
|
#include <errno.h>
|
|
|
|
#include <string.h>
|
1994-12-14 14:10:51 +00:00
|
|
|
#ifdef __MWERKS__
|
|
|
|
#include "errno_unix.h"
|
1997-05-07 15:45:01 +00:00
|
|
|
#include <TextUtils.h>
|
1994-12-14 14:10:51 +00:00
|
|
|
#endif
|
1994-08-19 10:51:31 +00:00
|
|
|
|
1995-01-18 13:58:04 +00:00
|
|
|
/* We may be able to use a std routine in think, don't know */
|
2000-07-11 21:16:03 +00:00
|
|
|
extern unsigned char *Pstring(char *);
|
|
|
|
extern char *getbootvol(void);
|
|
|
|
extern char *getwd(char *);
|
2000-07-14 22:14:46 +00:00
|
|
|
#ifndef USE_GUSI
|
2000-07-11 21:16:03 +00:00
|
|
|
extern int sync(void);
|
2000-07-14 22:14:46 +00:00
|
|
|
#endif
|
1994-08-19 10:51:31 +00:00
|
|
|
|
|
|
|
/* Universal constants: */
|
|
|
|
#define MAXPATH 256
|
1997-04-08 15:24:58 +00:00
|
|
|
#ifndef __MSL__
|
1994-08-19 10:51:31 +00:00
|
|
|
#define TRUE 1
|
|
|
|
#define FALSE 0
|
1997-04-08 15:24:58 +00:00
|
|
|
#endif
|
1994-08-19 10:51:31 +00:00
|
|
|
#ifndef NULL
|
|
|
|
#define NULL 0
|
|
|
|
#endif
|
|
|
|
#define EOS '\0'
|
|
|
|
#define SEP ':'
|