cep->lock.pid_last_reader = 0;
cep->lock.pid_writer = 0;
cep->lock.src_indicator = 0;
-#if !defined(AFS_64BIT_ENV)
- cep->Length.high = scp->length.HighPart;
- cep->Length.low = scp->length.LowPart;
-#else
cep->Length = (afs_int64) scp->length.QuadPart;
-#endif
cep->DataVersion = (afs_uint32)(scp->dataVersion & 0xFFFFFFFF);
cep->callback = afs_data_pointer_to_int32(scp->cbServerp);
if (scp->flags & CM_SCACHEFLAG_PURERO) {
a_result->lock.pid_writer = 0;
a_result->lock.src_indicator = 0;
#endif /* INSTRUMENT_LOCKS */
-#if !defined(AFS_64BIT_ENV)
- a_result->Length.high = 0;
- a_result->Length.low = tvc->f.m.Length;
-#else
a_result->Length = tvc->f.m.Length;
-#endif
a_result->DataVersion = hgetlo(tvc->f.m.DataVersion);
a_result->callback = afs_data_pointer_to_int32(tvc->callback); /* XXXX Now a pointer; change it XXXX */
a_result->cbExpires = tvc->cbExpires;
-DAFS_FREELANCE_CLIENT \
-DAFS_64BITPOINTER_ENV \
-DAFS_64BITUSERPOINTER_ENV \
- -DAFS_64BIT_ENV \
-DAFS_64BIT_CLIENT \
-D_USE_DECLSPECS_FOR_SAL=0 \
-D_USE_ATTRIBUTES_FOR_SAL=0 \
-DNTDDI_VERSION=0x05000000 \
-DREGISTER_POWER_NOTIFICATIONS \
-DAFS_FREELANCE_CLIENT \
- -DAFS_64BIT_ENV \
-DAFS_64BIT_CLIENT \
$(AFSDEV_AUXCDEFINES)
-DWINVER=0x0500 \
-DREGISTER_POWER_NOTIFICATIONS \
-DAFS_FREELANCE_CLIENT \
- -DAFS_64BIT_ENV \
-DAFS_64BIT_CLIENT \
$(AFSDEV_AUXCDEFINES)
#define __alpha 1
#define AFS_ALPHA_ENV 1
#define AFS_DECOSF_ENV 1
-#define AFS_64BIT_ENV 1
#define AFS_BOZONLOCK_ENV 1
#include <afs/afs_sysnames.h>
#define UKERNEL 1 /* user space kernel */
#define AFS_GREEDY43_ENV 1 /* Used only in rx/rx_user.c */
-#define AFS_64BIT_ENV 1
#define AFS_ENV 1
#define AFS_USR_OSF_ENV 1
#define AFS_USR_DUX40_ENV 1
#define AFS_ALPHA_ENV 1
#define AFS_DECOSF_ENV 1
#define AFS_BOZONLOCK_ENV 1
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#include <afs/afs_sysnames.h>
#define UKERNEL 1 /* user space kernel */
#define AFS_GREEDY43_ENV 1 /* Used only in rx/rx_user.c */
-#define AFS_64BIT_ENV 1
#define AFS_ENV 1
#define AFS_USR_OSF_ENV 1
#define AFS_USR_DUX40_ENV 1
#define AFS_ALPHA_ENV 1
#define AFS_DECOSF_ENV 1
#define AFS_BOZONLOCK_ENV 1
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#include <afs/afs_sysnames.h>
#define UKERNEL 1 /* user space kernel */
#define AFS_GREEDY43_ENV 1 /* Used only in rx/rx_user.c */
-#define AFS_64BIT_ENV 1
#define AFS_ENV 1
#define AFS_USR_OSF_ENV 1
#define AFS_USR_DUX40_ENV 1
#define AFS_ALPHA_ENV 1
#define AFS_ALPHA_XBSD_ENV 1
-#define AFS_64BIT_ENV 1
-
#define SYS_NAME "alpha_nbsd15"
#define SYS_NAME_ID SYS_NAME_ID_alpha_nbsd15
#define AFS_ALPHA_ENV 1
#define AFS_ALPHA_XBSD_ENV 1
-#define AFS_64BIT_ENV 1
-
#define SYS_NAME "alpha_nbsd16"
#define SYS_NAME_ID SYS_NAME_ID_alpha_nbsd16
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BITPOINTER_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BITPOINTER_ENV 1
#define AFS_64BITUSERPOINTER_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BITPOINTER_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BITPOINTER_ENV 1
#define AFS_64BITUSERPOINTER_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BITPOINTER_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BITPOINTER_ENV 1
#define AFS_64BITUSERPOINTER_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BITPOINTER_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BITPOINTER_ENV 1
#define AFS_64BITUSERPOINTER_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BITPOINTER_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BITPOINTER_ENV 1
#define AFS_64BITUSERPOINTER_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BITPOINTER_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define AFS_PARAM_H
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1
#if defined(__ppc__)
#define AFS_PARAM_H
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#if defined(__ppc__)
#define AFS_PPC_ENV 1
#elif defined(__i386__) || defined(__amd64__)
#define AFS_HPUX102_ENV 1
#define AFS_HPUX110_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BITPOINTER_ENV 1 /* pointers are 64 bits. */
#include <afs/afs_sysnames.h>
#define AFS_GREEDY43_ENV 1 /* Used only in rx/rx_user.c */
#define AFS_ENV 1
#define AFS_USR_HPUX_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#include <afs/afs_sysnames.h>
#define AFS_HPUX1122_ENV 1
#define AFS_HPUX1123_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#if defined(__LP64__)
#define AFS_64BITPOINTER_ENV 1 /* pointers are 64 bits. */
#define AFS_HPUX110_ENV 1
#define AFS_HPUX1111_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_64BITPOINTER_ENV 1 /* pointers are 64 bits. */
#define AFS_64BITUSERPOINTER_ENV 1
#define AFS_GREEDY43_ENV 1 /* Used only in rx/rx_user.c */
#define AFS_ENV 1
#define AFS_USR_HPUX_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#include <afs/afs_sysnames.h>
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_DFBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#include <afs/afs_sysnames.h>
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#include <afs/afs_sysnames.h>
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#include <afs/afs_sysnames.h>
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_FBSD_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_SYSCALL 339
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#define AFS_X86_XBSD_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_OBSD_ENV 1
#define AFS_HPUX1111_ENV 1
#define AFS_HPUX1122_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#if defined(__LP64__)
#define AFS_64BITPOINTER_ENV 1 /* pointers are 64 bits. */
#define AFS_HPUX1122_ENV 1
#define AFS_HPUX1123_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#if defined(__LP64__)
#define AFS_64BITPOINTER_ENV 1 /* pointers are 64 bits. */
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type */
#define AFS_64BIT_IOPS_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#undef AFS_NONFSTRANS
#define AFS_NONFSTRANS 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type */
#define AFS_64BIT_IOPS_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#undef AFS_NONFSTRANS
#define AFS_NONFSTRANS 1
#define AFS_NONFSTRANS 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_64BIT_IOPS_ENV 1
-#define AFS_64BIT_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type */
#define AFS_64BIT_IOPS_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#undef AFS_NONFSTRANS
#define AFS_NONFSTRANS 1
#define AFS_NONFSTRANS 1
#define AFS_MOUNT_AFS "afs" /* The name of the filesystem type. */
#define AFS_64BIT_IOPS_ENV 1
-#define AFS_64BIT_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
#define AFS_USERSPACE_IP_ADDR 1
#define RXK_LISTENER_ENV 1
#ifndef AFS_PARAM_COMMON_H
#define AFS_PARAM_COMMON_H 1
-#define AFS_64BIT_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_64BIT_CLIENT 1
#ifndef AFS_PARAM_COMMON_H
#define AFS_PARAM_COMMON_H 1
-#define AFS_64BIT_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_64BIT_CLIENT 1
#ifndef AFS_PARAM_COMMON_H
#define AFS_PARAM_COMMON_H 1
-#define AFS_64BIT_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_64BIT_CLIENT 1
#ifndef AFS_PARAM_COMMON_H
#define AFS_PARAM_COMMON_H 1
-#define AFS_64BIT_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_64BIT_CLIENT 1
#ifndef AFS_PARAM_COMMON_H
#define AFS_PARAM_COMMON_H 1
-#define AFS_64BIT_ENV 1
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_64BIT_CLIENT 1
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_OBSD_ENV 1
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_XBSD_ENV 1 /* {Free,Open,Net}BSD */
#define AFS_NAMEI_ENV 1 /* User space interface to file system */
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1 /* Needed for NAMEI */
#define AFS_PARAM_H
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_IOPS_ENV 1
#define AFS_PPC_ENV 1
#define AFS_VFSINCL_ENV 1
#define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_PPC_ENV 1
#include <afs/afs_sysnames.h>
#define AFS_PARAM_H
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1
#if defined(__ppc__)
#define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#if defined(__ppc__)
#define AFS_PPC_ENV 1
#elif defined(__i386__)
#define AFS_PARAM_H
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1
#if defined(__ppc__)
#define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#if defined(__ppc__)
#define AFS_PPC_ENV 1
#elif defined(__i386__)
#define AFS_AIX41_ENV 1
#define AFS_AIX42_ENV 1
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#ifdef AFS_NAMEI_ENV
#ifndef AFS_PARAM_H
#define AFS_PARAM_H
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_VFS_ENV 1
#define AFS_AIX42_ENV 1
#define AFS_AIX51_ENV 1
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_NAMEI_ENV 1
#ifdef AFS_NAMEI_ENV
#ifndef AFS_PARAM_H
#define AFS_PARAM_H
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_NAMEI_ENV 1
#ifdef AFS_NAMEI_ENV
#define AFS_AIX51_ENV 1
#define AFS_AIX52_ENV 1
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_NAMEI_ENV 1
#ifdef AFS_NAMEI_ENV
#ifndef AFS_PARAM_H
#define AFS_PARAM_H
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_NAMEI_ENV 1
#ifdef AFS_NAMEI_ENV
#define AFS_AIX52_ENV 1
#define AFS_AIX53_ENV 1
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_NAMEI_ENV 1
#ifdef AFS_NAMEI_ENV
#ifndef AFS_PARAM_H
#define AFS_PARAM_H
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_NAMEI_ENV 1
#ifdef AFS_NAMEI_ENV
#define AFS_AIX53_ENV 1
#define AFS_AIX61_ENV 1
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_NAMEI_ENV 1
#ifdef AFS_NAMEI_ENV
#ifndef AFS_PARAM_H
#define AFS_PARAM_H
-#define AFS_64BIT_ENV 1
#define AFS_64BIT_CLIENT 1
#define AFS_NAMEI_ENV 1
#ifdef AFS_NAMEI_ENV
#define _ANSI_C_SOURCE 1 /* rx_user.h */
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_64BITPOINTER_ENV 1 /* pointers are 64 bits. */
#define AFS_64BITUSERPOINTER_ENV 1
#define AFS_HAVE_FFS 1 /* Use system's ffs. */
#define AFS_HAVE_STATVFS 1 /* System supports statvfs */
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
-
#include <afs/afs_sysnames.h>
/* Extra kernel definitions (from kdefs file) */
#define AFS_SUN510_ENV 1
#define AFS_BOZONLOCK_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_HAVE_FLOCK_SYSID 1
/**
* These defines are for the 64 bit Solaris 7 port
* AFS_SYSCALL32 is used to protect the ILP32 syscall interface
- * AFS_64BIT_ENV is for use of 64 bit inode numbers
*/
#if defined(__sparcv9)
#define AFS_SUN57_64BIT_ENV 1
#define AFS_USR_SUN8_ENV 1
#define AFS_USR_SUN9_ENV 1
-#define AFS_64BIT_ENV 1
-
#include <afs/afs_sysnames.h>
#if 0
#define AFS_SUN511_ENV 1
#define AFS_BOZONLOCK_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_HAVE_FLOCK_SYSID 1
/**
* These defines are for the 64 bit Solaris 7 port
* AFS_SYSCALL32 is used to protect the ILP32 syscall interface
- * AFS_64BIT_ENV is for use of 64 bit inode numbers
*/
#if defined(__sparcv9)
#define AFS_SUN57_64BIT_ENV 1
#define AFS_USR_SUN8_ENV 1
#define AFS_USR_SUN9_ENV 1
-#define AFS_64BIT_ENV 1
#include <afs/afs_sysnames.h>
#define RXK_LISTENER_ENV 1
#define AFS_GCPAGS 1 /* if nonzero, garbage collect PAGs */
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_3DISPARES 1 /* Utilize the 3 available disk inode 'spares' */
#define AFS_SUN57_ENV 1
#define AFS_BOZONLOCK_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_HAVE_FLOCK_SYSID 1
/**
* These defines are for the 64 bit Solaris 7 port
* AFS_SYSCALL32 is used to protect the ILP32 syscall interface
- * AFS_64BIT_ENV is for use of 64 bit inode numbers
*/
#if defined(__sparcv9)
#define AFS_SUN57_64BIT_ENV 1
#define AFS_SUN58_ENV 1
#define AFS_BOZONLOCK_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_HAVE_FLOCK_SYSID 1
/**
* These defines are for the 64 bit Solaris 7 port
* AFS_SYSCALL32 is used to protect the ILP32 syscall interface
- * AFS_64BIT_ENV is for use of 64 bit inode numbers
*/
#if defined(__sparcv9)
#define AFS_SUN57_64BIT_ENV 1
#define AFS_USR_SUN7_ENV 1
#define AFS_USR_SUN8_ENV 1
-#define AFS_64BIT_ENV 1
-
#include <afs/afs_sysnames.h>
#if 0
#define AFS_SUN59_ENV 1
#define AFS_BOZONLOCK_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_HAVE_FLOCK_SYSID 1
/**
* These defines are for the 64 bit Solaris 7 port
* AFS_SYSCALL32 is used to protect the ILP32 syscall interface
- * AFS_64BIT_ENV is for use of 64 bit inode numbers
*/
#if defined(__sparcv9)
#define AFS_SUN57_64BIT_ENV 1
#define AFS_USR_SUN8_ENV 1
#define AFS_USR_SUN9_ENV 1
-#define AFS_64BIT_ENV 1
-
#include <afs/afs_sysnames.h>
#if 0
#define AFS_BOZONLOCK_ENV 1
#define AFS_X86_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_HAVE_FLOCK_SYSID 1
/**
* These defines are for the 64 bit Solaris 7 port
* AFS_SYSCALL32 is used to protect the ILP32 syscall interface
- * AFS_64BIT_ENV is for use of 64 bit inode numbers
*/
#if defined(__amd64)
#define AFS_SUN57_64BIT_ENV 1
#define AFS_USR_SUN8_ENV 1
#define AFS_USR_SUN9_ENV 1
-#define AFS_64BIT_ENV 1
-
#include <afs/afs_sysnames.h>
#if 0
#define AFS_BOZONLOCK_ENV 1
#define AFS_X86_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_HAVE_FLOCK_SYSID 1
/**
* These defines are for the 64 bit Solaris 7 port
* AFS_SYSCALL32 is used to protect the ILP32 syscall interface
- * AFS_64BIT_ENV is for use of 64 bit inode numbers
*/
#if defined(__amd64)
#define AFS_SUN57_64BIT_ENV 1
#define AFS_USR_SUN8_ENV 1
#define AFS_USR_SUN9_ENV 1
-#define AFS_64BIT_ENV 1
-
#include <afs/afs_sysnames.h>
#if 0
#define AFS_X86_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_HAVE_FLOCK_SYSID 1
#define AFS_X86_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_HAVE_FLOCK_SYSID 1
#define AFS_X86_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_HAVE_FLOCK_SYSID 1
#define AFS_PARAM_H
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1
#if defined(__ppc__)
#define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#if defined(__ppc__)
#define AFS_PPC_ENV 1
#elif defined(__i386__) || defined(__amd64__)
#define AFS_PARAM_H
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1
#if defined(__ppc__)
#define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#if defined(__ppc__)
#define AFS_PPC_ENV 1
#elif defined(__i386__)
#define AFS_PARAM_H
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#define AFS_64BIT_CLIENT 1
#define AFS_64BIT_IOPS_ENV 1
#if defined(__ppc__)
#define AFS_VFSINCL_ENV 1 /* NOBODY uses this.... */
#define AFS_ENV 1
-#define AFS_64BIT_ENV 1 /* Defines afs_int32 as int, not long. */
#if defined(__ppc__)
#define AFS_PPC_ENV 1
#elif defined(__i386__) || defined(__x86_64__)
typedef short afs_int16;
typedef unsigned short afs_uint16;
-#ifdef AFS_64BIT_ENV
typedef int afs_int32;
typedef unsigned int afs_uint32;
#if defined(AFS_NT40_ENV) && defined(_MSC_VER)
#define SplitInt64(t,h,l) (h) = ((afs_int64)t) >> 32; (l) = (t) & MAX_AFS_UINT32;
#define RoundInt64ToInt32(a) (a > MAX_AFS_UINT32) ? MAX_AFS_UINT32 : a;
#define RoundInt64ToInt31(a) (a > MAX_AFS_INT32) ? MAX_AFS_INT32 : a;
-#else /* AFS_64BIT_ENV */
-typedef long afs_int32;
-typedef unsigned long afs_uint32;
-
-struct Int64 {
- afs_int32 high;
- afs_uint32 low;
-};
-typedef struct Int64 afs_int64;
-
-struct u_Int64 {
- afs_uint32 high;
- afs_uint32 low;
-};
-typedef struct u_Int64 afs_uint64;
-#define ZeroInt64(a) ((a).high = (a).low = 0)
-#define AssignInt64(a, b) (b)->high = (a).high; (b)->low = (a).low
-#define IncInt64(a) ((++((a)->low)) ? 0 : (a)->high++ )
-#define IncUInt64(a) ((++((a)->low)) ? 0 : (a)->high++ )
-#define DecInt64(a) (((a)->low)-- ? 0 : (a)->high-- )
-#define DecUInt64(a) (((a)->low)-- ? 0 : (a)->high-- )
-#define GTInt64(a,b) (((a).high > (b).high) || (((a).high == (b).high) && ((a).low > (b).low)))
-#define GEInt64(a,b) (((a).high > (b).high) || (((a).high == (b).high) && ((a).low >= (b).low)))
-#define LEInt64(a,b) (((a).high < (b).high) || (((a).high == (b).high) && ((a).low <= (b).low)))
-#define LTInt64(a,b) (((a).high < (b).high) || (((a).high == (b).high) && ((a).low < (b).low)))
-#define CompareInt64(a,b) (((afs_int32)(a).high - (afs_int32)(b).high) || (((a).high == (b).high) && ((a).low - (b).low)))
-#define AddInt64(a, b, c) { afs_int64 _a, _b; _a = a; _b = b; (c)->low = _a.low + _b.low; (c)->high = _a.high + _b.high + ((c)->low < _b.low); }
-#define SubtractInt64(a, b, c) { afs_int64 _a, _b; _a = a; _b = b; (c)->low = _a.low - _b.low; (c)->high = _a.high - _b.high - (_a.low < _b.low); }
-#define CompareUInt64(a,b) (((afs_uint32)(a).high - (afs_uint32)(b).high) || (((a).high == (b).high) && ((a).low - (b).low)))
-#define AddUInt64(a, b, c) { afs_uint64 _a, _b; _a = a; _b = b; (c)->low = _a.low + _b.low; (c)->high = _a.high + _b.high + ((c)->low < _b.low); }
-#define SubtractUInt64(a, b, c) { afs_uint64 _a, _b; _a = a; _b = b; (c)->low = _a.low - _b.low; (c)->high = _a.high - _b.high - (_a.low < _b.low); }
-#define NonZeroInt64(a) (a).low || (a).high
-#define Int64ToInt32(a) (a).low
-#define FillInt64(t,h,l) (t).high = (h); (t).low = (l);
-#define SplitInt64(t,h,l) (h) = (t).high; (l) = (t).low;
-#define RoundInt64ToInt32(a) (a.high > 0) ? MAX_AFS_UINT32 : a.low;
-#define RoundInt64ToInt31(a) (a.high > 0) ? MAX_AFS_INT32 : a.low;
-#endif /* AFS_64BIT_ENV */
-
-/* AFS_64BIT_CLIENT should presently be set only for AFS_64BIT_ENV systems */
#ifdef AFS_64BIT_CLIENT
typedef afs_int64 afs_size_t;
* some assistence in this matter. The hyper type is supposed to be compatible
* with the afsHyper type: the same macros will work on both. */
-#if defined(AFS_64BIT_ENV) && 0
+#if 0
typedef unsigned long afs_hyper_t;
#define hadd32(a,b) ((a) += (b))
#define hshlft(a,n) ((a)<<(n))
-#else /* AFS_64BIT_ENV */
+#else /* 0*/
typedef struct afs_hyper_t { /* unsigned 64 bit integers */
unsigned int high;
(a).low += (int)(i))
#define hadd(a,b) (hadd32(a,(b).low), (a).high += (b).high)
-#endif /* AFS_64BIT_ENV */
+#endif /* 0 */
#if !defined(KERNEL) || defined(UKERNEL)
#ifndef AFS_NT40_ENV
#endif
#include "xdr.h"
-#ifdef AFS_64BIT_ENV
/*
* XDR afs_int64 integers
*/
return (FALSE);
}
-#else /* AFS_64BIT_ENV */
-/*
- * XDR afs_int64 integers
- */
-bool_t
-xdr_int64(XDR * xdrs, afs_int64 * ulp)
-{
- return xdr_afs_int64(xdrs, ulp);
-}
-
-bool_t
-xdr_afs_int64(XDR * xdrs, afs_int64 * ulp)
-{
- if (xdrs->x_op == XDR_DECODE) {
- if (!XDR_GETINT32(xdrs, (afs_int32 *) & ulp->high))
- return (FALSE);
- return (XDR_GETINT32(xdrs, (afs_int32 *) & ulp->low));
- }
- if (xdrs->x_op == XDR_ENCODE) {
- if (!XDR_PUTINT32(xdrs, (afs_int32 *) & ulp->high))
- return (FALSE);
- return (XDR_PUTINT32(xdrs, (afs_int32 *) & ulp->low));
- }
- if (xdrs->x_op == XDR_FREE)
- return (TRUE);
- return (FALSE);
-}
-
-/*
- * XDR afs_uint64 integers
- */
-bool_t
-xdr_uint64(XDR * xdrs, afs_uint64 * ulp)
-{
- return xdr_afs_uint64(xdrs, ulp);
-}
-
-bool_t
-xdr_afs_uint64(XDR * xdrs, afs_uint64 * ulp)
-{
- if (xdrs->x_op == XDR_DECODE) {
- if (!XDR_GETINT32(xdrs, (afs_uint32 *) & ulp->high))
- return (FALSE);
- return (XDR_GETINT32(xdrs, (afs_uint32 *) & ulp->low));
- }
- if (xdrs->x_op == XDR_ENCODE) {
- if (!XDR_PUTINT32(xdrs, (afs_uint32 *) & ulp->high))
- return (FALSE);
- return (XDR_PUTINT32(xdrs, (afs_uint32 *) & ulp->low));
- }
- if (xdrs->x_op == XDR_FREE)
- return (TRUE);
- return (FALSE);
-}
-#endif /* AFS_64BIT_ENV */
const unsigned char *key = key_;
/* Do we have 56 bit longs or even longer longs? */
-#ifdef AFS_64BIT_ENV
afs_uint64 k; /* k holds all 56 non parity bits */
/* Compress out parity bits */
*sched++ = EFF_NTOHL((afs_uint32) k);
ROT56R64(k, 11);
*sched++ = EFF_NTOHL((afs_uint32) k);
-#else
- afs_uint32 hi, lo; /* hi is upper 24 bits and lo lower 32, total 56 */
-
- /* Compress out parity bits */
- lo = (*key++) >> 1;
- lo <<= 7;
- lo |= (*key++) >> 1;
- lo <<= 7;
- lo |= (*key++) >> 1;
- lo <<= 7;
- lo |= (*key++) >> 1;
- hi = lo >> 4;
- lo &= 0xf;
- lo <<= 7;
- lo |= (*key++) >> 1;
- lo <<= 7;
- lo |= (*key++) >> 1;
- lo <<= 7;
- lo |= (*key++) >> 1;
- lo <<= 7;
- lo |= (*key) >> 1;
- /* Use lower 32 bits for schedule, rotate by 11 each round (16 times) */
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
-
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
-
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
-
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
- ROT56R(hi, lo, 11);
- *sched++ = EFF_NTOHL(lo);
-#endif
INC_RXKAD_STATS(fc_key_scheds);
return 0;
}
#include <afs/param.h>
#ifdef AFS_NAMEI_ENV
#include <sys/types.h>
-#if AFS_64BIT_ENV
+
typedef afs_uint64 Inode;
-#else
-typedef u_int64_t Inode;
-#endif
+
#else /* AFS_NAMEI_ENV */
#ifdef AFS_64BIT_IOPS_ENV
#ifdef AFS_SGI62_ENV
typedef uint64_t Inode;
#else
#include <sys/types.h>
-#if AFS_64BIT_ENV
typedef afs_uint64 Inode;
-#else
-error Need 64 bit Inode defined.
-#endif
#endif /* AFS_SGI62_ENV */
#else /* AFS_64BIT_IOPS_ENV */
typedef unsigned int Inode;
{
int ret = 0;
char * p;
-#ifndef AFS_64BIT_ENV
- afs_uint32 hi, lo;
-
- SplitInt64(*offset, hi, lo);
-#endif
/* update cursor */
p = (char *) state->mmap.map;
-#ifdef AFS_64BIT_ENV
p += *offset;
-#else
- p += lo;
-#endif
state->mmap.cursor = (void *) p;
/* update offset */
DWORDLONG k = (DWORDLONG) ((afs_uint32) usd->privateData);
- /* _ASSERT(AFS_64BIT_ENV); */
if (offset >= (k << 10))
return EINVAL;
}
/* base 64 converters for namei interface. Flip bits to differences are
* early in name.
*/
-#ifdef AFS_64BIT_ENV
#define int32_to_flipbase64(S, A) int64_to_flipbase64(S, (afs_uint64)(A))
extern char *int64_to_flipbase64(lb64_string_t s, afs_uint64 a);
extern afs_int64 flipbase64_to_int64(char *s);
-#else
-#define int32_to_flipbase64(S, A) int64_to_flipbase64(S, (u_int64_t)(A))
-extern char *int64_to_flipbase64(lb64_string_t s, u_int64_t a);
-extern int64_t flipbase64_to_int64(char *s);
-#endif
#endif
/* get_krbrlm.c */
* The supplied string 's' must be at least 12 bytes long.
* lb64_string in stds.h provides a typedef to get the length.
*/
-#ifdef AFS_64BIT_ENV
char *
int64_to_flipbase64(lb64_string_t s, afs_uint64 a)
-#else
-char *
-int64_to_flipbase64(lb64_string_t s, u_int64_t a)
-#endif
{
int i;
-#ifdef AFS_64BIT_ENV
afs_uint64 n;
-#else
- u_int64_t n;
-#endif
i = 0;
if (a == 0)
}
-#ifdef AFS_64BIT_ENV
afs_int64
flipbase64_to_int64(char *s)
-#else
-int64_t
-flipbase64_to_int64(char *s)
-#endif
{
-#ifdef AFS_64BIT_ENV
afs_int64 n = 0;
afs_int64 result = 0;
-#else
- int64_t n = 0;
- int64_t result = 0;
-#endif
int shift;
for (shift = 0; *s; s++) {
*state->s++ = c;
}
-/* longest integer types */
-
-#ifdef AFS_64BIT_ENV
-typedef afs_uint64 u_longest;
-typedef afs_int64 longest;
-#else
-typedef afs_uint32 u_longest;
-typedef afs_int32 longest;
-#endif
-
static int
pad(struct snprintf_state *state, int width, char c)
{
/* return true if we should use alternatve hex form */
static int
-use_alternative (int flags, u_longest num, unsigned base)
+use_alternative (int flags, afs_uint64 num, unsigned base)
{
return (flags & alternate_flag) && base == 16 && num != 0;
}
static int
append_number(struct snprintf_state *state,
- u_longest num, unsigned base, const char *rep,
+ afs_uint64 num, unsigned base, const char *rep,
int width, int prec, int flags, int minusp)
{
int len = 0;
- u_longest n = num;
+ afs_uint64 n = num;
char nstr[MAXPREC]; /* enough for <192 bit octal integers */
int nstart, nlen;
char signchar;
* This can't be made into a function...
*/
-#if defined(AFS_64BIT_ENV)
#if defined(AFS_NT40_ENV)
#define PARSE_INT_FORMAT(res, arg, unsig) \
res = (unsig int)va_arg(arg, unsig int)
#endif
-#else
-
-#define PARSE_INT_FORMAT(res, arg, unsig) \
-if (long_flag || addr_flag) \
- res = (afs_uint32)va_arg(arg, afs_uint32); \
-else if (size_t_flag) \
- res = (size_t)va_arg(arg, size_t); \
-else if (short_flag) \
- res = (unsig short)va_arg(arg, unsig int); \
-else \
- res = (unsig int)va_arg(arg, unsig int)
-
-#endif
/*
* zyxprintf - return length, as snprintf
break;
case 'd' :
case 'i' : {
- longest arg;
- u_longest num;
+ afs_int64 arg;
+ afs_uint64 num;
int minusp = 0;
PARSE_INT_FORMAT(arg, ap, signed);
break;
}
case 'u' : {
- u_longest arg;
+ afs_uint64 arg;
PARSE_INT_FORMAT(arg, ap, unsigned);
break;
}
case 'o' : {
- u_longest arg;
+ afs_uint64 arg;
PARSE_INT_FORMAT(arg, ap, unsigned);
break;
}
case 'x' : {
- u_longest arg;
+ afs_uint64 arg;
PARSE_INT_FORMAT(arg, ap, unsigned);
break;
}
case 'X' :{
- u_longest arg;
+ afs_uint64 arg;
PARSE_INT_FORMAT(arg, ap, unsigned);
}
case 'p' : {
#ifdef AFS_64BITUSERPOINTER_ENV
- u_longest arg = (u_longest)va_arg(ap, void*);
+ afs_uint64 arg = (afs_uint64)va_arg(ap, void*);
#else
- u_longest arg = (unsigned long)va_arg(ap, void*);
+ afs_uint64 arg = (unsigned long)va_arg(ap, void*);
#endif
len += append_number (state, arg, 0x10, "0123456789ABCDEF",
width, prec, flags, 0);
break;
}
case 'I' : {
- u_longest arg;
+ afs_uint64 arg;
PARSE_INT_FORMAT(arg, ap, unsigned);
#endif
-#if defined(AFS_64BIT_ENV) && defined(AFS_NT40_ENV)
+#if defined(AFS_NT40_ENV)
static int
cmp_with_sprintf_I64 (void)
#ifdef HAVE_LONG_LONG
ret += cmp_with_sprintf_long_long ();
#endif
-#if defined(AFS_64BIT_ENV) && defined(AFS_NT40_ENV)
+#if defined(AFS_NT40_ENV)
ret += cmp_with_sprintf_I64 ();
#endif
ret += cmp_with_sprintf_float ();
PrintLock(¢ry.lock);
printf("\n");
}
-#ifdef AFS_64BIT_ENV
#ifdef AFS_NT40_ENV
printf(" %12I64d bytes DV %12d refcnt %5d\n", centry.Length,
centry.DataVersion, centry.refCount);
printf(" %12llu bytes DV %12d refcnt %5d\n", centry.Length,
centry.DataVersion, centry.refCount);
#endif
-#else
- printf(" %12d bytes DV %12d refcnt %5d\n", centry.Length,
- centry.DataVersion, centry.refCount);
-#endif
if (print_ctime) {
time_t t = centry.cbExpires;
printf(" callback %08x\texpires %s\n", centry.callback,
int code;
afs_sfsize_t tPos, tLen;
-#ifdef AFS_64BIT_ENV
tPos = (afs_sfsize_t) Pos;
tLen = (afs_sfsize_t) Len;
-#else /* AFS_64BIT_ENV */
- if (Pos.high || Len.high)
- return EFBIG;
- tPos = Pos.low;
- tLen = Len.low;
-#endif /* AFS_64BIT_ENV */
code =
common_FetchData64(acall, Fid, tPos, tLen, OutStatus, CallBack, Sync,
afs_fsize_t tLength;
afs_fsize_t tFileLength;
-#ifdef AFS_64BIT_ENV
tPos = (afs_fsize_t) Pos;
tLength = (afs_fsize_t) Length;
tFileLength = (afs_fsize_t) FileLength;
-#else /* AFS_64BIT_ENV */
- if (FileLength.high)
- return EFBIG;
- tPos = Pos.low;
- tLength = Length.low;
- tFileLength = FileLength.low;
-#endif /* AFS_64BIT_ENV */
code =
common_StoreData64(acall, Fid, InStatus, tPos, tLength, tFileLength,
dataBytes = 1 * sizeof(afs_int32);
dataBuffP = (afs_uint32 *) malloc(dataBytes);
dataBuffP[0] = VICED_CAPABILITY_ERRORTRANS | VICED_CAPABILITY_WRITELOCKACL;
-#if defined(AFS_64BIT_ENV)
dataBuffP[0] |= VICED_CAPABILITY_64BITFILES;
-#endif
if (saneacls)
dataBuffP[0] |= VICED_CAPABILITY_SANEACLS;
int fd, oflag;
afs_uint32 magic, freelisthead;
afs_uint32 now;
-#ifdef AFS_64BIT_ENV
afs_int64 now64;
-#endif
oflag = O_RDONLY;
#ifdef AFS_NT40_ENV
exit(1);
}
}
-#ifdef AFS_64BIT_ENV
if (timebits == 64) {
read(fd, &now64, sizeof(afs_int64));
now = (afs_int32) now64;
} else
-#endif
read(fd, &now, sizeof(afs_int32));
+
read(fd, &cbstuff, sizeof(cbstuff));
read(fd, TimeOuts, sizeof(TimeOuts));
read(fd, timeout, sizeof(timeout));
argc--;
timebits = atoi(*++argv);
if ((timebits != 32)
-#ifdef AFS_64BIT_ENV
&& (timebits != 64)
-#endif
)
err++;
} else if (!strcmp(*argv, "-volume")) {
if (err || argc != 1) {
fprintf(stderr,
"Usage: cbd [-host cbid] [-fid volume vnode] [-stats] [-all] [-timebits 32"
-#ifdef AFS_64BIT_ENV
"|64"
-#endif
"] callbackdumpfile\n");
fprintf(stderr,
"[cbid is shown for each host in the hosts.dump file]\n");
*status = 0;
-#ifdef AFS_64BIT_ENV
{
afs_uint32 filesize_high = 0L, filesize_low = 0L;
if (tag == 'h') {
}
FillInt64(filesize, filesize_high, filesize_low);
}
-#else /* !AFS_64BIT_ENV */
- if (!ReadInt32(iodp, &filesize)) {
- *status = 1;
- return (0);
- }
-#endif /* !AFS_64BIT_ENV */
p = (unsigned char *)malloc(size);
if (p == NULL) {
*status = 2;
fprintf(STDOUT, "Volume: %s\n", as->parms[0].items->data);
if (as->parms[3].items) { /* do the dump estimate */
-#ifdef AFS_64BIT_ENV
vol_size.dump_size = 0;
-#else
- FillInt64(vol_size.dump_size,0, 1);
-#endif
code = UV_GetSize(avolid, aserver, apart, fromdate, &vol_size);
if (code) {
PrintDiagnostics("size", code);