mirror of
https://github.com/apache/nuttx.git
synced 2026-10-04 12:48:09 +00: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:
parent
b2a9c6a3e5
commit
c33e6528b1
1 changed files with 1 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue