summaryrefslogtreecommitdiffstats
path: root/contrib/libc++/src/thread.cpp
diff options
context:
space:
mode:
authored <ed@FreeBSD.org>2015-07-28 06:36:49 +0000
committered <ed@FreeBSD.org>2015-07-28 06:36:49 +0000
commit734349761a341cf74cad5d38aa4afa0b3e4166e0 (patch)
tree68425b29eb6d3e6926ae7e7cc9b083ebd55cdabd /contrib/libc++/src/thread.cpp
parentdb2fee092eabf3a1fc094f15b96c5a5d5fafe29a (diff)
downloadFreeBSD-src-734349761a341cf74cad5d38aa4afa0b3e4166e0.zip
FreeBSD-src-734349761a341cf74cad5d38aa4afa0b3e4166e0.tar.gz
Make fstat() and friends work.
Summary: CloudABI provides access to two different stat structures: - fdstat, containing file descriptor level status: oflags, file descriptor type and Capsicum rights, used by cap_rights_get(), fcntl(F_GETFL), getsockopt(SO_TYPE). - filestat, containing your regular file status: timestamps, inode number, used by fstat(). Unlike FreeBSD's stat::st_mode, CloudABI file descriptor types don't have overloaded meanings (e.g., returning S_ISCHR() for kqueues). Add a utility function to extract the type of a file descriptor accurately. CloudABI does not work with O_ACCMODEs. File descriptors have two sets of Capsicum-style rights: rights that apply to the file descriptor itself ('base') and rights that apply to any new file descriptors yielded through openat() ('inheriting'). Though not perfect, we can pretty safely decompose Capsicum rights to such a pair. This is done in convert_capabilities(). Test Plan: Tests for these system calls are fairly extensive in cloudlibc. Reviewers: jonathan, mjg, #manpages Reviewed By: mjg Subscribers: imp Differential Revision: https://reviews.freebsd.org/D3171
Diffstat (limited to 'contrib/libc++/src/thread.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud