| 2 * It contains source for the ZInitialize function. |
2 * It contains source for the ZInitialize function. |
| 3 * |
3 * |
| 4 * Created by: Robert French |
4 * Created by: Robert French |
| 5 * |
5 * |
| 6 * $Source$ |
6 * $Source$ |
| 7 * $Author: chipx86 $ |
7 * $Author: thekingant $ |
| 8 * |
8 * |
| 9 * Copyright (c) 1987, 1991 by the Massachusetts Institute of Technology. |
9 * Copyright (c) 1987, 1991 by the Massachusetts Institute of Technology. |
| 10 * For copying and distribution information, see the file |
10 * For copying and distribution information, see the file |
| 11 * "mit-copyright.h". |
11 * "mit-copyright.h". |
| 12 */ |
12 */ |
| 15 #ifndef lint |
15 #ifndef lint |
| 16 static char rcsid_ZInitialize_c[] = |
16 static char rcsid_ZInitialize_c[] = |
| 17 "$Zephyr: /afs/athena.mit.edu/astaff/project/zephyr/src/lib/RCS/ZInitialize.c,v 1.17 89/05/30 18:11:25 jtkohl Exp $"; |
17 "$Zephyr: /afs/athena.mit.edu/astaff/project/zephyr/src/lib/RCS/ZInitialize.c,v 1.17 89/05/30 18:11:25 jtkohl Exp $"; |
| 18 #endif |
18 #endif |
| 19 |
19 |
| |
20 #ifdef ZEPHYR_USES_KERBEROS |
| |
21 #ifdef WIN32 |
| |
22 |
| |
23 #else |
| |
24 #include <krb_err.h> |
| |
25 #endif |
| |
26 #endif |
| |
27 |
| 20 #include "internal.h" |
28 #include "internal.h" |
| 21 |
29 |
| |
30 #ifdef WIN32 |
| |
31 #include <winsock2.h> |
| |
32 #else |
| 22 #include <sys/socket.h> |
33 #include <sys/socket.h> |
| 23 #ifdef ZEPHYR_USES_KERBEROS |
|
| 24 #include <krb_err.h> |
|
| 25 #endif |
34 #endif |
| |
35 |
| 26 |
36 |
| 27 #ifndef INADDR_NONE |
37 #ifndef INADDR_NONE |
| 28 #define INADDR_NONE 0xffffffff |
38 #define INADDR_NONE 0xffffffff |
| 29 #endif |
39 #endif |
| 30 |
40 |
| 41 #ifdef ZEPHYR_USES_KERBEROS |
51 #ifdef ZEPHYR_USES_KERBEROS |
| 42 char *krealm = NULL; |
52 char *krealm = NULL; |
| 43 int krbval; |
53 int krbval; |
| 44 char d1[ANAME_SZ], d2[INST_SZ]; |
54 char d1[ANAME_SZ], d2[INST_SZ]; |
| 45 |
55 |
| 46 initialize_krb_error_table(); |
56 /* initialize_krb_error_table(); */ |
| 47 #endif |
57 #endif |
| 48 |
58 |
| 49 initialize_zeph_error_table(); |
59 initialize_zeph_error_table(); |
| 50 |
60 |
| 51 (void) memset((char *)&__HM_addr, 0, sizeof(__HM_addr)); |
61 (void) memset((char *)&__HM_addr, 0, sizeof(__HM_addr)); |