Go to the source code of this file.
◆ eo
Value:
((
p)[0] ==
';' && (
p)[1] ==
'1' && (
p)[2] ==
'\0') || \
Definition at line 532 of file hash.c.
◆ HASH_FN
#define HASH_FN |
( |
|
DEV, |
|
|
|
INO |
|
) |
| ((DEV + INO + (INO >> 8) + (INO << 16)) % NR_HASH) |
◆ NR_HASH
◆ NR_NAME_HASH
◆ __PR() [1/6]
◆ __PR() [2/6]
◆ __PR() [3/6]
◆ __PR() [4/6]
◆ __PR() [5/6]
◆ __PR() [6/6]
◆ add_directory_hash()
Definition at line 346 of file hash.c.
350{
352 unsigned int hash_number;
353
355 return;
358 return;
359
361
368}
EXPORT void * e_malloc(size_t size)
Referenced by insert_file_entry(), and main().
◆ add_file_hash()
Definition at line 436 of file hash.c.
438{
443
449 break;
451 }
454
455
458}
static int sum(int x_, int y_)
struct directory_entry * de
Referenced by sort_n_finish().
◆ add_hash()
Definition at line 140 of file hash.c.
142{
144 unsigned int hash_number = 0;
145
149 _(
"Non zero-length file '%s' assigned zero extent.\n"),
151 };
152
153#ifdef DUPLICATES_ONCE
155#else
157#endif
158 return;
161 return;
162 }
163#ifdef DUPLICATES_ONCE
165#endif
166 hash_number =
HASH_FN((
unsigned int) spnt->
dev,
167 (
unsigned int) spnt->
inode);
168#ifdef DUPLICATES_ONCE
169 else if (duplicates_once &&
171 hash_number = UNIQUE_FILES_HASH_FN((
unsigned int) spnt->
size);
172#endif
173
174#if 0
177#endif
185#if defined(SORTING) || defined(DUPLICATES_ONCE)
186 s_hash->de = spnt;
187#endif
189}
EXPORT void comerrno(int err, char *msg, va_alist)
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
unsigned int starting_block
struct iso_directory_record isorec
unsigned int starting_block
◆ delete_file_hash()
Definition at line 559 of file hash.c.
561{
565
570 break;
571 prev = nh;
572 }
573 if (!nh)
574 return (1);
575 if (!prev)
577 else
580 return (0);
581}
Referenced by sort_n_finish().
◆ find_directory_hash()
Definition at line 375 of file hash.c.
379{
380 unsigned int hash_number;
382
388
391 while (spnt) {
393 return (spnt);
395 };
397}
Referenced by insert_file_entry().
◆ find_file_hash()
Definition at line 461 of file hash.c.
463{
464 register char *p1;
465 register char *p2;
467 register int sum = 0;
468
471
472 for (p1 =
name; *p1; p1++) {
473 if (*p1 == ';')
474 break;
476 }
477
480 continue;
481
483 p2 = nh->
de->isorec.name;
485 error(
_(
"Checking name '%s' isorec.name '%s'\n"), p1, p2);
486
487
488 while (1 == 1) {
489 if ((*p1 == '\0' || *p1 == ';') ||
490 (*p2 == '\0' || *p2 == ';') ||
491 (*p1 != *p2)) {
492 break;
493 }
494 p1++;
495 p2++;
496 }
500 error(
_(
"'%s' does NOT END OK\n"), p1);
502 error(
_(
"'%s' does NOT END OK\n"), p2);
503 }
504
505
506
507
508 if (*p1 == '\0' || *p2 == '\0')
509 continue;
510
511 if (*p1 == ';' && *p2 == ';') {
512 p1++;
513 p2++;
514 continue;
515 }
516 }
517
518
519
520
521 if ((*p1 == '\0' || *p1 == ';') &&
522 (*p2 == '\0' || *p2 == ';')) {
524 }
525 }
527}
Referenced by sort_n_finish().
◆ find_hash()
Definition at line 192 of file hash.c.
194{
195 unsigned int hash_number;
197
198#ifdef DUPLICATES_ONCE
200#else
202#endif
207
208#ifdef DUPLICATES_ONCE
210#endif
211 hash_number =
HASH_FN((
unsigned int) spnt->
dev,
212 (
unsigned int) spnt->
inode);
214 while (s_hash) {
217 return (s_hash);
218 s_hash = s_hash->
next;
219 }
220#ifdef DUPLICATES_ONCE
221 } else if (duplicates_once &&
223 hash_number = UNIQUE_FILES_HASH_FN((
unsigned int) spnt->
size);
225 while (s_hash) {
227 return (s_hash);
228 s_hash = s_hash->
next;
229 }
230 }
231#endif
233}
static int compare_files(HANDLE file1, HANDLE file2)
Referenced by assign_file_addresses(), assign_inodes(), assign_linkcount(), and compute_linkcount().
◆ flush_file_hash()
Definition at line 584 of file hash.c.
585{
589
592 while (nh) {
595 nh = nh1;
596 }
598
599 }
600}
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Referenced by sort_n_finish().
◆ flush_hash()
Definition at line 240 of file hash.c.
241{
245
248 while (fh) {
251 fh = fh1;
252 }
254 }
255}
◆ isoname_endsok()
Definition at line 537 of file hash.c.
539{
542
547
548 for (
p = ++
name,
i = 0; *
p &&
i < 5;
p++,
i++) {
549 if (*
p <
'0' || *
p >
'9')
551 }
553 if (i < 1 || i > 32767)
556}
_Check_return_ int __cdecl atoi(_In_z_ const char *_Str)
Referenced by find_file_hash().
◆ name_hash()
Definition at line 413 of file hash.c.
415{
416 unsigned int hash = 0;
418
420
422
423
424
425
426
428 break;
429 }
431 }
433}
◆ directory_hash_table
◆ hash_table
◆ name_hash_table
◆ sccsid
Initial value:=
"@(#)hash.c 1.30 16/12/13 joerg"
Definition at line 4 of file hash.c.