* seen in the the trace explorer.pcapng, plus one which is the one
* triggering the seekdir() rewind.
*/
-#define ENUM1_NUM_1 374 + 1 /* p. 88 */
-#define ENUM1_NUM_2 1 /* p. 88 */
-#define ENUM1_NUM_3 374 + 1 /* p. 163 */
-
-#define ENUM2_NUM_1 374 + 1 /* p. 252 */
-#define ENUM2_NUM_2 373 + 1 /* p. 328 */
-#define ENUM2_NUM_3 6 /* p. 337, 2 actual results plus 6 missing */
+#define ENUM_NUM_1 372 + 1 /* p. 252 */
+#define ENUM_NUM_2 372 + 1 /* p. 328 */
+#define ENUM_NUM_3 9 /* 372 + 372 + 9 = 753 */
int main(int argc, char **argv)
{
ERROR(ERR_SYSCALL, "opendir %s error %s", dirpath, strerror(errno));
}
- ok = enumdir_check(dir2, true, ENUM2_NUM_1, NULL, &last_name);
+ ok = enumdir_check(dir2, true, ENUM_NUM_1, NULL, &last_name);
if (!ok) {
ERROR(ERR_CALL, "enum_check: %s", strerror(errno));
}
printf("Last entry: %s, rewound to it...\n", last_name);
- ok = enumdir_check(dir2, true, ENUM2_NUM_2,
+ ok = enumdir_check(dir2, true, ENUM_NUM_2,
last_name, &last_name);
if (!ok) {
ERROR(ERR_CALL, "enum_check: %s", strerror(errno));
printf("Last entry: %s, rewound to it...\n", last_name);
- ok = enumdir_check(dir2, true, ENUM2_NUM_3,
+ ok = enumdir_check(dir2, true, ENUM_NUM_3,
last_name, &last_name);
if (!ok) {
ERROR(ERR_CALL, "enum_check: %s", strerror(errno));