do not pass pointers to 32-bit values as pointers to 64-bit values.
this results in memory corruption
(cherry picked from commit 1b2fbe5fa9384eb5e1b19487eb6b0d201bea975e)
h_Alloc_r was not specifying the port for the newly allocated
host when adding the host to the hash table. Use hashInsert_r
instead so mistakes like this won't happen in the future.
(cherry picked from commit a8b82b1a744859a3ce2796fd17f997e0bdd2b570)
fix typo in addInterfaceAddr_r that is identical to the one that
was fixed by viced-log-fix-type-20060210 in removeInterfaceAddr_r
(cherry picked from commit 9afcb2529a72f0169313d65b8410f5093d14fc0a)
more windows specific mods plus improved output of ipaddrs and port
numbers when debugging
(cherry picked from commit 638eef405b802fb1215efc9e828996a8c6381067)
clock_Init() was broken because it would initialize rxi_clock0
with QueryPerformanceCounter() and then call clock_UpdateTime().
So instead of getting an ever increasing value you would get a
fixed value determined by how long it takes to make a function call
between to QueryPerformanceCounter() calls.
(cherry picked from commit c582cab1fb1708109f2aa26aab8eba189198e729)
don't support functions we don't implement. the CIFS trans2 get info
ioctl is not equivalent to the AFS Get Volume Status function
(cherry picked from commit cea063c0d48bb81c6349298ecdf5dfcc0f39733b)
more updates, focused on issues found working at darwin, but actually generic issues
(cherry picked from commit c9a4d3363bc11722e017cac4ee83cbeb5d9583f7)
If the host obtained during the CallPremable and CallPostamble differ,
then there is the possibility of a hold leak. This patch is a quick
attempt to deal with the potential problem. If the problem occurs
we log it in order to know for sure if this is in fact a problem.
If it is, then at a later date we should perform a more extensive
re-write in which the CallPreamble is used to obtain the host and the
client and pass them both back to the caller which would not be
required to obtain them again at a later date.
(cherry picked from commit 84a24d096c1159aef3aeec4b27d154f47acdcab9)
In h_Enumerate_r it is possible that the host may be released by the
called procedure. Therefore, we must preserve the pointer to host->next
before the call and hold the host it points to in order to ensure that
it does not disappear out from under us. This ensures that although
the H_LOCK can be dropped during the procedure and the host list can
be rearranged we won't miss more than a handful of hosts during the
enumeration.
(cherry picked from commit 36a8e29045adfcf5d3c144b0ff0bc9d1398d11b0)
when h_GetHost_r replaces 'host' with 'oldHost' we need to release the
hold on 'host' and maintain the hold on 'oldHost' because if a hold
was placed on 'host' in CallPreamble() it will no longer be released
in CallPostamble() since 'oldHost' will now be bound to the client
(cherry picked from commit 31fd9994db1c58d5e851e5a0bd9d04a031557c8d)
Implement proper synopsis wrapping for HTML generation.
This was done in three pieces. First, add HTML-specific tags to the POD to
mark the synopsis for HTML purposes so that we can apply style information
to it. Second, update the style sheet to indent all lines except for the
first in the synopsis section. Third, add the appropriate S<> tags around
option and argument pairs so that we don't wrap between the option and its
argument.
Unfortunately, due to the <I<foo>> style that looks nicer for other reasons,
we have to use the very verbose S<<< >>>. Oh well.
(cherry picked from commit fc5acc01517260c661097cf84bddc359ca060bd3)
SRXAFS_CallBackRxConnAddr calls h_FindClient_r which returns a
client with a refCount and the client->host held. The call
to CallPostamble will release the host hold but not the client
refcount.
(cherry picked from commit 6f707d94064646762e7014d19840b5b2902b3a4e)
Some style sheet updates and lots of to-do updates based on feedback from
C. Alex North-Keys.
(cherry picked from commit fed1cdb02241f6cffee9cdcb5d334f227fd011bb)