windows-pioctl-debug-20050909
[openafs.git] / src / WINNT / afsd / fs_utils.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 __FS_UTILS_H_ENV__
11 #define __FS_UTILS_H_ENV__ 1
12
13
14 /* pioctl opcode constants */
15 #include "smb_iocons.h"
16
17 /* PRSFS_ constants */
18 #include <afs/prs_fs.h>
19 #include <afs/pioctl_nt.h>
20
21 #ifndef _MFC_VER
22 #include <winsock2.h>
23 #endif
24
25 /* Fake error code since NT errno.h doesn't define it */
26 #include <afs/errmap_nt.h>
27
28 #ifndef hostutil_GetNameByINet
29 extern char *hostutil_GetNameByINet(afs_uint32 addr);
30 #endif
31
32 #ifndef hostutil_GetHostByName
33 extern struct hostent *hostutil_GetHostByName(char *namep);
34 #endif
35
36 // extern long util_GetInt32(char *stringp, long *valuep);
37
38 extern long fs_StripDriveLetter(char *inPathp, char *outPathp, long outSize);
39
40 extern long fs_ExtractDriveLetter(char *inPathp, char *outPathp);
41
42 extern char *cm_mount_root;             /*"afs"*/
43 extern char *cm_slash_mount_root;       /*"/afs"*/
44 extern char *cm_back_slash_mount_root;  /*"\\afs"*/
45 extern void fs_utils_InitMountRoot();
46 #endif /* FS_UTILS_H_ENV */