LICENSE IPL10
the lock_fd field of DiskPartition[64] is a file descriptor.
On Windows this is a HANDLE and on *nix platforms an int.
OpenAFS uses the FD_t type to provide platform specific type
info for file descriptors. Use it for the lock_fd field and
the salvageLock in ObtainsSalvageLock().
Finally, the on the wire diskPartition[64] struct in volser/volint.xg
also contains a lock_fd field. This is an on the wire field and
must be left at a fixed width of 32-bits. Since a file descriptor
is not portable across machines we truncate the 64-bit HANDLE value
to fit in the 32-bit lock_fd field when necessary.
(cherry picked from commit a209012f1a3f83959f9df14ebad4aa2b50bacae0)
LICENSE IPL10
GetHandler() sets up a fdset and returns the max socket fd
which is used with select(). Windows ignores the numfd param
(first param) of select() and therefore computing the max fd
value is meaningless. We can avoid a number of casts by
not attempting to treat this value as osi_socket.
(cherry picked from commit aa8d735b8707e2bf9142699fd25034655c821f96)
LICENSE IPL10
include afs/ihandle.h in order to gain access to the FD_t definition
(cherry picked from commit 1d4542f93bae6b59e7d4321c23a2551fa43416ba)
LICENSE IPL10
if we hold a vcache for shadow, we need to release the ref when we give it up
(cherry picked from commit 62f4c29eef578b7f3df143f3ddd04307d8f2271f)
LICENSE IPL10
SetLogThreadNum takes a fcn returning int.
get_key's first arg is a void*
(cherry picked from commit 7a7b55658b7c72eef0f9b495f02ce766c9961d6e)
LICENSE IPL10
FIXES 124522
--with-krb5=/path caused us to not run configure tests. fix that
(cherry picked from commit 39c4e32bf484aab2c9cf978cbf5877bdb989e9d6)
LICENSE IPL10
Define AFS_PTR_FMT to permit per platform printf formats for pointer
representation.
(cherry picked from commit 37fc3b01445cd6446f09c476ea2db47fea544b7d)
LICENSE IPL10
use invalidate_remote_inode instead of vmtruncate in osi_VM_FlushPages
(cherry picked from commit 18da64a45c5f1a069f39f687bd84ee51b77a6bd3)
LICENSE IPL10
the argument to the function parameter is a socket. fix the type
to be osi_socket.
(cherry picked from commit 0cd43484be886721c0c4d9750f0b40015ba60756)
LICENSE IPL10
do not export function name arrays that are already
exported by other libraries.
(cherry picked from commit 64c451cec0ccce8d095109a8697144be093c1259)
LICENSE IPL10
fix the prototype for afsclient_RPCStatOpenPort and afsclient_CMStatOpenPort
(cherry picked from commit 5eea839b637a120e9b10246511b3d826a1e49a0f)
LICENSE IPL10
FIXES 124334
add dynamic allocation of vcaches when possible (currently just for linux)
(cherry picked from commit e59b81c984652f7570708831d8b36bdd42f98cf8)
LICENSE IPL10
FIXES 124451
make cbd able to select whether time is 32 or 64 bit; when time size is
known, have a new magic number so it's obvious
(cherry picked from commit 79d362c77cfc307dc66bfe874952a914e2313e89)
LICENSE IPL10
add an "unused" field so we match the prototype for create in the bnodeops
struct
(cherry picked from commit fe98c927d3888814077b085e53725f15996cd1b9)
LICENSE IPL10
rework the static inline macros to work with headers, with userspace code,
and to have just one copy
(cherry picked from commit 101399171b5a5315cb3f1fdd003d56f0ca214bc8)