ossysch.inc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  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 Fpmunmap(adr:longint;len:size_t):longint; external name 'FPC_SYSC_MUNMAP';
  15. Function FpIOCtl(Handle,Ndx: Longint;Data: Pointer):LongInt; external name 'FPC_SYSC_IOCTL';
  16. Function FpGetPid:LongInt; external name 'FPC_SYSC_GETPID';
  17. Function FpReadLink(name,linkname:pchar;maxlen:longint):longint; external name 'FPC_SYSC_READLINK';
  18. { Needed in both POSIX (for implementation of sleep()) as POSIX realtime extensions or Unix/freebsd}
  19. Function FpNanoSleep (const req : timespec;var rem : timespec) : longint; external name 'FPC_SYSC_NANOSLEEP';
  20. { can be used for getdir?}
  21. Function Fpgetcwd (path:pchar; siz:size_t):pchar; external name 'FPC_SYSC_GETCWD';
  22. {
  23. $Log$
  24. Revision 1.1 2003-01-05 19:01:28 marco
  25. * FreeBSD compiles now with baseunix mods.
  26. Revision 1.4 2002/10/27 11:58:29 marco
  27. * Modifications from Saturday.
  28. }