getrlimit: add RLIMIT_MEMLOCK define

add RLIMIT_MEMLOCK define, enable compile mmap/18-1.c.
ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/18-1.c:95:16: \
error: ‘RLIMIT_MEMLOCK’ undeclared (first use in this function); did you mean ‘RLIMIT_STACK’?

Signed-off-by: yangyalei <yangyalei@xiaomi.com>
This commit is contained in:
yangyalei 2023-06-25 16:00:42 +08:00 committed by Xiang Xiao
parent b2a9c6a3e5
commit c33e6528b1

View File

@ -57,6 +57,7 @@
#define RLIMIT_NOFILE 5 /* Limit on number of open files */
#define RLIMIT_STACK 6 /* Limit on stack size */
#define RLIMIT_AS 7 /* Limit on address space size */
#define RLIMIT_MEMLOCK 8 /* Limit on memory use */
#if defined(CONFIG_FS_LARGEFILE)
# define RLIM_INFINITY UINT64_MAX /* No limit */