AC_TYPE_SOCKLEN_T
AC_TYPE_SIGNAL
+AC_TYPE_INTPTR_T
+AC_TYPE_UINTPTR_T
AC_CHECK_TYPE(ssize_t, int)
AC_CHECK_TYPES(sig_t, , ,
[#include <sys/types.h>
return -1;
}
- *status = (afs_int32) iob.out;
+ *status = (intptr_t)iob.out;
return 0;
}
afs_globalVFS = afsp;
afsp->vfs_bsize = 8192;
afsp->vfs_fsid.val[0] = AFS_VFSMAGIC; /* magic */
- afsp->vfs_fsid.val[1] = (afs_int32) AFS_VFSFSID;
+ afsp->vfs_fsid.val[1] = (intptr_t)AFS_VFSFSID;
return 0;
}
abp->f_type = 0;
abp->f_bsize = afsp->vfs_bsize;
abp->f_fsid.val[0] = AFS_VFSMAGIC; /* magic */
- abp->f_fsid.val[1] = (afs_int32) AFS_VFSFSID;
+ abp->f_fsid.val[1] = (intptr_t)AFS_VFSFSID;
return 0;
}
/* To shut up SGI compiler on remark(1413) warnings. */
alock->proc = (char *)(long)MyPidxx;
#else /* AFS_64BITPOINTER_ENV */
- alock->proc = (char *)MyPidxx;
+ alock->proc = (char *)(intptr_t)MyPidxx;
#endif /* AFS_64BITPOINTER_ENV */
#endif
alock->count = 1;
/* To shut up SGI compiler on remark(1413) warnings. */
} else if (alock->proc == (char *)(long)MyPidxx) {
#else /* AFS_64BITPOINTER_ENV */
- } else if (alock->proc == (char *)MyPidxx) {
+ } else if (alock->proc == (char *)(intptr_t)MyPidxx) {
#endif /* AFS_64BITPOINTER_ENV */
#endif
/* lock is held, but by us, so we win anyway */
/* To shut up SGI compiler on remark(1413) warnings. */
if (alock->proc != (char *)(long)MyPidxx)
#else /* AFS_64BITPOINTER_ENV */
- if (alock->proc != (char *)MyPidxx)
+ if (alock->proc != (char *)(intptr_t)MyPidxx)
#endif /* AFS_64BITPOINTER_ENV */
#endif
return 1;
parms[counter++] = atoi(argv[i]);
numberFlag = 1;
} else {
- parms[counter++] = (afs_int32) argv[i];
+ parms[counter++] = (intptr_t)argv[i];
numberFlag = 1;
}
}
}
/* start the gtx input server */
- code = (int) gtx_InputServer(afsmon_win);
+ code = (intptr_t)gtx_InputServer(afsmon_win);
if (code) {
fprintf(stderr, "[ %s ] Failed to start input server \n", rn);
afsmon_Exit(140);
bnode_Int(int asignal)
{
if (asignal == SIGQUIT) {
- IOMGR_SoftSig(bozo_ShutdownAndExit, (void *) asignal);
+ IOMGR_SoftSig(bozo_ShutdownAndExit, (void *)(intptr_t)asignal);
} else {
- IOMGR_SoftSig(bnode_SoftInt, (void *) asignal);
+ IOMGR_SoftSig(bnode_SoftInt, (void *)(intptr_t)asignal);
}
}
void *
bozo_ShutdownAndExit(void *param)
{
- int asignal = (int) param;
+ int asignal = (intptr_t)param;
int code;
bozo_Log
void *
bc_DmpRstStart(void *param)
{
- afs_int32 aindex = (afs_int32) param;
+ afs_int32 aindex = (intptr_t)param;
register struct bc_dumpTask *tdump;
register afs_int32 code;
free(tdump->portOffset);
tdump->flags &= ~BC_DI_INUSE;
- return (void *)code;
+ return (void *)(intptr_t)code;
}
/* bc_StartDmpRst
code =
LWP_CreateProcess(bc_DmpRstStart, 20480, LWP_NORMAL_PRIORITY,
- (void *)i, "helper", junk);
+ (void *)(intptr_t)i, "helper", junk);
if (code) {
bc_HandleMisc(code);
afs_com_err(whoami, code, "; Can't start thread");
void *
setupDbDump(void *param)
{
- int writeFid = (int)param;
+ int writeFid = (intptr_t)param;
afs_int32 code = 0;
code = InitRPC(&dumpSyncPtr->ut, LOCKREAD, 1);
error_exit:
if (dumpSyncPtr->ut)
ubik_EndTrans(dumpSyncPtr->ut);
- return (void *)(code);
+ return (void *)(intptr_t)(code);
}
#else
code =
LWP_CreateProcess(setupDbDump, 16384, 1,
- (void *)dumpSyncPtr->pipeFid[1],
+ (void *)(intptr_t)dumpSyncPtr->pipeFid[1],
"Database Dumper", &dumperPid);
if (code)
goto error_exit;
FreeNode(taskId); /* free the dump node */
LeaveDeviceQueue(deviceLatch);
- return (void *)(code);
+ return (void *)(intptr_t)(code);
}
#define BELLTIME 60 /* 60 seconds before a bell rings */
FreeNode(taskId);
LeaveDeviceQueue(deviceLatch);
- return (void *)(code);
+ return (void *)(intptr_t)(code);
}
/* this is just scaffolding, creates new tape label with name <tapeName> */
free(labelIfPtr);
LeaveDeviceQueue(deviceLatch);
- return (void *)(code);
+ return (void *)(intptr_t)(code);
}
/* PrintTapeLabel
free(ptr);
setStatus(taskId, TASK_DONE);
LeaveDeviceQueue(deviceLatch);
- return (void *)(code);
+ return (void *)(intptr_t)(code);
}
ERROR_EXIT(code);
AFS_SIGSET_CLEAR();
- code = pthread_create(&pid, &tattr, restoreDbFromTape, (void *)*taskId);
+ code = pthread_create(&pid, &tattr, restoreDbFromTape, (void *)(intptr_t)*taskId);
AFS_SIGSET_RESTORE();
#else
code =
- LWP_CreateProcess(restoreDbFromTape, 32768, 1, (void *)*taskId,
+ LWP_CreateProcess(restoreDbFromTape, 32768, 1, (void *)(intptr_t)*taskId,
"Db restore", &pid);
#endif
free(saveDbIfPtr);
LeaveDeviceQueue(deviceLatch);
- return (void *)(code);
+ return (void *)(intptr_t)(code);
}
void *
restoreDbFromTape(void *param)
{
- afs_uint32 taskId = (afs_uint32) param;
+ afs_uint32 taskId = (intptr_t) param;
afs_int32 code = 0;
afs_int32 i;
struct butm_tapeInfo tapeInfo;
LeaveDeviceQueue(deviceLatch);
setStatus(taskId, TASK_DONE);
- return (void *)(code);
+ return (void *)(intptr_t)(code);
}
/* KeepAlive
/* note: as painful as it is, we have to reach under the covers of
* the usd package to implement this functionality.
*/
- unixfd = (int)(fd->handle);
+ unixfd = (intptr_t)(fd->handle);
for (i = 3; i < _POSIX_OPEN_MAX; i++) {
if (i != unixfd && i != pipefd[1]) {
/* note: as painful as it is, we have to reach under the covers of
* the usd package to implement this functionality.
*/
- unixfd = (int)(fd->handle);
+ unixfd = (intptr_t)(fd->handle);
for (i = 3; i < _POSIX_OPEN_MAX; i++) {
if (i != unixfd && i != ctlpipe[0] && i != pipefd[1]) {
/* A null name is no good */
if (ep->name[0] == '\000') {
printf("Dir entry %x in chain %d has bogus (null) name.\n",
- (int)ep, i);
+ (intptr_t)ep, i);
DRelease(ep, 0);
DRelease(dhp, 0);
return 0;
/* The entry flag better be FFIRST */
if (ep->flag != FFIRST) {
- printf("Dir entry %x in chain %d has bogus flag field.\n", (int)ep,
+ printf("Dir entry %x in chain %d has bogus flag field.\n", (intptr_t)ep,
i);
DRelease(ep, 0);
DRelease(dhp, 0);
/* Check the size of the name */
j = strlen(ep->name);
if (j >= MAXENAME) { /* MAXENAME counts the null */
- printf("Dir entry %x in chain %d has too-long name.\n", (int)ep,
+ printf("Dir entry %x in chain %d has too-long name.\n", (intptr_t)ep,
i);
DRelease(ep, 0);
DRelease(dhp, 0);
if ((j = DirHash(ep->name)) != i) {
printf
("Dir entry %x should be in hash bucket %d but IS in %d.\n",
- (int)ep, j, i);
+ (intptr_t)ep, j, i);
DRelease(ep, 0);
DRelease(dhp, 0);
return 0;
} else {
printf
("Dir entry %x, index 13 has name '%s' should be '.'\n",
- (int)ep, ep->name);
+ (intptr_t)ep, ep->name);
DRelease(ep, 0);
DRelease(dhp, 0);
return 0;
} else {
printf
("Dir entry %x, index 14 has name '%s' should be '..'\n",
- (int)ep, ep->name);
+ (intptr_t)ep, ep->name);
DRelease(ep, 0);
DRelease(dhp, 0);
return 0;
#include <string.h>
#include <stdlib.h>
+#include <stdint.h>
#include "gtxobjects.h"
#include "gtxwindows.h"
{
struct gwin *awindow = (struct gwin *) aparam;
- int arock = (int) rockparam;
+ int arock = (intptr_t)rockparam;
register struct gtx_frame *tframe;
register int pos;
tstring[0] = i;
tstring[1] = 0;
keymap_BindToString(recursiveMap, tstring, gtxframe_SelfInsertCmd,
- NULL, (void *)i);
+ NULL, (void *)(intptr_t)i);
}
}
aframe->savemap = aframe->keymap;
#include <string.h>
+#include <stdint.h>
#include "gtxwindows.h"
#include "gtxobjects.h"
ChangeMenuCmd(void *param1, void *param2)
{
struct gwin * awin = (struct gwin *) param1;
- afs_int32 arock = (afs_int32) param2;
+ afs_int32 arock = (intptr_t)param2;
register struct gtx_frame *tf;
register afs_int32 code;
ChangeListCmd(void *param1, void *param2)
{
struct gwin *awin = (struct gwin *) param1;
- afs_int32 arock = (afs_int32) param2;
+ afs_int32 arock = (intptr_t)param2;
register struct gtx_frame *tf;
register afs_int32 code;
#include <stdlib.h>
#include <stdio.h>
+#include <stdint.h>
#include <time.h>
/* allocate externs here */
printf("stackcheck = %u: stack = %u \n", lwp_cpptr->stackcheck,
*(int *)lwp_cpptr->stack);
printf("topstack = 0x%x: stackptr = 0x%x: stacksize = 0x%x\n",
- (unsigned int)lwp_cpptr->context.topstack,
- (unsigned int)lwp_cpptr->stack,
+ (uintptr_t)lwp_cpptr->context.topstack,
+ (uintptr_t)lwp_cpptr->stack,
lwp_cpptr->stacksize);
switch (lwp_overflowAction) {
/* Delete each continuation block as a separate transaction so that no one
* transaction become to large to complete. */
nptr = tentry.next;
- while (nptr != (afs_int32) NULL) {
+ while (nptr != 0) {
struct contentry centry;
int i;
* transaction, we start a new transaction every 50 entries. */
count = 0;
nptr = tentry.owned;
- while (nptr != (afs_int32) NULL) {
+ while (nptr != 0) {
struct prentry nentry;
code = pr_ReadEntry(tt, 0, nptr, &nentry);
}
#endif /* SUPERGROUPS */
nptr = tentry->next;
- while (nptr != (afs_int32) NULL) {
+ while (nptr != 0) {
code = pr_ReadCoEntry(at, 0, nptr, ¢ry);
if (code != 0)
return PRDBFAIL;
}
last = 0;
nptr = entry->next;
- while (nptr != (afs_int32) NULL) {
+ while (nptr != 0) {
code = pr_ReadCoEntry(tt, 0, nptr, &nentry);
if (code != 0)
return code;
}
nptr = tentry->next;
- while (nptr != (afs_uint32) NULL) {
+ while (nptr != 0) {
/* look through cont entries */
code = pr_ReadCoEntry(at, 0, nptr, ¢ry);
if (code != 0)
if (!code) {
nptr = tentry2->next;
- while (nptr != (afs_uint32) NULL) {
+ while (nptr != 0) {
/* look through cont entries */
code = pr_ReadCoEntry(at, 0, nptr, ¢ry);
if (code != 0)
}
if ((ntohl(cheader.version) == PRDBVERSION)
&& ntohl(cheader.headerSize) == sizeof(cheader)
- && ntohl(cheader.eofPtr) != (afs_uint32) NULL
+ && ntohl(cheader.eofPtr) != 0
&& FindByID(tt, ANONYMOUSID) != 0) {
/* database exists, so we don't have to build it */
code = ubik_EndTrans(tt);
*/
if ((ntohl(cheader.version) == PRDBVERSION)
&& ntohl(cheader.headerSize) == sizeof(cheader)
- && ntohl(cheader.eofPtr) != (afs_uint32) NULL
+ && ntohl(cheader.eofPtr) != 0
&& FindByID(tt, ANONYMOUSID) != 0) {
/* database exists, so we don't have to build it */
code = ubik_EndTrans(tt);
#else
socklen_t addrlen = sizeof(addr);
#endif
- if (getsockname((int)rx_socket, (struct sockaddr *)&addr, &addrlen)) {
+ if (getsockname((intptr_t)rx_socket, (struct sockaddr *)&addr, &addrlen)) {
rx_Finalize();
return -1;
}
rx_ListenerProc(void *argp)
{
int threadID;
- osi_socket sock = (osi_socket)argp;
+ osi_socket sock = (osi_socket)(intptr_t)argp;
struct rx_call *newcall;
while (1) {
/* assert(threadID != -1); */
/* assert(newcall != NULL); */
sock = OSI_NULLSOCKET;
- assert(pthread_setspecific(rx_thread_id_key, (void *)threadID) == 0);
+ assert(pthread_setspecific(rx_thread_id_key, (void *)(intptr_t)threadID) == 0);
rxi_ServerProc(threadID, newcall, &sock);
/* assert(sock != OSI_NULLSOCKET); */
}
while (1) {
sock = OSI_NULLSOCKET;
- assert(pthread_setspecific(rx_thread_id_key, (void *)threadID) == 0);
+ assert(pthread_setspecific(rx_thread_id_key, (void *)(intptr_t)threadID) == 0);
rxi_ServerProc(threadID, newcall, &sock);
/* assert(sock != OSI_NULLSOCKET); */
newcall = NULL;
}
AFS_SIGSET_CLEAR();
- if (pthread_create(&thread, &tattr, rx_ListenerProc, (void *)sock) != 0) {
+ if (pthread_create(&thread, &tattr, rx_ListenerProc, (void *)(intptr_t)sock) != 0) {
dpf(("Unable to create socket listener thread\n"));
exit(1);
}
if (currentValue) {
*((afs_uint32 *)currentValue) = private->flags;
} else {
- private->flags = (afs_uint32) avalue;
+ private->flags = (intptr_t)avalue;
}
break;
default:
&gxlistener_ID); /*Returned LWP process ID */
#endif /* 0 */
- code = (int) gtx_InputServer(scout_gwin);
+ code = (int)(intptr_t)gtx_InputServer(scout_gwin);
if (code) {
fprintf(stderr,
"[%s] Error exit from gtx_InputServer(), error is %d\n", rn,
if (!called_afs_random_once)
pthread_once(&random_once, afs_random_once);
- state = (afs_uint32) pthread_getspecific(random_number_key);
+ state = (uintptr_t) pthread_getspecific(random_number_key);
#else
static afs_uint32 state = 0;
#endif
ranstage(state);
#ifdef AFS_PTHREAD_ENV
- pthread_setspecific(random_number_key, (const void *)state);
+ pthread_setspecific(random_number_key, (const void *)(uintptr_t)state);
#endif
return (state);
usd_FileRead(usd_handle_t usd, char *buf, afs_uint32 nbytes,
afs_uint32 * xferdP)
{
- int fd = (int)(usd->handle);
+ int fd = (intptr_t)(usd->handle);
int got;
got = read(fd, buf, nbytes);
usd_FileWrite(usd_handle_t usd, char *buf, afs_uint32 nbytes,
afs_uint32 * xferdP)
{
- int fd = (int)(usd->handle);
+ int fd = (intptr_t)(usd->handle);
int sent;
sent = write(fd, buf, nbytes);
usd_FileSeek(usd_handle_t usd, afs_hyper_t reqOff, int whence,
afs_hyper_t * curOffP)
{
- int fd = (int)(usd->handle);
+ int fd = (intptr_t)(usd->handle);
osi_lloff_t lloff;
if (!osi_hFitsInOff(reqOff, lloff))
static int
usd_FileIoctl(usd_handle_t usd, int req, void *arg)
{
- int fd = (int)(usd->handle);
+ int fd = (intptr_t)(usd->handle);
#ifdef O_LARGEFILE
struct stat64 info;
#else /* O_LARGEFILE */
static int
usd_FileClose(usd_handle_t usd)
{
- int fd = (int)(usd->handle);
+ int fd = (intptr_t)(usd->handle);
int code = 0;
int ccode;
usd = (usd_handle_t) malloc(sizeof(*usd));
memset(usd, 0, sizeof(*usd));
- usd->handle = (void *)fd;
+ usd->handle = (void *)(intptr_t)fd;
usd->read = usd_FileRead;
usd->write = usd_FileWrite;
usd->seek = usd_FileSeek;
static void*
DebugOn(void *param)
{
- int loglevel = (int)param;
+ int loglevel = (intptr_t)param;
if (loglevel == 0) {
ViceLog(0, ("Reset Debug levels to 0\n"));
} else {
}
printLocks = 2;
#if defined(AFS_PTHREAD_ENV)
- DebugOn((void *) LogLevel);
+ DebugOn((void *)(intptr_t)LogLevel);
#else /* AFS_PTHREAD_ENV */
- IOMGR_SoftSig(DebugOn, (void *) LogLevel);
+ IOMGR_SoftSig(DebugOn, (void *)(intptr_t)LogLevel);
#endif /* AFS_PTHREAD_ENV */
(void)signal(signo, SetDebug_Signal); /* on some platforms, this
if (printLocks > 0)
--printLocks;
#if defined(AFS_PTHREAD_ENV)
- DebugOn((void *) LogLevel);
+ DebugOn((void *)(intptr_t)LogLevel);
#else /* AFS_PTHREAD_ENV */
- IOMGR_SoftSig(DebugOn, (void *) LogLevel);
+ IOMGR_SoftSig(DebugOn, (void *)(intptr_t)LogLevel);
#endif /* AFS_PTHREAD_ENV */
(void)signal(signo, ResetDebug_Signal); /* on some platforms,
int
threadNum(void)
{
- return (int)pthread_getspecific(rx_thread_id_key);
+ return (intptr_t)pthread_getspecific(rx_thread_id_key);
}
#endif
/* set our 'thread-id' so that the host hold table works */
MUTEX_ENTER(&rx_stats_mutex); /* protects rxi_pthread_hinum */
++rxi_pthread_hinum;
- pthread_setspecific(rx_thread_id_key, (void *)rxi_pthread_hinum);
+ pthread_setspecific(rx_thread_id_key, (void *)(intptr_t)rxi_pthread_hinum);
MUTEX_EXIT(&rx_stats_mutex);
ViceLog(0,
("Set thread id %d for '%s'\n",
if ((errorcode =
Init_VLdbase(&trans, LOCKREAD, VLGETSTATS - VL_LOWEST_OPCODE)))
- return (void *)errorcode;
+ return (void *)(intptr_t)errorcode;
VLog(0, ("Dump name hash table out\n"));
for (i = 0; i < HASHSIZE; i++) {
HashNDump(trans, i);
for (i = 0; i < HASHSIZE; i++) {
HashIdDump(trans, i);
}
- return ((void *)ubik_EndTrans(trans));
+ return ((void *)(intptr_t)ubik_EndTrans(trans));
} /*CheckSignal */
}
#endif /* !AFS_DEMAND_ATTACH_FS */
- printf("\twriter = %u\n", (unsigned int) v.writer);
+ printf("\twriter = %u\n", (uintptr_t)v.writer);
printf("\tvcp = %p\n", v.vcp);
printf("\thandle = %p\n", v.handle);
MUTEX_ENTER(&rx_stats_mutex); /* protects rxi_pthread_hinum */
tid = ++rxi_pthread_hinum;
MUTEX_EXIT(&rx_stats_mutex);
- pthread_setspecific(rx_thread_id_key, (void *)tid);
+ pthread_setspecific(rx_thread_id_key, (void *)(intptr_t)tid);
Log("Set thread id %d for FSYNC_sync\n", tid);
#endif /* AFS_PTHREAD_ENV */
if (Vn_refcount(vnp) != 0 || CheckLock(&vnp->lock))
Abort("VGetFreeVnode_r: locked vnode in lruq");
#endif
- VNLog(1, 2, Vn_id(vnp), (afs_int32) vnp, 0, 0);
+ VNLog(1, 2, Vn_id(vnp), (intptr_t)vnp, 0, 0);
/*
* it's going to be overwritten soon enough.
if (vnp) {
/* slot already exists. May even not be in lruq (consider store file locking a file being deleted)
* so we may have to wait for it below */
- VNLog(3, 2, vnodeNumber, (afs_int32) vnp, 0, 0);
+ VNLog(3, 2, vnodeNumber, (intptr_t)vnp, 0, 0);
VnCreateReservation_r(vnp);
if (Vn_refcount(vnp) == 1) {
}
sane:
- VNLog(4, 2, vnodeNumber, (afs_int32) vnp, 0, 0);
+ VNLog(4, 2, vnodeNumber, (intptr_t)vnp, 0, 0);
#ifndef AFS_DEMAND_ATTACH_FS
AddToVnHash(vnp);
#endif
}
- VNLog(5, 1, (afs_int32) vnp, 0, 0, 0);
+ VNLog(5, 1, (intptr_t)vnp, 0, 0, 0);
memset(&vnp->disk, 0, sizeof(vnp->disk));
vnp->changed_newTime = 0; /* set this bit when vnode is updated */
vnp->changed_oldTime = 0; /* set this on CopyOnWrite. */
if (vnp) {
/* vnode is in cache */
- VNLog(101, 2, vnodeNumber, (afs_int32) vnp, 0, 0);
+ VNLog(101, 2, vnodeNumber, (intptr_t)vnp, 0, 0);
VnCreateReservation_r(vnp);
#ifdef AFS_DEMAND_ATTACH_FS
/* Check that the vnode hasn't been removed while we were obtaining
* the lock */
- VNLog(102, 2, vnodeNumber, (afs_int32) vnp, 0, 0);
+ VNLog(102, 2, vnodeNumber, (intptr_t) vnp, 0, 0);
if ((vnp->disk.type == vNull) || (Vn_cacheCheck(vnp) == 0)) {
VnUnlock(vnp, locktype);
VnCancelReservation_r(vnp);
class = vnodeIdToClass(Vn_id(vnp));
vcp = &VnodeClassInfo[class];
assert(vnp->disk.vnodeMagic == vcp->magic);
- VNLog(200, 2, Vn_id(vnp), (afs_int32) vnp, 0, 0);
+ VNLog(200, 2, Vn_id(vnp), (intptr_t) vnp, 0, 0);
#ifdef AFS_DEMAND_ATTACH_FS
writeLocked = (Vn_state(vnp) == VN_STATE_EXCLUSIVE);
PROCESS thisProcess;
LWP_CurrentProcess(&thisProcess);
#endif /* AFS_PTHREAD_ENV */
- VNLog(201, 2, (afs_int32) vnp,
+ VNLog(201, 2, (intptr_t) vnp,
((vnp->changed_newTime) << 1) | ((vnp->
changed_oldTime) << 1) | vnp->
delete, 0, 0);
/* No longer any directory entries for this vnode. Free the Vnode */
memset(&vnp->disk, 0, sizeof(vnp->disk));
/* delete flag turned off further down */
- VNLog(202, 2, Vn_id(vnp), (afs_int32) vnp, 0, 0);
+ VNLog(202, 2, Vn_id(vnp), (intptr_t) vnp, 0, 0);
} else if (vnp->changed_newTime) {
vnp->disk.serverModifyTime = now;
}
class = vnodeIdToClass(Vn_id(vnp));
vcp = &VnodeClassInfo[class];
assert(vnp->disk.vnodeMagic == vcp->magic);
- VNLog(300, 2, Vn_id(vnp), (afs_int32) vnp, 0, 0);
+ VNLog(300, 2, Vn_id(vnp), (intptr_t) vnp, 0, 0);
#ifdef AFS_DEMAND_ATTACH_FS
writeLocked = (Vn_state(vnp) == VN_STATE_EXCLUSIVE);
}
- VNLog(301, 2, (afs_int32) vnp,
+ VNLog(301, 2, (intptr_t) vnp,
((vnp->changed_newTime) << 1) | ((vnp->
changed_oldTime) << 1) | vnp->
delete, 0, 0);
#endif /* AFS_PTHREAD_ENV */
if (thisProcess != vnp->writer)
Abort("VPutVnode: Vnode at 0x%x locked by another process!\n",
- (int)vnp);
+ (intptr_t)vnp);
if (vnp->delete) {
return 0;
int
threadNum(void)
{
- return (int)pthread_getspecific(rx_thread_id_key);
+ return (intptr_t)pthread_getspecific(rx_thread_id_key);
}
#endif
#ifndef AFS_NT40_ENV /* NT csn't select on non-socket fd's */
fd_set in;
FD_ZERO(&in);
- FD_SET((int)(ufd->handle), &in);
+ FD_SET((intptr_t)(ufd->handle), &in);
/* don't timeout if read blocks */
#if defined(AFS_PTHREAD_ENV)
select(((int)(ufd->handle)) + 1, &in, 0, 0, 0);
#else
- IOMGR_Select(((int)(ufd->handle)) + 1, &in, 0, 0, 0);
+ IOMGR_Select(((intptr_t)(ufd->handle)) + 1, &in, 0, 0, 0);
#endif
#endif
error = USD_READ(ufd, buffer, blksize, &nbytes);
#ifndef AFS_NT40_ENV /* NT csn't select on non-socket fd's */
fd_set out;
FD_ZERO(&out);
- FD_SET((int)(ufd->handle), &out);
+ FD_SET((intptr_t)(ufd->handle), &out);
/* don't timeout if write blocks */
#if defined(AFS_PTHREAD_ENV)
select(((int)(ufd->handle)) + 1, &out, 0, 0, 0);
#else
- IOMGR_Select(((int)(ufd->handle)) + 1, 0, &out, 0, 0);
+ IOMGR_Select(((intptr_t)(ufd->handle)) + 1, 0, &out, 0, 0);
#endif
#endif
error =