summaryrefslogtreecommitdiff
path: root/support/dktools/dk4ufit.h
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /support/dktools/dk4ufit.h
Initial commit
Diffstat (limited to 'support/dktools/dk4ufit.h')
-rw-r--r--support/dktools/dk4ufit.h36
1 files changed, 36 insertions, 0 deletions
diff --git a/support/dktools/dk4ufit.h b/support/dktools/dk4ufit.h
new file mode 100644
index 0000000000..8ddaf35c8c
--- /dev/null
+++ b/support/dktools/dk4ufit.h
@@ -0,0 +1,36 @@
+#ifndef DK4UFIT_H_INCLUDED
+/** Protection against multiple inclusion. */
+#define DK4UFIT_H_INCLUDED 1
+
+/** @file dk4ufit.h Data type for unique file identifiers.
+*/
+
+#ifndef DK4CONF_H_INCLUDED
+#include "dk4conf.h"
+#endif
+
+#ifndef DK4TYPES_H_INCLUDED
+#include "dk4types.h"
+#endif
+
+#if !DK4_ON_WINDOWS
+#ifndef DK4STATT_H_INCLUDED
+#include "dk4statt.h"
+#endif
+#endif
+
+/** Unique file identification.
+*/
+typedef struct {
+#if DK4_ON_WINDOWS
+ unsigned long ser; /**< Volume serial number (originally DWORD). */
+ unsigned long inh; /**< Higher index part (originally DWORD). */
+ unsigned long inl; /**< Lower index part (originally DWORD). */
+#else
+ dk4_um_t dev; /**< Device number (originally dev_t). */
+ dk4_um_t ino; /**< Inode number (originally ino_t). */
+#endif
+} dk4_ufi_t;
+
+#endif
+