Move RLimit and getrlimit to posix.nim and add setrlimit to easily limit FD allocation (#7564)
This commit is contained in:
parent
85e21158db
commit
63160855aa
4 changed files with 18 additions and 18 deletions
|
|
@ -27,4 +27,4 @@ proc clone*(fn: pointer; child_stack: pointer; flags: cint;
|
|||
arg: pointer; ptid: ptr Pid; tls: pointer;
|
||||
ctid: ptr Pid): cint {.importc, header: "<sched.h>".}
|
||||
|
||||
proc pipe2*(a: array[0..1, cint], flags: cint): cint {.importc, header: "<unistd.h>".}
|
||||
proc pipe2*(a: array[0..1, cint], flags: cint): cint {.importc, header: "<unistd.h>".}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue