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)

◆ RLIM_NLIMITS

#define RLIM_NLIMITS   7

◆ RLIMIT_AS

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

◆ RLIMIT_CORE

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

◆ RLIMIT_CPU

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

◆ RLIMIT_DATA

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

◆ RLIMIT_FSIZE

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

◆ RLIMIT_NOFILE

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

◆ RLIMIT_STACK

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

◆ RLIMIT_VMEM

#define RLIMIT_VMEM   RLIMIT_AS

Typedef Documentation

◆ rlimit_t

typedef struct rlimit rlimit_t

Function Documentation

◆ _rwrite()

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

References RLIMIT_FSIZE, and rlimits.

◆ getrlimit()

int getrlimit ( int  resource,
struct rlimit rlp 
)

◆ rfwrite()

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

References RLIMIT_FSIZE, rlimits, and size.

◆ setrlimit()

int setrlimit ( int  resource,
const struct rlimit rlp 
)