]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
windows map lstat to _stat (mrafsStyleLogs)
authormatt@linuxbox.com <matt@linuxbox.com>
Sat, 22 May 2010 23:40:03 +0000 (19:40 -0400)
committerDerrick Brashear <shadow@dementia.org>
Sun, 23 May 2010 14:23:56 +0000 (07:23 -0700)
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 <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
src/config/param.amd64_w2k.h
src/config/param.i386_w2k.h
src/config/param.i64_w2k.h

index 1efe6aa4b9a5fcb8aa581135de8345a529ec9e5e..e0aa08be3a635212ce03551134267b66220831b7 100644 (file)
@@ -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))
index 30ab18bd2923da7e11ac63df1ffb23a5a80c0369..151e2e64489b96737bd3f2cabee391f8b1b72487 100644 (file)
@@ -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))
index 065125337fc6d445d73b8fd14077898c4a3172e7..3bfe9718ebd798286cf1b4bedd9cc029bd19592d 100644 (file)
@@ -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))