Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.
/ druntime Public archive
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/core/sys/posix/sys/resource.d
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,24 @@ else version (CRuntime_Bionic)
RLIMIT_AS = 9,
}
}
else version (CRuntime_Musl)
{
alias ulong rlim_t;
enum
{
RLIMIT_CPU = 0,
RLIMIT_FSIZE = 1,
RLIMIT_DATA = 2,
RLIMIT_STACK = 3,
RLIMIT_CORE = 4,
RLIMIT_NOFILE = 7,
RLIMIT_AS = 9,
}
int getrlimit(int, rlimit*);
int setrlimit(int, in rlimit*);
alias getrlimit getrlimit64;
alias setrlimit setrlimit64;
}
else static assert (false, "Unsupported platform");

struct rlimit
Expand Down