mirror of
https://github.com/apache/nuttx.git
synced 2026-05-20 20:44:39 +08:00
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:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user