From ace02dc9cd3ca0c95db5b5ebe87b9d6cd6ca1733 Mon Sep 17 00:00:00 2001 From: Matt Kraai Date: Mon, 17 Dec 2001 15:26:36 +0000 Subject: Make cp and mv optionally preserve hard links. --- libbb/inode_hash.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'libbb/inode_hash.c') diff --git a/libbb/inode_hash.c b/libbb/inode_hash.c index 52c54cdc1..36484e6ae 100644 --- a/libbb/inode_hash.c +++ b/libbb/inode_hash.c @@ -29,6 +29,13 @@ #define HASH_SIZE 311 /* Should be prime */ #define hash_inode(i) ((i) % HASH_SIZE) +typedef struct ino_dev_hash_bucket_struct { + struct ino_dev_hash_bucket_struct *next; + ino_t ino; + dev_t dev; + char name[1]; +} ino_dev_hashtable_bucket_t; + static ino_dev_hashtable_bucket_t *ino_dev_hashtable[HASH_SIZE]; /* -- cgit v1.2.3