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 <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
This commit is contained in:
matt@linuxbox.com 2010-05-22 19:40:03 -04:00 committed by Derrick Brashear
parent 3015ef6c59
commit ffb6cbfc1e
3 changed files with 12 additions and 0 deletions

View 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))

View 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))

View 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))