busybox-1.32.0/archival/tar.c
static void addHardLinkInfo(HardLinkInfo **hlInfoHeadPtr,
					struct stat *statbuf,
					const char *fileName)
{
	/* Note: hlInfoHeadPtr can never be NULL! */
	HardLinkInfo *hlInfo;

	hlInfo = xmalloc(sizeof(HardLinkInfo) + strlen(fileName));
	hlInfo->next = *hlInfoHeadPtr;
	*hlInfoHeadPtr = hlInfo;
	hlInfo->dev = statbuf->st_dev;
	hlInfo->ino = statbuf->st_ino;
//	hlInfo->linkCount = statbuf->st_nlink;
	strcpy(hlInfo->name, fileName);
}
/* Might be faster (and bigger) if the dev/ino were stored in numeric order;) */
Might be faster (and bigger) if the dev/ino were stored in numeric order;)
Might be faster ( and bigger ) if the dev / ino were stored in numeric order ; )
static void addHardLinkInfo(HardLinkInfo **hlInfoHeadPtr,
					struct stat *statbuf,
					const char *fileName)
{
	HardLinkInfo *hlInfo;
	hlInfo = xmalloc(sizeof(HardLinkInfo) + strlen(fileName));
	hlInfo->next = *hlInfoHeadPtr;
	*hlInfoHeadPtr = hlInfo;
	hlInfo->dev = statbuf->st_dev;
	hlInfo->ino = statbuf->st_ino;
	strcpy(hlInfo->name, fileName);
}
static void addHardLinkInfo ( HardLinkInfo * * hlInfoHeadPtr , struct stat * statbuf , const char * fileName ) { HardLinkInfo * hlInfo ; hlInfo = xmalloc ( sizeof ( HardLinkInfo ) + strlen ( fileName ) ) ; hlInfo -> next = * hlInfoHeadPtr ; * hlInfoHeadPtr = hlInfo ; hlInfo -> dev = statbuf -> st_dev ; hlInfo -> ino = statbuf -> st_ino ; strcpy ( hlInfo -> name , fileName ) ; }
Might be faster (and bigger) if the dev/ino were stored in numeric order;)
Might be faster ( and bigger ) if the dev / ino were stored in numeric order ; )
/* Note: hlInfoHeadPtr can never be NULL! */ //	hlInfo->linkCount = statbuf->st_nlink;