unxdeclh.inc 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. $Id$
  3. This file is part of the Free Pascal run time library.
  4. Copyright (c) 2001 by Free Pascal development team
  5. cdecl; definitions needed for unix unit.
  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. type filedesarray=array[0..1] of cint;
  13. Function fStatFS(Fd:Longint;Var Info:tstatfs):cint; cdecl; external clib name 'fstatfs';
  14. Function fpFlock (fd,mode : longint) : cint; cdecl; external clib name 'flock';
  15. Function fsync (fd : cint) : cint; cdecl; external clib name 'fsync';
  16. Function StatFS (Path:pchar;Var Info:tstatfs):cint; cdecl; external clib name 'statfs';
  17. function pipe (var fildes: filedesarray):cint; cdecl; external clib name 'pipe';
  18. function fpgettimeofday(tp: ptimeval;tzp:ptimezone):cint; cdecl; external clib name 'gettimeofday';
  19. {
  20. $Log$
  21. Revision 1.6 2004-12-22 13:53:51 marco
  22. * fpgettimeofday moved from baseunix to unix
  23. Revision 1.5 2004/11/14 12:21:08 marco
  24. * moved some calls from unix to baseunix. Darwin untested.
  25. Revision 1.4 2004/04/23 19:16:25 marco
  26. * flock -> fpflock because of conflicting structure name
  27. Revision 1.3 2004/01/04 21:05:01 jonas
  28. * declare C-library routines as external in libc so we generate proper
  29. import entries for Darwin
  30. Revision 1.2 2004/01/01 14:09:14 marco
  31. * FPC_USE_LIBC fixes
  32. Revision 1.1 2003/12/30 12:29:16 marco
  33. * FPC_USE_LIBC
  34. Revision 1.1 2003/06/01 15:23:46 marco
  35. * Shared for now
  36. Revision 1.1 2002/12/18 16:43:26 marco
  37. * new unix rtl, linux part.....
  38. }