data.dbs[cnt].nentries = dbs[cnt].nentries; data.dbs[cnt].maxnentries = dbs[cnt].maxnentries; data.dbs[cnt].maxnsearched = dbs[cnt].maxnsearched; data.dbs[cnt].rdlockdelayed = dbs[cnt].rdlockdelayed; data.dbs[cnt].wrlockdelayed = dbs[cnt].wrlockdelayed;
send_stats (int fd, struct database dbs[lastdb]){  struct statdata data;  int cnt;  memcpy (data.version, compilation, sizeof (compilation));  data.debug_level = debug_level;  data.ndbs = lastdb;  for (cnt = 0; cnt < lastdb; ++cnt)    {      data.dbs[cnt].enabled = dbs[cnt].enabled;      data.dbs[cnt].check_file = dbs[cnt].check_file;      data.dbs[cnt].module = dbs[cnt].module;      data.dbs[cnt].postimeout = dbs[cnt].postimeout;      data.dbs[cnt].negtimeout = dbs[cnt].negtimeout;      data.dbs[cnt].poshit = dbs[cnt].poshit;      data.dbs[cnt].neghit = dbs[cnt].neghit;      data.dbs[cnt].posmiss = dbs[cnt].posmiss;      data.dbs[cnt].negmiss = dbs[cnt].negmiss;    }  if (TEMP_FAILURE_RETRY (write (fd, &data, sizeof (data))) != sizeof (data))    {      char buf[256];      dbg_log (_("cannot write statistics: %s"),	       strerror_r (errno, buf, sizeof (buf)));    }}