Date: Thu, 6 Feb 2003 17:41:23 -0500 From: James Snow <snow@teardrop.org> To: freebsd-questions@freebsd.org Subject: Question about stat(2) return values Message-ID: <20030206174123.A37342@teardrop.org>
next in thread | raw e-mail | index | archive | help
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 represent. Is the value returned in that field documented anywhere? I grep'd around in /usr/include but didn't find much to go on. Thanks, -James To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030206174123.A37342>