diff options
author | Jim Meyering <jim@meyering.net> | 1998-11-30 03:01:24 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 1998-11-30 03:01:24 +0000 |
commit | 1e422ea7eca9d3aeb9777c55ae38fd3cf3608586 (patch) | |
tree | efd1a6818740994d69f9a8db23ca6a7a40c82938 | |
parent | 9d7c18290ecfac38e55a8cb8833f7923d50f1a6f (diff) | |
download | coreutils-1e422ea7eca9d3aeb9777c55ae38fd3cf3608586.tar.xz |
(DOT_OR_DOTDOT): New definition (moved here from remove.c.).
-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'))) |