baseunix.pp 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. {$define oldreaddir} // Keep using readdir system call instead
  15. // of userland getdents stuff.
  16. {$define usedomain} // Allow uname with "domain" entry.
  17. // (which is a GNU extension)
  18. {$define posixworkaround} // Temporary ugly workaround for signal handler.
  19. // (mainly until baseunix migration is complete)
  20. {$i errno.inc} { Error numbers }
  21. {$i bunxtype.inc} { Types }
  22. {$i bunxh.inc} { Functions}
  23. function fpgeterrno:longint;
  24. procedure fpseterrno(err:longint);
  25. property errno : cint read fpgeterrno write fpseterrno;
  26. implementation
  27. {$i bunxmain.inc} { implementation}
  28. {$i bunxovl.inc} { redefs and overloads implementation}
  29. function fpgeterrno:longint; external name 'FPC_SYS_GETERRNO';
  30. procedure fpseterrno(err:longint); external name 'FPC_SYS_SETERRNO';
  31. end.
  32. {
  33. $Log$
  34. Revision 1.3 2003-12-10 17:08:28 marco
  35. * property errno defined
  36. Revision 1.2 2003/09/14 20:15:01 marco
  37. * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
  38. Revision 1.1 2002/12/18 16:44:09 marco
  39. * more new RTL
  40. Revision 1.2 2002/11/14 12:17:28 marco
  41. * for now.
  42. }