~ubuntu-branches/ubuntu/dapper/fpc/dapper

« back to all changes in this revision

Viewing changes to packages/base/libc/bschedh.inc

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2004-08-12 16:29:37 UTC
  • mfrom: (1.2.1 upstream) (2.1.1 warty)
  • Revision ID: james.westby@ubuntu.com-20040812162937-moo8ulvysp1ln771
Tags: 1.9.4-5
fp-compiler: needs ld, adding dependency on binutils.  (Closes: #265265)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
const
 
3
   SCHED_OTHER = 0;
 
4
   SCHED_FIFO = 1;
 
5
   SCHED_RR = 2;
 
6
 
 
7
const
 
8
   CSIGNAL = $000000ff;
 
9
   CLONE_VM = $00000100;
 
10
   CLONE_FS = $00000200;
 
11
   CLONE_FILES = $00000400;
 
12
   CLONE_SIGHAND = $00000800;
 
13
   CLONE_PID = $00001000;
 
14
   CLONE_PTRACE = $00002000;
 
15
   CLONE_VFORK = $00004000;
 
16
 
 
17
type
 
18
   Psched_param = ^sched_param;
 
19
   sched_param = record
 
20
     __sched_priority : longint;
 
21
   end;
 
22
 
 
23
  TCloneFunc = function(Arg: Pointer): Integer; cdecl; // For translation 
 
24
  
 
25
 
 
26
function clone(__fn:tclonefunc; __child_stack:pointer; __flags:longint; __arg:pointer):longint;cdecl;external clib name 'clone';
 
27
 
 
28
 
 
29
{ ---------------------------------------------------------------------
 
30
    Borland compatibility types
 
31
  ---------------------------------------------------------------------}
 
32
 
 
33
Type  
 
34
   __sched_param = sched_param;
 
35
   P__sched_param = ^__sched_param;
 
36
   TSchedParam = __sched_param;
 
37
   PSchedParam = ^TSchedParam;
 
38
   
 
39
   TCloneProc = TCloneFunc; 
 
40
 
 
41
     
 
42