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

« back to all changes in this revision

Viewing changes to rtl/darwin/sysconst.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
 
    $Id: sysconst.inc,v 1.1 2003/05/20 23:56:40 florian Exp $
3
 
    This file is part of the Free Pascal run time library.
4
 
    Copyright (c) 1999-2000 by Michael Van Canneyt,
5
 
    member of the Free Pascal development team.
6
 
 
7
 
    See the file COPYING.FPC, included in this distribution,
8
 
    for details about the copyright.
9
 
 
10
 
    This program is distributed in the hope that it will be useful,
11
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
12
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13
 
 
14
 
 **********************************************************************}
15
 
 
16
 
{BSD version, only the blocks with BSD in the comment are updated}
17
 
 
18
 
Const
19
 
  { Things for LSEEK call, same in linux and BSD }
20
 
  Seek_set = 0;
21
 
  Seek_Cur = 1;
22
 
  Seek_End = 2;
23
 
  { Things for OPEN call - after include/sys/fcntl.h, BSD updated.
24
 
   BSD specifies these constants in hex }
25
 
  Open_Accmode  = 3;
26
 
  Open_RdOnly   = 0;
27
 
  Open_WrOnly   = 1;
28
 
  Open_RdWr     = 2;
29
 
  Open_NonBlock = 4;
30
 
  Open_Append   = 8;
31
 
  Open_ShLock   = $10;
32
 
  Open_ExLock   = $20;
33
 
  Open_ASync    = $40;
34
 
  Open_FSync    = $80;
35
 
  Open_NoFollow = $100;
36
 
  Open_Create   = $200;       {BSD convention}
37
 
  Open_Creat    = $200;       {Linux convention}
38
 
  Open_Trunc    = $400;
39
 
  Open_Excl     = $800;
40
 
  Open_NoCTTY   = $8000;
41
 
 
42
 
  { The waitpid uses the following options:}
43
 
  Wait_NoHang   = 1;
44
 
  Wait_UnTraced = 2;
45
 
  Wait_Any      = -1;
46
 
  Wait_MyPGRP   = 0;
47
 
  { Constants to check stat.mode -  checked all STAT constants with BSD}
48
 
  STAT_IFMT   = $f000; {00170000 }
49
 
  STAT_IFSOCK = $c000; {0140000 }
50
 
  STAT_IFLNK  = $a000; {0120000 }
51
 
  STAT_IFREG  = $8000; {0100000 }
52
 
  STAT_IFBLK  = $6000; {0060000 }
53
 
  STAT_IFDIR  = $4000; {0040000 }
54
 
  STAT_IFCHR  = $2000; {0020000 }
55
 
  STAT_IFIFO  = $1000; {0010000 }
56
 
  STAT_ISUID  = $0800; {0004000 }
57
 
  STAT_ISGID  = $0400; {0002000 }
58
 
  STAT_ISVTX  = $0200; {0001000}
59
 
  { Constants to check permissions all }
60
 
  STAT_IRWXO = $7;
61
 
  STAT_IROTH = $4;
62
 
  STAT_IWOTH = $2;
63
 
  STAT_IXOTH = $1;
64
 
 
65
 
  STAT_IRWXG = STAT_IRWXO shl 3;
66
 
  STAT_IRGRP = STAT_IROTH shl 3;
67
 
  STAT_IWGRP = STAT_IWOTH shl 3;
68
 
  STAT_IXGRP = STAT_IXOTH shl 3;
69
 
 
70
 
  STAT_IRWXU = STAT_IRWXO shl 6;
71
 
  STAT_IRUSR = STAT_IROTH shl 6;
72
 
  STAT_IWUSR = STAT_IWOTH shl 6;
73
 
  STAT_IXUSR = STAT_IXOTH shl 6;
74
 
 
75
 
  { Constants to test the type of filesystem }
76
 
  fs_old_ext2 = $ef51;
77
 
  fs_ext2     = $ef53;
78
 
  fs_ext      = $137d;
79
 
  fs_iso      = $9660;
80
 
  fs_minix    = $137f;
81
 
  fs_minix_30 = $138f;
82
 
  fs_minux_V2 = $2468;
83
 
  fs_msdos    = $4d44;
84
 
  fs_nfs      = $6969;
85
 
  fs_proc     = $9fa0;
86
 
  fs_xia      = $012FD16D;
87
 
 
88
 
  { Constansts for MMAP }
89
 
  MAP_PRIVATE   =2;
90
 
  MAP_ANONYMOUS =$1000;
91
 
 
92
 
  {Constansts Termios/Ioctl (used in Do_IsDevice) }
93
 
  IOCtl_TCGETS=$5401; // TCGETS is also in termios.inc, but the sysunix needs only this
94
 
 
95
 
  {Checked for BSD using Linuxthreads port}
96
 
  { cloning flags }
97
 
  CSIGNAL       = $000000ff; // signal mask to be sent at exit
98
 
  CLONE_VM      = $00000100; // set if VM shared between processes
99
 
  CLONE_FS      = $00000200; // set if fs info shared between processes
100
 
  CLONE_FILES   = $00000400; // set if open files shared between processes
101
 
  CLONE_SIGHAND = $00000800; // set if signal handlers shared
102
 
  CLONE_PID     = $00001000; // set if pid shared
103
 
 
104
 
  ITimer_Real    =0;
105
 
  ITimer_Virtual =1;
106
 
  ITimer_Prof    =2;
107
 
 
108
 
type
109
 
  TCloneFunc=function(args:pointer):longint;cdecl;
110
 
 
111
 
 
112
 
{
113
 
  $Log: sysconst.inc,v $
114
 
  Revision 1.1  2003/05/20 23:56:40  florian
115
 
    * basic setup; derived from FreeBSD and Linux
116
 
 
117
 
  Revision 1.7  2002/09/07 16:01:17  peter
118
 
    * old logs removed and tabs fixed
119
 
 
120
 
  Revision 1.6  2002/05/06 09:35:09  marco
121
 
   * Some stuff from 1.0.x ported
122
 
 
123
 
}