search for: kill_hashfil

Displaying 5 results from an estimated 5 matches for "kill_hashfil".

Did you mean: kill_hashfile
2004 Feb 09
1
[patch] Add `--link-by-hash' option.
...c = *src >> 4; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0'); + c = *src & 0x0f; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0'); + } + *dst = 0; + + asprintf(&dst,"%s/%s",link_by_hash_dir,hash); + return dst; +} + + +void kill_hashfile(struct hashfile_struct *hashfile) +{ + if (!hashfile) + return; + free(hashfile->name); + close(hashfile->fd); + free(hashfile); +} + + +void kill_hashfiles(struct hashfile_struct *hashfiles) +{ + struct hashfile_struct *iter, *next; + if ((iter = hashfiles) != NULL) { + do { + next = it...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 4).
...c = *src >> 4; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0'); + c = *src & 0x0f; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0'); + } + *dst = 0; + + asprintf(&dst,"%s/%s",link_by_hash_dir,hash); + return dst; +} + + +void kill_hashfile(struct hashfile_struct *hashfile) +{ + if (!hashfile) + return; + free(hashfile->name); + close(hashfile->fd); + free(hashfile); +} + + +void kill_hashfiles(struct hashfile_struct *hashfiles) +{ + struct hashfile_struct *iter, *next; + if ((iter = hashfiles) != NULL) { + do { + next = it...
2004 Feb 17
0
[patch] Add `--link-by-hash' option (rev 3).
...c = *src >> 4; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0'); + c = *src & 0x0f; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0'); + } + *dst = 0; + + asprintf(&dst,"%s/%s",link_by_hash_dir,hash); + return dst; +} + + +void kill_hashfile(struct hashfile_struct *hashfile) +{ + if (!hashfile) + return; + free(hashfile->name); + close(hashfile->fd); + free(hashfile); +} + + +void kill_hashfiles(struct hashfile_struct *hashfiles) +{ + struct hashfile_struct *iter, *next; + if ((iter = hashfiles) != NULL) { + do { + next = it...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 5).
...c = *src >> 4; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0'); + c = *src & 0x0f; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0'); + } + *dst = 0; + + asprintf(&dst,"%s/%s",link_by_hash_dir,hash); + return dst; +} + + +void kill_hashfile(struct hashfile_struct *hashfile) +{ + if (!hashfile) + return; + free(hashfile->name); + close(hashfile->fd); + free(hashfile); +} + + +void kill_hashfiles(struct hashfile_struct *hashfiles) +{ + struct hashfile_struct *iter, *next; + if ((iter = hashfiles) != NULL) { + do { + next = it...
2004 Feb 16
1
[patch] Add `--link-by-hash' option (rev 2).
...c = *src >> 4; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0'); + c = *src & 0x0f; + *(dst++) = (c >= 10) ? (c - 10 + 'a') : (c + '0'); + } + *dst = 0; + + asprintf(&dst,"%s/%s",link_by_hash_dir,hash); + return dst; +} + + +void kill_hashfile(struct hashfile_struct *hashfile) +{ + if (!hashfile) + return; + free(hashfile->name); + close(hashfile->fd); + free(hashfile); +} + + +void kill_hashfiles(struct hashfile_struct *hashfiles) +{ + struct hashfile_struct *iter, *next; + if ((iter = hashfiles) != NULL) { + do { + next = it...