mirror of
https://git.openafs.org/openafs.git
synced 2025-02-01 14:07:39 +00:00
STABLE14-windows-config-param-20050706
New param files for new sysnames (cherry picked from commit 16b6696938bea2a27651ca246afef7ad794c99f0)
This commit is contained in:
parent
8b6b9ef33b
commit
48479d23e2
73
src/config/param.amd64_w2k.h
Normal file
73
src/config/param.amd64_w2k.h
Normal file
@ -0,0 +1,73 @@
|
||||
#ifndef UKERNEL
|
||||
/* This section for kernel libafs compiles only */
|
||||
|
||||
/*
|
||||
* Copyright 2000, International Business Machines Corporation and others.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* This software has been released under the terms of the IBM Public
|
||||
* License. For details, see the LICENSE file in the top-level source
|
||||
* directory or online at http://www.openafs.org/dl/license10.html
|
||||
*/
|
||||
|
||||
#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_HAVE_STATVFS 0 /* System doesn't support statvfs */
|
||||
|
||||
#include <afs/afs_sysnames.h>
|
||||
#define SYS_NAME_ID SYS_NAME_ID_amd64_w2k
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
/*
|
||||
* NT makes size_t a typedef for unsigned int (e.g. in <stddef.h>)
|
||||
* and has no typedef for ssize_t (a signed size_t).
|
||||
* So, we make our own.
|
||||
*/
|
||||
typedef int ssize_t;
|
||||
|
||||
/* these macros define Unix-style functions missing in VC++5.0/NT4.0 */
|
||||
#define MAXPATHLEN _MAX_PATH
|
||||
|
||||
#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 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 sleep(seconds) Sleep((seconds) * 1000)
|
||||
#define fsync(fileno) _commit(fileno)
|
||||
#define ftruncate(fd, size) _chsize((fd), (long)(size))
|
||||
#define strtoll(str, cp, base) strtoi64((str), (cp), (base))
|
||||
#define strtoull(str, cp, base) strtoui64((str), (cp), (base))
|
||||
|
||||
#define random() rand()
|
||||
#define srandom(a) srand(a)
|
||||
|
||||
#define popen(cmd, mode) _popen((cmd), (mode))
|
||||
#define pclose(stream) _pclose(stream)
|
||||
typedef char *caddr_t;
|
||||
|
||||
#define pipe(fdp) _pipe(fdp, 4096, _O_BINARY)
|
||||
|
||||
#define snprintf _snprintf
|
||||
#endif /* AFS_PARAM_H */
|
||||
|
||||
#else /* !defined(UKERNEL) */
|
||||
|
||||
/* This section for user space compiles only */
|
||||
|
||||
|
||||
#endif /* !defined(UKERNEL) */
|
73
src/config/param.i386_w2k.h
Normal file
73
src/config/param.i386_w2k.h
Normal file
@ -0,0 +1,73 @@
|
||||
#ifndef UKERNEL
|
||||
/* This section for kernel libafs compiles only */
|
||||
|
||||
/*
|
||||
* Copyright 2000, International Business Machines Corporation and others.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* This software has been released under the terms of the IBM Public
|
||||
* License. For details, see the LICENSE file in the top-level source
|
||||
* directory or online at http://www.openafs.org/dl/license10.html
|
||||
*/
|
||||
|
||||
#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_HAVE_STATVFS 0 /* System doesn't support statvfs */
|
||||
|
||||
#include <afs/afs_sysnames.h>
|
||||
#define SYS_NAME_ID SYS_NAME_ID_i386_w2k
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
/*
|
||||
* NT makes size_t a typedef for unsigned int (e.g. in <stddef.h>)
|
||||
* and has no typedef for ssize_t (a signed size_t).
|
||||
* So, we make our own.
|
||||
*/
|
||||
typedef int ssize_t;
|
||||
|
||||
/* these macros define Unix-style functions missing in VC++5.0/NT4.0 */
|
||||
#define MAXPATHLEN _MAX_PATH
|
||||
|
||||
#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 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 sleep(seconds) Sleep((seconds) * 1000)
|
||||
#define fsync(fileno) _commit(fileno)
|
||||
#define ftruncate(fd, size) _chsize((fd), (long)(size))
|
||||
#define strtoll(str, cp, base) strtoi64((str), (cp), (base))
|
||||
#define strtoull(str, cp, base) strtoui64((str), (cp), (base))
|
||||
|
||||
#define random() rand()
|
||||
#define srandom(a) srand(a)
|
||||
|
||||
#define popen(cmd, mode) _popen((cmd), (mode))
|
||||
#define pclose(stream) _pclose(stream)
|
||||
typedef char *caddr_t;
|
||||
|
||||
#define pipe(fdp) _pipe(fdp, 4096, _O_BINARY)
|
||||
|
||||
#define snprintf _snprintf
|
||||
#endif /* AFS_PARAM_H */
|
||||
|
||||
#else /* !defined(UKERNEL) */
|
||||
|
||||
/* This section for user space compiles only */
|
||||
|
||||
|
||||
#endif /* !defined(UKERNEL) */
|
73
src/config/param.i64_w2k.h
Normal file
73
src/config/param.i64_w2k.h
Normal file
@ -0,0 +1,73 @@
|
||||
#ifndef UKERNEL
|
||||
/* This section for kernel libafs compiles only */
|
||||
|
||||
/*
|
||||
* Copyright 2000, International Business Machines Corporation and others.
|
||||
* All Rights Reserved.
|
||||
*
|
||||
* This software has been released under the terms of the IBM Public
|
||||
* License. For details, see the LICENSE file in the top-level source
|
||||
* directory or online at http://www.openafs.org/dl/license10.html
|
||||
*/
|
||||
|
||||
#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_HAVE_STATVFS 0 /* System doesn't support statvfs */
|
||||
|
||||
#include <afs/afs_sysnames.h>
|
||||
#define SYS_NAME_ID SYS_NAME_ID_i64_w2k
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#include <stddef.h>
|
||||
|
||||
/*
|
||||
* NT makes size_t a typedef for unsigned int (e.g. in <stddef.h>)
|
||||
* and has no typedef for ssize_t (a signed size_t).
|
||||
* So, we make our own.
|
||||
*/
|
||||
typedef int ssize_t;
|
||||
|
||||
/* these macros define Unix-style functions missing in VC++5.0/NT4.0 */
|
||||
#define MAXPATHLEN _MAX_PATH
|
||||
|
||||
#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 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 sleep(seconds) Sleep((seconds) * 1000)
|
||||
#define fsync(fileno) _commit(fileno)
|
||||
#define ftruncate(fd, size) _chsize((fd), (long)(size))
|
||||
#define strtoll(str, cp, base) strtoi64((str), (cp), (base))
|
||||
#define strtoull(str, cp, base) strtoui64((str), (cp), (base))
|
||||
|
||||
#define random() rand()
|
||||
#define srandom(a) srand(a)
|
||||
|
||||
#define popen(cmd, mode) _popen((cmd), (mode))
|
||||
#define pclose(stream) _pclose(stream)
|
||||
typedef char *caddr_t;
|
||||
|
||||
#define pipe(fdp) _pipe(fdp, 4096, _O_BINARY)
|
||||
|
||||
#define snprintf _snprintf
|
||||
#endif /* AFS_PARAM_H */
|
||||
|
||||
#else /* !defined(UKERNEL) */
|
||||
|
||||
/* This section for user space compiles only */
|
||||
|
||||
|
||||
#endif /* !defined(UKERNEL) */
|
Loading…
x
Reference in New Issue
Block a user