bunxmain.inc 1.7 KB

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