diff options
author | Fritz Elfert <felfert@to.com> | 2001-03-05 10:12:26 +0000 |
---|---|---|
committer | Fritz Elfert <felfert@to.com> | 2001-03-05 10:12:26 +0000 |
commit | 3c5877e3f7fcd101a9868e6da86f12b92b6d4896 (patch) | |
tree | fb8ca31738d782bb0d11e55dc2e4794db2d17ae3 /lib/plpdirent.h | |
parent | 3ebac278eff9f4ba457a5f1ccbce9857ea00dba5 (diff) | |
download | plptools-3c5877e3f7fcd101a9868e6da86f12b92b6d4896.tar.gz plptools-3c5877e3f7fcd101a9868e6da86f12b92b6d4896.tar.bz2 plptools-3c5877e3f7fcd101a9868e6da86f12b92b6d4896.zip |
Fixed some 64bit related stuff in psitime and plpdirent.
More work on restore in kpsion.
Diffstat (limited to 'lib/plpdirent.h')
-rw-r--r-- | lib/plpdirent.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/lib/plpdirent.h b/lib/plpdirent.h index 3c9fb40..9224ebe 100644 --- a/lib/plpdirent.h +++ b/lib/plpdirent.h @@ -49,7 +49,7 @@ public: * Constructor. * Create an instance, presetting all thre uid values. */ - PlpUID(const long u1, const long u2, const long u3); + PlpUID(const u_int32_t u1, const u_int32_t u2, const u_int32_t u3); /** * Retrieve a UID value. @@ -57,7 +57,7 @@ public: * @param idx The index of the desired UID. Range must be (0..2), * otherwise an assertion is triggered. */ - long operator[](int idx); + u_int32_t operator[](int idx); private: long uid[3]; @@ -83,7 +83,7 @@ public: /** * Default constructor */ - PlpDirent() : size(0), attr(0), name(""), time(0L), attrstr("") { }; + PlpDirent(); /** * A copy constructor. @@ -94,6 +94,12 @@ public: PlpDirent(const PlpDirent &d); /** + * Initializing Constructor + */ + PlpDirent(const u_int32_t size, const u_int32_t attr, const u_int32_t tHi, + const u_int32_t tLo, const char * const name); + + /** * Default destructor. */ ~PlpDirent() {}; @@ -103,14 +109,14 @@ public: * * @returns The file size in bytes. */ - long getSize(); + u_int32_t getSize(); /** * Retrieves the file attributes of a directory entry. * * @returns The generic attributes ( @ref rfsv:file_attribs ). */ - long getAttr(); + u_int32_t getAttr(); /** * Retrieves the UIDs of a directory entry. @@ -120,7 +126,7 @@ public: * * @returns The selected UID or 0 if the index is out of range. */ - long getUID(int uididx); + u_int32_t getUID(int uididx); /** * Retrieves the @ref PlpUID object of a directory entry. @@ -172,8 +178,8 @@ public: friend ostream &operator<<(ostream &o, const PlpDirent &e); private: - long size; - long attr; + u_int32_t size; + u_int32_t attr; PlpUID UID; PsiTime time; string attrstr; |