summaryrefslogtreecommitdiffstats
path: root/sys/kern/uipc_shm.c
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2008-10-28 13:44:11 +0000
committertrasz <trasz@FreeBSD.org>2008-10-28 13:44:11 +0000
commit0ad8692247694171bf2d3f963f24b15f5223a0de (patch)
treecb5d9bbe34cd6eae2c3dd212bdfdfd85569424dd /sys/kern/uipc_shm.c
parentbc6713490924420312442a3f3fc4ef1fe4b8e400 (diff)
downloadFreeBSD-src-0ad8692247694171bf2d3f963f24b15f5223a0de.zip
FreeBSD-src-0ad8692247694171bf2d3f963f24b15f5223a0de.tar.gz
Introduce accmode_t. This is required for NFSv4 ACLs - it will be neccessary
to add more V* constants, and the variables changed by this patch were often being assigned to mode_t variables, which is 16 bit. Approved by: rwatson (mentor)
Diffstat (limited to 'sys/kern/uipc_shm.c')
-rw-r--r--sys/kern/uipc_shm.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/uipc_shm.c b/sys/kern/uipc_shm.c
index 577a8fe..f2dec19 100644
--- a/sys/kern/uipc_shm.c
+++ b/sys/kern/uipc_shm.c
@@ -367,15 +367,15 @@ shm_drop(struct shmfd *shmfd)
static int
shm_access(struct shmfd *shmfd, struct ucred *ucred, int flags)
{
- int acc_mode;
+ accmode_t accmode;
- acc_mode = 0;
+ accmode = 0;
if (flags & FREAD)
- acc_mode |= VREAD;
+ accmode |= VREAD;
if (flags & FWRITE)
- acc_mode |= VWRITE;
+ accmode |= VWRITE;
return (vaccess(VREG, shmfd->shm_mode, shmfd->shm_uid, shmfd->shm_gid,
- acc_mode, ucred, NULL));
+ accmode, ucred, NULL));
}
/*
OpenPOWER on IntegriCloud