diff options
author | mjg <mjg@FreeBSD.org> | 2015-02-17 23:54:06 +0000 |
---|---|---|
committer | mjg <mjg@FreeBSD.org> | 2015-02-17 23:54:06 +0000 |
commit | 0a219ba739034ca95b28aa25c7cba77221c8a5b0 (patch) | |
tree | 607283fc9340f93781257841ea7d394bbdacb69f /lib/libc/rpc/rpc_soc.c | |
parent | 5e1bcddda9d79d1314fb20b4b67102ad47821394 (diff) | |
download | FreeBSD-src-0a219ba739034ca95b28aa25c7cba77221c8a5b0.zip FreeBSD-src-0a219ba739034ca95b28aa25c7cba77221c8a5b0.tar.gz |
filedesc: simplify fget_unlocked & friends
Introduce fget_fcntl which performs appropriate checks when needed.
This removes a branch from fget_unlocked.
Introduce fget_mmap dealing with cap_rights_to_vmprot conversion.
This removes a branch from _fget.
Modify fget_unlocked to pass sequence counter to interested callers so
that they can perform their own checks and make sure the result was
otained from stable & current state.
Reviewed by: silence on -hackers
Diffstat (limited to 'lib/libc/rpc/rpc_soc.c')
0 files changed, 0 insertions, 0 deletions