41 |
|
|
42 |
|
extern int errno; /* system error number */ |
43 |
|
|
44 |
+ |
/* memory operations */ |
45 |
+ |
#ifdef STRUCTASSIGN |
46 |
+ |
#define copystruct(d,s) (*(d) = *(s)) |
47 |
+ |
#else |
48 |
+ |
#define copystruct(d,s) bcopy((char *)(s),(char *)(d),sizeof(*(d))) |
49 |
+ |
#endif |
50 |
+ |
#ifndef BSD |
51 |
+ |
#define bcopy(s,d,n) (void)memcpy(d,s,n) |
52 |
+ |
#define bzero(d,n) (void)memset(d,0,n) |
53 |
+ |
#define bcmp(b1,b2,n) memcmp(b1,b2,n) |
54 |
+ |
extern char *memcpy(), *memset(); |
55 |
+ |
#endif |
56 |
+ |
|
57 |
|
extern char *sskip(); |
58 |
|
extern char *getpath(); |
59 |
|
extern char *malloc(), *calloc(), *realloc(); |