mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
macos 32 bit platform user address transform
make the ioctl32 translator work as expected, e.g., create
proper user addresses.
Change-Id: Ia690dee5f9978d679e942a9954f2123df4a96bc2
Reviewed-on: http://gerrit.openafs.org/1687
Reviewed-by: Derrick Brashear <shadow@dementia.org>
Tested-by: Derrick Brashear <shadow@dementia.org>
(cherry picked from commit ec74299c7c
)
This commit is contained in:
parent
2a9e07dcaf
commit
2082a2d3d1
@ -210,8 +210,13 @@ int afs_nobody = NFS_NOBODY;
|
|||||||
static void
|
static void
|
||||||
afs_ioctl32_to_afs_ioctl(const struct afs_ioctl32 *src, struct afs_ioctl *dst)
|
afs_ioctl32_to_afs_ioctl(const struct afs_ioctl32 *src, struct afs_ioctl *dst)
|
||||||
{
|
{
|
||||||
|
#ifdef AFS_DARWIN100_ENV
|
||||||
|
dst->in = CAST_USER_ADDR_T(src->in);
|
||||||
|
dst->out = CAST_USER_ADDR_T(src->out);
|
||||||
|
#else
|
||||||
dst->in = (char *)(unsigned long)src->in;
|
dst->in = (char *)(unsigned long)src->in;
|
||||||
dst->out = (char *)(unsigned long)src->out;
|
dst->out = (char *)(unsigned long)src->out;
|
||||||
|
#endif
|
||||||
dst->in_size = src->in_size;
|
dst->in_size = src->in_size;
|
||||||
dst->out_size = src->out_size;
|
dst->out_size = src->out_size;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user