xfs
[Top] [All Lists]

stat() and xfs

To: linux-xfs@xxxxxxxxxxx
Subject: stat() and xfs
From: Ron Henry <dijital1@xxxxxxxxxxxxxx>
Date: Mon, 16 Sep 2002 21:29:50 -0400 (AST)
Sender: linux-xfs-bounce@xxxxxxxxxxx
if I do stat("filename", &entry); and I then procede to printf() some of
the fields of the returned structure, is there a problem with casting the
elements to int vs something else? for ex should it be

printf("inode: %d\n", (int)entry.st_ino);  OR

printf("inode: %lld\n", (long long)entry.st_ino);

The platform is x86. OS is Linux

Ron Henry

"the illiterate of the future are not those who can neither read
or write; but those who cannot learn, unlearn, and relearn..."


<Prev in Thread] Current Thread [Next in Thread>