OpenAFS
OpenAFS distributed network file system
|
00001 /* 00002 * Copyright 2000, International Business Machines Corporation and others. 00003 * All Rights Reserved. 00004 * 00005 * This software has been released under the terms of the IBM Public 00006 * License. For details, see the LICENSE file in the top-level source 00007 * directory or online at http://www.openafs.org/dl/license10.html 00008 */ 00009 00010 #ifndef OPENAFS_WINNT_AFSD_FS_UTILS_H 00011 #define OPENAFS_WINNT_AFSD_FS_UTILS_H 1 00012 00013 00014 /* pioctl opcode constants */ 00015 #include "smb_iocons.h" 00016 00017 /* PRSFS_ constants */ 00018 #include <afs/prs_fs.h> 00019 #include <afs/pioctl_nt.h> 00020 00021 #ifndef _MFC_VER 00022 #include <winsock2.h> 00023 #endif 00024 00025 /* Fake error code since NT errno.h doesn't define it */ 00026 #include <afs/errmap_nt.h> 00027 00028 #ifndef hostutil_GetNameByINet 00029 extern char *hostutil_GetNameByINet(afs_uint32 addr); 00030 #endif 00031 00032 #ifndef hostutil_GetHostByName 00033 extern struct hostent *hostutil_GetHostByName(char *namep); 00034 #endif 00035 00036 extern afs_int32 util_GetInt32(char *stringp, afs_int32 *valuep); 00037 00038 extern void fs_utils_InitMountRoot(); 00039 00040 extern long fs_StripDriveLetter(char *inPathp, char *outPathp, size_t outSize); 00041 00042 extern long fs_ExtractDriveLetter(char *inPathp, char *outPathp); 00043 00044 extern long fs_GetFullPath(char *pathp, char *outPathp, size_t outSize); 00045 00046 extern char *fs_GetParent(char *apath); 00047 00048 extern int fs_InAFS(char *apath); 00049 00050 extern int fs_IsFreelanceRoot(char *apath); 00051 00052 #define NETBIOSNAMESZ 1024 00053 extern const char * fs_NetbiosName(void); 00054 00055 extern BOOL fs_IsAdmin (void); 00056 00057 extern char **fs_MakeUtf8Cmdline(int argc, const wchar_t **wargv); 00058 00059 extern void fs_FreeUtf8CmdLine(int argc, char ** argv); 00060 00061 extern void fs_Die(int code, char *filename); 00062 00063 extern const char * fs_filetypestr(afs_uint32 type); 00064 00065 extern void fs_SetProcessName(const char *name); 00066 00067 extern char *cm_mount_root; /*"afs"*/ 00068 extern char *cm_slash_mount_root; /*"/afs"*/ 00069 extern char *cm_back_slash_mount_root; /*"\\afs"*/ 00070 extern void fs_utils_InitMountRoot(); 00071 #endif /* OPENAFS_WINNT_AFSD_FS_UTILS_H */