From ffb6cbfc1ee41ac83a27c094d82bd1c68ef4861c Mon Sep 17 00:00:00 2001 From: "matt@linuxbox.com" Date: Sat, 22 May 2010 19:40:03 -0400 Subject: [PATCH] windows map lstat to _stat (mrafsStyleLogs) Provides function macros mapping lstat to _stat, in Windows param files (i386, amd64, i64). change per jaltman Change-Id: I414422f26114fc270dff0b5915765bf3906a400e Reviewed-on: http://gerrit.openafs.org/2013 Reviewed-by: Derrick Brashear Tested-by: Derrick Brashear --- src/config/param.amd64_w2k.h | 4 ++++ src/config/param.i386_w2k.h | 4 ++++ src/config/param.i64_w2k.h | 4 ++++ 3 files changed, 12 insertions(+) diff --git a/src/config/param.amd64_w2k.h b/src/config/param.amd64_w2k.h index 1efe6aa4b9..e0aa08be3a 100644 --- a/src/config/param.amd64_w2k.h +++ b/src/config/param.amd64_w2k.h @@ -39,6 +39,10 @@ typedef __int64 ssize_t; /* these macros define Unix-style functions missing in VC++5.0/NT4.0 */ #define MAXPATHLEN _MAX_PATH +/* map lstat calls to _stat, until an AFS-aware lstat wrapper + * can be written */ +#define lstat(a, b) _stat((a), (b)) + #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)) diff --git a/src/config/param.i386_w2k.h b/src/config/param.i386_w2k.h index 30ab18bd29..151e2e6448 100644 --- a/src/config/param.i386_w2k.h +++ b/src/config/param.i386_w2k.h @@ -39,6 +39,10 @@ typedef int ssize_t; /* these macros define Unix-style functions missing in VC++5.0/NT4.0 */ #define MAXPATHLEN _MAX_PATH +/* map lstat calls to _stat, until an AFS-aware lstat wrapper + * can be written */ +#define lstat(a, b) _stat((a), (b)) + #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)) diff --git a/src/config/param.i64_w2k.h b/src/config/param.i64_w2k.h index 065125337f..3bfe9718eb 100644 --- a/src/config/param.i64_w2k.h +++ b/src/config/param.i64_w2k.h @@ -38,6 +38,10 @@ typedef __int64 ssize_t; /* these macros define Unix-style functions missing in VC++5.0/NT4.0 */ #define MAXPATHLEN _MAX_PATH +/* map lstat calls to _stat, until an AFS-aware lstat wrapper + * can be written */ +#define lstat(a, b) _stat((a), (b)) + #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))