2020-06-15 14:18:57 +00:00
|
|
|
#ifndef COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_H_
|
|
|
|
#define COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_H_
|
|
|
|
#if !(__ASSEMBLER__ + __LINKER__ + 0)
|
2022-08-13 20:11:56 +00:00
|
|
|
COSMOPOLITAN_C_START_
|
2020-06-15 14:18:57 +00:00
|
|
|
|
|
|
|
struct rlimit {
|
2021-04-18 18:34:59 +00:00
|
|
|
uint64_t rlim_cur; /* current (soft) limit in bytes */
|
|
|
|
uint64_t rlim_max; /* maximum limit in bytes */
|
2020-06-15 14:18:57 +00:00
|
|
|
};
|
|
|
|
|
2022-06-09 03:01:28 +00:00
|
|
|
int getrlimit(int, struct rlimit *);
|
|
|
|
int setrlimit(int, const struct rlimit *);
|
|
|
|
|
2022-08-13 20:11:56 +00:00
|
|
|
COSMOPOLITAN_C_END_
|
2020-06-15 14:18:57 +00:00
|
|
|
#endif /* !(__ASSEMBLER__ + __LINKER__ + 0) */
|
|
|
|
#endif /* COSMOPOLITAN_LIBC_CALLS_STRUCT_RLIMIT_H_ */
|