From b75baba4162e1bb55ab988629d282dc641281e84 Mon Sep 17 00:00:00 2001 From: David Maxwell Date: Sat, 6 Oct 2018 15:29:05 -0800 Subject: [PATCH] bindings for sys/resource.h --- src/lib_c/aarch64-linux-gnu/c/sys/resource.cr | 12 ++++++++++++ src/lib_c/aarch64-linux-musl/c/sys/resource.cr | 12 ++++++++++++ src/lib_c/amd64-unknown-openbsd/c/sys/resource.cr | 12 ++++++++++++ src/lib_c/arm-linux-gnueabihf/c/sys/resource.cr | 12 ++++++++++++ src/lib_c/i686-linux-gnu/c/sys/resource.cr | 12 ++++++++++++ src/lib_c/i686-linux-musl/c/sys/resource.cr | 12 ++++++++++++ src/lib_c/x86_64-linux-gnu/c/sys/resource.cr | 12 ++++++++++++ src/lib_c/x86_64-linux-musl/c/sys/resource.cr | 12 ++++++++++++ src/lib_c/x86_64-macosx-darwin/c/sys/resource.cr | 12 ++++++++++++ src/lib_c/x86_64-portbld-freebsd/c/sys/resource.cr | 12 ++++++++++++ 10 files changed, 120 insertions(+) create mode 100644 src/lib_c/aarch64-linux-gnu/c/sys/resource.cr create mode 100644 src/lib_c/aarch64-linux-musl/c/sys/resource.cr create mode 100644 src/lib_c/amd64-unknown-openbsd/c/sys/resource.cr create mode 100644 src/lib_c/arm-linux-gnueabihf/c/sys/resource.cr create mode 100644 src/lib_c/i686-linux-gnu/c/sys/resource.cr create mode 100644 src/lib_c/i686-linux-musl/c/sys/resource.cr create mode 100644 src/lib_c/x86_64-linux-gnu/c/sys/resource.cr create mode 100644 src/lib_c/x86_64-linux-musl/c/sys/resource.cr create mode 100644 src/lib_c/x86_64-macosx-darwin/c/sys/resource.cr create mode 100644 src/lib_c/x86_64-portbld-freebsd/c/sys/resource.cr diff --git a/src/lib_c/aarch64-linux-gnu/c/sys/resource.cr b/src/lib_c/aarch64-linux-gnu/c/sys/resource.cr new file mode 100644 index 000000000000..bb1df9661776 --- /dev/null +++ b/src/lib_c/aarch64-linux-gnu/c/sys/resource.cr @@ -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 diff --git a/src/lib_c/aarch64-linux-musl/c/sys/resource.cr b/src/lib_c/aarch64-linux-musl/c/sys/resource.cr new file mode 100644 index 000000000000..893e06a007f1 --- /dev/null +++ b/src/lib_c/aarch64-linux-musl/c/sys/resource.cr @@ -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 diff --git a/src/lib_c/amd64-unknown-openbsd/c/sys/resource.cr b/src/lib_c/amd64-unknown-openbsd/c/sys/resource.cr new file mode 100644 index 000000000000..893e06a007f1 --- /dev/null +++ b/src/lib_c/amd64-unknown-openbsd/c/sys/resource.cr @@ -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 diff --git a/src/lib_c/arm-linux-gnueabihf/c/sys/resource.cr b/src/lib_c/arm-linux-gnueabihf/c/sys/resource.cr new file mode 100644 index 000000000000..bb1df9661776 --- /dev/null +++ b/src/lib_c/arm-linux-gnueabihf/c/sys/resource.cr @@ -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 diff --git a/src/lib_c/i686-linux-gnu/c/sys/resource.cr b/src/lib_c/i686-linux-gnu/c/sys/resource.cr new file mode 100644 index 000000000000..bb1df9661776 --- /dev/null +++ b/src/lib_c/i686-linux-gnu/c/sys/resource.cr @@ -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 diff --git a/src/lib_c/i686-linux-musl/c/sys/resource.cr b/src/lib_c/i686-linux-musl/c/sys/resource.cr new file mode 100644 index 000000000000..893e06a007f1 --- /dev/null +++ b/src/lib_c/i686-linux-musl/c/sys/resource.cr @@ -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 diff --git a/src/lib_c/x86_64-linux-gnu/c/sys/resource.cr b/src/lib_c/x86_64-linux-gnu/c/sys/resource.cr new file mode 100644 index 000000000000..bb1df9661776 --- /dev/null +++ b/src/lib_c/x86_64-linux-gnu/c/sys/resource.cr @@ -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 diff --git a/src/lib_c/x86_64-linux-musl/c/sys/resource.cr b/src/lib_c/x86_64-linux-musl/c/sys/resource.cr new file mode 100644 index 000000000000..893e06a007f1 --- /dev/null +++ b/src/lib_c/x86_64-linux-musl/c/sys/resource.cr @@ -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 diff --git a/src/lib_c/x86_64-macosx-darwin/c/sys/resource.cr b/src/lib_c/x86_64-macosx-darwin/c/sys/resource.cr new file mode 100644 index 000000000000..893e06a007f1 --- /dev/null +++ b/src/lib_c/x86_64-macosx-darwin/c/sys/resource.cr @@ -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 diff --git a/src/lib_c/x86_64-portbld-freebsd/c/sys/resource.cr b/src/lib_c/x86_64-portbld-freebsd/c/sys/resource.cr new file mode 100644 index 000000000000..d5b2799ce2b9 --- /dev/null +++ b/src/lib_c/x86_64-portbld-freebsd/c/sys/resource.cr @@ -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