mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
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:
parent
3015ef6c59
commit
ffb6cbfc1e
@ -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))
|
||||
|
@ -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))
|
||||
|
@ -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))
|
||||
|
Loading…
x
Reference in New Issue
Block a user