mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-18 23:19:25 +02:00
48 lines
1.2 KiB
PHP
48 lines
1.2 KiB
PHP
{
|
|
$Id$
|
|
This file is part of the Free Pascal run time library.
|
|
Copyright (c) 2002 by Marco van de Voort
|
|
|
|
Some generic overloads for stringfunctions in the unix unit.
|
|
|
|
See the file COPYING.FPC, included in this distribution,
|
|
for details about the copyright.
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
|
|
|
**********************************************************************}
|
|
|
|
Function StatFS(Path:ansistring;Var Info:Tstatfs):cint;
|
|
|
|
{
|
|
Get all information on a fileSystem, and return it in Info.
|
|
Path is the name of a file/directory on the fileSystem you wish to
|
|
investigate.
|
|
}
|
|
|
|
begin
|
|
statfs:=statfs(pchar(path),info);
|
|
end;
|
|
|
|
{
|
|
$Log$
|
|
Revision 1.4 2004-11-14 12:21:08 marco
|
|
* moved some calls from unix to baseunix. Darwin untested.
|
|
|
|
Revision 1.3 2004/11/03 15:00:43 marco
|
|
* Pathstr eliminated
|
|
|
|
Revision 1.2 2004/01/01 16:10:23 marco
|
|
* fpreadlink(pathstr) moved to unxovl (since not platform specific),
|
|
small fixes for "make all OPT='-dFPC_USE_LIBC'
|
|
|
|
Revision 1.1 2003/12/30 12:27:44 marco
|
|
* FPC_USE_LIBC
|
|
|
|
|
|
|
|
}
|
|
|