Move RLimit and getrlimit to posix.nim and add setrlimit to easily limit FD allocation (#7564)

This commit is contained in:
aguspiza 2018-04-12 17:42:33 +02:00 • committed by Andreas Rumpf
commit 63160855aa
4 changed files with 18 additions and 18 deletions

View file

@ -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>".}