1 /* ========================================================================
2  * Copyright 1988-2007 University of Washington
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     http://www.apache.org/licenses/LICENSE-2.0
9  *
10  *
11  * ========================================================================
12  */
13 
14 /*
15  * Program:	Operating-system dependent routines -- Dynix version
16  *
17  * Author:	Mark Crispin
18  *		Networks and Distributed Computing
19  *		Computing & Communications
20  *		University of Washington
21  *		Administration Building, AG-44
22  *		Seattle, WA  98195
23  *		Internet: MRC@CAC.Washington.EDU
24  *
25  * Date:	11 May 1989
26  * Last Edited:	30 January 2007
27  */
28 
29 #include <strings.h>
30 #include <sys/types.h>
31 #include <sys/dir.h>
32 #include <fcntl.h>
33 #include <syslog.h>
34 #include <sys/file.h>
35 
36 
37 typedef unsigned long size_t;
38 
39 char *strtok (char *s,char *ct);
40 char *strtok_r (char *s,char *ct,char **r);
41 char *strstr (char *cs,char *ct);
42 char *strpbrk (char *cs,char *ct);
43 char *strerror (int n);
44 void *memmove (void *s,void *ct,size_t n);
45 void *memset (void *s,int c,size_t n);
46 unsigned long strtoul (char *s,char **endp,int base);
47 void *malloc (size_t byteSize);
48 void free (void *ptr);
49 void *realloc (void *oldptr,size_t newsize);
50 
51 int errno;
52 
53 #define memcpy memmove
54 #define strchr index
55 #define strrchr rindex
56 
57 #include "env_unix.h"
58 #include "fs.h"
59 #include "ftl.h"
60 #include "nl.h"
61 #include "tcp.h"
62