Ansel 0.0
A darktable fork - bloat + design vision
Loading...
Searching...
No Matches
rlimit.h File Reference
#include <stdio.h>
+ Include dependency graph for rlimit.h:
+ This graph shows which files directly or indirectly include this file:

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)
 

Macro Definition Documentation

◆ RLIM_INFINITY

#define RLIM_INFINITY   (~0UL)

Definition at line 34 of file rlimit.h.

◆ RLIM_NLIMITS

#define RLIM_NLIMITS   7

Definition at line 33 of file rlimit.h.

◆ RLIMIT_AS

#define RLIMIT_AS   6 /* limit on process total address space size */

Definition at line 31 of file rlimit.h.

◆ RLIMIT_CORE

#define RLIMIT_CORE   4 /* limit on size of core dump file */

Definition at line 29 of file rlimit.h.

◆ RLIMIT_CPU

#define RLIMIT_CPU   0 /* limit on CPU time per process */

Definition at line 25 of file rlimit.h.

◆ RLIMIT_DATA

#define RLIMIT_DATA   2 /* limit on data segment size */

Definition at line 27 of file rlimit.h.

◆ RLIMIT_FSIZE

#define RLIMIT_FSIZE   1 /* limit on file size */

Definition at line 26 of file rlimit.h.

◆ RLIMIT_NOFILE

#define RLIMIT_NOFILE   5 /* limit on number of open files */

Definition at line 30 of file rlimit.h.

◆ RLIMIT_STACK

#define RLIMIT_STACK   3 /* limit on process stack size */

Definition at line 28 of file rlimit.h.

◆ RLIMIT_VMEM

#define RLIMIT_VMEM   RLIMIT_AS

Definition at line 32 of file rlimit.h.

Typedef Documentation

◆ rlimit_t

typedef struct rlimit rlimit_t

Definition at line 48 of file rlimit.h.

Function Documentation

◆ _rwrite()

int _rwrite ( int  handle,
const void buffer,
unsigned int  count 
)

Definition at line 174 of file rlimit.c.

References RLIMIT_FSIZE, and rlimits.

◆ getrlimit()

int getrlimit ( int  resource,
struct rlimit rlp 
)

Definition at line 79 of file rlimit.c.

References InitializeRlimits(), rInitialized, RLIM_NLIMITS, and rlimits.

Referenced by dt_set_rlimits_stack().

◆ rfwrite()

size_t rfwrite ( const void buffer,
size_t  size,
size_t  count,
FILE *  stream 
)

Definition at line 141 of file rlimit.c.

References RLIMIT_FSIZE, rlimits, and size.

◆ setrlimit()

int setrlimit ( int  resource,
const struct rlimit rlp 
)