pull-prototypes-to-head-20020821
[openafs.git] / src / util / afsutil_prototypes.h
1 /*
2  * Copyright 2000, International Business Machines Corporation and others.
3  * All Rights Reserved.
4  * 
5  * This software has been released under the terms of the IBM Public
6  * License.  For details, see the LICENSE file in the top-level source
7  * directory or online at http://www.openafs.org/dl/license10.html
8  */
9
10 #ifndef _AFSUTIL_PROTOTYPES_H
11 #define _AFSUTIL_PROTOTYPES_H
12
13 /* afs_atomlist.c */
14
15
16 /* afs_lhash.c */
17
18
19 /* assert.c */
20
21
22 /* base32.c */
23
24
25 /* base64.c */
26
27
28 /* casestrcpy.c */
29
30
31 /* dirpath.c */
32
33
34 /* errmap_nt.c */
35
36
37 /* fileutil.c */
38
39
40 /* flipbase64.c */
41
42
43 /* get_krbrlm.c */
44
45
46 /* hostparse.c */
47 extern struct hostent *hostutil_GetHostByName(register char *ahost);
48 extern char *hostutil_GetNameByINet(afs_uint32 addr);
49 extern afs_uint32 extractAddr(char *line, int maxSize);
50 extern char *afs_inet_ntoa(afs_uint32 addr);
51 extern char *afs_inet_ntoa_r(afs_uint32 addr, char *buf);
52 extern char *gettmpdir(void);
53
54 /* hputil.c */
55
56
57 /* isathing.c */
58
59
60 /* kreltime.c */
61 extern afs_int32 ktimeRelDate_ToInt32(struct ktime_date *kdptr);
62 extern int Int32To_ktimeRelDate(afs_int32 int32Date, struct ktime_date *kdptr);
63 extern int ktimeDate_FromInt32(afs_int32 timeSecs, struct ktime_date *ktimePtr);
64 extern afs_int32 ParseRelDate(char *dateStr, struct ktime_date *relDatePtr);
65 extern char *RelDatetoString(struct ktime_date *datePtr);
66 extern afs_int32 Add_RelDate_to_Time(struct ktime_date *relDatePtr, afs_int32 atime);
67
68
69 /* ktime.c */
70
71
72 /* netutils.c */
73 extern afs_uint32 extract_Addr(char *line, int maxSize);
74 extern int parseNetRestrictFile(afs_uint32 outAddrs[], afs_uint32 *mask, afs_uint32 *mtu,   
75         afs_uint32 maxAddrs, afs_uint32 *nAddrs, char reason[], const char *fileName);
76 extern int ParseNetInfoFile(afs_uint32 *final, afs_uint32 *mask, afs_uint32 *mtu, 
77         int max, char reason[], const char *fileName);
78 extern int filterAddrs(afs_uint32 addr1[], afs_uint32 addr2[], 
79         afs_uint32 mask1[], afs_uint32 mask2[], 
80         afs_uint32 mtu1[], afs_uint32 mtu2[], 
81         int n1, int n2);
82 extern int parseNetFiles(afs_uint32 addrbuf[], afs_uint32 maskbuf[], afs_uint32 mtubuf[], 
83         afs_uint32 max, char reason[], const char *niFileName, const char *nrFileName);
84
85
86 /* pthread_glock.c */
87
88
89 /* readdir_nt.c */
90
91
92 /* regex.c */
93
94
95 /* secutil_nt.c */
96
97
98 /* serverLog.c */
99
100
101 /* snprintf.c */
102
103
104 /* sys.c */
105
106
107 /* uuid.c */
108 extern afs_int32 afs_uuid_equal(afsUUID *u1, afsUUID *u2);
109 extern afs_int32 afs_uuid_is_nil(afsUUID *u1);
110 extern void afs_htonuuid(afsUUID *uuidp);
111 extern void afs_ntohuuid(afsUUID *uuidp);
112 extern afs_int32 afs_uuid_create (afsUUID *uuid);
113 extern u_short afs_uuid_hash (afsUUID *uuid);
114
115
116 /* volparse.c */
117
118
119 /* winsock_nt.c */
120
121
122 #endif /* _AFSUTIL_PROTOTYPES_H */
123