ossysch.inc 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. {
  2. $Id$
  3. Copyright (c) 2002 by Marco van de Voort
  4. Header for functions/syscalls included in system, but not in POSIX. To
  5. implement unit UNIX, and/or other lowlevel unix routines.
  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. }
  13. //Function Fpmmap(adr,len,prot,flags,fdes,off:longint):longint; external name 'FPC_SYSC_MMAP';
  14. //Function Fpmmap(start:pointer;len:size_t;prot:cint;flags:cint;fd:cint;offst:off_t):pointer; external name 'FPC_SYSC_MMAP';
  15. //Function Fpmunmap(start:pointer;len:size_t):cint; external name 'FPC_SYSC_MUNMAP';
  16. //function fpgettimeofday(tp: ptimeval;tzp:ptimezone):cint; external name 'FPC_SYSC_GETTIMEOFDAY';
  17. // Function Fpmmap(start:pointer;len:size_t;prot:cint;flags:cint;fd:cint;offst:off_t):pointer; external name 'FPC_SYSC_MMAP';
  18. // Function Fpmunmap(start:pointer;len:size_t):cint; external name 'FPC_SYSC_MUNMAP';
  19. {$ifndef FPC_USE_LIBC}
  20. //Function FpIOCtl(Handle:cint;Ndx: culong;Data: Pointer):cint; external name 'FPC_SYSC_IOCTL';
  21. //Function FpGetPid:LongInt; external name 'FPC_SYSC_GETPID';
  22. //Function FpReadLink(name,linkname:pchar;maxlen:size_t):cint; external name 'FPC_SYSC_READLINK';
  23. { Needed in both POSIX (for implementation of sleep()) as POSIX realtime extensions or Unix/freebsd}
  24. //Function FpNanoSleep (req : ptimespec;rem : ptimespec) : cint; external name 'FPC_SYSC_NANOSLEEP';
  25. { can be used for getdir?}
  26. //Function Fpgetcwd (path:pchar; siz:size_t):pchar; external name 'FPC_SYSC_GETCWD';
  27. {$endif}
  28. {
  29. $Log$
  30. Revision 1.9 2004-11-19 13:15:14 marco
  31. * external rework. Mostly done.
  32. Revision 1.8 2004/11/14 12:21:08 marco
  33. * moved some calls from unix to baseunix. Darwin untested.
  34. Revision 1.7 2003/12/30 12:26:21 marco
  35. * FPC_USE_LIBC
  36. Revision 1.6 2003/09/27 13:45:58 peter
  37. * fpnanosleep exported in baseunix
  38. * fpnanosleep has pointer arguments to be C compliant
  39. Revision 1.5 2003/09/20 12:38:29 marco
  40. * FCL now compiles for FreeBSD with new 1.1. Now Linux.
  41. Revision 1.4 2003/09/16 12:45:49 marco
  42. * mmap typing fixes
  43. Revision 1.3 2003/09/15 20:08:49 marco
  44. * small fixes. FreeBSD now cycles
  45. Revision 1.2 2003/09/14 20:15:01 marco
  46. * Unix reform stage two. Remove all calls from Unix that exist in Baseunix.
  47. Revision 1.1 2003/01/05 19:01:28 marco
  48. * FreeBSD compiles now with baseunix mods.
  49. Revision 1.4 2002/10/27 11:58:29 marco
  50. * Modifications from Saturday.
  51. }