1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-02-03 17:11:32 +00:00

$ brucify sys/stat.h

_devt should be __dev_t
$
This commit is contained in:
Poul-Henning Kamp 1999-05-12 07:55:42 +00:00
parent 7238b09623
commit 63bc2b64ea
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=47050

View File

@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)stat.h 8.12 (Berkeley) 6/16/95
* $Id: stat.h,v 1.15 1998/05/11 03:55:13 dyson Exp $
* $Id: stat.h,v 1.16 1999/05/11 19:54:58 phk Exp $
*/
#ifndef _SYS_STAT_H_
@ -51,9 +51,9 @@
#endif
#ifdef KERNEL
#define __devt udev_t
#define __dev_t udev_t
#else
#define __devt dev_t
#define __dev_t dev_t
#endif
#ifndef _POSIX_SOURCE
@ -77,13 +77,13 @@ struct ostat {
#endif /* !_POSIX_SOURCE */
struct stat {
__devt st_dev; /* inode's device */
__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 */
__devt st_rdev; /* device type */
__dev_t st_rdev; /* device type */
#ifndef _POSIX_SOURCE
struct timespec st_atimespec; /* time of last access */
struct timespec st_mtimespec; /* time of last data modification */
@ -107,13 +107,13 @@ struct stat {
#ifndef _POSIX_SOURCE
struct nstat {
__devt st_dev; /* inode's device */
__dev_t st_dev; /* inode's device */
ino_t st_ino; /* inode's number */
u_int32_t st_mode; /* inode protection mode */
u_int32_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 */
__devt st_rdev; /* device type */
__dev_t st_rdev; /* device type */
#ifndef _POSIX_SOURCE
struct timespec st_atimespec; /* time of last access */
struct timespec st_mtimespec; /* time of last data modification */
@ -135,7 +135,7 @@ struct nstat {
};
#endif
#undef __devt
#undef __dev_t
#ifndef _POSIX_SOURCE
#define st_atime st_atimespec.tv_sec