bind.patch 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. --- src/lib/isc/eventlib.c.orig Thu Jul 4 15:01:28 2002
  2. +++ src/lib/isc/eventlib.c Thu Jul 4 15:02:04 2002
  3. @@ -293,9 +293,15 @@
  4. evPrintf(ctx, 4,
  5. "pselect(%d, 0x%lx, 0x%lx, 0x%lx, %d.%09ld)\n",
  6. ctx->fdMax+1,
  7. +#ifdef __linux__
  8. + (u_long)ctx->rdLast.__fds_bits[0],
  9. + (u_long)ctx->wrLast.__fds_bits[0],
  10. + (u_long)ctx->exLast.__fds_bits[0],
  11. +#else
  12. (u_long)ctx->rdLast.fds_bits[0],
  13. (u_long)ctx->wrLast.fds_bits[0],
  14. (u_long)ctx->exLast.fds_bits[0],
  15. +#endif
  16. tp ? tp->tv_sec : -1,
  17. tp ? tp->tv_nsec : -1);
  18. --- src/lib/isc/ev_files.c.orig Thu Jul 4 15:01:42 2002
  19. +++ src/lib/isc/ev_files.c Thu Jul 4 15:01:54 2002
  20. @@ -146,9 +146,15 @@
  21. evPrintf(ctx, 5,
  22. "evSelectFD(fd %d, mask 0x%x): new masks: 0x%lx 0x%lx 0x%lx\n",
  23. fd, eventmask,
  24. +#ifdef __linux__
  25. + (u_long)ctx->rdNext.__fds_bits[0],
  26. + (u_long)ctx->wrNext.__fds_bits[0],
  27. + (u_long)ctx->exNext.__fds_bits[0]);
  28. +#else
  29. (u_long)ctx->rdNext.fds_bits[0],
  30. (u_long)ctx->wrNext.fds_bits[0],
  31. (u_long)ctx->exNext.fds_bits[0]);
  32. +#endif
  33. return (0);
  34. }
  35. @@ -262,9 +268,15 @@
  36. evPrintf(ctx, 5,
  37. "evDeselectFD(fd %d, mask 0x%x): new masks: 0x%lx 0x%lx 0x%lx\n",
  38. del->fd, eventmask,
  39. +#ifdef __linux__
  40. + (u_long)ctx->rdNext.__fds_bits[0],
  41. + (u_long)ctx->wrNext.__fds_bits[0],
  42. + (u_long)ctx->exNext.__fds_bits[0]);
  43. +#else
  44. (u_long)ctx->rdNext.fds_bits[0],
  45. (u_long)ctx->wrNext.fds_bits[0],
  46. (u_long)ctx->exNext.fds_bits[0]);
  47. +#endif
  48. /* Couldn't free it before now since we were using fields out of it. */
  49. FREE(del);