diff options
-rw-r--r-- | src/sys2.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/sys2.h b/src/sys2.h index e2795c27f..e197cef15 100644 --- a/src/sys2.h +++ b/src/sys2.h @@ -220,3 +220,7 @@ off_t lseek (); #define SAME_INODE(Stat_buf_1, Stat_buf_2) \ ((Stat_buf_1).st_ino == (Stat_buf_2).st_ino \ && (Stat_buf_1).st_dev == (Stat_buf_2).st_dev) + +#define DOT_OR_DOTDOT(Basename) \ + (Basename[0] == '.' && (Basename[1] == '\0' \ + || (Basename[1] == '.' && Basename[2] == '\0'))) |