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.
7
See the file COPYING.FPC, included in this distribution,
8
for details about the copyright.
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.
14
**********************************************************************}
16
{BSD version, only the blocks with BSD in the comment are updated}
19
{ Things for LSEEK call, same in linux and BSD }
23
{ Things for OPEN call - after include/sys/fcntl.h, BSD updated.
24
BSD specifies these constants in hex }
36
Open_Create = $200; {BSD convention}
37
Open_Creat = $200; {Linux convention}
42
{ The waitpid uses the following options:}
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 }
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;
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;
75
{ Constants to test the type of filesystem }
88
{ Constansts for MMAP }
92
{Constansts Termios/Ioctl (used in Do_IsDevice) }
93
IOCtl_TCGETS=$5401; // TCGETS is also in termios.inc, but the sysunix needs only this
95
{Checked for BSD using Linuxthreads port}
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
109
TCloneFunc=function(args:pointer):longint;cdecl;
113
$Log: sysconst.inc,v $
114
Revision 1.1 2003/05/20 23:56:40 florian
115
* basic setup; derived from FreeBSD and Linux
117
Revision 1.7 2002/09/07 16:01:17 peter
118
* old logs removed and tabs fixed
120
Revision 1.6 2002/05/06 09:35:09 marco
121
* Some stuff from 1.0.x ported