[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Filename to "inode" pointer in C



Oops, icat does the exact opposite.

'ls -i' does what you want, so look into the sourcecode of ls.

--
Cam


On Sun, 3 Nov 2002, Camiel Dobbelaar wrote:

> The Coroner's Toolkit has a tool called 'icat' I believe, which may do
> what you want:
>
> http://www.porcupine.org/forensics/tct.html
>
> --
> Cam
>
>
> On Sun, 3 Nov 2002, John D. wrote:
>
> > Is there any C library or function that can take a file name or path,  and convert it into an "inode" pointer.    I need a pointer to an "inode" structure.   I'm also going to want to get the "inode" number.   But I can get that from the "i_number" field in the "inode" structure.
> >
> > Any code that comes close to this,  would be most helpful.
> >
> > Thanx