Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

core.sys.posix.sys.stat: Fix SPARC32/Solaris declaration of stat32_t #3072

Merged
merged 1 commit into from
Apr 27, 2020
Merged

core.sys.posix.sys.stat: Fix SPARC32/Solaris declaration of stat32_t #3072

merged 1 commit into from
Apr 27, 2020

Conversation

ibuclaw
Copy link
Member

@ibuclaw ibuclaw commented Apr 27, 2020

Solaris 11 <sys/stat.h> has

struct	stat {
	dev_t		st_dev;
	long		st_pad1[3];	/* reserved for network id */
	ino_t		st_ino;
	mode_t		st_mode;
	nlink_t		st_nlink;
	uid_t		st_uid;
	gid_t		st_gid;
	dev_t		st_rdev;
	long		st_pad2[2];
	off_t		st_size;
#if _FILE_OFFSET_BITS != 64
	long		st_pad3;	/* future off_t expansion */
#endif
	timespec_t	st_atim;
	timespec_t	st_mtim;
	timespec_t	st_ctim;
	blksize_t	st_blksize;
	blkcnt_t	st_blocks;
	char		st_fstype[_ST_FSTYPSZ];
	long		st_pad4[8];	/* expansion area */
};

st_pad3 is included in the non-largefile version of struct stat when it shouldn't be.

@dlang-bot dlang-bot merged commit d4f58e5 into dlang:master Apr 27, 2020
@ibuclaw ibuclaw deleted the sparcstat32 branch April 27, 2020 18:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
3 participants