bunxmain.inc 1.7 KB

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