qnx.inc 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. Copyright (c) 2002 by Carl Eric Codere
  3. Implements QNX system calls and types
  4. This program is free software; you can redistribute it and/or modify
  5. it under the terms of the GNU General Public License as published by
  6. the Free Software Foundation; either version 2 of the License, or
  7. (at your option) any later version.
  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. See the
  11. GNU General Public License for more details.
  12. You should have received a copy of the GNU General Public License
  13. along with this program; if not, write to the Free Software
  14. Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
  15. MA 02110-1301, USA.
  16. ****************************************************************************
  17. }
  18. const
  19. _FSTYPSZ = 16;
  20. type
  21. fsblkcnt_t = int64;
  22. fsfilcnt_t = int64;
  23. statvfs_t = packed record
  24. f_bsize : cardinal; {* fundamental file system block size *}
  25. f_frsize : cardinal; {* fragment size *}
  26. f_blocks : fsblkcnt_t; {* total blocks of f_frsize on fs *}
  27. f_bfree : fsblkcnt_t; {* total free blocks of f_frsize *}
  28. f_bavail : fsblkcnt_t; {* free blocks avail to non-superuser *}
  29. f_files : fsfilcnt_t; {* total file nodes (inodes) *}
  30. f_free : fsfilcnt_t; {* total free file nodes *}
  31. f_favail : fsfilcnt_t; {* free nodes avail to non-superuser *}
  32. f_fsid : cardinal; {* file system id (dev for now) *}
  33. f_basetype : array[0.._FSTYPSZ-1] of char; {* target fs type name null terminated *}
  34. f_flag : cardinal; {* bit-mask of flags *}
  35. f_namemax : cardinal; {* maximum file name length *}
  36. f_filler : array[1..21] of cardinal; {* reserved for future expansion *}
  37. end;
  38. function sys_statvfs(const path: pchar; var buf : statvfs_t): cint; cdecl; external name 'statvfs';