~ubuntu-branches/debian/lenny/fpc/lenny

« back to all changes in this revision

Viewing changes to fpcsrc/packages/base/libc/squotah.inc

  • Committer: Bazaar Package Importer
  • Author(s): Mazen Neifer, Torsten Werner, Mazen Neifer
  • Date: 2008-05-17 17:12:11 UTC
  • mfrom: (3.1.9 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080517171211-9qi33xhd9evfa0kg
Tags: 2.2.0-dfsg1-9
[ Torsten Werner ]
* Add Mazen Neifer to Uploaders field.

[ Mazen Neifer ]
* Moved FPC sources into a version dependent directory from /usr/share/fpcsrc
  to /usr/share/fpcsrc/${FPCVERSION}. This allow installing more than on FPC
  release.
* Fixed far call issue in compiler preventing building huge binearies.
  (closes: #477743)
* Updated building dependencies, recomennded and suggested packages.
* Moved fppkg to fp-utils as it is just a helper tool and is not required by
  compiler.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
function dbtob(num: cardinal): cardinal;
 
3
function btodb(num: cardinal): cardinal;
 
4
function fs_to_dq_blocks(num, blksize: cardinal): quad_t;
 
5
 
 
6
 
 
7
const
 
8
  MAX_IQ_TIME = 604800;
 
9
  MAX_DQ_TIME = 604800;
 
10
  MAXQUOTAS = 2;
 
11
  USRQUOTA = 0;
 
12
  GRPQUOTA = 1;
 
13
 
 
14
const
 
15
  INITQFNAMES: array[0..2] of PChar = ('user','group','undefined');
 
16
 
 
17
  QUOTAFILENAME = 'quota';
 
18
  QUOTAGROUP = 'staff';
 
19
 
 
20
  NR_DQHASH = 43;
 
21
  NR_DQUOTS = 256;
 
22
  SUBCMDMASK = $00ff;
 
23
  SUBCMDSHIFT = 8;
 
24
 
 
25
function QCMD(cmd, _type: cardinal): cardinal;
 
26
 
 
27
 
 
28
const
 
29
  Q_QUOTAON = $0100;
 
30
  Q_QUOTAOFF = $0200;
 
31
  Q_GETQUOTA = $0300;
 
32
  Q_SETQUOTA = $0400;
 
33
  Q_SETUSE = $0500;
 
34
  Q_SYNC = $0600;
 
35
  Q_SETQLIM = $0700;
 
36
  Q_GETSTATS = $0800;
 
37
  Q_RSQUASH = $1000;
 
38
 
 
39
type
 
40
  Pdqblk = ^dqblk;
 
41
  dqblk = record
 
42
    dqb_bhardlimit : u_int32_t;
 
43
    dqb_bsoftlimit : u_int32_t;
 
44
    dqb_curblocks : u_int32_t;
 
45
    dqb_ihardlimit : u_int32_t;
 
46
    dqb_isoftlimit : u_int32_t;
 
47
    dqb_curinodes : u_int32_t;
 
48
    dqb_btime : time_t;
 
49
    dqb_itime : time_t;
 
50
  end;
 
51
 
 
52
function dqoff(UID: loff_t): quad_t;
 
53
 
 
54
 
 
55
type
 
56
  Pdqstats = ^dqstats;
 
57
  dqstats = record
 
58
       lookups : u_int32_t;
 
59
       drops : u_int32_t;
 
60
       reads : u_int32_t;
 
61
       writes : u_int32_t;
 
62
       cache_hits : u_int32_t;
 
63
       allocated_dquots : u_int32_t;
 
64
       free_dquots : u_int32_t;
 
65
       syncs : u_int32_t;
 
66
    end;
 
67
 
 
68
 
 
69
function quotactl(__cmd:longint; __special:Pchar; __id:longint; __addr:caddr_t):longint;cdecl;external clib name 'quotactl';
 
70
 
 
71
{ ---------------------------------------------------------------------
 
72
    Borland compatibility types
 
73
  ---------------------------------------------------------------------}
 
74
 
 
75
// Type