unxdeclh.inc 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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 fpMUnMap (P : Pointer; Size : size_t) : cint; cdecl; external clib name 'munmap';
  14. Function fStatFS(Fd:Longint;Var Info:tstatfs):cint; cdecl; external clib name 'fstatfs';
  15. Function Flock (fd,mode : longint) : cint; cdecl; external clib name 'flock';
  16. Function fsync (fd : cint) : cint; cdecl; external clib name 'fsync';
  17. Function StatFS (Path:pchar;Var Info:tstatfs):cint; cdecl; external clib name 'statfs';
  18. function pipe (var fildes: filedesarray):cint; cdecl; external clib name 'pipe';
  19. function fpNice(N:cint):cint; cdecl; external clib name 'nice';
  20. Function fpGetPriority(Which,Who:cint):cint; cdecl; external clib name 'getpriority';
  21. Function fpSetPriority(Which,Who,What:cint):cint; cdecl; external clib name 'setpriority';
  22. Function fpLstat(path:pchar;Info:pstat):cint; cdecl; external clib name 'lstat';
  23. Function fpSymlink(oldname,newname:pchar):cint; cdecl; external clib name 'symlink';
  24. Function fpReadLink(name,linkname:pchar;maxlen:cint):cint; cdecl; external clib name 'readlink';
  25. function fpgettimeofday(tp: ptimeval;tzp:ptimezone):cint; cdecl; external clib name 'gettimeofday';
  26. {
  27. $Log$
  28. Revision 1.3 2004-01-04 21:05:01 jonas
  29. * declare C-library routines as external in libc so we generate proper
  30. import entries for Darwin
  31. Revision 1.2 2004/01/01 14:09:14 marco
  32. * FPC_USE_LIBC fixes
  33. Revision 1.1 2003/12/30 12:29:16 marco
  34. * FPC_USE_LIBC
  35. Revision 1.1 2003/06/01 15:23:46 marco
  36. * Shared for now
  37. Revision 1.1 2002/12/18 16:43:26 marco
  38. * new unix rtl, linux part.....
  39. }