From: Jim Meyering Date: Sun, 26 Feb 2006 10:03:17 +0000 (+0000) Subject: (NOT_AN_INODE_NUMBER, D_INO): Define (moved here from pwd.c). X-Git-Tag: v6.0~687 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7561654142fbdb1d6e90846fad8fd74fffc0acaa;p=thirdparty%2Fcoreutils.git (NOT_AN_INODE_NUMBER, D_INO): Define (moved here from pwd.c). --- diff --git a/src/system.h b/src/system.h index 0f471e5d14..a9244f04cd 100644 --- a/src/system.h +++ b/src/system.h @@ -244,6 +244,18 @@ initialize_exit_failure (int status) # define CLOSEDIR(d) closedir (d) #endif +enum +{ + NOT_AN_INODE_NUMBER = 0 +}; + +#ifdef D_INO_IN_DIRENT +# define D_INO(dp) ((dp)->d_ino) +#else +/* Some systems don't have inodes, so fake them to avoid lots of ifdefs. */ +# define D_INO(dp) NOT_AN_INODE_NUMBER +#endif + /* Get or fake the disk device blocksize. Usually defined by sys/param.h (if at all). */ #if !defined DEV_BSIZE && defined BSIZE