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

Commit

Permalink
Add more Solaris declarations.
Browse files Browse the repository at this point in the history
Add missing declations in `core.sys.posix.utime` and `core.sys.posix.utime`.
  • Loading branch information
redstar committed Nov 21, 2014
1 parent 0088d0b commit 8317b77
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 9 deletions.
54 changes: 45 additions & 9 deletions src/core/sys/posix/sys/stat.d
Expand Up @@ -734,9 +734,21 @@ else version (Solaris)
gid_t st_gid;
dev_t st_rdev;
off_t st_size;
timestruc_t st_atim;
timestruc_t st_mtim;
timestruc_t st_ctim;
union
{
timestruc_t st_atim;
time_t st_atime;
}
union
{
timestruc_t st_mtim;
time_t st_mtime;
}
union
{
timestruc_t st_ctim;
time_t st_ctime;
}
blksize_t st_blksize;
blkcnt_t st_blocks;
char[_ST_FSTYPSZ] st_fstype;
Expand All @@ -759,9 +771,21 @@ else version (Solaris)
c_long[2] st_pad2;
off_t st_size;
c_long st_pad3;
timestruc_t st_atim;
timestruc_t st_mtim;
timestruc_t st_ctim;
union
{
timestruc_t st_atim;
time_t st_atime;
}
union
{
timestruc_t st_mtim;
time_t st_mtime;
}
union
{
timestruc_t st_ctim;
time_t st_ctime;
}
blksize_t st_blksize;
blkcnt_t st_blocks;
char[_ST_FSTYPSZ] st_fstype;
Expand All @@ -781,9 +805,21 @@ else version (Solaris)
c_long[2] st_pad2;
off64_t st_size;
c_long st_pad3;
timestruc_t st_atim;
timestruc_t st_mtim;
timestruc_t st_ctim;
union
{
timestruc_t st_atim;
time_t st_atime;
}
union
{
timestruc_t st_mtim;
time_t st_mtime;
}
union
{
timestruc_t st_ctim;
time_t st_ctime;
}
blksize_t st_blksize;
blkcnt64_t st_blocks;
char[_ST_FSTYPSZ] st_fstype;
Expand Down
10 changes: 10 additions & 0 deletions src/core/sys/posix/utime.d
Expand Up @@ -65,6 +65,16 @@ else version( FreeBSD )

int utime(in char*, in utimbuf*);
}
else version( Solaris )
{
struct utimbuf
{
time_t actime;
time_t modtime;
}

int utime(in char*, in utimbuf*);
}
else version( Android )
{
struct utimbuf
Expand Down

0 comments on commit 8317b77

Please sign in to comment.