From: Jeffrey Altman Date: Wed, 6 Jul 2005 06:10:46 +0000 (+0000) Subject: windows-config-param-20050706 X-Git-Tag: openafs-devel-1_5_0~460 X-Git-Url: http://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=16b6696938bea2a27651ca246afef7ad794c99f0 windows-config-param-20050706 New param files for new sysnames --- diff --git a/src/config/param.amd64_w2k.h b/src/config/param.amd64_w2k.h new file mode 100644 index 0000000..c7ed94e --- /dev/null +++ b/src/config/param.amd64_w2k.h @@ -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 +#define SYS_NAME_ID SYS_NAME_ID_amd64_w2k + +#include +#include +#include + +/* + * NT makes size_t a typedef for unsigned int (e.g. in ) + * 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) */ diff --git a/src/config/param.i386_w2k.h b/src/config/param.i386_w2k.h new file mode 100644 index 0000000..b0d6079 --- /dev/null +++ b/src/config/param.i386_w2k.h @@ -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 +#define SYS_NAME_ID SYS_NAME_ID_i386_w2k + +#include +#include +#include + +/* + * NT makes size_t a typedef for unsigned int (e.g. in ) + * 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) */ diff --git a/src/config/param.i64_w2k.h b/src/config/param.i64_w2k.h new file mode 100644 index 0000000..3fe1087 --- /dev/null +++ b/src/config/param.i64_w2k.h @@ -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 +#define SYS_NAME_ID SYS_NAME_ID_i64_w2k + +#include +#include +#include + +/* + * NT makes size_t a typedef for unsigned int (e.g. in ) + * 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) */