| ... | ... | @@ -509,15 +509,15 @@ pub const libc_stat = extern struct { |
| 509 | 509 | ctim: timespec, |
| 510 | 510 | __unused: [2]isize, |
| 511 | 511 | |
| 512 | | pub fn atime(self: Stat) timespec { |
| 512 | pub fn atime(self: libc_stat) timespec { |
| 513 | 513 | return self.atim; |
| 514 | 514 | } |
| 515 | 515 | |
| 516 | | pub fn mtime(self: Stat) timespec { |
| 516 | pub fn mtime(self: libc_stat) timespec { |
| 517 | 517 | return self.mtim; |
| 518 | 518 | } |
| 519 | 519 | |
| 520 | | pub fn ctime(self: Stat) timespec { |
| 520 | pub fn ctime(self: libc_stat) timespec { |
| 521 | 521 | return self.ctim; |
| 522 | 522 | } |
| 523 | 523 | }; |
| ... | ... | @@ -545,15 +545,15 @@ pub const kernel_stat = extern struct { |
| 545 | 545 | // Hack to make the stdlib not complain about atime |
| 546 | 546 | // and friends not being a method. |
| 547 | 547 | // TODO what should tv_nsec be filled with? |
| 548 | | pub fn atime(self: Stat) timespec { |
| 548 | pub fn atime(self: kernel_stat) timespec { |
| 549 | 549 | return timespec{.tv_sec=self.atim, .tv_nsec=0}; |
| 550 | 550 | } |
| 551 | 551 | |
| 552 | | pub fn mtime(self: Stat) timespec { |
| 552 | pub fn mtime(self: kernel_stat) timespec { |
| 553 | 553 | return timespec{.tv_sec=self.mtim, .tv_nsec=0}; |
| 554 | 554 | } |
| 555 | 555 | |
| 556 | | pub fn ctime(self: Stat) timespec { |
| 556 | pub fn ctime(self: kernel_stat) timespec { |
| 557 | 557 | return timespec{.tv_sec=self.ctim, .tv_nsec=0}; |
| 558 | 558 | } |
| 559 | 559 | }; |