[8703] in Athena Bugs
Manual page for stat on decmips
daemon@ATHENA.MIT.EDU (wchuang@Athena.MIT.EDU)
Tue Dec 3 02:56:57 1991
From: wchuang@Athena.MIT.EDU
Date: Tue, 3 Dec 91 02:56:45 -0500
To: bugs@Athena.MIT.EDU
The manual page for stat (2) on a decmips says:
struct stat {
dev_t st_dev; /* device inode resides on */
ino_t st_ino; /* this inode's number */
u_short st_mode; /* protection */
short st_nlink; /* number or hard links to the file */
short st_uid; /* user-id of owner */
short st_gid; /* group-id of owner */
dev_t st_rdev; /* the device type, for inode that is device */
off_t st_size; /* total size of file */
time_t st_atime; /* file last access time */
int st_spare1;
time_t st_mtime; /* file last modify time */
int st_spare2;
time_t st_ctime; /* file last status change time */
int st_spare3;
long st_blksize; /* optimal blocksize for file system i/o ops */
long st_blocks; /* actual number of blocks allocated */
long st_spare4;
u_long st_gennum; /* file generation number */
};
But /usr/include/sys/stat.h says:
struct stat
{
dev_t st_dev;
ino_t st_ino;
mode_t st_mode;
nlink_t st_nlink;
uid_t st_uid;
gid_t st_gid;
dev_t st_rdev;
off_t st_size;
time_t st_atime;
int st_spare1;
time_t st_mtime;
int st_spare2;
time_t st_ctime;
int st_spare3;
long st_blksize;
long st_blocks;
unsigned long st_gennum;
long st_spare4;
};
Notice that the last two entries are reversed in the manual page.