bunxmain.inc 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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. {I ostypes.inc}
  17. {$I bunxmacr.inc}
  18. {$ifdef FPC_USE_LIBC}
  19. {$Linklib c}
  20. { var
  21. Errno : cint; external name 'errno';}
  22. {$else}
  23. {$i sysdeclh.inc}
  24. {$endif}
  25. {$I bunxfunc.inc}
  26. {
  27. $Log$
  28. Revision 1.5 2004-11-14 12:21:08 marco
  29. * moved some calls from unix to baseunix. Darwin untested.
  30. Revision 1.4 2004/05/31 18:03:51 jonas
  31. * moved fpgeterrno/fpseterrno declarations to before their actual usage
  32. Revision 1.3 2003/12/30 12:26:21 marco
  33. * FPC_USE_LIBC
  34. Revision 1.2 2003/06/01 16:35:27 marco
  35. * Several small fixes to harmonize the *BSD rtls and Linux.
  36. Revision 1.1 2003/01/05 19:01:28 marco
  37. * FreeBSD compiles now with baseunix mods.
  38. Revision 1.8 2002/10/27 17:21:29 marco
  39. * Only "difficult" functions + execvp + termios + rewinddir left to do
  40. Revision 1.7 2002/10/27 11:58:30 marco
  41. * Modifications from Saturday.
  42. Revision 1.6 2002/10/26 18:27:51 marco
  43. * First series POSIX calls commits. Including getcwd.
  44. Revision 1.5 2002/09/07 16:01:17 peter
  45. * old logs removed and tabs fixed
  46. Revision 1.4 2002/08/21 07:03:16 marco
  47. * Fixes from Tuesday.
  48. Revision 1.3 2002/08/19 12:29:11 marco
  49. * First working POSIX *BSD system unit.
  50. }