[libc-commits] [libc] [libc] implement mlock/mlock2/munlock/mlockall/munlockall (PR #79645)
Nick Desaulniers via libc-commits
libc-commits at lists.llvm.org
Tue Jan 30 08:29:49 PST 2024
================
@@ -49,6 +51,28 @@ struct PageHolder {
bool is_valid() { return addr != MAP_FAILED; }
};
+static bool get_capacity(unsigned int cap) {
+ struct __user_cap_header_struct header;
----------------
nickdesaulniers wrote:
The `struct` keyword is not necessary in C++. Please remove.
https://github.com/llvm/llvm-project/pull/79645
More information about the libc-commits
mailing list