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

« back to all changes in this revision

Viewing changes to rtl/bsd/bunxmain.inc

  • Committer: Bazaar Package Importer
  • Author(s): Carlos Laviola
  • Date: 2005-05-30 11:59:10 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20050530115910-x5pbzm4qqta4i94h
Tags: 2.0.0-2
debian/fp-compiler.postinst.in: forgot to reapply the patch that
correctly creates the slave link to pc(1).  (Closes: #310907)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
{
2
 
    $Id: bunxmain.inc,v 1.3 2003/12/30 12:26:21 marco Exp $
3
 
    Copyright (c) 2002 by Marco van de Voort.
4
 
 
5
 
    Implementation of the POSIX unit for *BSD. In practice only includes
6
 
    other files, or specifies libc bindings.
7
 
 
8
 
    The conditional FPC_USELIBC can be used to switch from libc to syscall
9
 
    usage for basic primitives, but it is best to use unit POSIX if
10
 
    possible. Note that the system unit must also be compiled using uselibc.
11
 
 
12
 
    See the file COPYING.FPC, included in this distribution,
13
 
    for details about the copyright.
14
 
 
15
 
    This program is distributed in the hope that it will be useful,
16
 
    but WITHOUT ANY WARRANTY; without even the implied warranty of
17
 
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
18
 
 
19
 
 ****************************************************************************
20
 
}
21
 
 
22
 
Uses Sysctl;
23
 
 
24
 
{$I ostypes.inc}
25
 
{$I bunxmacr.inc}
26
 
 
27
 
{$ifdef FPC_USE_LIBC}
28
 
   {$Linklib c}
29
 
 
30
 
{   var
31
 
     Errno : cint; external name 'errno';}
32
 
   
33
 
 
34
 
{$else}
35
 
   {$i sysdeclh.inc}
36
 
{$endif}
37
 
 
38
 
{$I bunxfunc.inc}
39
 
 
40
 
{
41
 
 $Log: bunxmain.inc,v $
42
 
 Revision 1.3  2003/12/30 12:26:21  marco
43
 
  * FPC_USE_LIBC
44
 
 
45
 
 Revision 1.2  2003/06/01 16:35:27  marco
46
 
  * Several small fixes to harmonize the *BSD rtls and Linux.
47
 
 
48
 
 Revision 1.1  2003/01/05 19:01:28  marco
49
 
  * FreeBSD compiles now with baseunix mods.
50
 
 
51
 
 Revision 1.8  2002/10/27 17:21:29  marco
52
 
  * Only "difficult" functions + execvp + termios + rewinddir left to do
53
 
 
54
 
 Revision 1.7  2002/10/27 11:58:30  marco
55
 
  * Modifications from Saturday.
56
 
 
57
 
 Revision 1.6  2002/10/26 18:27:51  marco
58
 
  * First series POSIX calls commits. Including getcwd.
59
 
 
60
 
 Revision 1.5  2002/09/07 16:01:17  peter
61
 
   * old logs removed and tabs fixed
62
 
 
63
 
 Revision 1.4  2002/08/21 07:03:16  marco
64
 
  * Fixes from Tuesday.
65
 
 
66
 
 Revision 1.3  2002/08/19 12:29:11  marco
67
 
  * First working POSIX *BSD system unit.
68
 
 
69
 
}