libc: add mlock and munlock dummies

Esse commit está contido em:
Emery Hemingway 2020-05-27 16:35:16 +05:30
commit 26d95dc1d3
1 arquivos alterados com 6 adições e 0 exclusões

Ver arquivo

@ -221,5 +221,11 @@ int __attribute__((weak)) madvise(void *addr, size_t length, int advice)
const struct res_sym __p_type_syms[] = { };
#define DUMMY_EPERM(ret_type, ret_val, name, args) __attribute__((weak)) \
ret_type name args { errno = EPERM; return ret_val; }
DUMMY_EPERM(int, -1, mlock, (const void *, size_t));
DUMMY_EPERM(int, -1, munlock, (const void *, size_t));
} /* extern "C" */