Re: [fpc-devel] inode number

2012-09-24 Thread Michael Schnell
Funny that fpstat is there and it's not necessary for fpstatfs... And funny that fpstat uses a var parameter, while fpstatfs needs an explicit pointer to the return record. Anyway. it works fine now. Thanks again, -Michael ___ fpc-devel maillist -

Re: [fpc-devel] inode number

2012-09-24 Thread Michael Schnell
OK, I did find that I need to "use" baseunix. Funny that fpstat is there and it's not necessary for fpstatfs... Thanks, -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] inode number

2012-09-24 Thread Michael Schnell
I did find the definition of the stat record in stat.inc, but I'm still not unclear how to make use of it. -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel

Re: [fpc-devel] inode number

2012-09-24 Thread Michael Schnell
On 09/24/2012 10:33 AM, michael.vancann...@wisa.be wrote: You need to use the fpstat function for this. The stat record contains the inode number. While with uses libc, Linux, Unix, unixtype; I can use the Function "fpStatFS(Path:ansistring;Info:PStatfs):cint;" (which provides useful inf

Re: [fpc-devel] inode number

2012-09-24 Thread Michael Schnell
On 09/24/2012 10:33 AM, michael.vancann...@wisa.be wrote: On Mon, 24 Sep 2012, Michael Schnell wrote: In the RTL, is there an encapsulation for finding the inode number of a file in an extX file system ? Or dis anybody already do code for this ? You need to use the fpstat function for this

Re: [fpc-devel] inode number

2012-09-24 Thread michael . vancanneyt
On Mon, 24 Sep 2012, Michael Schnell wrote: In the RTL, is there an encapsulation for finding the inode number of a file in an extX file system ? Or dis anybody already do code for this ? You need to use the fpstat function for this. The stat record contains the inode number. Michael. _

[fpc-devel] inode number

2012-09-24 Thread Michael Schnell
In the RTL, is there an encapsulation for finding the inode number of a file in an extX file system ? Or dis anybody already do code for this ? Thanks, -Michael ___ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailm