blob: 409c2535c5c9bf5f4faff31782bc743ced35a9c7 [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
Jack Jansen54956721997-04-08 15:24:58 +000010#include <errno.h>
11#include <string.h>
Jack Jansen0c637701994-12-14 14:10:51 +000012#ifdef __MWERKS__
13#include "errno_unix.h"
Jack Jansend1d242e1997-05-07 15:45:01 +000014#include <TextUtils.h>
Jack Jansen0c637701994-12-14 14:10:51 +000015#endif
Guido van Rossumd4d77281994-08-19 10:51:31 +000016
Jack Jansend50e4e11995-01-18 13:58:04 +000017/* We may be able to use a std routine in think, don't know */
Jack Jansen9ae898b2000-07-11 21:16:03 +000018extern unsigned char *Pstring(char *);
19extern char *getbootvol(void);
20extern char *getwd(char *);
Jack Jansenc3f593e2000-07-14 22:14:46 +000021#ifndef USE_GUSI
Jack Jansen9ae898b2000-07-11 21:16:03 +000022extern int sync(void);
Jack Jansenc3f593e2000-07-14 22:14:46 +000023#endif
Guido van Rossumd4d77281994-08-19 10:51:31 +000024
25/* Universal constants: */
26#define MAXPATH 256
Jack Jansen54956721997-04-08 15:24:58 +000027#ifndef __MSL__
Guido van Rossumd4d77281994-08-19 10:51:31 +000028#define TRUE 1
29#define FALSE 0
Jack Jansen54956721997-04-08 15:24:58 +000030#endif
Guido van Rossumd4d77281994-08-19 10:51:31 +000031#ifndef NULL
32#define NULL 0
33#endif
34#define EOS '\0'
35#define SEP ':'