diff options
author | Qinsi (James) ZHU <qszhu@users.noreply.github.com> | 2023-06-09 22:03:28 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-09 16:03:28 +0200 |
commit | 744a99d75c258b317aaad74c6a80bb664993305e (patch) | |
tree | 859e08c08a4ced213bf859837ee60516f27663e9 /lib | |
parent | 1d6fd30afbc283bd03a96a1a753b64b9cc3f3582 (diff) | |
download | Nim-744a99d75c258b317aaad74c6a80bb664993305e.tar.gz |
add const RLIMIT_STACK (#21772)
* add const RLIMIT_STACK * generate by detect.nim * add generated const for linux-amd64
Diffstat (limited to 'lib')
-rw-r--r-- | lib/posix/posix_linux_amd64_consts.nim | 1 | ||||
-rw-r--r-- | lib/posix/posix_other_consts.nim | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/lib/posix/posix_linux_amd64_consts.nim b/lib/posix/posix_linux_amd64_consts.nim index f3230f71d..6ac0279fc 100644 --- a/lib/posix/posix_linux_amd64_consts.nim +++ b/lib/posix/posix_linux_amd64_consts.nim @@ -453,6 +453,7 @@ const MAP_POPULATE* = cint(32768) # <sys/resource.h> const RLIMIT_NOFILE* = cint(7) +const RLIMIT_STACK* = cint(3) # <sys/select.h> const FD_SETSIZE* = cint(1024) diff --git a/lib/posix/posix_other_consts.nim b/lib/posix/posix_other_consts.nim index 08069fe9a..f4809a9c2 100644 --- a/lib/posix/posix_other_consts.nim +++ b/lib/posix/posix_other_consts.nim @@ -467,6 +467,7 @@ var POSIX_TYPED_MEM_MAP_ALLOCATABLE* {.importc: "POSIX_TYPED_MEM_MAP_ALLOCATABLE # <sys/resource.h> var RLIMIT_NOFILE* {.importc: "RLIMIT_NOFILE", header: "<sys/resource.h>".}: cint +var RLIMIT_STACK* {.importc: "RLIMIT_STACK", header: "<sys/resource.h>".}: cint # <sys/select.h> var FD_SETSIZE* {.importc: "FD_SETSIZE", header: "<sys/select.h>".}: cint |