Per the man page for stat(2):

    The sb argument is a pointer to a stat() structure as
    defined by <sys/stat.h> (shown below) and into which
    information is placed concerning the file.

        struct stat {
            dev_t     st_dev;     /* inode's device */
            ino_t     st_ino;     /* inode's number */
            mode_t    st_mode;    /* inode protection mode */
            nlink_t   st_nlink;   /* number of hard links */
            uid_t     st_uid;     /* user ID of the file's owner */
            gid_t     st_gid;     /* group ID of the file's group */
            dev_t     st_rdev;    /* device type */

And /usr/include/sys/stat.h repeats that verbatim. What
I'm trying to understand is what the values in st_rdev

Is the value returned in that field documented anywhere? I
grep'd around in /usr/include but didn't find much to go on.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-questions" in the body of the message

Reply via email to