| 8 |
|
|
| 9 |
|
#include <stdio.h> |
| 10 |
|
|
| 11 |
+ |
#include <sys/types.h> |
| 12 |
+ |
|
| 13 |
|
#include <fcntl.h> |
| 14 |
|
|
| 15 |
|
#include <math.h> |
| 76 |
|
#define copystruct(d,s) (*(d) = *(s)) |
| 77 |
|
#endif |
| 78 |
|
|
| 79 |
< |
#ifndef BSD |
| 79 |
> |
#ifdef BSD |
| 80 |
> |
extern long lseek(); |
| 81 |
> |
#else |
| 82 |
|
#define bcopy(s,d,n) (void)memcpy(d,s,n) |
| 83 |
|
#define bzero(d,n) (void)memset(d,0,n) |
| 84 |
|
#define bcmp(b1,b2,n) memcmp(b1,b2,n) |
| 85 |
|
#define index strchr |
| 86 |
|
#define rindex strrchr |
| 87 |
+ |
extern off_t lseek(); |
| 88 |
|
#endif |
| 89 |
+ |
extern long ftell(); |
| 90 |
|
|
| 91 |
|
extern char *sskip(), *sskip2(); |
| 92 |
|
extern char *getpath(), *getenv(); |