extern int verbose;
extern int make_backups;
-#if SUPPORT_HARD_LINKS
+#ifdef SUPPORT_HARD_LINKS
static int hlink_compare(struct file_struct **file1, struct file_struct **file2)
{
struct file_struct *f1 = *file1;
void init_hard_links(struct file_list *flist)
{
-#if SUPPORT_HARD_LINKS
+#ifdef SUPPORT_HARD_LINKS
int i;
if (flist->count < 2)
int hard_link_check(struct file_struct *file, int skip)
{
-#if SUPPORT_HARD_LINKS
+#ifdef SUPPORT_HARD_LINKS
if (!hlink_list || !file->link_u.links)
return 0;
if (skip && !(file->flags & FLAG_HLINK_EOL))
return 0;
}
-#if SUPPORT_HARD_LINKS
+#ifdef SUPPORT_HARD_LINKS
static void hard_link_one(char *hlink1, char *hlink2)
{
if (do_link(hlink1, hlink2)) {
* Create any hard links in the global hlink_list. They were put
* there by running init_hard_links on the filelist.
**/
-void do_hard_links(void)
+void do_hard_links(int allowed_lull, int flist_count)
{
-#if SUPPORT_HARD_LINKS
+#ifdef SUPPORT_HARD_LINKS
struct file_struct *file, *first;
char hlink1[MAXPATHLEN];
char *hlink2;
}
hard_link_one(hlink1, hlink2);
}
+ if (allowed_lull)
+ maybe_send_keepalive(allowed_lull, flist_count);
}
#endif
}