diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2010-11-18 23:00:31 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2010-11-18 23:00:31 +0200 |
commit | 6f3612539c425da2bc1d34db621696e6a273b01c (patch) | |
tree | 9623b3ac2c54a93e5eed3be2b1dda7f4e4bf0e47 /posix | |
parent | 4e3701015635401df2fc4da58abaab7645f4ebd3 (diff) | |
download | egawk-6f3612539c425da2bc1d34db621696e6a273b01c.tar.gz egawk-6f3612539c425da2bc1d34db621696e6a273b01c.tar.bz2 egawk-6f3612539c425da2bc1d34db621696e6a273b01c.zip |
Bring latest byte code gawk into git. Hurray!
Diffstat (limited to 'posix')
-rw-r--r-- | posix/gawkmisc.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/posix/gawkmisc.c b/posix/gawkmisc.c index 08551da5..7fb5f1ef 100644 --- a/posix/gawkmisc.c +++ b/posix/gawkmisc.c @@ -222,6 +222,14 @@ int fd; /* no-op */ return; } + +/* files_are_same --- return true if files are identical */ + +int +files_are_same(struct stat *f1, struct stat *f2) +{ + return (f1->st_dev == f2->st_dev && f1->st_ino == f2->st_ino); +} #ifdef __CYGWIN__ #include <stdio.h> |