aboutsummaryrefslogtreecommitdiffstats
path: root/vms/gawkmisc.vms
diff options
context:
space:
mode:
Diffstat (limited to 'vms/gawkmisc.vms')
-rw-r--r--vms/gawkmisc.vms11
1 files changed, 11 insertions, 0 deletions
diff --git a/vms/gawkmisc.vms b/vms/gawkmisc.vms
index df5ded15..6f8fdaef 100644
--- a/vms/gawkmisc.vms
+++ b/vms/gawkmisc.vms
@@ -169,3 +169,14 @@ int fd;
/* no-op */
return;
}
+
+/* files_are_same --- deal with VMS struct stat */
+
+int
+files_are_same(struct stat *f1, struct stat *f2)
+{
+ return (strcmp(f1->st_dev, f2->st_dev) == 0
+ && f1->st_ino[0] == f2->st_ino[0]
+ && f1->st_ino[1] == f2->st_ino[1]
+ && f1->st_ino[2] == f2->st_ino[2]);
+}