12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- {
- $Id$
- This file is part of the Free Pascal run time library.
- Copyright (c) 2001 by Carl Eric Codere development team
- Base Unix unit modelled after POSIX 2001.
- See the file COPYING.FPC, included in this distribution,
- for details about the copyright.
- This program is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- **********************************************************************}
- Unit BaseUnix;
- Interface
- {$define oldreaddir} // Keep using readdir system call instead
- // of userland getdents stuff.
- {$define usedomain} // Allow uname with "domain" entry.
- // (which is a GNU extension)
- {$define posixworkaround} // Temporary ugly workaround for signal handler.
- // (mainly until baseunix migration is complete)
- {$i errno.inc} { Error numbers }
- {$i bunxtype.inc} { Types }
- {$i bunxh.inc} { Functions}
- function fpgeterrno:longint;
- procedure fpseterrno(err:longint);
- implementation
- {$i bunxmain.inc} { implementation}
- {$i bunxovl.inc} { redefs and overloads implementation}
- function fpgeterrno:longint; external name 'FPC_SYS_GETERRNO';
- procedure fpseterrno(err:longint); external name 'FPC_SYS_SETERRNO';
- end.
- {
- $Log$
- Revision 1.2 2003-09-14 20:15:01 marco
- * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
- Revision 1.1 2002/12/18 16:44:09 marco
- * more new RTL
- Revision 1.2 2002/11/14 12:17:28 marco
- * for now.
- }
|