| 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; |
| 13 |
|
| 14 |
/* |
| 15 |
* For stat() function... |
| 16 |
*/ |
| 17 |
struct stat |
| 18 |
{ |
| 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; |
| 26 |
}; |
| 27 |
|
| 28 |
#define S_IFMT 0 |
| 29 |
#define S_IFREG 1 |
| 30 |
#define S_IFDIR 2 |
| 31 |
|
| 32 |
#define F_OK 0 |
| 33 |
#define R_OK 1 |
| 34 |
#define W_OK 2 |
| 35 |
#define X_OK 4 |
| 36 |
|
| 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 |