File: bresourceh.inc

package info (click to toggle)
fpc 3.2.0%2Bdfsg-12
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, bullseye-backports
  • size: 338,552 kB
  • sloc: pascal: 3,794,737; xml: 191,997; ansic: 9,637; asm: 8,482; java: 5,346; sh: 4,664; yacc: 3,751; makefile: 2,688; lex: 2,538; javascript: 2,375; sql: 929; php: 473; cpp: 145; perl: 134; sed: 132; csh: 34; tcl: 7
file content (97 lines) | stat: -rw-r--r-- 1,820 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97

type
   __rlimit_resource =  Longint;

Const
     RLIMIT_CPU = 0;
     RLIMIT_FSIZE = 1;
     RLIMIT_DATA = 2;
     RLIMIT_STACK = 3;
     RLIMIT_CORE = 4;
     RLIMIT_RSS = 5;
     RLIMIT_NOFILE = 7;
     RLIMIT_OFILE = RLIMIT_NOFILE;
     RLIMIT_AS = 9;
     RLIMIT_NPROC = 6;
     RLIMIT_MEMLOCK = 8;
     RLIMIT_LOCKS = 10;
     RLIMIT_NLIMITS = 11;
     RLIM_NLIMITS = RLIMIT_NLIMITS;

  RLIM_INFINITY = LongInt(-1);
  RLIM64_INFINITY = Int64(-1);

  RLIM_SAVED_MAX = RLIM_INFINITY;
  RLIM_SAVED_CUR = RLIM_INFINITY;

type
  Prlim_t = ^rlim_t;
  rlim_t = __rlim_t;

  Prlim64_t = ^rlim64_t;
  rlim64_t = __rlim64_t;

  Prlimit = ^rlimit;
  rlimit = record
    rlim_cur : rlim_t;
    rlim_max : rlim_t;
  end;

  Prlimit64 = ^rlimit64;
  rlimit64 = record
    rlim_cur : rlim64_t;
    rlim_max : rlim64_t;
  end;

type
  __rusage_who =  Longint;

Const
  RUSAGE_SELF = 0;
  RUSAGE_CHILDREN = -(1);
  RUSAGE_BOTH = -(2);

type
  Prusage = ^rusage;
  rusage = record
       ru_utime : timeval;
       ru_stime : timeval;
       ru_maxrss : longint;
       ru_ixrss : longint;
       ru_idrss : longint;
       ru_isrss : longint;
       ru_minflt : longint;
       ru_majflt : longint;
       ru_nswap : longint;
       ru_inblock : longint;
       ru_oublock : longint;
       ru_msgsnd : longint;
       ru_msgrcv : longint;
       ru_nsignals : longint;
       ru_nvcsw : longint;
       ru_nivcsw : longint;
    end;


const
  PRIO_MIN = -(20);
  PRIO_MAX = 20;

type
  __priority_which =  Longint;

Const
   PRIO_PROCESS = 0;
   PRIO_PGRP = 1;
   PRIO_USER = 2;


{ ---------------------------------------------------------------------
    Borland compatibility types
  ---------------------------------------------------------------------}

Type
  TRLimit = rlimit;
  TRLimit64 = rlimit64;
  TRUsage = rusage;