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