baseunix.pp 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2001 by Carl Eric Codere development team
  5. Base Unix unit modelled after POSIX 2001.
  6. See the file COPYING.FPC, included in this distribution,
  7. for details about the copyright.
  8. This program is distributed in the hope that it will be useful,
  9. but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  11. **********************************************************************}
  12. Unit BaseUnix;
  13. Interface
  14. {$packrecords C}
  15. {$define oldreaddir} // Keep using readdir system call instead
  16. // of userland getdents stuff.
  17. {$define usedomain} // Allow uname with "domain" entry.
  18. // (which is a GNU extension)
  19. {$define posixworkaround} // Temporary ugly workaround for signal handler.
  20. // (mainly until baseunix migration is complete)
  21. {$i errno.inc} { Error numbers }
  22. {$i bunxtype.inc} { Types }
  23. {$i bunxh.inc} { Functions}
  24. function fpgeterrno:longint;
  25. procedure fpseterrno(err:longint);
  26. property errno : cint read fpgeterrno write fpseterrno;
  27. implementation
  28. {$i bunxmain.inc} { implementation}
  29. {$i bunxovl.inc} { redefs and overloads implementation}
  30. function fpgeterrno:longint; external name 'FPC_SYS_GETERRNO';
  31. procedure fpseterrno(err:longint); external name 'FPC_SYS_SETERRNO';
  32. end.
  33. {
  34. $Log$
  35. Revision 1.4 2003-12-10 17:08:33 marco
  36. * property errno defined
  37. Revision 1.3 2003/09/14 20:15:01 marco
  38. * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
  39. Revision 1.2 2003/06/03 14:23:45 marco
  40. * Moved prototypes outside of baseunix. And shared with linux for now
  41. Revision 1.1 2003/01/05 19:01:28 marco
  42. * FreeBSD compiles now with baseunix mods.
  43. Revision 1.1 2002/12/18 16:44:09 marco
  44. * more new RTL
  45. Revision 1.2 2002/11/14 12:17:28 marco
  46. * for now.
  47. }