File: mac.h

package info (click to toggle)
regina 3.3-1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 4,928 kB
  • ctags: 7,233
  • sloc: ansic: 50,555; sh: 2,727; lex: 2,298; yacc: 1,498; makefile: 1,010; cpp: 117
file content (44 lines) | stat: -rw-r--r-- 791 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/*
 * This file contains functions that are missing in Apple's MPW compilers.
 */
#if defined(MAC)
# if !defined(_MAC_H_INCLUDED)
# define _MAC_H_INCLUDED
#include <fcntl.h>
#include <string.h>
#include	<ErrMgr.h>
#include	<CursorCtl.h>
#include	<Errors.h>
typedef unsigned long dev_t;

/*
 * For stat() function...
 */
struct stat
{
   int st_dev;
   long st_ino;
   dev_t st_rdev;
   off_t st_size;
   int st_mode;
   time_t st_mtime;
   int st_nlink;
};

#define S_IFMT  0
#define S_IFREG 1
#define S_IFDIR 2

#define F_OK 0
#define R_OK 1
#define W_OK 2
#define X_OK 4

int stat( char *, struct stat * );
int fstat( int fd, struct stat * );
int sleep( int ms ) ;
char * getcwd( char *buf, size_t size );
int chdir( char *buf );
int isatty( int fd );
# endif /* _MAC_H_INCLUDED */
#endif