Pawe� Jakub Dawidek wrote:
> I can get vnode of changed file.
> I can get inode number of changed file.
> But how can i get file name?
>
> There is a way to get inode when i have file name and p (struct proc), so
> maybe there is a way to get file name from inode number and p.
>
> And another thing for chflags syscall.
> I got file name, but how can I get full path name for this file?
char *saved_name;
func()
{
char *foo;
...
fd = open( foo, O_RDWR, 0664);
saved_name = strdup( foo);
...
printf( "name that goes with fd %d is '%s'\n",
fd, saved_name);
...
}
i.e.: You opened the thing, you ought to know its name.
-- Terry
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message