Changeset 92 for trunk/src/kern_head.c


Ignore:
Timestamp:
Feb 18, 2007, 5:23:32 PM (18 years ago)
Author:
rainer
Message:

Move fd closing more towards program start. Fix OpenBSD 4.0 compatibility for kernel check.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kern_head.c

    r51 r92  
    726726  if      (utbuf.release[0] == '3')
    727727    which = 38;
     728  else if (utbuf.release[0] == '4')
     729    which = 40;
    728730#else
    729731  if      (utbuf.release[0] == '4')
     
    791793    printf("\n/* Kernel %s, machine %s -- use table %s */\n\n",
    792794                 utbuf.release, utbuf.machine, "callz_fbsd5");
    793   else if (which == 38)
     795  else if (which == 38 || which == 40)
    794796    printf("\n/* Kernel %s, machine %s -- use table %s */\n\n",
    795797                 utbuf.release, utbuf.machine, "callz_obsd");
     
    817819      }
    818820  }
    819   else if (which == 38) {
     821  else if (which == 38 || which == 40) {
    820822    while ((callz_obsd[i] != NULL) && (i < SYS_MAXSYSCALL))
    821823      {
Note: See TracChangeset for help on using the changeset viewer.