Previous attempt to remove some compiler warnings was
[AROS-Contrib.git] / regina / mac.h
blob90854e6341f3e50fc2d88e8a34c5423bc0f70365
1 /*
2 * This file contains functions that are missing in Apple's MPW compilers.
3 */
4 #if defined(MAC)
5 # if !defined(_MAC_H_INCLUDED)
6 # define _MAC_H_INCLUDED
7 #include <fcntl.h>
8 #include <string.h>
9 #include <ErrMgr.h>
10 #include <CursorCtl.h>
11 #include <Errors.h>
12 typedef unsigned long dev_t;
15 * For stat() function...
17 struct stat
19 int st_dev;
20 long st_ino;
21 dev_t st_rdev;
22 off_t st_size;
23 int st_mode;
24 time_t st_mtime;
25 int st_nlink;
28 #define S_IFMT 0
29 #define S_IFREG 1
30 #define S_IFDIR 2
32 #define F_OK 0
33 #define R_OK 1
34 #define W_OK 2
35 #define X_OK 4
37 int stat( char *, struct stat * );
38 int fstat( int fd, struct stat * );
39 int sleep( int ms ) ;
40 char * getcwd( char *buf, size_t size );
41 int chdir( char *buf );
42 int isatty( int fd );
43 # endif /* _MAC_H_INCLUDED */
44 #endif