summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorjake <jake@FreeBSD.org>2002-08-15 06:16:10 +0000
committerjake <jake@FreeBSD.org>2002-08-15 06:16:10 +0000
commit3d029bfb1348d5acab80d0b61a0c0845dfba8a7c (patch)
treef82718bcc11d0c7ddaeb1b2db627130c5f6c110b /sys
parent16ef416a94170d815496a83de43ab1d04b7ba42d (diff)
downloadFreeBSD-src-3d029bfb1348d5acab80d0b61a0c0845dfba8a7c.zip
FreeBSD-src-3d029bfb1348d5acab80d0b61a0c0845dfba8a7c.tar.gz
Fixed 64bit big endian bugs relating to abuse of ioctl argument passing.
This makes truss work on sparc64.
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/procfs/procfs_ioctl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/fs/procfs/procfs_ioctl.c b/sys/fs/procfs/procfs_ioctl.c
index 9d49be9..04c0296 100644
--- a/sys/fs/procfs/procfs_ioctl.c
+++ b/sys/fs/procfs/procfs_ioctl.c
@@ -52,13 +52,13 @@ procfs_ioctl(PFS_IOCTL_ARGS)
error = 0;
switch (cmd) {
case PIOCBIS:
- p->p_stops |= *(unsigned int *)data;
+ p->p_stops |= *(uintptr_t *)data;
break;
case PIOCBIC:
- p->p_stops &= ~*(unsigned int *)data;
+ p->p_stops &= ~*(uintptr_t *)data;
break;
case PIOCSFL:
- flags = *(unsigned int *)data;
+ flags = *(uintptr_t *)data;
if (flags & PF_ISUGID && (error = suser(td)) != 0)
break;
p->p_pfsflags = flags;
@@ -86,7 +86,7 @@ procfs_ioctl(PFS_IOCTL_ARGS)
case PIOCCONT:
if (p->p_step == 0)
break;
- sig = *(int *)data;
+ sig = *(uintptr_t *)data;
if (sig != 0 && !_SIG_VALID(sig)) {
error = EINVAL;
break;
OpenPOWER on IntegriCloud