X-Git-Url: https://git.openafs.org/?p=openafs.git;a=blobdiff_plain;f=src%2Fconfig%2Fparam.i386_nt40.h;h=dde47501247acb4fb476e782ee527a068077a35b;hp=5ca03c87567089f3ae67429b9bb9e265df20b1a0;hb=f2ac483c2bdb018c4f225d2781f15b7926d5063b;hpb=8ee4e0cec9f70f4c1cf44fad0a210f1014680a0d diff --git a/src/config/param.i386_nt40.h b/src/config/param.i386_nt40.h index 5ca03c8..dde4750 100644 --- a/src/config/param.i386_nt40.h +++ b/src/config/param.i386_nt40.h @@ -1,3 +1,6 @@ +#ifndef UKERNEL +/* This section for kernel libafs compiles only */ + /* * Copyright 2000, International Business Machines Corporation and others. * All Rights Reserved. @@ -7,15 +10,17 @@ * directory or online at http://www.openafs.org/dl/license10.html */ -#ifndef _PARAM_NT35_H_ -#define _PARAM_NT35_H_ +#ifndef AFS_PARAM_H +#define AFS_PARAM_H #define AFS_NT40_ENV 1 #define AFSLITTLE_ENDIAN 1 #define AFS_64BIT_IOPS_ENV 1 -#define AFS_NAMEI_ENV 1 /* User space interface to file system */ +#define AFS_NAMEI_ENV 1 /* User space interface to file system */ #define AFS_HAVE_STATVFS 0 /* System doesn't support statvfs */ +#define AFS_KRB5_ERROR_ENV 1 /* fetch_krb5_error_message() available in afsutil.lib */ +#define HAVE_SSIZE_T 1 #include #define SYS_NAME_ID SYS_NAME_ID_i386_nt35 @@ -34,14 +39,16 @@ typedef int ssize_t; /* these macros define Unix-style functions missing in VC++5.0/NT4.0 */ #define MAXPATHLEN _MAX_PATH -#define bzero(A, S) memset((void*)(A), 0, (size_t)(S)) -#define bcopy(A, B, S) memcpy((void*)(B), (void*)(A), (size_t)(S)) +#if 0 +#define memset(A, 0, S) memset((void*)(A), 0, (size_t)(S)) +#define memcpy(B, A, S) memcpy((void*)(B), (void*)(A), (size_t)(S)) /* There is a minor syntactic difference between memcmp and bcmp... */ -#define bcmp(A,B,S) (memcmp((void*)(A), (void*)(B), (size_t)(S)) ? 1 : 0) -#define strcasecmp(s1,s2) _stricmp(s1,s2) +#define memcmp(A, B, S) (memcmp((void*)(A), (void*)(B), (size_t)(S)) ? 1 : 0) +#define strchr(s, c) strchr(s, c) +#define strrchr(s, c) strrchr(s, c) +#endif +#define strcasecmp(s1,s2) _stricmp(s1,s2) #define strncasecmp(s1,s2,n) _strnicmp(s1,s2,n) -#define index(s, c) strchr(s, c) -#define rindex(s, c) strrchr(s, c) #define sleep(seconds) Sleep((seconds) * 1000) #define fsync(fileno) _commit(fileno) #define ftruncate(fd, size) _chsize((fd), (long)(size)) @@ -53,9 +60,16 @@ typedef int ssize_t; #define popen(cmd, mode) _popen((cmd), (mode)) #define pclose(stream) _pclose(stream) -typedef char * caddr_t; +typedef char *caddr_t; #define pipe(fdp) _pipe(fdp, 4096, _O_BINARY) #define snprintf _snprintf -#endif /* _PARAM_NT35_H_ */ +#endif /* AFS_PARAM_H */ + +#else /* !defined(UKERNEL) */ + +/* This section for user space compiles only */ + + +#endif /* !defined(UKERNEL) */