8 /***********************************************************
9 Copyright 1993 by Carnegie Mellon University
13 Permission to use, copy, modify, and distribute this software and its
14 documentation for any purpose and without fee is hereby granted,
15 provided that the above copyright notice appear in all copies and that
16 both that copyright notice and this permission notice appear in
17 supporting documentation, and that the name of CMU not be
18 used in advertising or publicity pertaining to distribution of the
19 software without specific, written prior permission.
21 CMU DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
22 ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
23 CMU BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
24 ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
25 WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
26 ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
28 ******************************************************************/
30 * Definitions for the system dependent library file
35 * structure of a directory entry
37 typedef struct direct {
38 long d_ino; /* inode number (not used by MS-DOS) */
39 int d_namlen; /* Name length */
40 char d_name[257]; /* file name */
44 * structure for dir operations
46 typedef struct _dir_struc {
47 char *start; /* Starting position */
48 char *curr; /* Current position */
49 long size; /* Size of string table */
50 long nfiles; /* number if filenames in table */
51 struct direct dirstr; /* Directory structure to return */
54 DIR *opendir(const char *filename);
55 struct direct *readdir(DIR * dirp);
56 int closedir(DIR * dirp);
58 #ifndef HAVE_GETTIMEOFDAY
59 int gettimeofday(struct timeval *, struct timezone *tz);
61 #ifndef HAVE_STRCASECMP
62 int strcasecmp(const char *s1, const char *s2);
64 #ifndef HAVE_STRNCASECMP
65 int strncasecmp(const char *s1, const char *s2, size_t n);
68 char *winsock_startup(void);
69 void winsock_cleanup(void);
71 #define SOCK_STARTUP winsock_startup()
72 #define SOCK_CLEANUP winsock_cleanup()
81 #include <net-snmp/types.h> /* For definition of in_addr_t */
83 in_addr_t get_myaddr(void);
84 long get_uptime(void);
87 char *strdup(const char *);
90 int setenv(const char *, const char *, int);
93 int calculate_time_diff(struct timeval *,
96 #ifndef HAVE_STRCASESTR
97 char *strcasestr(const char *, const char *);
100 long strtol(const char *, char **, int);
103 unsigned long strtoul(const char *, char **, int);
105 #ifndef HAVE_SNPRINTF
106 int snprintf(char *, size_t, const char *, ...);
109 int mkdirhier(const char *pathname, mode_t mode,
115 #endif /* SNMP_SYSTEM_H */