Added AccessTime() and ModificationTime().
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@4230 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
83d7be1c6f
commit
a0ff5accb6
@ -1,5 +1,7 @@
|
||||
#include "Icb.h"
|
||||
|
||||
#include "time.h"
|
||||
|
||||
#include "AllocationDescriptorList.h"
|
||||
#include "DirectoryIterator.h"
|
||||
#include "Utils.h"
|
||||
@ -37,6 +39,18 @@ Icb::InitCheck()
|
||||
return fInitStatus;
|
||||
}
|
||||
|
||||
time_t
|
||||
Icb::AccessTime()
|
||||
{
|
||||
return make_time(FileEntry()->access_date_and_time());
|
||||
}
|
||||
|
||||
time_t
|
||||
Icb::ModificationTime()
|
||||
{
|
||||
return make_time(FileEntry()->modification_date_and_time());
|
||||
}
|
||||
|
||||
status_t
|
||||
Icb::Read(off_t pos, void *buffer, size_t *length, uint32 *block)
|
||||
{
|
||||
|
@ -77,6 +77,8 @@ public:
|
||||
uint16 FileLinkCount() { return FileEntry()->file_link_count(); }
|
||||
uint64 Length() { return FileEntry()->information_length(); }
|
||||
mode_t Mode() { return (IsDirectory() ? S_IFDIR : S_IFREG) | S_IRUSR | S_IRGRP | S_IROTH; }
|
||||
time_t AccessTime();
|
||||
time_t ModificationTime();
|
||||
|
||||
uint8 *AllocationDescriptors() { return AbstractEntry()->AllocationDescriptors(); }
|
||||
uint32 AllocationDescriptorsSize() { return AbstractEntry()->AllocationDescriptorsLength(); }
|
||||
|
Loading…
x
Reference in New Issue
Block a user