Skip to content

Commit

Permalink
bindings for sys/resource.h
Browse files Browse the repository at this point in the history
  • Loading branch information
damaxwell committed Oct 11, 2018
1 parent bd31496 commit b75baba
Show file tree
Hide file tree
Showing 10 changed files with 120 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/lib_c/aarch64-linux-gnu/c/sys/resource.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
lib LibC
alias RlimT = ULong

struct Rlimit
rlim_cur : RlimT
rlim_max : RlimT
end

fun getrlimit(Int, Rlimit*) : Int

RLIMIT_STACK = 3
end
12 changes: 12 additions & 0 deletions src/lib_c/aarch64-linux-musl/c/sys/resource.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
lib LibC
alias RlimT = ULongLong

struct Rlimit
rlim_cur : RlimT
rlim_max : RlimT
end

fun getrlimit(Int, Rlimit*) : Int

RLIMIT_STACK = 3
end
12 changes: 12 additions & 0 deletions src/lib_c/amd64-unknown-openbsd/c/sys/resource.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
lib LibC
alias RlimT = ULongLong

struct Rlimit
rlim_cur : RlimT
rlim_max : RlimT
end

fun getrlimit(Int, Rlimit*) : Int

RLIMIT_STACK = 3
end
12 changes: 12 additions & 0 deletions src/lib_c/arm-linux-gnueabihf/c/sys/resource.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
lib LibC
alias RlimT = ULong

struct Rlimit
rlim_cur : RlimT
rlim_max : RlimT
end

fun getrlimit(Int, Rlimit*) : Int

RLIMIT_STACK = 3
end
12 changes: 12 additions & 0 deletions src/lib_c/i686-linux-gnu/c/sys/resource.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
lib LibC
alias RlimT = ULong

struct Rlimit
rlim_cur : RlimT
rlim_max : RlimT
end

fun getrlimit(Int, Rlimit*) : Int

RLIMIT_STACK = 3
end
12 changes: 12 additions & 0 deletions src/lib_c/i686-linux-musl/c/sys/resource.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
lib LibC
alias RlimT = ULongLong

struct Rlimit
rlim_cur : RlimT
rlim_max : RlimT
end

fun getrlimit(Int, Rlimit*) : Int

RLIMIT_STACK = 3
end
12 changes: 12 additions & 0 deletions src/lib_c/x86_64-linux-gnu/c/sys/resource.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
lib LibC
alias RlimT = ULong

struct Rlimit
rlim_cur : RlimT
rlim_max : RlimT
end

fun getrlimit(Int, Rlimit*) : Int

RLIMIT_STACK = 3
end
12 changes: 12 additions & 0 deletions src/lib_c/x86_64-linux-musl/c/sys/resource.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
lib LibC
alias RlimT = ULongLong

struct Rlimit
rlim_cur : RlimT
rlim_max : RlimT
end

fun getrlimit(Int, Rlimit*) : Int

RLIMIT_STACK = 3
end
12 changes: 12 additions & 0 deletions src/lib_c/x86_64-macosx-darwin/c/sys/resource.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
lib LibC
alias RlimT = ULongLong

struct Rlimit
rlim_cur : RlimT
rlim_max : RlimT
end

fun getrlimit(Int, Rlimit*) : Int

RLIMIT_STACK = 3
end
12 changes: 12 additions & 0 deletions src/lib_c/x86_64-portbld-freebsd/c/sys/resource.cr
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
lib LibC
alias RlimT = Long

struct Rlimit
rlim_cur : RlimT
rlim_max : RlimT
end

fun getrlimit(Int, Rlimit*) : Int

RLIMIT_STACK = 3
end

0 comments on commit b75baba

Please sign in to comment.