mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(NOT_AN_INODE_NUMBER, D_INO): Define (moved here from pwd.c).
This commit is contained in:
1 parent
083f6ad61c
commit
7561654142
1 file changed
+12
@@ -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
|
||||
|
||||
Reference in new issue
Block a user