![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
#include <stdio.h>
Go to the source code of this file.
Data Structures | |
struct | rlimit |
Macros | |
#define | RLIMIT_CPU 0 /* limit on CPU time per process */ |
#define | RLIMIT_FSIZE 1 /* limit on file size */ |
#define | RLIMIT_DATA 2 /* limit on data segment size */ |
#define | RLIMIT_STACK 3 /* limit on process stack size */ |
#define | RLIMIT_CORE 4 /* limit on size of core dump file */ |
#define | RLIMIT_NOFILE 5 /* limit on number of open files */ |
#define | RLIMIT_AS 6 /* limit on process total address space size */ |
#define | RLIMIT_VMEM RLIMIT_AS |
#define | RLIM_NLIMITS 7 |
#define | RLIM_INFINITY (~0UL) |
Typedefs | |
typedef struct rlimit | rlimit_t |
Functions | |
int | getrlimit (int resource, struct rlimit *) |
int | setrlimit (int resource, const struct rlimit *) |
size_t | rfwrite (const void *buffer, size_t size, size_t count, FILE *stream) |
int | _rwrite (int handle, const void *buffer, unsigned int count) |
#define RLIM_INFINITY (~0UL) |
#define RLIM_NLIMITS 7 |
#define RLIMIT_CORE 4 /* limit on size of core dump file */ |
#define RLIMIT_CPU 0 /* limit on CPU time per process */ |
#define RLIMIT_DATA 2 /* limit on data segment size */ |
#define RLIMIT_FSIZE 1 /* limit on file size */ |
#define RLIMIT_NOFILE 5 /* limit on number of open files */ |
#define RLIMIT_VMEM RLIMIT_AS |
int _rwrite | ( | int | handle, |
const void * | buffer, | ||
unsigned int | count | ||
) |
References RLIMIT_FSIZE, and rlimits.
int getrlimit | ( | int | resource, |
struct rlimit * | rlp | ||
) |
References InitializeRlimits(), rInitialized, RLIM_NLIMITS, and rlimits.
Referenced by dt_set_rlimits_stack().
size_t rfwrite | ( | const void * | buffer, |
size_t | size, | ||
size_t | count, | ||
FILE * | stream | ||
) |
References RLIMIT_FSIZE, rlimits, and size.
int setrlimit | ( | int | resource, |
const struct rlimit * | rlp | ||
) |
References InitializeRlimits(), rInitialized, rlimit::rlim_cur, rlimit::rlim_max, RLIM_NLIMITS, and rlimits.
Referenced by dt_set_rlimits_stack().